wee_import

81 views
Skip to first unread message

J W

unread,
May 19, 2020, 3:28:23 AM5/19/20
to weewx-user
When using docker (multiple setups), I get the following type of errors when trying to run wee_import:
Message: 'Starting wee_import...'                                                                                               
 
Arguments: ()                                                                                                                   
A CSV import from source file '/etc/weewx/extra/Rain19.csv' has been requested.                                                 
--- Logging error ---                                                                                                           
Traceback (most recent call last):                                                                                              
  File "/usr/lib/python3.7/logging/handlers.py", line 933, in emit                                                              
    self.socket.send(msg)                                                                                                       
OSError: [Errno 9] Bad file descriptor                                                                                               
During handling of the above exception, another exception occurred:                                                                   
Traceback (most recent call last):                                                                                              
  File "/usr/lib/python3.7/logging/handlers.py", line 854, in _connect_unixsocket                                               
    self.socket.connect(address)         
FileNotFoundError: [Errno 2] No such file or directory

  However, if I install weewx direclyt in the OS it works (same files etc)
Is there a missing library or package?

gjr80

unread,
May 19, 2020, 4:59:40 AM5/19/20
to weewx-user
Hi,

Sounds like a problem with WeeWX logging and docker rather than a wee_import problem per se. You might want to check out this thread in weewx-development - https://groups.google.com/d/topic/weewx-development/Xx-1k6zxwVY/discussion

Gary

vince

unread,
May 19, 2020, 5:20:31 AM5/19/20
to weewx-user
On Tuesday, May 19, 2020 at 1:59:40 AM UTC-7, gjr80 wrote:

Sounds like a problem with WeeWX logging and docker rather than a wee_import problem per se. You might want to check out this thread in weewx-development - https://groups.google.com/d/topic/weewx-development/Xx-1k6zxwVY/discussion



Agree.  That's almost certainly the issue.

I have my Docker setup at https://github.com/vinceskahan/weewx-docker if you want to look at what works for me.   Look in the build subdirectory and pick your os of choice.   Those examples use supervisord to run two processes in the container, but you can get there similarly with a RUN command to start it up.

J W

unread,
Jun 26, 2020, 6:50:19 PM6/26/20
to weewx-user
This sounds correct - I have docker on Synology and Ubuntu platforms. They appear to implement logging in different ways.
Reply all
Reply to author
Forward
0 new messages