CentOS7 and Bugzilla 5.0.4

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

CentOS7 and Bugzilla 5.0.4

blhoskins
Hello,

I have completed a fresh install of CentOS7 and Bugzilla 5.0.4.  I have run the testserver.pl with the following results:

TEST-OK Webserver is running under group id in $webservergroup.
TEST-OK Got padlock picture.
TEST-OK Webserver is executing CGIs via mod_cgi.
TEST-OK Webserver is preventing fetch of http://172.16.0.245/localconfig.
TEST-OK GD version 2.69, libgd version 2.0.34; Major versions match.
TEST-OK GD library generated a good PNG image.
TEST-OK Chart library generated a good PNG image.
TEST-OK Template::Plugin::GD is installed.


I have also ran the checksetup.pl with no errors.  However when I attempt to access the bugzilla site I get the following:

First error: file error - cache failed to write index.html.tmpl: Error in tempfile() using template data/template/template/en/default/XXXXXXXXXX: Could not create temp file data/template/template/en/default/OvmmwPIyw0: Permission denied at lib/x86_64-linux-thread-multi/Template/Document.pm line 301.

Second error: file error - cache failed to write code-error.html.tmpl: Error in tempfile() using template data/template/template/en/default/global/XXXXXXXXXX: Could not create temp file data/template/template/en/default/global/s_gykLuXVQ: Permission denied at lib/x86_64-linux-thread-multi/Template/Document.pm line 301.

Does anyone know what the fix is for this?

Thanks,
Brandon
_______________________________________________
support-bugzilla mailing list
[hidden email]
https://lists.mozilla.org/listinfo/support-bugzilla
PLEASE put [hidden email] in the To: field when you reply.
Reply | Threaded
Open this post in threaded view
|

Re: CentOS7 and Bugzilla 5.0.4

blhoskins
On Tuesday, December 25, 2018 at 12:16:20 AM UTC-8, Thorsten Schöning wrote:

> Guten Tag [hidden email],
> am Montag, 24. Dezember 2018 um 19:54 schrieben Sie:
>
> > First error: file error - cache failed to write index.html.tmpl:
> > Error in tempfile() using template
> > data/template/template/en/default/XXXXXXXXXX: Could not create temp
> > file data/template/template/en/default/OvmmwPIyw0: Permission denied
>
> Something is wrong in your setup, first of all running checksetup.pl
> would normally set permissions as needed by Bugzilla to work
> properly. This is obviously not the case in your setup, so you either
> didn't run checksetup.pl in the correct directory or such or id didn't
> work properly for some reason, which needs to be debugged further.
>
> Additionally, you error message is most likely part of pre-compiling
> templates, whcih is exactly what is done by checksetup.pl normally for
> performance reasons, so that it doesn't need to be done during
> requests. This is another hint for that you didn't run checksetup.pl
> in the correct location. So have a look at the mentioned directory and
> check if they are any files and subdirs in theat folder already. If
> there aren't, that's wrong, if there are, have a look at the
> permissions and such.
>
> > at lib/x86_64-linux-thread-multi/Template/Document.pm line 301.
>
> You should prefer using the package manager instead of
> install-module.pl whenever possible.
>
> Mit freundlichen Grüßen,
>
> Thorsten Schöning
>
> --
> Thorsten Schöning       E-Mail: [hidden email]
> AM-SoFT IT-Systeme      http://www.AM-SoFT.de/
>
> Telefon...........05151-  9468- 55
> Fax...............05151-  9468- 88
> Mobil..............0178-8 9468- 04
>
> AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
> AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow

It was SELINUX stopping it.  Everything is good now once I modified some rules.
 
Thanks
-B
_______________________________________________
support-bugzilla mailing list
[hidden email]
https://lists.mozilla.org/listinfo/support-bugzilla
PLEASE put [hidden email] in the To: field when you reply.