Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4018) - 28 March 2024

Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

degree days and temp sump charts not loading

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

Post Reply
liddelljs
Posts: 119
Joined: Sat 31 Oct 2015 10:22 pm
Weather Station: Ecowitt GW1001
Operating System: RPi 3 Raspbian Buster
Location: Perth Western Australia

degree days and temp sump charts not loading

Post by liddelljs »

Ok - I've clearly missed something pretty basic but have been tearing my hair out trying to get these charts to load on the standard web site (new version) on b3130. They just stay blank with the 'loading' message displayed. I thought it might have been due to some customisation I had done to a few web pages and js files so I loaded the vanilla release files but having the same problem. No problems displaying on the MX interface. I'm assuming the json files are alldailydegdaydata and alltempsumdata. These seem to be processing and are ftp'ing to my var/www folder (I'm hosting on an RPi). Any pointers much appreciated. I have cleared the cache. I have also ensured that these charts are checked as visible as per the release notes.

Cheers
Steve
User avatar
The Dalek Hunter
Posts: 242
Joined: Wed 05 Aug 2020 11:51 am
Weather Station: Ecowitt GW1000B, Ecowitt GW2000
Operating System: macOS Sonoma on a Mac Mini M2
Contact:

Re: degree days and temp sump charts not loading

Post by The Dalek Hunter »

Working fine when I view them
You do not have the required permissions to view the files attached to this post.
liddelljs
Posts: 119
Joined: Sat 31 Oct 2015 10:22 pm
Weather Station: Ecowitt GW1001
Operating System: RPi 3 Raspbian Buster
Location: Perth Western Australia

Re: degree days and temp sump charts not loading

Post by liddelljs »

Many thanks for the prompt response. I didn't make myself very clear - apologies. It is specifically the degree days and temp sum charts on the historic charts page that don't load. All the other charts are fine.

Cheers
Steve
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: degree days and temp sump charts not loading

Post by beteljuice »

The json files are returning 403 (forbidden) to the historic chart call.
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
mcrossley
Posts: 12696
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: degree days and temp sump charts not loading

Post by mcrossley »

The web server is returning a 403 error - Forbidden.

I'd check the file permissions for those new json files in your web server folder.
liddelljs
Posts: 119
Joined: Sat 31 Oct 2015 10:22 pm
Weather Station: Ecowitt GW1001
Operating System: RPi 3 Raspbian Buster
Location: Perth Western Australia

Re: degree days and temp sump charts not loading

Post by liddelljs »

Thanks Beteljuice and Mark for your feedback. The file permissions in the web folder are clearly different (-rw-r----- vs -rw-r--r---) but they are identical to all the other json files in the MX web directory. Clearly showing my lack of knowledge on Linux file permissions here but don't understand how this could happen.

Cheers
Steve
freddie
Posts: 2434
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 22.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: degree days and temp sump charts not loading

Post by freddie »

How about the owner and group of the new files? Are they different from the other JSON files?
Freddie
Image
liddelljs
Posts: 119
Joined: Sat 31 Oct 2015 10:22 pm
Weather Station: Ecowitt GW1001
Operating System: RPi 3 Raspbian Buster
Location: Perth Western Australia

Re: degree days and temp sump charts not loading

Post by liddelljs »

Hi Freddie,
As far as my limited linux file permissions goes, the new files have owner read and write, user group read and no world permissions (hence why they won't load). All the other json files in the web directory have owner read and write, user group read and world read. In the MX web directory, all json files in the web directory have owner read and write, user group read and world read.

I did just erase the new json files in the web directory and manually copy the files from the MX folder. File permissions are all good and the charts display. I'll check tomorrow when the files update at rollover to see if the permissions are retained when they ftp across.

Cheers
Steve
freddie
Posts: 2434
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 22.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: degree days and temp sump charts not loading

Post by freddie »

Hi Steve, I was wondering what the actual owner and group was in relation to the existing JSON files - but you have fixed the problem so all is good :)
Freddie
Image
liddelljs
Posts: 119
Joined: Sat 31 Oct 2015 10:22 pm
Weather Station: Ecowitt GW1001
Operating System: RPi 3 Raspbian Buster
Location: Perth Western Australia

Re: degree days and temp sump charts not loading

Post by liddelljs »

Thanks Freddie. The owner and group of the Jason files are both pi.

Cheers
Steve
freddie
Posts: 2434
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 22.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: degree days and temp sump charts not loading

Post by freddie »

Okay, so you needed world read on the files, as you discovered. Your web server is probably running as a user such as www-data which is highly unlikely to be a member of the pi group - hence world read required.
Freddie
Image
liddelljs
Posts: 119
Joined: Sat 31 Oct 2015 10:22 pm
Weather Station: Ecowitt GW1001
Operating System: RPi 3 Raspbian Buster
Location: Perth Western Australia

Re: degree days and temp sump charts not loading

Post by liddelljs »

Hi Freddie,
Many thanks for taking the time to respond. All makes sense and I remember reading this when trawling the net on linux file permissions. Files updated today with no issues so looks like problem solved. Not sure what happened on the first transfer.

Cheers
Steve
freddie
Posts: 2434
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 22.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: degree days and temp sump charts not loading

Post by freddie »

liddelljs wrote: Fri 14 May 2021 9:22 amNot sure what happened on the first transfer.
It will be due to something known as umask setting. This is basically the default permissions given to files when created on the host for the first time. Looks like your umask setting doesn't include world read. Note that whatever software you use to transfer files may well have its own behaviour when it comes to permissions of newly created files. A command line FTP client will likely do a different thing to something like Filezilla or even SCP/WinSCP. They should all use the host's umask setting initially, but then may apply their own settings on top of this.
Freddie
Image
Post Reply