If you use Cumulus, please donate Image

Please read this post before posting

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3043 Jan 20 2017. See this post for download

Web pages won't load

Discussion of version 3 of Cumulus, which runs on Windows, Linux, and OS X. All Cumulus MX queries in here, please.
hillyjd
Posts: 6
Joined: Sun Apr 23, 2017 2:42 pm
Weather Station: Davis Vantage Vue
Operating System: Linux

Web pages won't load

Postby hillyjd » Fri May 19, 2017 12:45 am

I'm sure there's a topic out there on this. I just can't find it. Trying to set up Cumulus MX on Raspberry Pi. Running latest version 3043. Seemed to install fine. When I execute the Cumulus MX program, the only error I get is that the station is not identified, which makes sense since I can't get to it. When I enter the web page, I get at page of text with links to the data files (I think) but when I click on any link, I get:

"Unable to load page

Problem occurred while loading the URL file:///home/pi/index.html

Error opening file: No such file or directory"

So I figure I've got some pointer in the .ini file pointing to the wrong place, but I've been trying for a week to figure it out and I can't. The diagnostics file doesn't show me any errors, at least none that I can see. I've tried changing the port as suggested to 9999 but get same result. The one thing I did when I unzipped the download was to move all the files from underneath the "CumulusMX" folder to the "Cumulus" folder above that. Has that caused a the problem. I read in one of the posts that you needed to do that to get started.

I do have Cumulus running on my Windows laptop and it works great. Just can't get started on the RPi, which is what I really need. Any help would be most appreciated.

r/
Hilly

User avatar
steve
Cumulus Author
Posts: 25968
Joined: Mon Jun 02, 2008 6:49 pm
Weather Station: Davis VP2
Operating System: Raspbian
Location: Sanday, Orkney
Contact:

Re: Web pages won't load

Postby steve » Fri May 19, 2017 9:00 am

It looks like you are loading the interface files straight into your browser, instead of using an http URL. If you're not doing that, then the problem is with your browser - are you trying to use a browser on the Pi? Many of these are cut-down simplified browsers and not suitable for the MX interface.
Steve
-----
Hosting available for Cumulus web sites. See http://sandaysoft.com/forum/viewtopic.php?f=2&t=11876

Like Cumulus and want to support it? Please donate! Image

hillyjd
Posts: 6
Joined: Sun Apr 23, 2017 2:42 pm
Weather Station: Davis Vantage Vue
Operating System: Linux

Re: Web pages won't load

Postby hillyjd » Sat May 20, 2017 2:38 pm

Steve - it wasn't the browser. It was the idiot operating the browser. I had gotten into the habit of using the IP address 0.0.0.0 instead of "local host". Once I put in "localhost" the webpage loaded fine. But now I have a new problem. Seems to be identical to the problem described by "MeteoVillena" on 10 Mar 2017. Once I got the webpage up for the first time, I changed the settings to ID my Davis Vantage Vue and all the rest. Restarted Cumulus and got the "Unable to Connect to Station" error. Tried changing the COM port ID in my Cumulus.ini file, but got the same error every time. Here's the applicable MXdiag portion:

2017-05-20 06:50:50.200 Today = 20/05/17
2017-05-20 06:50:50.205 Station type = Davis
2017-05-20 06:50:50.205 LOOP2 enabled
2017-05-20 06:50:50.205 Serial device = COM0
2017-05-20 06:50:50.211 No such file or directory
2017-05-20 06:50:50.212 Not Connected
2017-05-20 06:50:50.300 629 web tags initialised
2017-05-20 06:50:50.312 HTML root path = /home/pi/Cumulus/interface
2017-05-20 06:50:50.499 Starting web socket server on port 8002
2017-05-20 06:50:57.523 Cumulus closing
2017-05-20 06:50:57.548 Writing Cumulus.ini file
2017-05-20 06:50:57.621 Closing connection
2017-05-20 06:50:57.623 Station stopped
2017-05-20 06:50:57.623 No data read this session, today.ini not written
2017-05-20 06:50:57.740 System.IO.IOException: Bad file descriptor
at System.IO.Ports.SerialPortStream.ThrowIOException () [0x00000] in <filename unknown>:0
at System.IO.Ports.SerialPortStream.Dispose (Boolean disposing) [0x00000] in <filename unknown>:0
at System.IO.Ports.SerialPortStream.Finalize () [0x00000] in <filename unknown>:0


You said the station path should be "/dev/serial" but I can't figure out what needs to be changed and where to make that happen. Thanks for your help.

Jim

User avatar
steve
Cumulus Author
Posts: 25968
Joined: Mon Jun 02, 2008 6:49 pm
Weather Station: Davis VP2
Operating System: Raspbian
Location: Sanday, Orkney
Contact:

Re: Web pages won't load

Postby steve » Sat May 20, 2017 2:56 pm

COM0 is not a valid device identifier in Linux. The MX FAQ explains what to do:

"Serial device names on Linux are not COM0 etc as in Windows. You need to specify something like /dev/ttyUSB0 - do a dmesg at a command line prompt and look for the actual device name from your adapter. If dmesg says your cp210x converter (as on Davis stations) is attached to ttyUSB0, for example, you need to put /dev/ttyUSB0 for the serial port name in MX. You can set the serial port name in the MX user interface, but if for some reason you want to do it by editing Cumulus.ini, note that the item in MX is called ComportName (which is a string, for the full device name, e.g. COM1 or /dev/ttyUSB0) rather than 'Port' which is just an integer. If you have not run MX yet, this item will not exist, so you will need to add it (in the [Station] section)."
Steve
-----
Hosting available for Cumulus web sites. See http://sandaysoft.com/forum/viewtopic.php?f=2&t=11876

Like Cumulus and want to support it? Please donate! Image

hillyjd
Posts: 6
Joined: Sun Apr 23, 2017 2:42 pm
Weather Station: Davis Vantage Vue
Operating System: Linux

Re: Web pages won't load

Postby hillyjd » Sun May 28, 2017 1:26 pm

Steve - thanks for the quick reply. Should have found that post myself. Working fine now. Really appreciate it. Checks in the mail.

User avatar
steve
Cumulus Author
Posts: 25968
Joined: Mon Jun 02, 2008 6:49 pm
Weather Station: Davis VP2
Operating System: Raspbian
Location: Sanday, Orkney
Contact:

Re: Web pages won't load

Postby steve » Sun May 28, 2017 7:37 pm

Many thanks.
Steve
-----
Hosting available for Cumulus web sites. See http://sandaysoft.com/forum/viewtopic.php?f=2&t=11876

Like Cumulus and want to support it? Please donate! Image

hillyjd
Posts: 6
Joined: Sun Apr 23, 2017 2:42 pm
Weather Station: Davis Vantage Vue
Operating System: Linux

Re: Web pages won't load

Postby hillyjd » Wed Jun 14, 2017 12:59 am

Steve,

Things seemed to be working fine, then we went on vacation for two weeks. During that time, I noticed that updates to my PWS weather data had stopped about a day after we left. When we got home yesterday, it appeared that Cumulus had stopped working for some reason. I restarted it and everything seemed to be ok. Here's the curious thing. When I get home tonight, the Dashboard display shows a current "last Cumulus update" as current, but "Last station update" over 4 hours ago. When I check the PWS website, it looks like it is getting data like it should every half hour. I checked the diagnostic file and it has all kinds of errors. I'm sure it's some setting I've screwed up. I archived the diagnostic file and attached. Any thoughts?
You do not have the required permissions to view the files attached to this post.

User avatar
steve
Cumulus Author
Posts: 25968
Joined: Mon Jun 02, 2008 6:49 pm
Weather Station: Davis VP2
Operating System: Raspbian
Location: Sanday, Orkney
Contact:

Re: Web pages won't load

Postby steve » Wed Jun 14, 2017 9:33 am

You have some kind of problem with the connection to the station. There was an exception in the Mono serial port code when MX tried to read data:

2017-06-12 13:26:14.025 System.IO.IOException: Input/output error

Unfortunately that's the only information available, so it's very hard to say what happened. MX currently doesn't attempt to recover from this kind of problem. Do you have your logger connected directly to a USB port on your Pi, or via a hub? It might be worth trying a powered hub, if you're not already using one and happen to have one to try. The Pi is notorious for USB problems. Having said that, someone else had the same symptoms and a powered hub didn't help - http://sandaysoft.com/forum/viewtopic.php?f=27&t=16228

I also notice that you have the station logger set to 30 minutes and MX set to 1 minute, so you are getting the issue described in the Cumulus FAQ - http://wiki.sandaysoft.com/a/FAQ#Cumulus_takes_a_long_time_to_download_the_data_from_my_Davis_station_at_start_up

You also seem to have an issue with your ftp server:

2017-06-12 13:25:17.026 Error connecting ftp - Connection refused
2017-06-12 13:25:17.031 Error uploading web/realtimegauges.txt to realtimegauges.txt : Connection refused
Steve
-----
Hosting available for Cumulus web sites. See http://sandaysoft.com/forum/viewtopic.php?f=2&t=11876

Like Cumulus and want to support it? Please donate! Image

hillyjd
Posts: 6
Joined: Sun Apr 23, 2017 2:42 pm
Weather Station: Davis Vantage Vue
Operating System: Linux

Re: Web pages won't load

Postby hillyjd » Mon Jun 19, 2017 2:48 am

Steve,

Thanks for the quick reply. Aligning the update periods seems to have fixed the problem. Running for a solid week now with no problems.

r/
Jim


Return to “Cumulus MX”

Who is online

Users browsing this forum: No registered users and 5 guests