weewx 4.3.0 + weewx-multi + python3

114 views
Skip to first unread message

stef LP

unread,
Jan 13, 2021, 4:15:40 PM1/13/21
to weewx-development
Hello 
I reinstall from scratch my raspberry Pi 
I decided to install python3 by default
I decided to install weewx 4.3.0 latest release

But  I decided to install weewx-multi ( i ve 2 stations  an old WMR200 with the good driver) 
and a new Froggit)
I install weewx-multi 
But  It seems there is a little bug when I want to stop service ...
When I start  : 

root@rpi-weewx:/etc/init.d# systemctl status weewx.service
● weewx.service - LSB: weewx-multi
   Loaded: loaded (/etc/init.d/weewx; generated)
   Active: failed (Result: exit-code) since Wed 2021-01-13 22:12:26 CET; 7s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 6148 ExecStart=/etc/init.d/weewx start (code=exited, status=1/FAILURE)
    Tasks: 6 (limit: 2063)
   CGroup: /system.slice/weewx.service
           └─6163 python /usr/share/weewx/weewxd --daemon --log-label weewx-WMR200 --pidfile=/var/run/weewx-WMR200.pid /etc/weewx/WMR200.conf

janv. 13 22:12:27 rpi-weewx python[6163]: weewx-WMR200[6163] INFO weewx.restx: WOW: Posting not enabled.
janv. 13 22:12:27 rpi-weewx python[6163]: weewx-WMR200[6163] INFO weewx.restx: AWEKAS: Posting not enabled.
janv. 13 22:12:27 rpi-weewx python[6163]: weewx-WMR200[6163] INFO __main__: Starting up weewx version 4.3.0
janv. 13 22:12:27 rpi-weewx python[6163]: weewx-WMR200[6163] INFO weewx.engine: Using binding 'wx_binding' to database 'weewx-WMR200.sdb'
janv. 13 22:12:27 rpi-weewx python[6163]: weewx-WMR200[6163] INFO weewx.manager: Starting backfill of daily summaries
janv. 13 22:12:28 rpi-weewx python[6163]: weewx-WMR200[6163] INFO user.wmr200: Time drift between host and console in seconds:29
janv. 13 22:12:32 rpi-weewx python[6163]: weewx-WMR200[6163] INFO user.wmr200: genStartup() Still receiving archive packets cnt:0 len:1
janv. 13 22:12:32 rpi-weewx python[6163]: weewx-WMR200[6163] INFO user.wmr200: Using pc time adjusting archive record time by 29 sec 2021-01-13 06:21:00 CET (1610515260) => 2021-01-13 06:21:29 CET (1610515289)
janv. 13 22:12:32 rpi-weewx python[6163]: weewx-WMR200[6163] INFO weewx.manager: Added record 2021-01-13 06:21:29 CET (1610515289) to database 'weewx-WMR200.sdb'
janv. 13 22:12:32 rpi-weewx python[6163]: weewx-WMR200[6163] INFO weewx.manager: Added record 2021-01-13 06:21:29 CET (1610515289) to daily summary in 'weewx-WMR200.sdb'


 this is important i thing  :  
6163 python /usr/share/weewx/weewxd --daemon --log-label weewx-WMR200 --pidfile=/var/run/weewx-WMR200.pid /etc/weewx/WMR200.conf  

But When I want to stop the weewx service 
never this PID is killed ;-( ...

Perhaps I ve make some mistakes

Someone help me ? 
Best regards
Stéphane

stef LP

unread,
Jan 17, 2021, 3:44:56 PM1/17/21
to weewx-development
Hello  back 
Nobody has this problem ? 

Process: 6148 ExecStart=/etc/init.d/weewx start (code=exited, status=1/FAILURE) 

Every time I want to stop service , I must kill the process...

Thanks for your feedback  
Stéphane 

Susan Mackay

unread,
Jan 26, 2021, 9:53:48 PM1/26/21
to weewx-development
Don't forget that the systemctl .service that is being used is automatically being generated by systemctl form the SysV file.
There may be something in the SysV file that you can add to make it stop the daemon correctly.
Alternatively you can create a systemctl .service file yourself that has the necessary command line in it(something like "ExecReload=/bin/kill -HUP $MAINPID" where MAINPID is automatically set by systemctl to be the PID of the running daemon.)
Susan

Reply all
Reply to author
Forward
0 new messages