Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Tue Apr 23, 2019 5:46 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Linux 1.2.2 post install log error
PostPosted: Wed Apr 10, 2019 4:36 pm 
Offline
Cacti User

Joined: Fri Mar 09, 2007 12:35 pm
Posts: 77
I did an upgrade from 1.1.36 up to 1.2.2. I did have it working (and it seems to still be running from what I can tell of the log files) but when I try to go to the page, I get:

System log file is not available for writing, please enable write access Log: /var/www/html/cacti/log/cacti.log

I've seen this error listed in some bug reports. Some mention of selinux or permissions, if I turn of selinux temporarily it doesn't seen to work. Any suggestions? I don't to make things worse by over "loosening" up things. This is on CentOS 7.


Top
 Profile  
 
 Post subject: Re: Linux 1.2.2 post install log error
PostPosted: Thu Apr 11, 2019 3:40 pm 
Offline
Cacti User

Joined: Mon Oct 01, 2018 10:09 am
Posts: 112
you just need to insure that the file /var/www/html/cacti/log/cacti.log
is created and the file and the dir are owned by cacti - or possibly apache
you can try the cacti user first.

The same permissions are required for the rra/* directory as well..

ARe you running on Linux? if so what version? What version is apache and php

Good luck,
eholz1


Top
 Profile  
 
 Post subject: Re: Linux 1.2.2 post install log error
PostPosted: Fri Apr 12, 2019 1:31 pm 
Offline
Cacti User

Joined: Fri Mar 09, 2007 12:35 pm
Posts: 77
eholz1 wrote:
you just need to insure that the file /var/www/html/cacti/log/cacti.log
is created and the file and the dir are owned by cacti - or possibly apache
you can try the cacti user first.

The same permissions are required for the rra/* directory as well..

ARe you running on Linux? if so what version? What version is apache and php

Good luck,
eholz1


Thank you for the response.

* The cacti log file is owned by the cacti user. In fact, the cacti log file appears to be updating every 5 minutes even though I am getting the error message when I go to my cacti start page.

* I am running on linux - It's CentOS 7.6

* Apache appears to be 2.4.6

* php looks to be 5.4.16

I used the upgrade process at this link to do the upgrade: https://www.urban-software.com/cacti-howtos/cacti/upgrade-cacti/. I've used this in the past and have been very successful (if it works, why change?). I had this up and running, but I was initially getting this message, did some tinkering and got past it, but it's back (maybe after a reboot). From what I can tell, it looks like cacti is running, i just can't browse to it because of the message.


Top
 Profile  
 
 Post subject: Re: Linux 1.2.2 post install log error
PostPosted: Fri Apr 12, 2019 3:44 pm 
Offline
Cacti User

Joined: Fri Mar 09, 2007 12:35 pm
Posts: 77
I think I finally got it figured out. Definitely a permissions thing.


Top
 Profile  
 
 Post subject: Re: Linux 1.2.2 post install log error
PostPosted: Mon Apr 15, 2019 7:40 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2397
hipsterdoofus wrote:
I think I finally got it figured out. Definitely a permissions thing.

That would always be my first instinct in this regard. 99% of the time it's down to permissions, rather than a bug.

_________________
Official Cacti Developer

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

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Linux 1.2.2 post install log error
PostPosted: Mon Apr 15, 2019 1:28 pm 
Offline
Cacti User

Joined: Fri Mar 09, 2007 12:35 pm
Posts: 77
Quote:
netniV wrote:
hipsterdoofus wrote:
I think I finally got it figured out. Definitely a permissions thing.

That would always be my first instinct in this regard. 99% of the time it's down to permissions, rather than a bug.


Yeah I think it boiled down to different permissions from the directory itself than the contents. I didn't catch that and kept changing it all one way or another and it didn't work. Finally figured it out by looking at the previous install.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: Google [Bot] and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group