What you have presented (other than the WeeWX daemon failing to start) is
expected behaviour. When you run WeeWX directly by invoking weewxd from the
command line you are running WeeWX as a foreground process (as opposed to a
background process when WeeWX is run as a daemon). When you close the
terminal in which you invoked this foreground process the foreground
process is closed (that is why WeeWX is normally run as a daemon). As part
of the WeeWX foreground process closing the process shuts down any
sub-ordinate threads, one of which is the GatewayCollector thread used by
the Ecowitt gateway device service. The corresponding entry in log extract
is not an error, rather it is informational telling you the thread was
closed in a controlled manner.
What you need to do is to determine why the WeeWX daemon is not
starting/running. To do this make sure all WeeWX instances are closed. Edit
weewx.conf and set debug = 1. Start the WeeWX daemon and monitor the WeeWX
log. Let WeeWX run for at least two archive periods, or until it encounters
an error, and then post a log extract showing the entire WeeWX startup
through until the error occurs or the two archive periods have passed.
Gary
On Tuesday, 9 May 2023 at 22:37:48 UTC+10 vigilance wx wrote:
> Hi
>
> I am running a fresh install of weewx 3.9.2 on raspberrypi with python 2.7
>
> I have installed WS3000 as a driver and working fine
>
>
>
> I have then install GW1000 as a service
>
>
>
> Its works fine initially pefect no problems
>
> I then reboot the pi weewx fails will not start
>
> Weewx will not run as a daemon
>
> I open a putty window
>
> I can start it directly with
>
> sudo ./bin/weewxd weewx.conf
>
>
>
> if then open a second putty window I can see data from both the GW1000
> and WS3000 in the syslog
>
> if close the first original putty window
>
>
>
> I get this error in the second putty window syslog
>
>
>
> May 9 13:26:55 raspberrypiwx weewx[1647]: gw1000: Next update in 20
> seconds
>
> May 9 13:26:56 raspberrypiwx weewx[1647]: engine: Main loop exiting.
> Shutting engine down.
>
> May 9 13:26:56 raspberrypiwx weewx[1647]: gw1000: GatewayCollector thread
> has been terminated
>
> May 9 13:26:56 raspberrypiwx weewx[1647]: engine: Caught unrecoverable
> exception in engine:
>
> May 9 13:26:56 raspberrypiwx weewx[1647]: **** [Errno 5]
> Input/output error
>
> May 9 13:26:56 raspberrypiwx weewx[1647]: **** Traceback (most
> recent call last):
>
> May 9 13:26:56 raspberrypiwx weewx[1647]: **** File
> "/home/weewx/bin/weewx/engine.py", line 894, in main
>
> May 9 13:26:56 raspberrypiwx weewx[1647]: **** engine.run()
>
> May 9 13:26:56 raspberrypiwx weewx[1647]: **** File
> "/home/weewx/bin/weewx/engine.py", line 191, in run
>
> May 9 13:26:56 raspberrypiwx weewx[1647]: ****
> self.dispatchEvent(weewx.Event(weewx.NEW_LOOP_PACKET, packet=packet))
>
> May 9 13:26:56 raspberrypiwx weewx[1647]: **** File
> "/home/weewx/bin/weewx/engine.py", line 224, in dispatchEvent
>
> May 9 13:26:56 raspberrypiwx weewx[1647]: **** callback(event)
>
> May 9 13:26:56 raspberrypiwx weewx[1647]: **** File
> "/home/weewx/bin/weewx/engine.py", line 725, in new_loop_packet
>
> May 9 13:26:56 raspberrypiwx weewx[1647]: ****
> to_sorted_string(event.packet).encode('utf-8'))
>
> May 9 13:26:56 raspberrypiwx weewx[1647]: **** IOError: [Errno 5]
> Input/output error
>
> May 9 13:26:56 raspberrypiwx weewx[1647]: **** Exiting.
>
> May 9 13:26:56 raspberrypiwx systemd[1]: session-c5.scope: Succeeded.
>
>
>
> Something is stopping weewx after I install the GW1000 service and the pi
> is rebooted
>
>
>
> Thanks for any help
>
--
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/9cdcc030-8df4-4e7c-8c03-bf41329814f3n%40googlegroups.com.