[FIXED] Not able to open Weathermap editor

Hello,

I need some help on debugging why I am not able to open the Weathermap editor
when I click on the link “here to access the editor” under Overview/Plugins/Weathermap.

My browser gets a

content-type: text/html; charset=UTF-8
date: Wed, 20 Mar 2019 10:27:30 GMT
location: /
server: nginx/1.12.2
status: 302
strict-transport-security: max-age=15768000
x-powered-by: PHP/7.1.25

There’s nothing in error_log and this all what is shown in access_log:

myip - - [20/Mar/2019:11:38:31 +0100] "GET /plugins/Weathermap/editor.php HTTP/2.0" 302 3489 "https://my.host.name/plugin/p=Weathermap" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36"
myip - - [20/Mar/2019:11:38:31 +0100] "GET / HTTP/2.0" 200 97182 "https://my.host.name/plugin/p=Weathermap" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36"

I installed the plugin as described in Weathermap - LibreNMS Docs

~/plugins/Weathermap permission and ownership is shown here.

The output is ok, I can view all my maps, but I am not able to use the editor…

====================================
Component | Version
--------- | -------
LibreNMS  | 1.49-90-gf520933
DB Schema | 2019_02_10_220000_add_dates_to_fdb (132)
PHP       | 7.1.25
MySQL     | 5.5.60-MariaDB
RRDTool   | 1.4.8
SNMP      | NET-SNMP 5.7.2
====================================

[OK]    Composer Version: 1.8.4
[OK]    Dependencies up-to-date.
[OK]    Database connection successful
[OK]    Database schema correct

Any help is appreciated…

Best regards,
awaum

Hi,

Did you install php pear ?

yes…:

rpm -qa | grep pear

php71w-pear-1.10.4-1.w7.noarc

I’m having the exact same error. I am no longer able to access the editor.

I only have one map in there, and I can access the map directly just fine.

Last time I tried accessing the editor was on march 14, and it worked fine then.

Component | Version
--------- | -------
LibreNMS  | 1.49-90-gf520933
DB Schema | 2019_02_10_220000_add_dates_to_fdb (132)
PHP       | 7.2.8
MySQL     | 5.5.60-MariaDB
RRDTool   | 1.7.1
SNMP      | NET-SNMP 5.7.2
====================================

[OK]    Composer Version: 1.8.4
[OK]    Dependencies up-to-date.
[OK]    Database connection successful
[OK]    Database schema correct

rpm -qa | grep pear
php-pear-1.9.4-21.el7.noarch

Thank you for that feedback!

In my logfiles is shown that it still worked yesterday…

Actually I renamed ~/html/plugins/Weathermap today, trying to install Version 0.98 from the original project … before I saw that this does not make any sense.
So I renamed the previous version back… when I discovered that the editor is not working…

I thought I did something wrong… so I reinstalled everything from scratch (git clone… as described in the link above…)

Funny co-incidence …

Has anybody got an idea how to debug this issue…? Why do I get a HTTP 302?

Thank you!

-awaum

Hi

I have the same problem. The editor worked a couple of days ago, but today it is not working, not even after reinstall.

Seems to be an authentification error, this is triggered in editor.php and redirects back to /.

if (empty($_SESSION[‘authenticated’]) || !isset($_SESSION[‘authenticated’]))

Johan

Can you check $_SESSION and see what is in it?

I did a print_r($_SESSION); exit(); just before the session check and there is no output. I am logged into libre,.

I have the same issue since the latest update

It was working fine yesterday, today the editor link just redirect to default dashboard

No ideas on how to solve this?

I switched to stable release as described here: https://docs.librenms.org/General/Releases/

Now I can access the Weathermap editor again.

Did not even know i ran a development release, switched to stable and now its working again :slight_smile:

1 Like

Well, I actually cannot switch and hopefully it it will keep on working for you.
I think this will not be the case if the issue doesnt get fixed.

So, there is no “working again”, this is still an issue!

Thank you!

i had ran into the same issue with the editor for weathermaps no longer working, i switched to the stable release as described, and now my web gui is giving me a HTTP 500 Error when trying to access.

but when I run ./validate.php all appears fine?
other some device polling issues - which I can resolve. but the gui is my concern

====================================

Component Version
LibreNMS 1.49
DB Schema 2019_02_10_220000_add_dates_to_fdb (132)
PHP 7.2.14
MySQL 5.5.60-MariaDB
RRDTool 1.4.8
SNMP NET-SNMP 5.7.2

====================================

[OK] Composer Version: 1.8.4
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[WARN] Some devices have not been polled in the last 5 minutes. You may have performance issues.

thoughts?

Switching back to daily will most likely restore your GUI, its normally only safe to switch to the stable release on the day, or soon after the monthly stable branch is released.

If you are too far ahead on the daily branch and then switch back, you may be living in a future DB schema, but on old release code if that makes sense :space_invader:

and I do that by running the .daily.sh?

Change your release back to daily in config.php

$config['update_channel'] = 'master';

then you can run daily.sh as librenms user

ok giving it at try, lets see if the change also fixes the editing issues with weathermap

sigh… unfortunately still broken webgui

./validate.php

Component Version
LibreNMS 1.49-104-g8f718f5
DB Schema 2019_02_10_220000_add_dates_to_fdb (132)
PHP 7.2.14
MySQL 5.5.60-MariaDB
RRDTool 1.4.8
SNMP NET-SNMP 5.7.2

====================================

[OK] Composer Version: 1.8.4
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct

Update configuration

$config[‘update_channel’] = ‘master’; # uncomment to follow the monthly release channel
#$config[‘update’] = 0; # uncomment to completely disable updates

thoughts?