You could try the loop_on_init flag. (Look here
<http://weewx.com/docs/usersguide.htm#General> for documentation, last item
under "General" heading). This won't fix anything, but it will cause WeeWX
to keep trying, rather than exiting.

-tk

On Mon, Jun 24, 2019 at 6:13 AM Kev D <[email protected]> wrote:

> Hi all,
>
> I was doing some searching on this but not sure the best way to proceed.
> The current issue is upon reboot of my Ubuntu server, sometimes WeeWX will
> not start with this error in the logs.
>
> Jun 24 02:00:58 osboxes weewx[791]: import of driver failed: enp0s3: That
> device is not up (<type 'exceptions.Exception'>)
> Jun 24 02:00:58 osboxes weewx[791]: engine: Unable to load driver: enp0s3:
> That device is not up
> Jun 24 02:00:58 osboxes weewx[791]:     ****  Exiting...
>
> This is easily resolved by just restarting WeeWx, but if I don't catch
> this then it will not capture any data. The best solution I found in
> searching was to add a delay in the "/etc/init.d/weewx"  script to wait for
> these interfaces to be active. Do you think this would be alright and if so
> do you know where I should place this in the file? Or is there another way
> to deal with this issue?
>
> Thanks in advance!
>
> Kev
>
> --
> 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/d86476d4-25fb-41a0-85d6-ace778b914a8%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/d86476d4-25fb-41a0-85d6-ace778b914a8%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAPq0zEDc6CNaHsOHc_6kuzaX6iHOX26SzbJSOE8-f_CoiwbEfQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to