Daemon Not Starting

52 views
Skip to first unread message

carter.hu...@gmail.com

unread,
Dec 17, 2020, 5:06:41 AM12/17/20
to weewx-user
Hi,

So I recently had to re-install WeeWx on my Raspberry Pi and setting it up using the setup.py, I’m able to run it via sudo ./bin/weewxd but when I setup the daemon nothing seems to happen. I’m used to get console output saying it started and seeing it in the log but there’s absolutely nothing.

Any ideas?

gjr80

unread,
Dec 17, 2020, 5:26:38 AM12/17/20
to weewx-user
Yes, post the exact commands you entered to set up the service as well as the exact responses received on the console.

Gary

Carter Humphreys

unread,
Dec 17, 2020, 5:43:50 AM12/17/20
to weewx...@googlegroups.com
Commands:
cd /home/pi/EW5321
sudo cp util/init.d/weewx.debian /etc/init.d/weewx 
sudo chmod +x /etc/init.d/weewx 
sudo update-rc.d weewx defaults 98
sudo /etc/init.d/weewx start

This is all that shows in the log, even with the debug option set:
Dec 17 05:42:31 raspberrypi-1 systemd[1]: Reloading.

--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/6w9Ulx1e_UM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/dc9d6cb0-533a-4ddc-953a-90747138fd68n%40googlegroups.com.
--
--
Carter J. Humphreys
B.S. Meteorology, State University of New York at Oswego '20
A.S. Computer Science, Finger Lakes Community College '19

gjr80

unread,
Dec 17, 2020, 6:02:35 AM12/17/20
to weewx-user
Aha, you've installed WeeWX to other than /home/weewx and the WeeWX startup script you copied to /etc/init.d/weewx is set to look for WeeWX in /home/weewx.

No problems, the script is designed to allow overrides. I haven't used them (overrides) before but I *believe* what you need to do is create a file /etc/default/weewx with the following contents:

WEEWX_BIN=/home/pi/EW5321/bin/weewxd

Gary

Carter Humphreys

unread,
Dec 17, 2020, 6:22:02 AM12/17/20
to weewx...@googlegroups.com
Looks like that got me a little closer, I got the normal [ ok ] Starting weewx (via systemctl): weewx.service. console output but it doesn’t seem to be doing much according to the log:

Dec 17 06:20:42 raspberrypi-1 systemd[1]: Starting LSB: weewx weather system...
Dec 17 06:20:42 raspberrypi-1 weewx[769] INFO __main__: Initializing weewx version 4.2.0
Dec 17 06:20:42 raspberrypi-1 weewx[769] INFO __main__: Using Python 3.7.3 (default, Jul 25 2020, 13:03:44) #012[GCC 8.3.0]
Dec 17 06:20:42 raspberrypi-1 weewx[769] INFO __main__: Platform Linux-5.4.79-v7l+-armv7l-with-debian-10.6
Dec 17 06:20:42 raspberrypi-1 weewx[769] INFO __main__: Locale is 'en_US.UTF-8'
Dec 17 06:20:42 raspberrypi-1 weewx[769] INFO __main__: PID file is /var/run/weewx.pid
Dec 17 06:20:42 raspberrypi-1 weewx[759]: Starting weewx weather system: weewx.
Dec 17 06:20:42 raspberrypi-1 systemd[1]: Started LSB: weewx weather system.

And that’s all that happens.

gjr80

unread,
Dec 17, 2020, 6:29:18 AM12/17/20
to weewx-user
Try adding the following to /etc/default/weewx:

WEEWX_CFG=/home/pi/EW5321/weewx.conf

Assuming of course that is where your weewx.conf is.

Gary

Carter Humphreys

unread,
Dec 17, 2020, 6:33:18 AM12/17/20
to weewx...@googlegroups.com
That did the trick!  Thank you so much Gary!

Carter

gjr80

unread,
Dec 17, 2020, 6:34:25 AM12/17/20
to weewx-user
Good! We both learnt something tonite.

Gary

Carter Humphreys

unread,
Dec 17, 2020, 6:36:11 AM12/17/20
to weewx...@googlegroups.com
Yup! When I had it setup before I left it as the default so it worked fine then. Makes sense now.

Reply all
Reply to author
Forward
0 new messages