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: 17
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: 26080
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: 17
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: 26080
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: 17
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: 26080
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: 17
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: 26080
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: 17
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

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

Re: Web pages won't load

Postby hillyjd » Fri Jul 07, 2017 11:42 pm

Steve,

Just when I thought I was safe. My internet connection failed about 10 days ago, and it took until today for the company to send a rep out to fix it (don't get me started). When I power up my Rpi, I'm back to square one. Web pages won't load, get the same error as before:

16:32:41.275 Start normal reading loop
2017-07-07 16:32:41.278 Start Timers
2017-07-07 16:32:41.278 Starting 1-minute timer
2017-07-07 16:32:41.283 Starting Realtime timer, interval = 30 seconds
2017-07-07 16:32:47.262 !!! loop data not received, bytes received = 0
2017-07-07 16:32:47.565 Array index is out of range.
2017-07-07 16:33:00.297 New monthly record, month = 7: 2017-07-07 16:33 74.217 "High daily windrun" 2017-07-07 16:30 74.083
2017-07-07 16:33:03.028 New monthly record, month = 7: 2017-07-07 16:33 1002.710 "Low barometer" 2017-07-07 16:27 1002.744
2017-07-07 16:33:11.325 Error connecting ftp - Connection refused
2017-07-07 16:33:11.795 Error uploading web/realtimegauges.txt to realtimegauges.txt : Connection refused

So I rummaged around and found my powered USB connector. Connected all that up, and get the same issue. There's an idiot light on the USB port that says that data is going to the Rpi. I went to that other posting you mentioned where the powered USB didn't help, but I don't see a solution that actually worked.

Any suggestions on where to go from here? Try to upgrade mono to 5.0? If so, do you know what commands I should use?

r/
Jim

User avatar
steve
Cumulus Author
Posts: 26080
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 Jul 08, 2017 7:24 am

One thing you should do is to turn off the uploads of the realtimegauges file - I turned it on by default, not spotting the that it would try to upload even if an ftp server hadn't been configured. I believe you're not uploading to a web site?

I think that's unlikely to solve your problem, though. I don't think a Mono upgrade would help, either, but you could try it. It looks like a hardware problem to me rather than software.

Are you using a genuine Davis logger? You could perhaps try a different cable.

Having said all that, it does look like it was working OK after that one error about reading the data -"loop data not received ". Or were there lots of other similar messages in the diags file?
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: 17
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 Jul 08, 2017 12:59 pm

Steve,

I actually am sending the data to a website (PWS). I've got this WiFi drip irrigation controller that looks at my pws weather data to figure out how much water to use for irrigation every day.

Here's a thought - plug the data logger cable into my PC and see how it works with Cumulus / Windows 10. It was working fine there before. If it works there, we know it's not the cable. I am not using the Davis data logger cable. I got one from "Belfry Boy" in the UK.

r/
Jim

hillyjd
Posts: 17
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 Jul 08, 2017 1:06 pm

I forgot to answer your question about the errors. There's a ton of error messages in the diagnostics file. I've attached it.

r/
Jim
You do not have the required permissions to view the files attached to this post.

User avatar
steve
Cumulus Author
Posts: 26080
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 Jul 08, 2017 1:23 pm

But those errors (apart from just one of them, at 16:32:47), are all to do with the failed ftp of the realtimegauges.txt file. As far as I can see, Cumulus is reading the data just fine. So I'm struggling to understand exactly what the problem is that you believe you have. Can you clarify?

When I say "sending the data to a web site" I mean to your own web site, using ftp, rather than to one of the commercial web sites. Assuming you're not also uploading to your own web site, you should turn off the upload of the realtimegauges.txt file in the internet settings. That will stop those error messages appearing.
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: 17
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 Jul 09, 2017 2:56 pm

Steve,

Sorry - I believe I had two problems. The first was that I could not view the weather data from my weather station using the RPi web browser when I type in "http://localhost:9999/. Instead of seeing the current weather gauges on the dashboard, for example, I get almost like an error page. I've attached a pdf file of what I get. The second problem was that the data was not getting to the PWS website either, so I could not go to my account on the internet and see the data from my weather station there either. Both those things were working, and now they're not.

And now I have a third problem. I decided to take your advice and change the settings for the FTP real time. When I tried to edit the .ini file, oddly enough it would let me edit the file, but it wouldn't let me save it (said it "couldn't open the file). So I saved it as a different name, moved the original file out of the Cumulus directory, and then renamed the new file as Cumulus.ini. After that, I get the "could not connect to station error". So I deleted that file, moved the original .ini file back into the Cumulus folder, and I still get the "cannot connect to station" error. So I've gone from bad to worse.

r/
Jim
You do not have the required permissions to view the files attached to this post.


Return to “Cumulus MX”

Who is online

Users browsing this forum: l2k and 3 guests