Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.12.3 available

The official documentation can be found on https://wiki.ocsinventory-ng.org. Read it before asking your question.

Use of 2.0 database on 2.3 server

Hi,

I use a 2.0 database to create a 2.3 OCS server on CentOS 7 (on a fresh install) 

, unfortunatly all my objects are specified as "empty network" as you can see:

What can i do ?

in OCS Inventory NG server for Unix by (320 points)
retagged by

9 Answers

0 votes
Hello,

How did you proceed to import / export the DB ?
by (4.9k points)
0 votes
With mysqldump

And i import it with "source /..." in mysql
by (320 points)
0 votes
I did like this and got no issue :

#export from old server

mysqldump -u root -p ocsweb > ocsweb.sql

Then, I put the ocsweb.sql in my new server and did :

mysql -u root -p ocsweb < ocsweb.sql

And everything was ok... Try like that but before, clean your ocs DB on the new server
by (4.9k points)
0 votes
No it didn't work,

 and this time i can't see any computer but still 6431 objects as "empty network"
by (320 points)
0 votes
I found this : http://ask.ocsinventory-ng.org/3706/migrate-from-2-0-to-2-2

What if :

- Clean your new OCS DB

- import / export those files : dbconfig.inc.php / ocsinventory-reports.conf / ocsinventory-server.conf

- import / export your DB from 2.0 to 2.3

- restart apache service (just in case you know..)

?
by (4.9k points)
0 votes
already done, when i install 2.3 after importing database i got an empty ocsweb database
by (320 points)
0 votes

hmm, looks crazy, when my database is empty still showing 6431 "empty network".

I also send my pc's informations via OCS client to the empty database, i can see my pc here:

but not there:

by (320 points)
0 votes

Oh I think I know why !

In fact, it is in non inventoried because you imported the DB, you may have all your computers but your new server still hasn't inventoried it. 

You should wait for the agent to do their job, change the PROLOG_FREQ to a few hours and wait... if it is not that I don't have any idea frown

by (4.9k points)
0 votes
OK i'll try this, thank you for your help.
by (320 points)
 
Powered by Question2Answer
...