Page 2 of 3

Re: XI 5.5 bug?

Posted: Fri Jun 29, 2018 10:27 am
by scottwilkerson
@aenergy can you answer this?
scottwilkerson wrote:Can you tell me if your install directory has this file in it?

Code: Select all

mysql.5500.updated
Just trying to determine where it is failing

Re: XI 5.5 bug?

Posted: Fri Jun 29, 2018 11:15 am
by aenergy
scottwilkerson wrote:@aenergy can you answer this?
scottwilkerson wrote:Can you tell me if your install directory has this file in it?

Code: Select all

mysql.5500.updated
Just trying to determine where it is failing
I do have that file in the directory I ran the upgrade from, but the file is empty.

Re: XI 5.5 bug?

Posted: Fri Jun 29, 2018 11:45 am
by scottwilkerson
I think we have narrowed this down

Can you run the following

Code: Select all

service ajaxterm stop 
rpm -e Ajaxterm
echo $?
then once complete run the upgrade again

Code: Select all

./upgrade

Re: XI 5.5 bug?

Posted: Fri Jun 29, 2018 11:54 am
by aenergy
scottwilkerson wrote:I think we have narrowed this down

Can you run the following

Code: Select all

service ajaxterm stop 
rpm -e Ajaxterm
echo $?
then once complete run the upgrade again

Code: Select all

./upgrade

Ajaxterm not installed on my server.

Re: XI 5.5 bug?

Posted: Fri Jun 29, 2018 12:01 pm
by scottwilkerson
That's weird.
Can you run the following and report the results to help us solve this for others

Code: Select all

rpm -q Ajaxterm
echo $?
Then you open the upgrade script and comment this section out (about line 1175)

Code: Select all

# Uninstall ajaxterminal to install shellinabox
rpmcheck=$(rpm -q Ajaxterm)
if [ $? -eq 0 ]; then
    rpm -e Ajaxterm
    cp -f "$httpdconfdir/ssl.conf" "$httpdconfdir/ssl.conf.nagiosxibackup"
    sed -i '/## AJAXTERM #####################/,+12d' "$httpdconfdir/ssl.conf"
    rm -f $proddir/html/admin/ajaxterm.php
fi
making it look like this

Code: Select all

# Uninstall ajaxterminal to install shellinabox
#rpmcheck=$(rpm -q Ajaxterm)
#if [ $? -eq 0 ]; then
#    rpm -e Ajaxterm
#    cp -f "$httpdconfdir/ssl.conf" "$httpdconfdir/ssl.conf.nagiosxibackup"
#    sed -i '/## AJAXTERM #####################/,+12d' "$httpdconfdir/ssl.conf"
#    rm -f $proddir/html/admin/ajaxterm.php
#fi
Then save and proceed with the upgrade

Re: XI 5.5 bug?

Posted: Fri Jun 29, 2018 12:31 pm
by aenergy
scottwilkerson wrote:That's weird.
Can you run the following and report the results to help us solve this for others

Code: Select all

rpm -q Ajaxterm
echo $?
Then you open the upgrade script and comment this section out (about line 1175)

Code: Select all

# Uninstall ajaxterminal to install shellinabox
rpmcheck=$(rpm -q Ajaxterm)
if [ $? -eq 0 ]; then
    rpm -e Ajaxterm
    cp -f "$httpdconfdir/ssl.conf" "$httpdconfdir/ssl.conf.nagiosxibackup"
    sed -i '/## AJAXTERM #####################/,+12d' "$httpdconfdir/ssl.conf"
    rm -f $proddir/html/admin/ajaxterm.php
fi
making it look like this

Code: Select all

# Uninstall ajaxterminal to install shellinabox
#rpmcheck=$(rpm -q Ajaxterm)
#if [ $? -eq 0 ]; then
#    rpm -e Ajaxterm
#    cp -f "$httpdconfdir/ssl.conf" "$httpdconfdir/ssl.conf.nagiosxibackup"
#    sed -i '/## AJAXTERM #####################/,+12d' "$httpdconfdir/ssl.conf"
#    rm -f $proddir/html/admin/ajaxterm.php
#fi
Then save and proceed with the upgrade

[root@nagiosxit ~]# rpm -q Ajaxterm
package Ajaxterm is not installed
[root@nagiosxit ~]#

Re: XI 5.5 bug?

Posted: Fri Jun 29, 2018 12:36 pm
by scottwilkerson
sorry, could you run these back to back

Code: Select all

rpm -q Ajaxterm
echo $?
Also, do let us know if the upgrade completed sucessfully

Re: XI 5.5 bug?

Posted: Fri Jun 29, 2018 12:42 pm
by aenergy
So it appears that the upgrade has to connect to assets.nagios.com....
Installing wkhtmltopdf and wkhtmltoimage...
--2018-06-29 12:41:39-- https://assets.nagios.com/downloads/nag ... x86_64.rpm
Resolving assets.nagios.com... 72.14.181.71, 2600:3c00::f03c:91ff:fedf:b821
Connecting to assets.nagios.com|72.14.181.71|:443...

Re: XI 5.5 bug?

Posted: Fri Jun 29, 2018 12:43 pm
by aenergy
scottwilkerson wrote:sorry, could you run these back to back

Code: Select all

rpm -q Ajaxterm
echo $?
Also, do let us know if the upgrade completed sucessfully

[root@nagiosxit nagiosxi]# rpm -q Ajaxterm
package Ajaxterm is not installed
[root@nagiosxit nagiosxi]# echo $?
1
[root@nagiosxit nagiosxi]#

Re: XI 5.5 bug?

Posted: Fri Jun 29, 2018 1:02 pm
by scottwilkerson
Thanks.