[SOLVED]First Step of cacti-1.2.2 install fails

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
eholz1
Cacti User
Posts: 254
Joined: Mon Oct 01, 2018 10:09 am

[SOLVED]First Step of cacti-1.2.2 install fails

Post by eholz1 »

Hello All,

I had this error when I tried to install cacti-1.2.1 as well - could never get 1.2.1 to install,
and now I have the same issue with cacti-1.2.2. Tried Firefox, tried IE - get same error.

Yes, javascript is enabled on both of the browsers. I am using RedHat 6.10, php 5.6, maraia 10.2 db.
I get this dialog when I try to start the install by clicking the "Begin" button at bottom left of web browser window:
cacti-1.2.2_web_page_error.JPG
cacti-1.2.2_web_page_error.JPG (20.92 KiB) Viewed 3408 times
As always, open to suggestions

eholz1
Last edited by eholz1 on Wed May 08, 2019 6:33 pm, edited 1 time in total.
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: First Step of cacti-1.2.2 install fails

Post by netniV »

You are likely experiencing some runtime errors. Either check the webserver error logs or use the web browser development tools and check the response data coming back from the JSON calls (anything not JSON is wrong!)
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
eholz1
Cacti User
Posts: 254
Joined: Mon Oct 01, 2018 10:09 am

Re: First Step of cacti-1.2.2 install fails

Post by eholz1 »

These are the errors in the apache error log, not sure how to debug the web page for
json calls.

[Mon Mar 25 09:39:29.746213 2019] [:error] [pid 6421] [client 10.48.21.201:53155] PHP Notice: Undefined index: name in /opt/rh/httpd24/root/var/www/cacti-1.2.2/lib/installer.php on line 959, referer: http://10.48.11.66/cacti/install/install.php
[Mon Mar 25 09:39:30.672949 2019] [:error] [pid 6421] [client 10.48.21.201:53155] PHP Warning: Invalid argument supplied for foreach() in /opt/rh/httpd24/root/var/www/cacti-1.2.2/lib/utility.php on line 1385, referer: http://10.48.11.66/cacti/install/install.php
[Mon Mar 25 09:39:30.673368 2019] [:error] [pid 6421] [client 10.48.21.201:53155] PHP Warning: Invalid argument supplied for foreach() in /opt/rh/httpd24/root/var/www/cacti-1.2.2/lib/installer.php on line 1643, referer: http://10.48.11.66/cacti/install/install.php

I have looked in the php files here but cannot really see what is missing.

Any ideas?

Thanks,
eholz1
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: First Step of cacti-1.2.2 install fails

Post by netniV »

Yeah, that's fixed in 1.2.3. It's annoying but it's should be trying to tell you about a module problem.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
eholz1
Cacti User
Posts: 254
Joined: Mon Oct 01, 2018 10:09 am

Re: First Step of cacti-1.2.2 install fails

Post by eholz1 »

Thanks again, at least you, as cacti expert, know what the message means!!
Three cheers.

I will look for cacti-1.2.3,

Thanks again,

eholz1
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: First Step of cacti-1.2.2 install fails

Post by netniV »

It's a message I can instantly recognise for some reason... fixed with commit https://github.com/Cacti/cacti/commit/3 ... b7687e2de1
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
eholz1
Cacti User
Posts: 254
Joined: Mon Oct 01, 2018 10:09 am

Re: First Step of cacti-1.2.2 install fails

Post by eholz1 »

Hello Mr. Expert,
I will check this asap, thanks,

eholz1
FrSemco
Posts: 5
Joined: Mon Oct 09, 2017 6:40 am

Re: First Step of cacti-1.2.2 install fails

Post by FrSemco »

Hi all, is it resolved for you ?
I searched and found something that resolved my 1.2.3 installation (Javascript... ERROR 200 OK ...)

On Linux Server [For me it's a Synology]


find . -name httpd
...results...
cd [...]/log/httpd
ls -lisa
find last log file
tail -f apache22-error_log

start install of cacti web (update for me 1.1.38 -> 1.2.3)
...[error]... FastCGI: server ... stderr: PHP message: PHP Warning: file_exists(): ... File(/.../sendmail) is not within the allowed path(s): ...

Seems :
Even if you don't use 'sendmail', the parameter send an error in a working version of cacti.
Go to parameters / mail / sendmail if you save, you get an error.

I have resolved this error and my install works just after.
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: First Step of cacti-1.2.2 install fails

Post by netniV »

Sound like we need to use the error suppression feature to make it @file_exists instead
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
eholz1
Cacti User
Posts: 254
Joined: Mon Oct 01, 2018 10:09 am

Re: First Step of cacti-1.2.2 install fails

Post by eholz1 »

Interesting post - possible fix?
Sorry to be dense, How exactly was this issue resolved?

Thanks,

Eholz1
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: First Step of cacti-1.2.2 install fails

Post by netniV »

If someone can open an issue on github for the restricted paths (eg, not in allowed paths) error, that would also be good.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
FrSemco
Posts: 5
Joined: Mon Oct 09, 2017 6:40 am

Re: First Step of cacti-1.2.2 install fails

Post by FrSemco »

Hi , sorry for this late reply (and for my english ;) )
When I started the 1.2.3 installation, I had the javascript error, but in the logs, the error is not linked to the javascript but to 'sendmail'.

I go back to my 1.1.38 folder (working well)
I open the parameters of cacti - Mail/Reporting/DNS : I was set to 'PHP mail' but when I save, I had an error about 'sendmail' which is not found in the path.
I go to 'Sendmail' in the list and saw that the folder in my system wasn't existing:
"This is the path to sendmail on your server. (Only used if Sendmail is selected as the Mail Service)"
Even if I remove the information to blank field, I got the error.

The only way I found is to create a folder and install 'sendmail' : save was good, and the 1.2.3 installation worked after this.

Fr.
eholz1
Cacti User
Posts: 254
Joined: Mon Oct 01, 2018 10:09 am

Re: First Step of cacti-1.2.2 install fails

Post by eholz1 »

Hello Fr.
your post is very interesting. I will
install sendmail on my machine, and check results.
Thanks,
eholz1
eholz1
Cacti User
Posts: 254
Joined: Mon Oct 01, 2018 10:09 am

Re: First Step of cacti-1.2.2 install fails

Post by eholz1 »

Hello FR,

Thanks for your find on the Cacti 1.2.3 install. I installed sendmail, and it works!

Thanks for this post and reply!
:D :D :D
FrSemco
Posts: 5
Joined: Mon Oct 09, 2017 6:40 am

Re: [SOLVED]First Step of cacti-1.2.2 install fails

Post by FrSemco »

GOOD !! :lol:
Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests