Sorry, but we're going to have to see the entire file. We need to see how weewxd is invoked.
One more question: what did you modify? Any reason you can think of why it stopped working? -tk On Wed, Sep 4, 2024 at 10:23 AM hind...@gmail.com <hindle...@gmail.com> wrote: > Thanks, Tom. > > Weewx is version 4.10.2 > > /etc/init.d/weewx contains a lot of code. The path section is: > > PATH=/sbin:/usr/sbin:/bin:/usr/bin > > WEEWX_BIN=/usr/bin/weewxd > > WEEWX_CFG=/etc/weewx/weewx.conf > > WEEWX_USER=root:root > > DESC="weewx weather system" > > NAME=weewx > > PIDFILE=/var/run/$NAME.pid > My RPi is Raspberry Pi 3 Model B Plus Rev 1.3. I am running it under > quite an old Raspbian version - "Stretch". > > Sorry - how do I use a systemd service file? > > Thanks > > David. > > > On Wednesday 4 September 2024 at 17:48:36 UTC+1 Tom Keffer wrote: > >> Some sort of PYTHONPATH problem I would imagine, but we need more >> information. >> >> What version of WeeWX? >> What's in your /etc/init.d/weewx? >> What version of RaspberryPi OS? >> Assuming a reasonably recent version, why not use a systemd service file? >> >> If all else fails, set debug=1, restart weewxd, post the log. >> >> >> On Wed, Sep 4, 2024 at 4:31 AM hind...@gmail.com <hind...@gmail.com> >> wrote: >> >>> For some unknown reason my weather station is no longer updating - which >>> must be due to weewx having failed somehow. When I restart my Raspberry Pi, >>> to try to reset things, I get the following: >>> >>> weewx.service - LSB: weewx weather system >>> >>> Loaded: loaded (/etc/init.d/weewx; generated; vendor preset: enabled) >>> >>> Active: failed (Result: exit-code) since Wed 2024-09-04 12:23:03 BST; >>> 2min 34s ago >>> >>> Docs: man:systemd-sysv-generator(8) >>> >>> Process: 480 ExecStart=/etc/init.d/weewx start (code=exited, >>> status=1/FAILURE) >>> >>> >>> >>> Sep 04 12:23:03 raspberrypi weewx[480]: File >>> "/usr/share/weewx/weewxd", line 25, in <module> >>> >>> Sep 04 12:23:03 raspberrypi weewx[480]: import weeutil.logger >>> >>> Sep 04 12:23:03 raspberrypi weewx[480]: File >>> "/usr/share/weewx/weeutil/logger.py", line 17, in <module> >>> >>> Sep 04 12:23:03 raspberrypi weewx[480]: import weewx >>> >>> Sep 04 12:23:03 raspberrypi weewx[480]: ImportError: No module named >>> weewx >>> >>> Sep 04 12:23:03 raspberrypi weewx[480]: failed! >>> >>> Sep 04 12:23:03 raspberrypi systemd[1]: weewx.service: Control process >>> exited, code=exited status=1 >>> >>> Sep 04 12:23:03 raspberrypi systemd[1]: Failed to start LSB: weewx >>> weather system. >>> >>> Sep 04 12:23:03 raspberrypi systemd[1]: weewx.service: Unit entered >>> failed state. >>> >>> Sep 04 12:23:03 raspberrypi systemd[1]: weewx.service: Failed with >>> result 'exit-code'. >>> >>> ~ >>> >>> >>> Anyone know what is going on please? >>> >>> Many Thanks >>> >>> >>> David. >>> >>> -- >>> 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 on the web visit >>> https://groups.google.com/d/msgid/weewx-user/21297d91-d219-4790-85d2-d1d2131075acn%40googlegroups.com >>> <https://groups.google.com/d/msgid/weewx-user/21297d91-d219-4790-85d2-d1d2131075acn%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 weewx-user+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/weewx-user/fba5220b-9442-437a-851d-e7035570faa5n%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-user/fba5220b-9442-437a-851d-e7035570faa5n%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 weewx-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CAPq0zEBJODgKQiZ9PPRLuOutTC%2BiV7cQhbARJMExoJSh5QmJRQ%40mail.gmail.com.