Failed re-Installation

69 views
Skip to first unread message

Stephen Rogers

unread,
Aug 16, 2022, 1:29:22 PM8/16/22
to weewx-user
I am currently unable to install  weewx on my Pi4 running Raspbian Buster.  I removed and purged the prior install since I wanted to start fresh, having had various issues along the way.

Here is the current status:
● weewx.service - weewx weather system
   Loaded: loaded (/etc/systemd/system/weewx.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Tue 2022-08-16 10:09:01 PDT; 1min 2s ago
 Main PID: 5772 (code=exited, status=203/EXEC)

Aug 16 10:09:01 Ringo systemd[1]: Started weewx weather system.
Aug 16 10:09:01 Ringo systemd[5772]: weewx.service: Failed to execute command: No such file or directory
Aug 16 10:09:01 Ringo systemd[5772]: weewx.service: Failed at step EXEC spawning /home/weewx/bin/weewxd: No such file or directory
Aug 16 10:09:01 Ringo systemd[1]: weewx.service: Main process exited, code=exited, status=203/EXEC
Aug 16 10:09:01 Ringo systemd[1]: weewx.service: Failed with result 'exit-code'.

I can see from the logs that weewx thinks the binary weewxd is located in /home/weewx/bin/.  this isn't right is it?


2022-08-16_10-16-59.jpg

vince

unread,
Aug 16, 2022, 1:40:51 PM8/16/22
to weewx-user
Did you perhaps install the second time using the dpkg (not setup.py) method ?

If you used setup.py, did you skip doing a 'sudo python3 setup.py install' after the 'python3 setup.py build' step ?

The locations of stuff differs depending on which way you installed things.  Where things are located is in the User's Guide (link)

Stephen Rogers

unread,
Aug 16, 2022, 2:15:50 PM8/16/22
to weewx-user
Hmmm.  I just followed the directions on this page: https://weewx.com/docs/debian.htm, which says it is for installing on Debian systems.

OK I need to go to Installation using setup.py it looks like.  I found that page here: https://weewx.com/docs/setup.htm.  What are these other instructions above?  

Stephen Rogers

unread,
Aug 16, 2022, 2:53:50 PM8/16/22
to weewx-user
OK, using the setup.py method, all seems well.  I was using the other method and it did not work per my first message.

Regarding my attempt to use Ubuntu,  in the other thread, the failure I referred to was evidently Ubuntu crashing and corrupting ability to boot.  I simply re-used my Raspbian SD and started over with WeeWx using the same Pi4.  Now up and running.  Whew.

vince

unread,
Aug 16, 2022, 3:03:32 PM8/16/22
to weewx-user
You're overthinking.  Pick a method (dpkg or setup.py) and stick with it.  It's that easy.

Stephen Rogers

unread,
Aug 17, 2022, 12:31:18 PM8/17/22
to weewx-user
I now have WeeWx  running on Pi4 / Raspbian, and for the first time am using RSYNC to push the HTML report to cloud hosting instead of FTP, which was my goal.

The SSH key authentication required for RSYNC was tricky for me, partly because I use Windows for development and Linux for both WeeWx and for the cloud hosting.  Subtleties lurk about. Here is a very nice video that helped me get through it: https://www.youtube.com/watch?v=33dEcCKGBO4  

Since WeeWx normally runs as root SSH keys have to be installed under the root user on the WeeWx host.

Tom Keffer

unread,
Aug 17, 2022, 3:47:32 PM8/17/22
to weewx...@googlegroups.com
With systemd, running as a non-root user is very easy. See the wiki article on running WeeWX under systemd:


--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/e1b25aa7-82d3-495a-8841-a4d82da26b8cn%40googlegroups.com.
--
-tk
Reply all
Reply to author
Forward
0 new messages