'403' errors & 'Error loading page' from Mobile & Smartphone reports

55 views
Skip to first unread message

Peter Schmelitschek

unread,
Jun 22, 2025, 10:58:14 AM6/22/25
to weewx-user
I started using WeeWx two days ago, after 22 years with Weather Display - part of the Windows to Linux Mint conversion.

1. Platform: PC, Gigabyte H97-HD3, Intel Core i7-4790K, 32 GB RAM
2. OS: Distro: Linux Mint 22.1 Xia base: Ubuntu 24.04 noble; Linux-6.8.0-62-generic-x86_64-with-glibc2.39
3. Station: Davis Vantage Pro 2 wireless
4. Connection: Serial via USB adapter
5. New installation 5.1.0
6. Package: DEB via APT
7. Driver: weewx.drivers.vantage

The problems:
1. Trying to open any 'sub-report' of the 'Mobile' report e.g.  https://my.domain/weewx/mobile/daywind.png results in a 403

The local host version e.g. file:///var/www/html/weewx/mobile/daywind.png displays the chart Ok.
2. Trying to open any 'sub-report' of the 'Smartphone' report e.g. 'Barometer' on
https://my.domain/weewx/smartphone/ displays 'Error loading page'.

The same error displays from pressing Barometer etc on
file:///var/www/html/weewx/smartphone/index.html


I expect there is a permission issue somewhere? 



mylog

Tom Keffer

unread,
Jun 22, 2025, 4:30:25 PM6/22/25
to weewx...@googlegroups.com
If I understand correctly, you are able to browse to these files on the local machine, but not on the remote webserver. Is that correct? That would imply that the files are not getting uploaded correctly. 

The log indicates that the files are getting uploaded, although perhaps not to where you expect them to be. For example, there is an entry for mobile/daywind.png that looks like this:

2025-06-23T00:00:44.171814+10:00 pc-case2-mint weewxd[387063]: DEBUG weeutil.ftpupload: 62 ./mobile/daywind.png 53ce0557ec7c98b057081345c912b8385b38a314be0ae777aa44ea96d55a5e31
2025-06-23T00:00:44.530225+10:00 pc-case2-mint weewxd[387063]: DEBUG weeutil.ftpupload: Uploaded file /var/www/html/weewx/mobile/daywind.png to mobile/daywind.png

I'm not sure what the long hexadecimal number (starts with 53ce...) is coming from. Is that something you added?

Is the regular Seasons report appearing on the webserver as expected? 

Do you have shell access to the webserver? If so, poke around in there and see where things are residing.




--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/weewx-user/0b8de0c4-c6aa-4c62-8fa7-d709964c8a80n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages