It has been working for a few days and after an adjustment in the weewx.conf to upload the data with ftp weewx will not start anymore and I get this message.
pi@weewx:~ $ sudo systemctl start weewx pi@weewx:~ $ wget -qO - https://raw.githubusercontent.com/vinceskahan/weewx-quickconfig/main/quickconfig.bash | bash basic system configuration: os = Debian GNU/Linux 12 (bookworm) arch = arm64 looking for weewx installations /home/weewx: false /etc/weewx: true /home//weewx-venv: false installed weewx package: weewx_pkg = 5.1.0-4 installed weewx pip version: version = (none installed) running weewx processes: python3 /usr/share/weewx/weewxd.py /etc/weewx/weewx.conf pi@weewx:~ $ sudo journalctl -u weewx Jul 01 21:16:00 weewx systemd[1]: Started weewx.service - WeeWX. Jul 01 21:16:00 weewx weewxd[2001]: INFO __main__: Initializing weewxd version 5.1.0 Jul 01 21:16:00 weewx weewxd[2001]: INFO __main__: Command line: /usr/share/weewx/weewxd.py /etc/weewx/weewx.conf Jul 01 21:16:00 weewx weewxd[2001]: INFO __main__: Using Python: 3.11.2 (main, Nov 30 2024, 21:22:50) [GCC 12.2.0] Jul 01 21:16:00 weewx weewxd[2001]: INFO __main__: Located at: /usr/bin/python3 Jul 01 21:16:00 weewx weewxd[2001]: INFO __main__: Platform: Linux-6.12.25+rpt-rpi-2712-aarch64-with-glibc2.36 Jul 01 21:16:00 weewx weewxd[2001]: INFO __main__: Locale: 'en_GB.UTF-8' Jul 01 21:16:00 weewx weewxd[2001]: INFO __main__: Entry path: /usr/share/weewx/weewxd.py Jul 01 21:16:00 weewx weewxd[2001]: INFO __main__: WEEWX_ROOT: /etc/weewx Jul 01 21:16:00 weewx weewxd[2001]: INFO __main__: Config file: /etc/weewx/weewx.conf Jul 01 21:16:00 weewx weewxd[2001]: INFO __main__: User module: /etc/weewx/bin/user Jul 01 21:16:00 weewx weewxd[2001]: INFO __main__: Debug: 1 Jul 01 21:16:00 weewx weewxd[2001]: INFO __main__: User: weewx Jul 01 21:16:00 weewx weewxd[2001]: INFO __main__: Group: weewx Jul 01 21:16:00 weewx weewxd[2001]: INFO __main__: Groups: weewx Jul 01 21:16:00 weewx weewxd[2001]: DEBUG __main__: loop_on_init: False Jul 01 21:16:00 weewx weewxd[2001]: DEBUG __main__: Initializing engine Jul 01 21:16:00 weewx weewxd[2001]: INFO weewx.engine: Loading station type TE923 (weewx.drivers.te923) Jul 01 21:16:00 weewx weewxd[2001]: INFO weewx.drivers.te923: driver version is 0.41.1 Jul 01 21:16:00 weewx weewxd[2001]: INFO weewx.drivers.te923: polling interval is 10 Jul 01 21:16:00 weewx weewxd[2001]: INFO weewx.drivers.te923: sensor map is {'windLinkStatus': 'link_wind', 'windBatteryStatus': 'bat_wind', 'rainLinkStatus> Jul 01 21:16:00 weewx weewxd[2001]: INFO weewx.drivers.te923: Found device on USB bus= device= Jul 01 21:16:00 weewx weewxd[2001]: DEBUG weewx.drivers.te923: read: address 0x0000fc Jul 01 21:16:02 weewx weewxd[2001]: ERROR weewx.drivers.te923: Failed attempt 1 of 5 to read data: [Errno 110] Operation timed out Jul 01 21:16:02 weewx weewxd[2001]: DEBUG weewx.drivers.te923: Waiting 3 seconds before retry Jul 01 21:16:05 weewx weewxd[2001]: DEBUG weewx.drivers.te923: read: 5a 82 00 05 7f 55 61 01 12 01 ff ff ff ff ff ff ff ff ff ff ff 96 ff ff ff ff ff ff ff > Jul 01 21:16:05 weewx weewxd[2001]: ERROR weewx.drivers.te923: Unrecognised memory size '130' Jul 01 21:16:05 weewx weewxd[2001]: ERROR weewx.engine: Import of driver failed: Unrecognised memory size '130' (<class 'weewx.WeeWxIOError'>) Jul 01 21:16:05 weewx weewxd[2001]: CRITICAL weewx.engine: **** Traceback (most recent call last): Jul 01 21:16:05 weewx weewxd[2001]: CRITICAL weewx.engine: **** File "/usr/share/weewx/weewx/engine.py", line 115, in setupStation Jul 01 21:16:05 weewx weewxd[2001]: CRITICAL weewx.engine: **** self.console = loader_function(config_dict, self) Jul 01 21:16:05 weewx weewxd[2001]: CRITICAL weewx.engine: **** ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Jul 01 21:16:05 weewx weewxd[2001]: CRITICAL weewx.engine: **** File "/usr/share/weewx/weewx/drivers/te923.py", line 454, in loader Jul 01 21:16:05 weewx weewxd[2001]: CRITICAL weewx.engine: **** return TE923Driver(**config_dict[DRIVER_NAME]) Jul 01 21:16:05 weewx weewxd[2001]: CRITICAL weewx.engine: **** ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Jul 01 21:16:05 weewx weewxd[2001]: CRITICAL weewx.engine: **** File "/usr/share/weewx/weewx/drivers/te923.py", line 1135, in __init__ Jul 01 21:16:05 weewx weewxd[2001]: CRITICAL weewx.engine: **** self.station.open() Jul 01 21:16:05 weewx weewxd[2001]: CRITICAL weewx.engine: **** File "/usr/share/weewx/weewx/drivers/te923.py", line 1555, in open Jul 01 21:16:05 weewx weewxd[2001]: CRITICAL weewx.engine: **** self.read_memory_size() Jul 01 21:16:05 weewx weewxd[2001]: CRITICAL weewx.engine: **** File "/usr/share/weewx/weewx/drivers/te923.py", line 1764, in read_memory_size lines 1-40 No syslog file is created Who can help me with this Op zaterdag 28 juni 2025 om 21:17:49 UTC+2 schreef Koen Huisbrink: > I don't understand what happened but now index.html is present and I can > access it locally with the browser. > > [image: Schermafbeelding 2025-06-28 om 21.17.05.png] > Op zaterdag 28 juni 2025 om 21:10:52 UTC+2 schreef Koen Huisbrink: > >> Okay, I'll try again >> >> pi@weewx:~ $ wget -qO - >> https://raw.githubusercontent.com/vinceskahan/weewx-quickconfig/main/quickconfig.bash >> >> | bash >> >> basic system configuration: >> os = Debian GNU/Linux 12 (bookworm) >> arch = arm64 >> >> looking for weewx installations >> /home/weewx: false >> /etc/weewx: true >> /home//weewx-venv: false >> >> installed weewx package: >> weewx_pkg = 5.1.0-4 >> >> installed weewx pip version: >> version = (none installed) >> >> running weewx processes: >> python3 /usr/share/weewx/weewxd.py /etc/weewx/weewx.conf >> >> Op zaterdag 28 juni 2025 om 21:05:24 UTC+2 schreef vince: >> >>> You have to pipe it to a shell. You only ran half of the command. >>> >>> This should be all on one line. >>> >>> wget -qO - >>> https://raw.githubusercontent.com/vinceskahan/weewx-quickconfig/main/quickconfig.bash >>> >>> | bash >>> >>> >>> On Saturday, June 28, 2025 at 11:27:39 AM UTC-7 Koen Huisbrink wrote: >>> >>>> I ran the script and this is the output >>>> >>>> pi@weewx:~ $ sudo systemctl start weewx >>>> pi@weewx:~ $ wget -qO - >>>> https://raw.githubusercontent.com/vinceskahan/weewx-quickconfig/main/quickconfig.bash >>>> #----------------------------------------------------------- >>>> # this does a quick report of basic os and weewx installations >>>> # to aid in debugging. See the README file for usage >>>> # >>>> # tested on debian, ubuntu, almalinux, freebsd >>>> # and in vagrant as well on those os >>>> # >>>> # this will not work on macos or alpinelinux because >>>> # they are just different for the sake of being different >>>> #----------------------------------------------------------- >>>> >>>> DPKG_PRESENT=`which dpkg 2>/dev/null` >>>> YUM_PRESENT=`which yum 2>/dev/null` >>>> ARCH_PRESENT=`which arch 2>/dev/null` >>>> RPM_PRESENT=`which rpm 2>/dev/null` >>>> UNAME=`uname` >>>> >>>> # we supersede this on debian systems because on pi it reports >>>> # incorrectly yet dpkg knows what is really running >>>> if [ "x${ARCH_PRESENT}" != "x" ] >>>> then >>>> ARCH=`arch` >>>> else >>>> ARCH=`uname -p` # freebsd >>>> fi >>>> >>>> # we will assume os-release is present rather than >>>> # rely on lsb_release which we know is not always present >>>> if [ -f /etc/os-release ] >>>> then >>>> source /etc/os-release >>>> fi >>>> >>>> if [ "x${DPKG_PRESENT}" != "x" ] >>>> then >>>> # debian systems >>>> >>>> # supersede the 'arch' command because on a pi it reports >>>> # the wrong thing, but dpkg knows reality >>>> ARCH=`dpkg --print-architecture` >>>> >>>> VERSION=`cat /etc/debian_version` >>>> >>>> INSTALLED_WEEWX_PKG=`dpkg -l | grep weewx | awk '{print $3}'` >>>> if [ "x${INSTALLED_WEEWX_PKG}" = "x" ] >>>> then >>>> INSTALLED_WEEWX_PKG="no_pkg_installed" >>>> fi >>>> >>>> elif [ "x${RPM_PRESENT}" != "x" ] >>>> then >>>> # redhat systems >>>> INSTALLED_WEEWX_PKG=`rpm -q weewx` >>>> if [ "x${INSTALLED_WEEWX_PKG}" = "x" ] >>>> then >>>> INSTALLED_WEEWX_PKG="no_pkg_installed" >>>> fi >>>> else >>>> INSTALLED_WEEWX_PKG="not_available_for_this_os" >>>> fi >>>> >>>> #----------------------------------------- >>>> # look for weewx in a few likely places >>>> #----------------------------------------- >>>> >>>> # v4 pip >>>> if [ -d /home/weewx ] >>>> then >>>> HOME_WEEWX_EXISTS="true" >>>> else >>>> HOME_WEEWX_EXISTS="false" >>>> fi >>>> >>>> # pkg >>>> if [ -d /etc/weewx ] >>>> then >>>> ETC_WEEWX_EXISTS="true" >>>> else >>>> ETC_WEEWX_EXISTS="false" >>>> fi >>>> >>>> # v5 pip pi or vagrant users >>>> if [ -d /home/pi/weewx-venv ] >>>> then >>>> HOME_VENV_EXISTS="true" >>>> FOUNDUSER="pi" >>>> elif [ -d /home/vagrant/weewx-venv ] >>>> then >>>> HOME_VENV_EXISTS="true" >>>> FOUNDUSER="vagrant" >>>> else >>>> HOME_VENV_EXISTS="false" >>>> FOUNDUSER="" >>>> fi >>>> >>>> # TODO: this could even output JSON if needed >>>> # TODO: this could even output JSON if needed >>>> # TODO: this could even output JSON if needed >>>> # TODO: this could even output JSON if needed >>>> >>>> echo "" >>>> echo "basic system configuration:" >>>> echo " os = ${PRETTY_NAME}" >>>> echo " arch = ${ARCH}" >>>> echo "" >>>> echo "looking for weewx installations" >>>> echo " /home/weewx: ${HOME_WEEWX_EXISTS}" >>>> echo " /etc/weewx: ${ETC_WEEWX_EXISTS}" >>>> if [ "x${FOUNDUSER}" != "" ] >>>> then >>>> echo " /home/${FOUNDUSER}/weewx-venv: ${HOME_VENV_EXISTS}" >>>> fi >>>> echo "" >>>> echo "installed weewx package:" >>>> echo " weewx_pkg = ${INSTALLED_WEEWX_PKG}" >>>> echo "" >>>> >>>> # this attempts to grab the version from the code >>>> # this is a little ugly since there might be multiple python >>>> installations >>>> # and varying weewx versions therein, so do some ugly output for those >>>> cases >>>> if [ ${HOME_VENV_EXISTS} ] >>>> then >>>> echo "installed weewx pip version:" >>>> >>>> WEEWX_INIT_FILES=`find >>>> /home/${FOUNDUSER}/weewx-venv/lib/python*/site-packages/weewx/__init__.py >>>> -type f -print 2>/dev/null` >>>> WEEWX_INIT_FILES_COUNT=`find >>>> /home/${FOUNDUSER}/weewx-venv/lib/python*/site-packages/weewx/__init__.py >>>> -type f -print 2>/dev/null | wc -l` >>>> if [ "x${WEEWX_INIT_FILES_COUNT}" = "x0" ] >>>> then >>>> echo " version = (none installed)" >>>> elif [ "x${WEEWX_INIT_FILES_COUNT}" != "x1" ] >>>> then >>>> for f in ${WEEWX_INIT_FILES} >>>> do >>>> echo " in file ${f}" >>>> v=`grep ^__version__ ${f} | awk '{print $3}' | sed -e s/\"//g` >>>> echo " ${v}" >>>> done >>>> else >>>> for f in ${WEEWX_INIT_FILES} >>>> do >>>> # the typical one-python-version-installed is much cleaner >>>> v=`grep ^__version__ ${f} | awk '{print $3}' | sed -e s/\"//g` >>>> echo " version = ${v}" >>>> done >>>> fi >>>> else >>>> HOME_PI_VENV_EXISTS="false" >>>> fi >>>> >>>> #----------------------------------------- >>>> >>>> # ok on linux, not on freebsd >>>> >>>> if [ "${UNAME}" = "FreeBSD" ] >>>> then >>>> # hopefully more portable >>>> RUNNING_WEEWX_PROCESSES=`ps axu | grep weewxd | grep -v grep | awk >>>> '{print $11" "$12" "$13" "$14" "$15}'` >>>> else >>>> RUNNING_WEEWX_PROCESSES=`ps -eo command | grep weewxd | grep -v grep` >>>> fi >>>> >>>> if [ "x${RUNNING_WEEWX_PROCESSES}" = "x" ] >>>> then >>>> RUNNING_WEEWX_PROCESSES=" none" >>>> fi >>>> >>>> echo "" >>>> echo "running weewx processes:" >>>> echo "${RUNNING_WEEWX_PROCESSES}" >>>> echo "" >>>> >>>> Op zaterdag 28 juni 2025 om 20:15:30 UTC+2 schreef Koen Huisbrink: >>>> >>>>> Yes I saw it myself that it was the wrong one. I have tried to install >>>>> weewx in different ways with 2 different sd cards and had this card in >>>>> the >>>>> raspberry. Sorry for the mistake, >>>>> I don't know what the best way is, what do you advise? >>>>> Otherwise I start with a very clean sd card >>>>> >>>>> Op zaterdag 28 juni 2025 om 00:39:44 UTC+2 schreef vince: >>>>> >>>>>> Wild guess here. His first post showed a venv installation. You >>>>>> told him to 'not' reinstall. He then 'did' reinstall with a dpkg >>>>>> installation. Sigh. >>>>>> >>>>>> My guess is something got hosed in udev land somehow in the process. >>>>>> >>>>>> I also note the dpkg log is debug=0 when you told him to run debug=1. >>>>>> Perhaps he has two things running and one did attach to the device (?) >>>>>> >>>>>> I have a quick bash script at >>>>>> https://github.com/vinceskahan/weewx-quickconfig if you wanted to >>>>>> give him a quick command to try to quantify what the heck he has >>>>>> installed >>>>>> and how.... >>>>>> >>>>>> >>>>>> -- 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 visit https://groups.google.com/d/msgid/weewx-user/3664a57b-c009-42bf-bc19-1e84b27a0ebfn%40googlegroups.com.
