Can't upgrade from version 1.1.6

Started by tivanni, February 06, 2013, 02:03:19 PM

Previous topic - Next topic

tivanni

Hi,

i'm trying to upgrade netxms from version 1.1.6 to 1.2.3, i've executed the procedure indicated in the wiki and all go fine, but when i try to connect with the new version of console i got the message "server use incompatible protocol" and then i discover nextms isn't upgraded to the version 1.2.3, but still run the version 1.1.6.
I've tried to upgrade from 1.1.6 to 1.2.0 but the same thing happened.
The only strange thing is that when i do the "nxdbmgr upgrade" i got:
NetXMS Database Manager Version 1.1.6

Upgrading database...
Your database format is up to date

It seems like no operation are executed.

Any suggest?

Thank you so much,

Victor Kirhenshtein

Hi!

That's strange. Seems that you are still running version 1.1.6. On what platform your NetXMS server is running? How do you do an upgrade?

Best regards,
Victor

tivanni

It's a Debian 64 bit.

I upgrade exactly as suggested in the wiki:

2. Unpack the archive:

$ tar zxvf netxms-VERSION.tar.gz


3. Change directory to netxms-version and run configure script:

$ cd netxms-VERSION
$ sh ./configure --with-server --with-mysql


Be sure to include all options that were used at installation time.


4. Run make:

$ make


5. Stop NetXMS server. 6. Stop NetXMS agent. 7. Check database for possible inconsistencies:

$ nxdbmgr check


Proceed to the next step only if database checker does not report any errors!


8. Run make install:

$ make install


9. Upgrade database:

$ nxdbmgr upgrade


10. Start NetXMS agent.

11. Start NetXMS server.


At point 3, I add the --with-agent option becouse there is the agent installed

Thank you,

Giovanni

Alex Kirhenshtein

Maybe sever was initially installed with different prefix.
Check which nxdbmgr you are using: run which nxdbmgr
Also search for duplicates:find / -name nxdbmgr 2>/dev/null

tivanni

#4
HI, Thank you for the answer!
Alex probably you guess the problem!

Pre upgrade, with 1.1.6 version, i got:

which nxdbmgr
     /usr/bin/nxdbmgr

find / -name nxdbmgr
     /usr/bin/nxdbmgr
     /opt/netxms-1.1.6/src/server/tools/nxdbmgr
     /opt/netxms-1.1.6/src/server/tools/nxdbmgr/.libs/nxdbmgr
     /opt/netxms-1.1.6/src/server/tools/nxdbmgr/nxdbmgr

And
which netxmsd
    /usr/bin/netxmsd

find / -name netxmsd
    /usr/bin/netxmsd
    /etc/init.d/netxmsd
    /var/lib/update-rc.d/netxmsd
    /opt/netxms-1.1.6/src/server/netxmsd
    /opt/netxms-1.1.6/src/server/netxmsd/.libs/netxmsd
    /opt/netxms-1.1.6/src/server/netxmsd/netxmsd
    /opt/netxms-1.1.6/contrib/startup/ubuntu/netxmsd
    /opt/netxms-1.1.6/contrib/startup/suse/netxmsd
    /opt/netxms-1.1.6/contrib/startup/debian/netxmsd
    /opt/netxms-1.1.6/contrib/startup/redhat/netxmsd
    /opt/netxms-1.1.6/contrib/startup/gentoo/netxmsd


After upgrade, i got:
which nxdbmgr
       /usr/local/bin/nxdbmgr

find / -name nxdbmgr
      /usr/bin/nxdbmgr
      /usr/local/bin/nxdbmgr


      /root/netxms-1.1.7/src/server/tools/nxdbmgr
      /root/netxms-1.1.7/src/server/tools/nxdbmgr/.libs/nxdbmgr
      /root/netxms-1.1.7/src/server/tools/nxdbmgr/nxdbmgr
      /opt/netxms-1.1.6/src/server/tools/nxdbmgr
      /opt/netxms-1.1.6/src/server/tools/nxdbmgr/.libs/nxdbmgr
      /opt/netxms-1.1.6/src/server/tools/nxdbmgr/nxdbmgr

And:
which netxmsd
     /usr/local/bin/netxmsd
find / -name netxmsd
/usr/bin/netxmsd
    /usr/local/bin/netxmsd
/etc/init.d/netxmsd
/root/netxms-1.2.0/src/server/netxmsd
/root/netxms-1.2.0/src/server/netxmsd/.libs/netxmsd
/root/netxms-1.2.0/src/server/netxmsd/netxmsd
/root/netxms-1.2.0/contrib/startup/ubuntu/netxmsd
/root/netxms-1.2.0/contrib/startup/suse/netxmsd
/root/netxms-1.2.0/contrib/startup/hp-ux/netxmsd
/root/netxms-1.2.0/contrib/startup/debian/netxmsd
/root/netxms-1.2.0/contrib/startup/redhat/netxmsd
/root/netxms-1.2.0/contrib/startup/gentoo/netxmsd
/root/netxms-1.2.3.1/src/server/netxmsd
/root/netxms-1.2.3.1/src/server/netxmsd/.libs/netxmsd
/root/netxms-1.2.3.1/src/server/netxmsd/netxmsd
/root/netxms-1.2.3.1/contrib/startup/ubuntu/netxmsd
/root/netxms-1.2.3.1/contrib/startup/suse/netxmsd
/root/netxms-1.2.3.1/contrib/startup/hp-ux/netxmsd
/root/netxms-1.2.3.1/contrib/startup/debian/netxmsd
/root/netxms-1.2.3.1/contrib/startup/redhat/netxmsd
/root/netxms-1.2.3.1/contrib/startup/gentoo/netxmsd
/var/lib/update-rc.d/netxmsd
/opt/netxms-1.1.6/src/server/netxmsd
/opt/netxms-1.1.6/src/server/netxmsd/.libs/netxmsd
/opt/netxms-1.1.6/src/server/netxmsd/netxmsd
/opt/netxms-1.1.6/contrib/startup/ubuntu/netxmsd
/opt/netxms-1.1.6/contrib/startup/suse/netxmsd
/opt/netxms-1.1.6/contrib/startup/debian/netxmsd
/opt/netxms-1.1.6/contrib/startup/redhat/netxmsd
/opt/netxms-1.1.6/contrib/startup/gentoo/netxmsd

If I execute the /usr/bin/nxdbmgr the version is the 1.1.6
If i execute the /usr/local/bin/nxdbmgr the version is the version upgraded, in this test i use the 1.1.7
Both  /usr/bin/netxmsd and /usr/local/bin/netxmsd start the 1.1.6 server version.

I have tried to upgrade using the --prefix=/usr/bin/ option, but nothing change.

Giovanni 


tivanni

After the upgrade with the --prefix=/usr/bin , i can start the upgraded version (the 1.1.7).
I found the netxmsd instance in /usr/bin/bin/local. If i run this instance, version  1.1.7 start without error and i can connect with console.

two question:
    1)if i want after upgrade to have netxmsd in the same path of the previus version (/usr/bin/netxmsd), i have to give the --prefix option as "--prefix=/usr/"?
       In thi case i use --prefix=/usr/bin, and i got netxmsd in /usr/bin/bin; so it seems like the /bin directory it's added to the path given in the --prefix option

    2)If execute /usr/bin/netxmsd (the old path), 1.1.6 version start without error. It's normal?I think 1.1.7 database version it's incompatible with 1.1.6    database       version, it's right?

Thank you :)


Victor Kirhenshtein

Hi!

Yes, you specify top-level directory in --prefix, like usr. Make process will add bin, lib, etc. as needed.

Database schema version may or may not change between releases - it depends on actual requirement for changing it. Looking at change log, it seems that 1.1.7 was a minor release, mostly with bug fixes, so database schema was not changed.

Best regards,
Victor

tivanni

Thank you Victor,

upgrade to last version executed with success!

Netxms and netxms support are great, thank you again.

Bye

Giovanni