Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Thu Jun 20, 2019 10:56 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 14 posts ] 
Author Message
 Post subject: Cacti install problem on Directory Permission Checks
PostPosted: Mon Apr 15, 2019 1:54 am 
Offline

Joined: Mon Apr 15, 2019 1:36 am
Posts: 7
Hello dears,

I'm trying to install cacti v1.2.2 on centos7 and get this problem on Directory Permission Checks page:


Required Writable after Install Complete
/usr/share/cacti/log/ Not Writable

Please help me to solve this problem.
Thank you


Attachments:
cacti_errror.JPG
cacti_errror.JPG [ 127.09 KiB | Viewed 460 times ]
Top
 Profile  
 
 Post subject: Re: Cacti install problem on Directory Permission Checks
PostPosted: Mon Apr 15, 2019 7:41 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2499
You will need to check the permissions and SELinux context. They should be correct if you are using the package version. If this is a manual installation, make sure the website user/group has write access to that folder and that the context is http_content_rw (I think that is the name).

_________________
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: Cacti install problem on Directory Permission Checks
PostPosted: Mon Apr 15, 2019 1:42 pm 
Offline
Cacti User

Joined: Mon Apr 09, 2018 1:37 pm
Posts: 86
https://forums.cacti.net/viewtopic.php?f=6&t=59316

Have a look at this, I wrote it a while back, it may be helpful.


Top
 Profile  
 
 Post subject: Re: Cacti install problem on Directory Permission Checks
PostPosted: Tue Apr 16, 2019 4:25 am 
Offline

Joined: Mon Apr 15, 2019 1:36 am
Posts: 7
netniV wrote:
You will need to check the permissions and SELinux context. They should be correct if you are using the package version. If this is a manual installation, make sure the website user/group has write access to that folder and that the context is http_content_rw (I think that is the name).

Dear,
Thanks for your response

I have checked SELinux and that is disabled. I think there is another reason for this problem.

can you explain a little more?


Top
 Profile  
 
 Post subject: Re: Cacti install problem on Directory Permission Checks
PostPosted: Tue Apr 16, 2019 1:59 pm 
Offline
Cacti User

Joined: Mon Apr 09, 2018 1:37 pm
Posts: 86
You have checked the permissions on the cacti tree starting at the webroot I assume right? The simplest answer here is that the user running the apache daemon legitimately doesn't have write permission to this directory.. Though SELinux is far more often the culprit as that's not as simple as a simple ls -al to spot.

From /usr/share do a ls -alR cacti and post the results?

As well as a ps -ef|grep httpd


Top
 Profile  
 
 Post subject: Re: Cacti install problem on Directory Permission Checks
PostPosted: Wed Apr 17, 2019 3:32 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2499
You may be experiencing the bug with the installer when the default paths are not present but the overridden ones are. That will hopefully be resolved in 1.2.4, though I haven't had time to actually implement a fix yet.

_________________
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: Cacti install problem on Directory Permission Checks
PostPosted: Wed Apr 17, 2019 2:01 pm 
Offline
Cacti User

Joined: Mon Apr 09, 2018 1:37 pm
Posts: 86
FYI I ran into this issue (Or similar) on my fresh 1.2.3 install, and after checking everything I could think of I logged in from a different browser and it proceeded fine.. So I do not know if my browser was caching something silly or what, but I closed chrome and loaded from firefox without issue.


Top
 Profile  
 
 Post subject: Re: Cacti install problem on Directory Permission Checks
PostPosted: Wed Apr 17, 2019 2:17 pm 
Offline
Cacti User

Joined: Mon Apr 09, 2018 1:37 pm
Posts: 86
Same issue on the new remote poller, this time I closed chrome, cleared cache and retried and it also fixed the issue. So something goofy is getting cached by the browser causing this.

Sounds like it's already on the radar, but try clearing your browser cache and resuming the setup to see if it works.


Top
 Profile  
 
 Post subject: Re: Cacti install problem on Directory Permission Checks
PostPosted: Sat Apr 20, 2019 7:50 am 
Offline

Joined: Mon Apr 15, 2019 1:36 am
Posts: 7
mmccaugh wrote:
FYI I ran into this issue (Or similar) on my fresh 1.2.3 install, and after checking everything I could think of I logged in from a different browser and it proceeded fine.. So I do not know if my browser was caching something silly or what, but I closed chrome and loaded from firefox without issue.


I've test on firefox but problem still in place.
any other solution Dear?


Top
 Profile  
 
 Post subject: Re: Cacti install problem on Directory Permission Checks
PostPosted: Mon Apr 22, 2019 8:32 am 
Offline
Cacti User

Joined: Mon Apr 09, 2018 1:37 pm
Posts: 86
Following Mark's suggestion I would ensure /var/www/html/cacti/logs/cacti.log exists and is writable, even though you will never actually use this path as that's not your webroot it is the 'default'.

So if the bug he described is your issue it seems like having the directory there for the permissions check would correct the problem, after the install you could delete it.


Top
 Profile  
 
 Post subject: Re: Cacti install problem on Directory Permission Checks
PostPosted: Tue Apr 23, 2019 5:49 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2499
Yes, that should work. 1.2.4 will have a fix for this in place.

_________________
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: Cacti install problem on Directory Permission Checks
PostPosted: Sun Apr 28, 2019 2:33 am 
Offline

Joined: Mon Apr 15, 2019 1:36 am
Posts: 7
ciscotester wrote:
Hello dears,

I'm trying to install cacti v1.2.2 on centos7 and get this problem on Directory Permission Checks page:


Required Writable after Install Complete
/usr/share/cacti/log/ Not Writable

Please help me to solve this problem.
Thank you


I found solution finally. :)
apache uesr need to access permission to root and add to this group:

#>usermod -g apache root
#>usermod -g root apache
#>systemctl restart httpd

and you need to be sure SELINUX is disabled.

and done.

tnx everbody to help.


Top
 Profile  
 
 Post subject: Re: Cacti install problem on Directory Permission Checks
PostPosted: Sun Apr 28, 2019 1:31 pm 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2499
You don't need SELinux disabled, you just need to change the context of the folder to http_rw_context

_________________
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: Cacti install problem on Directory Permission Checks
PostPosted: Mon Apr 29, 2019 2:16 pm 
Offline
Cacti User

Joined: Mon Apr 09, 2018 1:37 pm
Posts: 86
I pasted a link to a writeup I did on SELinux above, disabling it outright is not necessary but you do need to properly set the directory contexts..


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

All times are UTC - 5 hours


Who is online

Users browsing this forum: Bing [Bot], Google Adsense [Bot], khalilmeb and 1 guest


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