Permission Denied

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

Moderators: Developers, Moderators

paulgevers
Cacti Pro User
Posts: 613
Joined: Tue Aug 29, 2006 4:09 pm
Location: NL

Re: Permission Denied

Post by paulgevers »

Should have been part of the upgrade past 1.0.0:

Code: Select all

install/upgrades/1_0_0.php:     db_install_execute("ALTER TABLE user_auth MODIFY COLUMN password varchar(2048) NOT NULL default ''");
Maintainer of cacti in Debian (and Ubuntu).
Cacti 1.* is now officially supported on Debian Stretch via Debian backports
FAQ Ubuntu and Debian differences
Generic cacti debugging
monitorbrd
Posts: 17
Joined: Sun Dec 17, 2017 1:05 pm

Re: Permission Denied

Post by monitorbrd »

paulgevers wrote:Should have been part of the upgrade past 1.0.0:

Code: Select all

install/upgrades/1_0_0.php:     db_install_execute("ALTER TABLE user_auth MODIFY COLUMN password varchar(2048) NOT NULL default ''");

---------
Sorry.
What needs to be done? :o
The points !
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Permission Denied

Post by netniV »

paulgevers wrote:Should have been part of the upgrade past 1.0.0:

Code: Select all

install/upgrades/1_0_0.php:     db_install_execute("ALTER TABLE user_auth MODIFY COLUMN password varchar(2048) NOT NULL default ''");
Yes, I agree with Paul. Try running this

Code: Select all

cd <cacti-path>/cli
php upgrade_database.php --forcever <previous-version>
eg.

Code: Select all

cd /usr/share/cacti/cli
php upgrade_database.php --forcever 0.8.8
This will update your database from version 0.8.8 to the current version.
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
monitorbrd
Posts: 17
Joined: Sun Dec 17, 2017 1:05 pm

Re: Permission Denied

Post by monitorbrd »

markv wrote:
paulgevers wrote:Should have been part of the upgrade past 1.0.0:

Code: Select all

install/upgrades/1_0_0.php:     db_install_execute("ALTER TABLE user_auth MODIFY COLUMN password varchar(2048) NOT NULL default ''");
Yes, I agree with Paul. Try running this

Code: Select all

cd <cacti-path>/cli
php upgrade_database.php --forcever <previous-version>
eg.

Code: Select all

cd /usr/share/cacti/cli
php upgrade_database.php --forcever 0.8.8
This will update your database from version 0.8.8 to the current version.



cd /usr/share/cacti/cli

php upgrade_database.php --forcever 0.8.8

Code: Select all

ERROR: Invalid Parameter 0.8.8

Cacti Database Upgrade Utility, Version 1.1.24, Copyright (C) 2004-2017 The Cacti Group

usage: upgrade_database.php [--debug] [--forcever=VERSION]

A command line version of the Cacti database upgrade tool.  You must execute
this command as a super user, or someone who can write a PHP session file.
Typically, this user account will be apache, www-run, or root.

If you are running a beta or alpha version of Cacti and need to rerun
the upgrade script, simply set the forcever to the previous release.

--forcever - Force the starting version, say 1.1.24
--debug    - Display verbose output during execution
--------------------NEW Command !!! ----------------------------
#php upgrade_database.php --forcever

Your Cacti is already up to date.
------------------------------------------------------------------

But (( :(
Attachments
cacti_error.png
cacti_error.png (41.12 KiB) Viewed 1103 times
Last edited by monitorbrd on Tue Dec 19, 2017 4:51 pm, edited 1 time in total.
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Permission Denied

Post by netniV »

My bad, I’m writing this on an iPad, there is an = missing.

Code: Select all

cd /usr/share/cacti/cli
php upgrade_database.php --forcever=0.8.8
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
monitorbrd
Posts: 17
Joined: Sun Dec 17, 2017 1:05 pm

Re: Permission Denied

Post by monitorbrd »

markv wrote:My bad, I’m writing this on an iPad, there is an = missing.

Code: Select all

cd /usr/share/cacti/cli
php upgrade_database.php --forcever=0.8.8

sorry , i don't understand you
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Permission Denied

Post by netniV »

Use my last code block. It looks the same but it is not.
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
monitorbrd
Posts: 17
Joined: Sun Dec 17, 2017 1:05 pm

Re: Permission Denied

Post by monitorbrd »

markv wrote:Use my last code block. It looks the same but it is not.
oooo :o
---
Sorryy

Code: Select all

cd /usr/local/share/cacti/cli
 # php upgrade_database.php --forcever=0.8.8
Upgrading to 1.0.0
Upgrading to 1.0.1 no actions
Upgrading to 1.0.2 no actions
Upgrading to 1.0.3 no actions
Upgrading to 1.0.4
Upgrading to 1.0.5
Upgrading to 1.0.6 no actions
Upgrading to 1.1.0 no actions
Upgrading to 1.1.1 no actions
Upgrading to 1.1.2
Upgrading to 1.1.3 no actions
Upgrading to 1.1.4
Upgrading to 1.1.5 no actions
Upgrading to 1.1.6
Upgrading to 1.1.7
Upgrading to 1.1.8
Upgrading to 1.1.9 no actions
Upgrading to 1.1.10 no actions
Upgrading to 1.1.11
Upgrading to 1.1.12 no actions
Upgrading to 1.1.13 no actions
Upgrading to 1.1.14
Upgrading to 1.1.15 no actions
Upgrading to 1.1.16 no actions
Upgrading to 1.1.17
Upgrading to 1.1.18 no actions
Upgrading to 1.1.19 no actions
Upgrading to 1.1.20
Upgrading to 1.1.21 no actions
Upgrading to 1.1.22 no actions
Upgrading to 1.1.23 no actions
Upgrading to 1.1.24 no actions
Attachments
cacti_error2.png
cacti_error2.png (43.1 KiB) Viewed 1102 times
monitorbrd
Posts: 17
Joined: Sun Dec 17, 2017 1:05 pm

Re: Permission Denied

Post by monitorbrd »

Thank you ! I entered Cacti :D
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Permission Denied

Post by netniV »

Glad to hear that worked for you :)
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
monitorbrd
Posts: 17
Joined: Sun Dec 17, 2017 1:05 pm

Re: Permission Denied

Post by monitorbrd »

A new problem in the charts.
Data in figures is written, but the graph does not draw!
-------

The data that is displayed is old data. New after the transfer does not draw
Attachments
graph.png
graph.png (21.37 KiB) Viewed 1090 times
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Permission Denied

Post by netniV »

Could you start the new problem with a new thread? People will overlook it otherwise.
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