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 2013-09-11 12:46:14

franco.bersani
Member
Registered: 2013-09-11
Posts: 4

[SOLVED] "network port type" problem after upgrade 0.83.91 to 0.84.1

Hi to all,
I've a problem after upgrading my glpi installation from 0.83.91 to 0.84.1.
During upgrading procedure, this message appeared:

"Network Framework already migrated: nothing to be done ! @ 2013-09-11 11:44:32
You should have a look at the "migration cleaner" tool ! @ 2013-09-11 11:44:32
With it, you should re-create the networks topologies and the links between the networks and the addresses @ 2013-09-11 11:44:32"

I've followed the procedure, but I'm not able to see the Network Ports on Computers.
It displays the network port count, but doesn't display the informations stored on database (IP address, Mac-Addres, etc.), it simply says "no network port found".
Enabling debug mode I've found this error if in 'Inventory > Computer > Select Item to display' menu I try to enable the item "Network Port Type". (see image below)
glpi_upgrade_error_01.jpeg
What can I do to fix this problem?
Thank you!

Franco Bersani

Last edited by franco.bersani (2013-09-11 15:19:39)

Offline

#2 2013-09-11 14:25:52

webmyster
Member
From: Orsay, France
Registered: 2011-07-04
Posts: 16

Re: [SOLVED] "network port type" problem after upgrade 0.83.91 to 0.84.1

Hi,
I would like to understand how you reached this error.

Actually, we have discovered same bug than yours if in the order you:
1°) do a migration to 0.84* ;
2°) restore a 0.83 data set ;
3°) redo migration.

We will fix this bug in few days (in the SVN).

Is that what you have done ?

Regards,
    Damien Touraine
PS: ticket #4485

Last edited by webmyster (2013-09-11 14:28:52)


Prod: Ubuntu Precise (12.04) - PHP 5.3.10 - MySQL 5.5.31 - GLPI 0.84.3
Dev: Ubuntu Precise (12.04) - PHP 5.3.10 - MySQL 5.5.31 - GLPI 0.84 & 0.85

Offline

#3 2013-09-11 14:37:48

franco.bersani
Member
Registered: 2013-09-11
Posts: 4

Re: [SOLVED] "network port type" problem after upgrade 0.83.91 to 0.84.1

Actually, I've done a similar procedure, but, prior to try the upgrade  - as always - I had done a full backup of glpi directory and a full dump of mysql db (through phpmyadmin).
The restoring was made by deleting glpi directory and db, and restoring both from previous backup, so I expected to have done a "clean" restore.

Offline

#4 2013-09-11 14:49:11

webmyster
Member
From: Orsay, France
Registered: 2011-07-04
Posts: 16

Re: [SOLVED] "network port type" problem after upgrade 0.83.91 to 0.84.1

And before restoring (phpmyadmin ?), have you deleted the database or removed any table that it was containing ?

The key element is the glpi_networkportethernets table : if it alreay exists, then, the migration thinks the framework have already been migrated. That is to allow reentrant migration. We haven't think of people that replay migration after restoring a previous version's database.

Is it possible for you to restore 0.83 data set, remove this table (glpi_networkportethernets) and redo the migration ?

Regards,
    Damien


Prod: Ubuntu Precise (12.04) - PHP 5.3.10 - MySQL 5.5.31 - GLPI 0.84.3
Dev: Ubuntu Precise (12.04) - PHP 5.3.10 - MySQL 5.5.31 - GLPI 0.84 & 0.85

Offline

#5 2013-09-11 14:57:50

franco.bersani
Member
Registered: 2013-09-11
Posts: 4

Re: [SOLVED] "network port type" problem after upgrade 0.83.91 to 0.84.1

Not so, but is possible I've done a restore of db from the glpi 'Administration > Maintanance' menu instead of doing it from phpmyadmin (thinking the two methods are equivalent).
In this moment, I've restored Glpi to 0.83.91 version (in order to use it), and actually in my db there is the glpi_networkportethernets table.

If i delete that table and retry the upgrade, it is possible that the upgrade will finish cleanly?

Thank you for your great suuport

Franco

Offline

#6 2013-09-11 15:06:43

webmyster
Member
From: Orsay, France
Registered: 2011-07-04
Posts: 16

Re: [SOLVED] "network port type" problem after upgrade 0.83.91 to 0.84.1

Restore from Administration > Maintenance don't clean DB (don't trash tables that don't concerns GLPI).
What a good news if you can restore your 0.83 database !

If i delete that table and retry the upgrade, it is possible that the upgrade will finish cleanly?

Yes, you can drop 'glpi_networkportethernets' table (and only this one) : it is created during the migration process.
If you redo the migration, everything should become clean.

Let us know if you manage to get a clean migration !

kr


Prod: Ubuntu Precise (12.04) - PHP 5.3.10 - MySQL 5.5.31 - GLPI 0.84.3
Dev: Ubuntu Precise (12.04) - PHP 5.3.10 - MySQL 5.5.31 - GLPI 0.84 & 0.85

Offline

#7 2013-09-11 15:08:40

franco.bersani
Member
Registered: 2013-09-11
Posts: 4

Re: [SOLVED] "network port type" problem after upgrade 0.83.91 to 0.84.1

I've done it, and the upgrade finished well.

Thank you so much!  smile smile smile smile smile


Franco

Offline

Board footer

Powered by FluxBB