Issue Upgrading to version 1.2.x
Moderators: Developers, Moderators
Issue Upgrading to version 1.2.x
Upgraded cacti from 1.1.17 to 1.1.38 ok, everything works fine.
Tried to upgrade to any 1.2.x version and when opening the url I keep getting this error:
System log file is not available for writing, please enable write access Log: /var/www/html/cacti/log/cacti.log
All permissions are set exactly the same as with versions 1.1.17 and upgrade to 1.1.38
Are there specific versions of other components required i.e. apache, PHP, MYSQL etc for the newer versions to work?
Tried to upgrade to any 1.2.x version and when opening the url I keep getting this error:
System log file is not available for writing, please enable write access Log: /var/www/html/cacti/log/cacti.log
All permissions are set exactly the same as with versions 1.1.17 and upgrade to 1.1.38
Are there specific versions of other components required i.e. apache, PHP, MYSQL etc for the newer versions to work?
Re: Issue Upgrading to version 1.2.x
What are the permissions on the file? What user / group owns the file?
Re: Issue Upgrading to version 1.2.x
This feature was introduced to ensure that the user Cacti runs under has the proper permissions to delete, update, create the log file. If you are seeing that message, your user does not and therefore prevents you from running a system where errors and warnings could not be recorded. As cigamit suggested, make sure both the directory and file have the appropriate permissions.
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
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Re: Issue Upgrading to version 1.2.x
User and group are both called cacti.
In the new structure the log file itself is not there folder is empty.
Log folder:
drwxrwxr-x. 2 cacti cacti
rra folder:
drwxrwxr-x. 2 cacti cacti
As stated user is the same, permissions set the same as per version 1.1.x which works.
In the new structure the log file itself is not there folder is empty.
Log folder:
drwxrwxr-x. 2 cacti cacti
rra folder:
drwxrwxr-x. 2 cacti cacti
As stated user is the same, permissions set the same as per version 1.1.x which works.
Re: Issue Upgrading to version 1.2.x
What user does the webserver run as (not your cron user). You need to change the permissions so that the web server user and the cron user can modify the files / directory. While this has always been the case, we didn't start alerting on it until 1.2.X
Re: Issue Upgrading to version 1.2.x
Web server is running as apache, so are you saying all permissions need to be set as this and also the cron user needs to be this as well?
If so I have tried this and it still does not work.
I'm a basic linux user but I don't understand why the upgrade worked fine up to 1.1.38 and then fails going to 1.2.x using the same upgrade instructions.
If things are different with 1.2.x then perhaps someone needs to update their upgrade documentation and take you through what steps need to be taken.
If so I have tried this and it still does not work.
I'm a basic linux user but I don't understand why the upgrade worked fine up to 1.1.38 and then fails going to 1.2.x using the same upgrade instructions.
If things are different with 1.2.x then perhaps someone needs to update their upgrade documentation and take you through what steps need to be taken.
Re: Issue Upgrading to version 1.2.x
Its different in 1.2 because we added more error checks. The installer is telling you about the issue. Its telling you that you need to change the permissions. Just because something worked in 1.1.X doesn't mean it is going to be fine for 1.2.X. Software evolves and things get updated / added. 1.3.X will be the same way, new things will be added, changes will be required (especially if you have an older version of PHP as they won't be supported any longer).
Re: Issue Upgrading to version 1.2.x
OK, tried all sorts of permutations with accounts and cannot get it to work and I think it is something to do with the database.
Reason I came to this conclusion is this, I decided I was getting nowhere with this server so decided to build a new Centos 8 server and then followed a post on-line to install and setup Cacti. As part of this, it has installed version 1.2.14 and everything is working.
Now I want to migrate from an old Windows server but keep all the existing data so I exported the db from this server and exported the rrd files. Imported the rrd files no problem.
Imported the sql database and then tried to open cacti and I get the same sort of error but log file message relates to C:\apache24\... etc path.
Do you guys have a migration guide to move cacti from windows to Linux and to convert the db so it can be used in a Linux version?
Reason I came to this conclusion is this, I decided I was getting nowhere with this server so decided to build a new Centos 8 server and then followed a post on-line to install and setup Cacti. As part of this, it has installed version 1.2.14 and everything is working.
Now I want to migrate from an old Windows server but keep all the existing data so I exported the db from this server and exported the rrd files. Imported the rrd files no problem.
Imported the sql database and then tried to open cacti and I get the same sort of error but log file message relates to C:\apache24\... etc path.
Do you guys have a migration guide to move cacti from windows to Linux and to convert the db so it can be used in a Linux version?
Who is online
Users browsing this forum: No registered users and 2 guests