Page 1 of 1

Dashboard won't load after upgrade

Posted: Sat 24 Aug 2019 9:56 pm
by hillyjd
I just upgraded to CMX 3050. At the same time, I upgraded the RPi s/w from Jessie to Buster. Everything seemed to go fine, except that the Dashboard page and the Gauges page won't load on my PC when I type in the IP address. I get an error "Connection closed". However, all the other data (like charts and today/yesterday) have current data. Interestingly enough, the dashboard and gauges pages load on the RPi web browser when I use http://localhost:9999.

I should point out that I changed internet service providers at the same time as well (seemed like a good idea at the time). My new ISP modem took my LAN IP address (192.168.0.X) so my Wifi router started using the IP 10.0.0.X. I can see that my RPi is connected to my Wifi at IP 10.0.0.7. It's just that when I type in the new IP (10.0.0.7:9999) on my PC browser, the Dashboard page and Gauge page display, but all the data is default values - nothing current.

Any suggestions?

Re: Dashboard won't load after upgrade

Posted: Mon 02 Sep 2019 12:31 am
by ExperiMentor
Yes - Raspbian Buster and the newly-updated release of Mono (v6.0.0) are incompatible, giving errors like this.
See this thread viewtopic.php?f=27&t=17564

To check what version of mono you have, enter:

Code: Select all

mono -V
If you've got v6.0.0 you have this problem. If you have v5.18 you would be in luck - but them I don't know the cause of your problem.

By the way, you can try refreshing the pages with the 500 Error - then they appear. But the Settings tab does not.

Re: Dashboard won't load after upgrade

Posted: Mon 02 Sep 2019 9:32 pm
by hillyjd
When I got your reply, I opened up CMX and the Dashboard and Gauges pages actually worked on my PC! I have not changed ANY computer configuration on either my RPi or my PC since I installed CMX 3050. I tried it several times, and it seems to be working just fine. I have tried it dozens times over the past two weeks, and no valid data ever showed up. Until today. How crazy is that?

I switched over to my RPi and found that I'm running mono ver 4.6.2. So I'm way out of date on that. But if it's working fine, is there any reason to update mono?

r/
Jim

Re: Dashboard won't load after upgrade

Posted: Mon 02 Sep 2019 10:00 pm
by ExperiMentor
At present I definitely would NOT update mono - the new version is giving problems.

I'm wondering how you have an old version despite having Raspbian Buster - I wouldn't have expected that to be possible. But "if it ain't broke, don't fix it" very much applies at the moment.

I would even suggest you should run this to make sure your mono does NOT get updated:

Code: Select all

sudo apt-mark hold mono-runtime mono-complete mono-devel
This 'marks' mono to be 'held' at the current version.
(It's supposed to be the case that update will not move up major versions (ie your v4 would not go to 5 or 6), but right now I don't trust it at all, so it's 'belt and braces' for me!)

Re: Dashboard won't load after upgrade

Posted: Tue 03 Sep 2019 1:36 pm
by Ralph1
It looks as as if I have found out about this problem too late. I will have to find out if it's possible to get an earlier version of mono and install that. I did not realise at the time what was causing the strange effects.

Now I have another problem. Normally when I want to look at the dashboard I use the command http://localhost:8898/index.html. Recently I attempted to make my site more secure by renaming my site from http://sidlawweather.co.uk to https://sidlawweather.co.uk. This involves adjusting the .htaccess file to change http:/ to https:/ and works fine for most sites but of course doesn't work for https://localhost:8898/index.html presumably for reasons of security. Does anyone have a fix for that, apart from changing my .htaccess file back again?m My system is Ubuntu Linux with the latest version and generally updates everything fairly regularly. Will have to stop that.

Fortunately it appears that CumulusMX continues to work normally and gathers data from my system.

Ralph1

Re: Dashboard won't load after upgrade

Posted: Tue 03 Sep 2019 2:24 pm
by hillyjd
I double checked my debian version and it comes up 10.0 - which is Buster. Thanks for the tip about how to make sure mono doesn't get upgraded. I will definitely implement that.

One very minor oddity - I still get the "Connection is closed" error when I try to view the Dashboard and Gauges pages on my smart phone. But not on the PC. Not a big deal. Other than that, it's all working flawlessly.

r/
Jim

Re: Dashboard won't load after upgrade

Posted: Sat 14 Sep 2019 1:29 pm
by Ralph1
Strange to relate, I updated my version of Ubuntu Linux 18.04 this morning, and the dashboard missing problem has gone away. All pages are displaying correctly. So it appears that mono has been changed again and this time to good effect.

Ralph1

Re: Dashboard won't load after upgrade

Posted: Sat 14 Sep 2019 4:14 pm
by HansR
Now that is interesting. I will create a Linux (debian on rPi) installation with all tools to their highest versions and see what happens.
I'll report back. If that is true, it would be the end of the troubles, but Ubuntu is not Raspbian :|

Re: Dashboard won't load after upgrade

Posted: Sun 15 Sep 2019 5:55 pm
by HansR
Just to inform you that the problems are only partially solved. I created an installation from scratch:

Buster: stable config from july 7, update after installation;
Mono: complete installation, update after installation;
Cumulus: restore of my backup from several hrs ago, including the start/stop script.

I started cumulus and it went OK. And indeed I had access to the dashboard, the 500 errors were gone.
But still Cumulus creates a sep.19log.txt file i.s.o. sep19log.txt. Therefore it can't access my old data.

Conclusion: NOT good for Raspbian, can't upgrade. Still having locale problems.

Nice exercise though.

Re: Dashboard won't load after upgrade

Posted: Sun 15 Sep 2019 6:14 pm
by mcrossley
Hans, what version of Mono did you end up with?

Re: Dashboard won't load after upgrade

Posted: Sun 15 Sep 2019 6:23 pm
by HansR
Mono JIT compiler version 6.0.0.334 (tarball Thu Sep 12 21:54:37 UTC 2019)