NetXMS Support Forum

English Support => General Support => Topic started by: jdl on December 11, 2012, 12:09:30 PM

Title: Issue upgrading agent (1.1.10 -> 1.2.4)
Post by: jdl on December 11, 2012, 12:09:30 PM
Hi,

I tried to install nxgentd package 1.2.4 on a CentOS 6.0 and I got the following errors:

line 84: [: too many arguments
line 93: [: too many arguments

and failed. The system is currently running nxagentd 1.1.10 installed using the package as well. The agent is stopped while upgrade is attempted.

Any idea?

thanks
Jdamien
Title: Re: Issue upgrading agent (1.1.10 -> 1.2.4)
Post by: Alex Kirhenshtein on January 18, 2013, 10:37:58 AM
During which step did got this message?
Title: Re: Issue upgrading agent (1.1.10 -> 1.2.4)
Post by: jdl on February 19, 2013, 06:19:39 PM
When executing the package installation (....apkg)
Did only stop the old release of agent.

Br,

Jdamien
Title: Re: Issue upgrading agent (1.1.10 -> 1.2.4)
Post by: Alex Kirhenshtein on February 25, 2013, 01:57:42 PM
Check "/tmp/nxagentupdate.log" for more details
Title: Re: Issue upgrading agent (1.1.10 -> 1.2.4)
Post by: jdl on May 23, 2013, 12:07:31 PM
Hi Alex,

sorry for the late reply. I did upgrade to 1.2.7 from 1.1.10 and here is the error I get - related to nxencpasswd.

Any idea what I did wrong?
Many thanks in advance

Br,

Jdamien
Title: Re: Issue upgrading agent (1.1.10 -> 1.2.4)
Post by: jdl on May 23, 2013, 02:30:22 PM
I got one install running ok.
The only difference I see is that encyption is NOT enabled.

How do I do to disable encryption?
What are the possible arguments to the command line?

Thx
Jdamien
Title: Re: Issue upgrading agent (1.1.10 -> 1.2.4)
Post by: Victor Kirhenshtein on May 23, 2013, 02:49:59 PM
Hi!

It should not be related to encryption. I've found an error in Makefile for nxencpasswd - there are no reference to libtre library. Can you check on machine where upgrade was successful value of "Use internal libtre" in upgrade log?

Best regards,
Victor
Title: Re: Issue upgrading agent (1.1.10 -> 1.2.4)
Post by: jdl on May 23, 2013, 03:27:23 PM
I did parse the nxagentupdate.log and found:

Use internal libtre: YES
There are several messages of Making all in libtre and entering/leaving directory with libtre (gmake) but no error.

That's it
Jdamien
Title: Re: Issue upgrading agent (1.1.10 -> 1.2.4)
Post by: jdl on May 24, 2013, 06:19:08 PM
The way I solved this issue for me is as follows:

a. download server sources
b. run ./configure --with-agent
c. then clean up the mess if you had a previous release

Did not manage any NetXMS agent installation for v1.2.7 using provided packages on Linux.

Br,

Jdamien
Title: Re: Issue upgrading agent (1.1.10 -> 1.2.4)
Post by: jdl on May 27, 2013, 12:50:31 PM
While using the source, one could still face the issue already reported for release 1.2.3 at: https://www.netxms.org/forum/installation/error-compiling-v1-2-3/[\b]

So as advised by Victor, deleting old NetXMS agent lib files solve the issue - at least in our scope.

Br,

Jdamien