yum update to 1.2.2 - log dir permission issues

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
ajwilliamson
Posts: 2
Joined: Wed Mar 20, 2019 8:25 am

yum update to 1.2.2 - log dir permission issues

Post by ajwilliamson »

Hi,

I performed a yum update to Cacti 1.2.2. In walking through the install, I get to the point where the directory permissions are checked...and am told that the directory /usr/share/cacti/log/ is not writable.

I've tried changing permissions between root and apache, but nothing seemed to get me past this.

Here is what I have currently, if anyone can help me get past this, I would be very grateful.

Code: Select all

ls -al /usr/share/cacti/log
lrwxrwxrwx. 1 apache apache 15 Mar 14 08:47 /usr/share/cacti/log -> /var/log/cacti/

Code: Select all

ls -al /var/log/ | grep cacti
drwxrwxrwx.  2 apache apache    4096 Mar 20 09:17 cacti

Code: Select all

ls -al /var/log/cacti
total 4072
drwxrwxrwx.  2 apache apache   4096 Mar 20 09:17 .
drwxr-xr-x. 12 root   root     4096 Mar 17 03:38 ..
-rw-r--r--.  1 apache apache      0 Mar 15 16:37 1040669205c8c0ceee584f.tmp
-rw-r--r--.  1 apache apache      0 Mar 20 09:17 12311369825c923d6083c2e.tmp
-rw-r--r--.  1 apache apache      0 Mar 15 17:49 1244130315c8c1dd565197.tmp
-rw-r--r--.  1 apache apache      0 Mar 15 16:37 14979159655c8c0cef91b3e.tmp
-rw-r--r--.  1 apache apache      0 Mar 15 17:01 15846862645c8c1291537cb.tmp
-rw-r--r--.  1 apache apache      0 Mar 15 17:25 16477617865c8c1832abf7f.tmp
-rw-r--r--.  1 apache apache      0 Mar 15 16:12 16612537935c8c074bd57a0.tmp
-rw-r--r--.  1 apache apache      0 Mar 15 17:49 168944845c8c1dd4b898b.tmp
-rw-r--r--.  1 apache apache      0 Mar 20 09:17 17393506715c923d610e3bf.tmp
-rw-r--r--.  1 apache apache      0 Mar 15 17:25 17416723505c8c183349529.tmp
-rw-r--r--.  1 apache apache      0 Mar 20 09:17 20113084245c923d610fc21.tmp
-rw-r--r--.  1 apache apache      0 Mar 15 17:25 20311614015c8c18334afed.tmp
-rw-r--r--.  1 apache apache      0 Mar 15 17:01 20975216265c8c1290ab784.tmp
-rw-r--r--.  1 apache apache      0 Mar 15 17:49 21369203225c8c1dd563575.tmp
-rw-r--r--.  1 apache apache      0 Mar 15 16:12 2341797295c8c074bd3b86.tmp
-rw-r--r--.  1 apache apache      0 Mar 15 16:12 5350127565c8c074b36a76.tmp
-rw-r--r--.  1 apache apache      0 Mar 15 16:37 6919179815c8c0cef93947.tmp
-rw-r--r--.  1 apache apache      0 Mar 15 17:01 8287641465c8c129151ad1.tmp
-rwxrwxrwx.  1 apache apache 264397 Mar 20 09:30 cacti.log
-rwxrwxrwx.  1 apache apache    676 Mar 10 03:25 cacti.log-20190310.gz
-rwxrwxrwx.  1 apache apache  49877 Mar 13 00:00 cacti.log-20190312
-rwxrwxrwx.  1 apache apache  51387 Mar 14 00:00 cacti.log-20190313
-rwxrwxrwx.  1 apache apache 444549 Mar 15 00:00 cacti.log-20190314
-rwxrwxrwx.  1 apache apache 667099 Mar 16 00:00 cacti.log-20190315
-rwxrwxrwx.  1 apache apache 666796 Mar 17 00:00 cacti.log-20190316
-rwxrwxrwx.  1 apache apache 566824 Mar 18 00:00 cacti.log-20190317
-rwxrwxrwx.  1 apache apache   3907 Mar 17 03:35 cacti.log-20190317.gz
-rwxrwxrwx.  1 apache apache 666796 Mar 19 00:00 cacti.log-20190318
-rwxrwxrwx.  1 apache apache 666935 Mar 20 00:00 cacti.log-20190319
-rwxrwxrwx.  1 apache apache      0 Mar 20 00:00 cacti_stderr.log
-rwxrwxrwx.  1 apache apache      0 Feb 25 08:38 cacti_stderr.log-20190314
-rwxrwxrwx.  1 apache apache      0 Mar 15 00:00 cacti_stderr.log-20190315
-rwxrwxrwx.  1 apache apache      0 Mar 16 00:00 cacti_stderr.log-20190316
-rwxrwxrwx.  1 apache apache      0 Mar 17 00:00 cacti_stderr.log-20190317
-rwxrwxrwx.  1 apache apache      0 Mar 18 00:00 cacti_stderr.log-20190318
-rwxrwxrwx.  1 apache apache      0 Mar 19 00:00 cacti_stderr.log-20190319
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: yum update to 1.2.2 - log dir permission issues

Post by netniV »

This is likely an SELinux issue which I thought had been resolved by the package maintainer.

Check the context that has been set on the log folder.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
ajwilliamson
Posts: 2
Joined: Wed Mar 20, 2019 8:25 am

Re: yum update to 1.2.2 - log dir permission issues

Post by ajwilliamson »

It was indeed SELINUX. I disabled it and was able to get past.

Thanks for the tip!
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: yum update to 1.2.2 - log dir permission issues

Post by netniV »

That should have been resolved if I'm honest, can you post on https://github.com/Cacti/cacti/issues/2416

I'm not sure if the 1.2.2 had the fix or not, but it should have.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest