First, the shell output trying to use /etc/init.d/weewx start:
###############################################
pi@raspberrypi:~ $ sudo sh -x /etc/init.d/weewx start
+ PATH=/sbin:/usr/sbin:/bin:/usr/bin
+ DESC=weewx weather system
+ NAME=weewx
+ WEEWX_BIN=/home/weewx/bin/weewxd
+ WEEWX_CFG=/home/weewx/weewx.conf
+ WEEWX_PID=/var/run/weewx.pid
+ WEEWX_USER=root
+ [ -r /etc/default/weewx ]
+ . /etc/default/weewx
+ WEEWX_PYTHON=python3
+ WEEWX_PYTHON_ARGS=
+ WEEWX_BINDIR=/usr/share/weewx
+ WEEWX_BIN=/usr/bin/weewxd
+ WEEWX_CFG=/etc/weewx/weewx.conf
+ [ -x /usr/bin/weewxd ]
+ DAEMON=/usr/bin/weewxd
+ DAEMON_ARGS=--daemon --pidfile=/var/run/weewx.pid /etc/weewx/weewx.conf
+ . /lib/init/vars.sh
+ TMPTIME=0
+ SULOGIN=no
+ DELAYLOGIN=no
+ UTC=yes
+ VERBOSE=no
+ FSCKFIX=no
+ [ -f /etc/default/rcS ]
+ unset EDITMOTD
+ unset RAMRUN
+ unset RAMLOCK
+ [ -r /proc/cmdline ]
+ cat /proc/cmdline
+ [ ]
+ [ ]
+ . /lib/lsb/init-functions
+ run-parts --lsbsysinit --list /lib/lsb/init-functions.d
+ [ -r /lib/lsb/init-functions.d/00-verbose ]
+ . /lib/lsb/init-functions.d/00-verbose
+ [ -r /lib/lsb/init-functions.d/40-systemd ]
+ . /lib/lsb/init-functions.d/40-systemd
+ _use_systemctl=0
+ [ -d /run/systemd/system ]
+ [ -n ]
+ [ weewx = init-d-script ]
+ [ weewx = start ]
+ executable=/etc/init.d/weewx
+ argument=start
+ prog=weewx
+ service=weewx.service
+ systemctl -p LoadState --value show weewx.service
+ state=loaded
+ [ loaded = masked ]
+ [ 7437 -ne 1 ]
+ [ -z ]
+ readlink -f /etc/init.d/weewx
+ [ loaded != not-found ]
+ _use_systemctl=1
+ systemctl -p CanReload --value show weewx.service
+ [ yes = no ]
+ [ 1 = 1 ]
+ set +e
+ set +u
+ systemctl_redirect /etc/init.d/weewx start
+ local s
+ local rc
+ local prog=weewx
+ local command=start
+ s=Starting weewx (via systemctl)
+ service=weewx.service
+ systemctl --quiet is-system-running
+ [ start = status ]
+ log_daemon_msg Starting weewx (via systemctl) weewx.service
+ [ -z Starting weewx (via systemctl) ]
+ log_daemon_msg_pre Starting weewx (via systemctl) weewx.service
+ :
+ [ -z weewx.service ]
+ echo -n Starting weewx (via systemctl): weewx.service
Starting weewx (via systemctl): weewx.service+ log_daemon_msg_post Starting
weewx (via systemctl) weewx.service
+ :
+ systemctl --no-pager start weewx.service
+ rc=0
+ [ start = status ]
+ log_end_msg 0
+ [ -z 0 ]
+ local retval
+ retval=0
+ log_end_msg_pre 0
+ :
+ log_use_fancy_output
+ TPUT=/usr/bin/tput
+ EXPR=/usr/bin/expr
+ [ -t 1 ]
+ [ xxterm != x ]
+ [ xxterm != xdumb ]
+ [ -x /usr/bin/tput ]
+ [ -x /usr/bin/expr ]
+ /usr/bin/tput hpa 60
+ /usr/bin/tput setaf 1
+ [ -z ]
+ FANCYTTY=1
+ true
+ /usr/bin/tput setaf 1
+ RED=
+ /usr/bin/tput setaf 3
+ YELLOW=
+ /usr/bin/tput op
+ NORMAL=
+ [ 0 -eq 0 ]
+ echo .
.
+ log_end_msg_post 0
+ :
+ return 0
+ return 0
+ exit 0
pi@raspberrypi:~ $
###############################################
It looks like part way through the script it eventually tries to run
systemctl to start the service.
weewx was installed with:
sudo apt-get install weewx
The installation script _does_ run weewxd, but of course the distribution
config file (/etc/weewx/weewx.conf) isn't right for my hardware. It's at
this point I try to exercise the stop & start methods after editing
weewx.conf.
systemctl status gives this. The errors listed at the end seem to be left
over from trying to copy the 3.1 weewx.conf lat/lon syntax into the current
file (current config file seems to use separate lat & lon lines instead).
###############################################
pi@raspberrypi:~ $ sudo systemctl status weewx
weewx.service - LSB: weewx weather system
Loaded: loaded (/etc/init.d/weewx; generated)
Active: active (exited) since Thu 2023-02-09 19:38:04 MST; 1 day 16h
ago
Docs: man:systemd-sysv-generator(8)
Process: 4056 ExecStart=/etc/init.d/weewx start (code=exited,
status=0/SUCCESS)
CPU: 575ms
Feb 09 19:38:10 raspberrypi python3[4070]: weewx[4070] CRITICAL __main__:
**** could not convert string to float: '34.945 -1>
Feb 09 19:38:10 raspberrypi python3[4070]: weewx[4070] CRITICAL __main__:
**** Traceback (most recent call last):
Feb 09 19:38:10 raspberrypi python3[4070]: weewx[4070] CRITICAL __main__:
**** File "/usr/share/weewx/weewxd", line 148, i>
Feb 09 19:38:10 raspberrypi python3[4070]: weewx[4070] CRITICAL __main__:
**** engine = weewx.engine.StdEngine(config_di>
Feb 09 19:38:10 raspberrypi python3[4070]: weewx[4070] CRITICAL __main__:
**** File "/usr/share/weewx/weewx/engine.py", li>
Feb 09 19:38:10 raspberrypi python3[4070]: weewx[4070] CRITICAL __main__:
**** self.stn_info = weewx.station.StationInfo>
Feb 09 19:38:10 raspberrypi python3[4070]: weewx[4070] CRITICAL __main__:
**** File "/usr/share/weewx/weewx/station.py", l>
Feb 09 19:38:10 raspberrypi python3[4070]: weewx[4070] CRITICAL __main__:
**** self.latitude_f = float(stn_dict['la>
Feb 09 19:38:10 raspberrypi python3[4070]: weewx[4070] CRITICAL __main__:
**** ValueError: could not convert string to float>
Feb 09 19:38:10 raspberrypi python3[4070]: weewx[4070] CRITICAL __main__:
**** Exiting.
###############################################
Trying to start it with systemctl gives no messages (also tried w/o
--no-pager option):
sudo systemctl --no-pager start weewx.service
Nothing in /var/log/syslog, either.
On Thursday, February 9, 2023 at 9:19:54 PM UTC-7 vince wrote:
> On Thursday, February 9, 2023 at 7:26:57 PM UTC-8 [email protected]
> wrote:
> If it helps I can post whatever log files would be helpful.
>
> We'd need to know if you did a dpkg installation or a setup.py
> installation.
>
> It always helps to post log files.
>
> Try "systemctl status weewx" and see what it says for starters.
>
>
--
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/3f233909-ac71-49f0-9eef-bcd5ccd7cab5n%40googlegroups.com.