The log file pretty clearly says which file it can't write to. So you need to fix the permissions on that file. Pretty simple.
Without any details on your setup it's hard to say more than that, other than if you're doing unusual things like writing across the network to a filesystem mounted on another computer or NAS, the possibilities of what's perhaps wrong grow a lot. Do other skins work ok ? On Friday, September 29, 2023 at 9:56:22 PM UTC-7 Lorin Tremblay wrote: > Well that might be part of my problem > > Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR weewx.reportengine: > Caught unrecoverable exception in generator > 'user.belchertown.HighchartsJsonGenerator' > > Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR weewx.reportengine: > **** [Errno 13] Permission denied: > '/var/www/html/weewx/json/week.json' > > Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR weewx.reportengine: > **** Traceback (most recent call last): > > Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR weewx.reportengine: > **** File "/usr/share/weewx/weewx/reportengine.py", line 197, in > run > > Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR weewx.reportengine: > **** obj.start() > > Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR weewx.reportengine: > **** File "/usr/share/weewx/weewx/reportengine.py", line 385, in > start > > Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR weewx.reportengine: > **** self.run() > > Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR weewx.reportengine: > **** File "/usr/share/weewx/user/belchertown.py", line 2817, in > run > > Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR weewx.reportengine: > **** with open(json_filename, mode="w") as jf: > > Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR weewx.reportengine: > **** PermissionError: [Errno 13] Permission denied: > '/var/www/html/weewx/json/week.json' > > Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR weewx.reportengine: > **** Generator terminated > > > What is the best way to correct this situation…. > > > On 29 Sep 23, at 22:50, vince <[email protected]> wrote: > > Well, I always suggest the old sysadmin credo of "when in doubt, comment > it out" in working these kinds of things. Start slowly and get 'one' chart > working....and look at your syslogs. Do yours say anything indicating a > problem ? > > You might also save your (not working) graphs.conf file someplace and > 'copy' the graphs.conf.example file into place as graphs.conf which should > definitely work. At a minimum it'll take your edits out of the question at > least temporarily.... > > I don't remember for Belchertown if you should stop/restart weewx after > fiddling with graphs.conf but that might be wise in this case just in > case.... > > > -- > 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 [email protected]. > > To view this discussion on the web visit > https://groups.google.com/d/msgid/weewx-user/77309976-b444-4ade-9870-28d0690d8c44n%40googlegroups.com > > <https://groups.google.com/d/msgid/weewx-user/77309976-b444-4ade-9870-28d0690d8c44n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/e7602824-5926-45a7-b734-9eaad403b050n%40googlegroups.com.
