Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Mon May 27, 2019 12:18 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: possible to restart upgrade?
PostPosted: Wed Mar 13, 2019 12:16 pm 
Offline

Joined: Wed Mar 13, 2019 11:17 am
Posts: 4
Hi,

Currently running 0.8.8b and trying to upgrade to latest (1.2.2).

Encountered a problem when the installer started upgrading existing database. Got to Database Upgrade - Version 1.1.34 which failed with error:

Code:
ALTER IGNORE TABLE version DROP PRIMARY KEY    [Fail]


found same issue #2482 on GitHub with solution being to remove:

Code:
db_install_execute('ALTER IGNORE TABLE version DROP PRIMARY KEY');


Then add:

Code:
db_install_drop_key('version', 'key', 'PRIMARY');


to install/upgrades/1_1_34.php

I did this but when i go back to the cacti page it's stuck at the same spot. I imagine i have to restart the installation process? How do i do that?

edit:

Sorry i forgot to mention that this is a fresh install on ubuntu 18.04 (not using repo). before beginning to install i imported a database dump from the existing server and copied over the rras.


Top
 Profile  
 
 Post subject: Re: possible to restart upgrade?
PostPosted: Wed Mar 13, 2019 12:59 pm 
Offline

Joined: Wed Mar 13, 2019 11:17 am
Posts: 4
Solved my own problem.

Dropped cacti database that was partially upgraded and imported sqldump from current cacti server.

Reloading webpage started process from the beginning.


Top
 Profile  
 
 Post subject: Re: possible to restart upgrade?
PostPosted: Wed Mar 27, 2019 12:02 pm 
Offline

Joined: Tue Feb 19, 2013 7:04 pm
Posts: 10
Thanks @kmart, this solved the issue for me too. And +2 karma points for posting your own fix.


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

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 11 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:  
cron

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