Page 1 of 1
Error while upgrading to XI latest version
Posted: Wed May 03, 2017 4:01 am
by cyient
Hi,
I have below error while upgrading Nagios XI version to latest and below is the error message.
Code: Select all
Installing/updating XI wizards...
Backing up existing wizards to /tmp/xiwizards_backup...
Installing 'wizards/autodiscovery.zip'
./install: line 18: /usr/local/nagiosxi/tools/install_configwizard.php: Permission denied
I have tried to visit the page
https://support.nagios.com/forum/viewto ... 16&t=35730 but got error as you are not authorized to read this forum.
Please suggest on this
Re: Error while upgrading to XI latest version
Posted: Wed May 03, 2017 9:40 am
by dwhitfield
What's the output of the two following commands? Example outout provided. Also, can you PM or post your /etc/sudoers? If you PM, please make sure you update the post so it shows back up on our dashboard.
Code: Select all
[root@centos7x64 ~]# ll -d /usr/local/nagiosxi/tools/
drwxr-xr-x 2 nagios nagios 4096 Apr 11 14:21 /usr/local/nagiosxi/tools/
[root@centos7x64 ~]# ll /usr/local/nagiosxi/tools/
total 68
-rwxr-x--- 1 nagios nagios 762 Apr 26 15:57 check_postgres_sequences.sh
-rwxr-x--- 1 nagios nagios 2584 Apr 26 15:57 create_checks.php
-rwxr-x--- 1 nagios nagios 864 Apr 26 15:57 fix_perfgraph_user.php
-rwxr-x--- 1 nagios nagios 2260 Apr 26 15:57 fix_postgres_sequences.sh
-rwxr-x--- 1 nagios nagios 1994 Apr 26 15:57 getrep.php
-rwxr-x--- 1 nagios nagios 2124 Apr 26 15:57 geturlas.php
-rwxr-x--- 1 nagios nagios 4144 Apr 26 15:57 install_component.php
-rwxr-x--- 1 nagios nagios 3647 Apr 26 15:57 install_configwizard.php
-rwxr-x--- 1 nagios nagios 3196 Apr 26 15:57 install_dashlet.php
-rwxr-x--- 1 nagios nagios 1096 Apr 26 15:57 mod_option.php
-rwxr-x--- 1 nagios nagios 1579 Apr 26 15:57 mod_usermeta.php
-rwxr-x--- 1 nagios nagios 1626 Apr 26 15:57 mod_user.php
-rwxr-x--- 1 nagios nagios 1274 Apr 26 15:57 mysql_tune.sh
-rwxr-x--- 1 nagios nagios 3106 Apr 26 15:57 rrd2csv.php
-rwxr-x--- 1 nagios nagios 672 Apr 26 15:57 xi_prep_dir.php
-rwxr-x--- 1 nagios nagios 3427 Apr 26 15:57 xiprepimport.php
Re: Error while upgrading to XI latest version
Posted: Mon May 08, 2017 11:51 pm
by cyient
dwhitfield wrote:What's the output of the two following commands? Example outout provided. Also, can you PM or post your /etc/sudoers? If you PM, please make sure you update the post so it shows back up on our dashboard.
Code: Select all
[root@centos7x64 ~]# ll -d /usr/local/nagiosxi/tools/
drwxr-xr-x 2 nagios nagios 4096 Apr 11 14:21 /usr/local/nagiosxi/tools/
[root@centos7x64 ~]# ll /usr/local/nagiosxi/tools/
total 68
-rwxr-x--- 1 nagios nagios 762 Apr 26 15:57 check_postgres_sequences.sh
-rwxr-x--- 1 nagios nagios 2584 Apr 26 15:57 create_checks.php
-rwxr-x--- 1 nagios nagios 864 Apr 26 15:57 fix_perfgraph_user.php
-rwxr-x--- 1 nagios nagios 2260 Apr 26 15:57 fix_postgres_sequences.sh
-rwxr-x--- 1 nagios nagios 1994 Apr 26 15:57 getrep.php
-rwxr-x--- 1 nagios nagios 2124 Apr 26 15:57 geturlas.php
-rwxr-x--- 1 nagios nagios 4144 Apr 26 15:57 install_component.php
-rwxr-x--- 1 nagios nagios 3647 Apr 26 15:57 install_configwizard.php
-rwxr-x--- 1 nagios nagios 3196 Apr 26 15:57 install_dashlet.php
-rwxr-x--- 1 nagios nagios 1096 Apr 26 15:57 mod_option.php
-rwxr-x--- 1 nagios nagios 1579 Apr 26 15:57 mod_usermeta.php
-rwxr-x--- 1 nagios nagios 1626 Apr 26 15:57 mod_user.php
-rwxr-x--- 1 nagios nagios 1274 Apr 26 15:57 mysql_tune.sh
-rwxr-x--- 1 nagios nagios 3106 Apr 26 15:57 rrd2csv.php
-rwxr-x--- 1 nagios nagios 672 Apr 26 15:57 xi_prep_dir.php
-rwxr-x--- 1 nagios nagios 3427 Apr 26 15:57 xiprepimport.php
Hi,
I have PM the requested details
Re: Error while upgrading to XI latest version
Posted: Tue May 09, 2017 9:16 am
by dwhitfield
install_configwizard.php has the wrong permissions.
It looks like the following do as well, although I don't know that it's causing you an issue now.
Code: Select all
install_dashlet.php
install_component.php
At the very least you need to run the following:
Code: Select all
chmod 755 /usr/local/nagiosxi/tools/install_configwizard.php
If you get a new error message, match the file it gives against the permissions I gave you in my last post.
Re: Error while upgrading to XI latest version
Posted: Wed May 10, 2017 7:50 am
by cyient
Hi,
I have overcome the permissions problem but came across another error. Below is the part of the error, find the attached log for complete details
Code: Select all
[quote]Failed tests: 1-2
Non-zero exit status: 255
Parse errors: Bad plan. You planned 93 tests but ran 2.
Files=16, Tests=33, 1 wallclock secs ( 0.06 usr 0.03 sys + 0.48 cusr 0.10 csys = 0.67 CPU)
Result: FAIL
[/quote]
Re: Error while upgrading to XI latest version
Posted: Wed May 10, 2017 9:52 am
by dwhitfield
I have this feeling this is just going to be the first of many, but you can run cpan Nagios::Monitoring::Plugin and get that installed. Just keep stepping through if you get errors. If it says .pm, then that means it's perl. If you aren't able to locate things in repos or in cpan, please let us know and we can help out.
Re: Error while upgrading to XI latest version
Posted: Thu May 11, 2017 4:12 am
by cyient
Thanks it worked.
Successfully upgraded to latest version.
Please go ahead and mark it as complete.