You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2018-12-10 21:18:29

Langundo
Guest
Registered: 2016-07-21
Posts: 65

[9.4] update database from 9.3.3

Hello,
I have installed the 9.4 (beta). When I try to upgrade my database from 9.3.3 I get this error:

Upgrade
Verbindung zur Datenbank erfolgreich

Datenbankversion scheint korrekt zu sein (10.1.37) - Perfekt!Datenbankversion scheint korrekt zu sein (10.1.37) - Perfekt!

Fatal error: Uncaught Error: Call to a member function set() on null in /var/www/html/master/inc/plugin.class.php:665 Stack trace: #0 /var/www/html/master/inc/update.class.php(171): Plugin->unactivateAll() #1 /var/www/html/master/install/update.php(464): Update->doUpdates('9.3.2') #2 /var/www/html/master/install/update.php(577): doUpdateDb() #3 {main} thrown in /var/www/html/master/inc/plugin.class.php on line 665

Can anyone give a tip what I have to do to convert my database?

Thanks a lot for your suggestions.


work: Debian 9.5 - PHP 7.0.30 - MariaDB 10.1.26 - GLPI 9.4.3
test: sometimes with bugfix / master

Offline

#2 2018-12-10 22:47:43

LaDenrée
HELPER
Registered: 2012-11-19
Posts: 4,602

Re: [9.4] update database from 9.3.3


Trouver la panne avant de réparer...
*GLPI 9.1.6+fusion9.1+1.1+behaviours1.5.0+reports+fields+appliances+pdf+badges+formcreator2.5.2 PHP7.0 Mariadb10
*GLPI 9.4.3(behaviours2.2.1+fusioninventoty 9.4+1.1+applicatifs2.5.0+fields 1.9.1)hebergé sur serveur mutualisé.

Offline

#3 2018-12-12 18:14:33

Langundo
Guest
Registered: 2016-07-21
Posts: 65

Re: [9.4] update database from 9.3.3

Hello LaDenrée,

thank you for your hint.
I do it like you describe in #5062. there is a little error when I try console db:update --allow-unstable:

Migration::renameTable() in /var/www/html/master/inc/migration.class.php line 576
Tabelle glpi_changes_projects (ok) kann nicht umbenannt werden (can not renamed) in glpi_itils_projects (nicht ok)!

So I decide to delete this table (glpi_itils_projects) before update then it works and I can try a little the 9.4.   ;-)


work: Debian 9.5 - PHP 7.0.30 - MariaDB 10.1.26 - GLPI 9.4.3
test: sometimes with bugfix / master

Offline

#4 2018-12-31 08:50:09

trasher
GLPI dev
From: Montpellier
Registered: 2017-10-20
Posts: 37
Website

Re: [9.4] update database from 9.3.3

Hi,

Dropping the table is indeed a way to go for your case. Keep in mind the best way to go is to restore original database when an update script fails, to prevent any "surprise" smile

Offline

#5 2019-01-09 21:20:41

Langundo
Guest
Registered: 2016-07-21
Posts: 65

Re: [9.4] update database from 9.3.3

Hi trasher,
yes, I know that was a "dirty solution". Next time I do it in your way.

Thanx. wink


work: Debian 9.5 - PHP 7.0.30 - MariaDB 10.1.26 - GLPI 9.4.3
test: sometimes with bugfix / master

Offline

Board footer

Powered by FluxBB