Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Tue Jun 25, 2019 9:36 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Error 500 when I try to add a first or any map
PostPosted: Fri Jun 15, 2018 4:00 pm 
Offline

Joined: Fri Jun 15, 2018 3:07 pm
Posts: 3
Hi everyone,

I need your help with this problem:

I installed for first time weathermap, but when I tried to add "simple.conf", cacti display the message:

This page does not work
Page 192.168.10.195 can not process this request now
HTTP ERROR 500

But, when I clicked the "View" button, works fine.

Thanks for your answers

Cacti Version: 0.8.8f
Weathermap 0.98
PHP: 5.6
Path of configs: /usr/share/cacti/site/plugins/weathermap/configs
Path of weathermap: /usr/share/cacti/site/plugins/weathermap
Linux's User:
[email protected]:/usr/share/cacti/site/plugins/weathermap#
[email protected]:/usr/share/cacti/site/plugins/weathermap# cat /etc/passwd
root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
bin:x:2:2:bin:/bin:/usr/sbin/nologin
sys:x:3:3:sys:/dev:/usr/sbin/nologin
sync:x:4:65534:sync:/bin:/bin/sync
games:x:5:60:games:/usr/games:/usr/sbin/nologin
man:x:6:12:man:/var/cache/man:/usr/sbin/nologin
lp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin
mail:x:8:8:mail:/var/mail:/usr/sbin/nologin
news:x:9:9:news:/var/spool/news:/usr/sbin/nologin
uucp:x:10:10:uucp:/var/spool/uucp:/usr/sbin/nologin
proxy:x:13:13:proxy:/bin:/usr/sbin/nologin
www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin
backup:x:34:34:backup:/var/backups:/usr/sbin/nologin
list:x:38:38:Mailing List Manager:/var/list:/usr/sbin/nologin
irc:x:39:39:ircd:/var/run/ircd:/usr/sbin/nologin
gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/usr/sbin/nologin
nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin
systemd-timesync:x:100:102:systemd Time Synchronization,,,:/run/systemd:/bin/false
systemd-network:x:101:103:systemd Network Management,,,:/run/systemd/netif:/bin/false
systemd-resolve:x:102:104:systemd Resolver,,,:/run/systemd/resolve:/bin/false
systemd-bus-proxy:x:103:105:systemd Bus Proxy,,,:/run/systemd:/bin/false
syslog:x:104:108::/home/syslog:/bin/false
_apt:x:105:65534::/nonexistent:/bin/false
lxd:x:106:65534::/var/lib/lxd/:/bin/false
messagebus:x:107:111::/var/run/dbus:/bin/false
uuidd:x:108:112::/run/uuidd:/bin/false
dnsmasq:x:109:65534:dnsmasq,,,:/var/lib/misc:/bin/false
sshd:x:110:65534::/var/run/sshd:/usr/sbin/nologin
lmorales:x:1000:1000:Luis Morales,,,:/home/lmorales:/bin/bash
mysql:x:111:117:MySQL Server,,,:/nonexistent:/bin/false
snmp:x:112:119::/var/lib/snmp:/usr/sbin/nologin



Permissions:
drwxrwxr-- 11 www-data root 4096 Jun 15 15:01 .
drwxr-xr-x 3 www-data root 4096 Jun 15 12:00 ..
-rwxrwxr-x 1 www-data root 13842 May 26 2016 cacti-pick.php
drwxrwxr-x 3 www-data root 4096 May 29 2016 cacti-resources
-rwxrwxr-x 1 www-data root 38416 May 29 2016 CHANGES
-rwxrwxr-x 1 www-data root 1631 May 24 2016 check-gdbug.php
-rwxrwxr-x 1 www-data root 13111 May 29 2016 check.php
drwxrwxr-x 2 www-data www-data 4096 May 29 2016 configs
-rwxrwxr-x 1 www-data root 18011 May 24 2016 COPYING
drwxrwxr-x 7 www-data root 4096 May 29 2016 docs
-rwxrwxr-x 1 www-data root 49796 Jun 15 15:01 editor.php
drwxrwxr-x 2 www-data root 4096 May 29 2016 editor-resources
drwxrwxr-x 2 www-data root 4096 May 29 2016 images
-rwxrwxr-x 1 www-data root 59 May 24 2016 index.php
drwxrwxr-x 5 www-data root 4096 May 29 2016 lib
-rwxrwxr-x 1 www-data root 62 May 24 2016 logout.php
-rwxrwxr-x 1 www-data root 38 May 24 2016 net-data.txt
drwxrwxr-x 2 www-data root 4096 May 29 2016 output
-rwxrwxr-x 1 www-data root 50734 May 24 2016 overlib.js
drwxrwxr-x 2 www-data root 4096 May 29 2016 random-bits
-rwxrwxr-x 1 www-data root 1379 May 24 2016 README.md
-rwxrwxr-x 1 www-data root 35785 May 29 2016 setup.php
drwxrwxr-x 2 www-data root 4096 May 29 2016 vendor
-rwxrwxr-x 1 www-data root 9122 May 29 2016 weathermap
-rwxrwxr-x 1 www-data root 149 May 24 2016 weathermap-cacti-plugin.css
-rwxrwxr-x 1 www-data root 648 May 29 2016 weathermap-cacti-plugin-editor.php
-rwxrwxr-x 1 www-data root 44377 May 29 2016 weathermap-cacti-plugin-mgmt.php
-rwxrwxr-x 1 www-data root 27882 May 29 2016 weathermap-cacti-plugin.php
-rwxrwxr-x 1 www-data root 1049 May 24 2016 weathermap-cacti-rebuild.php
-rwxrwxr-x 1 www-data root 370 May 24 2016 weathermap.conf


Attachments:
error 500.jpg
error 500.jpg [ 14.78 KiB | Viewed 841 times ]
Top
 Profile  
 
 Post subject: Re: Error 500 when I try to add a first or any map
PostPosted: Fri Jun 15, 2018 5:00 pm 
Offline
Cacti Guru User
User avatar

Joined: Thu Sep 16, 2004 5:53 am
Posts: 5321
Location: United Kingdom
What does it say in your httpd error.log?

_________________
Weathermap 0.98 is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)


Top
 Profile  
 
 Post subject: Re: Error 500 when I try to add a first or any map
PostPosted: Wed Jun 20, 2018 2:40 pm 
Offline

Joined: Fri Jun 15, 2018 3:07 pm
Posts: 3
Howie wrote:
What does it say in your httpd error.log?



Hi Howie, thanks for your response, the error.log was captured in the attachment.

Have a good day.

Attachment:
error_log.jpg
error_log.jpg [ 126.63 KiB | Viewed 800 times ]


Top
 Profile  
 
 Post subject: Re: Error 500 when I try to add a first or any map
PostPosted: Wed Jun 20, 2018 6:58 pm 
Offline
Cacti Guru User
User avatar

Joined: Thu Sep 16, 2004 5:53 am
Posts: 5321
Location: United Kingdom
It looks like the php MySQL module is missing.

If you have php 7 (you said 5.6, but just checking), then there is no MySQL module anymore and you’ll need a different weathermap version.

_________________
Weathermap 0.98 is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)


Top
 Profile  
 
 Post subject: Re: Error 500 when I try to add a first or any map
PostPosted: Thu Jun 21, 2018 4:52 pm 
Offline

Joined: Fri Jun 15, 2018 3:07 pm
Posts: 3
Dear Howie,

You absolutely right (u r genius), but, despite applying "apt-get install php5.6", when run the command "php -v", the system show me php7.0, and I can't install version 5.6, and I can't find a version of weathermaps for php7

Thank you for your help


Top
 Profile  
 
 Post subject: Re: Error 500 when I try to add a first or any map
PostPosted: Fri Jun 22, 2018 5:43 pm 
Offline
Cacti Guru User
User avatar

Joined: Thu Sep 16, 2004 5:53 am
Posts: 5321
Location: United Kingdom
In Ubuntu you can switch between php versions like this: https://tecadmin.net/switch-between-mul ... on-ubuntu/
Just installing the package doesn't automatically switch to it.

But for weathermap 0.98 with Cacti 0.8.8 and PHP 7.0, try this:

http://network-weathermap.com/files/php ... -test3.zip

I made it a little while ago, but haven't really had any feedback that it works.

_________________
Weathermap 0.98 is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group