Upgrade to 5.0.x does not start

415 views
Skip to first unread message

geni08...@gmail.com

unread,
Feb 11, 2024, 3:59:41 PM2/11/24
to weewx-user
My input on Raspi4

sudo apt update
sudo apt install weewx
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
weewx ist schon die neueste Version (4.10.2-1).
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.

What am I doing wrong

vince

unread,
Feb 11, 2024, 4:22:27 PM2/11/24
to weewx-user

matthew wall

unread,
Feb 11, 2024, 5:34:03 PM2/11/24
to weewx-user
On Sunday, February 11, 2024 at 10:59:41 AM UTC-5 geni08...@gmail.com wrote:
weewx ist schon die neueste Version (4.10.2-1).
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.

which operating system are you using?

weewx v5 will install from a debian package only on debian 10 or later.  if you are using debian 10 or later, be sure that your apt config (/etc/apt/sources.list.d/weewx.list) refers to python3, not python2.

m

geni08...@gmail.com

unread,
Feb 12, 2024, 8:35:38 AM2/12/24
to weewx-user
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

matthew wall

unread,
Feb 12, 2024, 12:25:03 PM2/12/24
to weewx-user
On Monday, February 12, 2024 at 3:35:38 AM UTC-5 geni08...@gmail.com wrote:
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"

good! and what is the content of weewx.list?

    cat /etc/apt/sources.list.d/weewx.list

 and what is the upgrade/update policy for yoiur machine?

    apt-cache policy

geni08...@gmail.com

unread,
Feb 12, 2024, 2:01:52 PM2/12/24
to weewx-user
# deb [arch=all] http://weewx.com/apt/python3 buster main # disabled on upgrade to jammy
and
Paketdateien:
 100 /var/lib/dpkg/status
     release a=now
 500 http://archive.raspberrypi.org/debian bullseye/main armhf Packages
     release o=Raspberry Pi Foundation,a=oldstable,n=bullseye,l=Raspberry Pi Foundation,c=main,b=armhf
     origin archive.raspberrypi.org
 500 http://archive.raspberrypi.org/debian bullseye/main arm64 Packages
     release o=Raspberry Pi Foundation,a=oldstable,n=bullseye,l=Raspberry Pi Foundation,c=main,b=arm64
     origin archive.raspberrypi.org
 500 http://deb.debian.org/debian bullseye-updates/main armhf Packages
     release v=11-updates,o=Debian,a=oldstable-updates,n=bullseye-updates,l=Debian,c=main,b=armhf
     origin deb.debian.org
 500 http://deb.debian.org/debian bullseye-updates/main arm64 Packages
     release v=11-updates,o=Debian,a=oldstable-updates,n=bullseye-updates,l=Debian,c=main,b=arm64
     origin deb.debian.org
 500 http://security.debian.org/debian-security bullseye-security/main armhf Packages
     release v=11,o=Debian,a=oldstable-security,n=bullseye-security,l=Debian-Security,c=main,b=armhf
     origin security.debian.org
 500 http://security.debian.org/debian-security bullseye-security/main arm64 Packages
     release v=11,o=Debian,a=oldstable-security,n=bullseye-security,l=Debian-Security,c=main,b=arm64
     origin security.debian.org
 500 http://deb.debian.org/debian bullseye/non-free armhf Packages
     release v=11.9,o=Debian,a=oldstable,n=bullseye,l=Debian,c=non-free,b=armhf
     origin deb.debian.org
 500 http://deb.debian.org/debian bullseye/non-free arm64 Packages
     release v=11.9,o=Debian,a=oldstable,n=bullseye,l=Debian,c=non-free,b=arm64
     origin deb.debian.org
 500 http://deb.debian.org/debian bullseye/contrib armhf Packages
     release v=11.9,o=Debian,a=oldstable,n=bullseye,l=Debian,c=contrib,b=armhf
     origin deb.debian.org
 500 http://deb.debian.org/debian bullseye/contrib arm64 Packages
     release v=11.9,o=Debian,a=oldstable,n=bullseye,l=Debian,c=contrib,b=arm64
     origin deb.debian.org
 500 http://deb.debian.org/debian bullseye/main armhf Packages
     release v=11.9,o=Debian,a=oldstable,n=bullseye,l=Debian,c=main,b=armhf
     origin deb.debian.org
 500 http://deb.debian.org/debian bullseye/main arm64 Packages
     release v=11.9,o=Debian,a=oldstable,n=bullseye,l=Debian,c=main,b=arm64
     origin deb.debian.org
Mit Pinning verwaltete Pakete:

gary....@gmail.com

unread,
Feb 12, 2024, 2:21:08 PM2/12/24
to weewx-user
Your weewx repository has been disabled.
I'd remove the entry and re-create it. From what I've read, you may need to get the signing keys as well.

geni08...@gmail.com

unread,
Feb 12, 2024, 2:53:19 PM2/12/24
to weewx-user
How can I fix this?

vince

unread,
Feb 12, 2024, 4:49:04 PM2/12/24
to weewx-user
Uncomment that line in the file

geni08...@gmail.com

unread,
Feb 12, 2024, 5:00:41 PM2/12/24
to weewx-user
@vince
Which line should I uncomment in which file

Tom Keffer

unread,
Feb 12, 2024, 5:07:14 PM2/12/24
to weewx...@googlegroups.com
It would be easiest if you just followed the directions in the Debian quick start guide again. It will cause the correct line to be put in /etc/apt/sources.list.d

-tk

--
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/52f1d268-f38d-41d6-a387-b679f29e881an%40googlegroups.com.

geni08...@gmail.com

unread,
Feb 13, 2024, 9:13:27 AM2/13/24
to weewx-user
The third time I tried the Apt configuration, it found weewx.
The installation worked so far except for the dpkg: Warnung: Altes Verzeichnis.
Unfortunately, weewx did not react after that and a reboot did not work anymore.
Now I have to restore the backup and try again.
What went wrong?

pi@Wetter-Raspi4:~ $ sudo apt install -y wget gnupg
wget -qO - https://weewx.com/keys.html | \
    sudo gpg --dearmor --output /etc/apt/trusted.gpg.d/weewx.gpg

Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
gnupg ist schon die neueste Version (2.2.27-2+deb11u2).
wget ist schon die neueste Version (1.21-1+deb11u1).

0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
Datei '/etc/apt/trusted.gpg.d/weewx.gpg' existiert bereits. Überschreiben (j/N)? j
pi@Wetter-Raspi4:~ $ echo "deb [arch=all] https://weewx.com/apt/python3 buster main" | \
    sudo tee /etc/apt/sources.list.d/weewx.list
deb [arch=all] https://weewx.com/apt/python3 buster main
pi@Wetter-Raspi4:~ $ sudo apt update
OK:1 http://deb.debian.org/debian bullseye InRelease
Holen:2 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
OK:3 http://security.debian.org/debian-security bullseye-security InRelease
Holen:4 http://archive.raspberrypi.org/debian bullseye InRelease [23.6 kB]
Holen:5 https://weewx.com/apt/python3 buster InRelease [4’252 B]      
Holen:6 http://archive.raspberrypi.org/debian bullseye/main armhf Packages [313 kB]
Holen:7 http://archive.raspberrypi.org/debian bullseye/main arm64 Packages [307 kB]
Holen:8 https://weewx.com/apt/python3 buster/main all Packages [4’988 B]
Es wurden 697 kB in 2 s geholt (315 kB/s).

Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
Aktualisierung für 1 Paket verfügbar. Führen Sie »apt list --upgradable« aus, um es anzuzeigen.
pi@Wetter-Raspi4:~ $ sudo apt install weewx

Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
Vorgeschlagene Pakete:
  sqlite ftp httpd
Die folgenden Pakete werden aktualisiert (Upgrade):
  weewx
1 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
Es müssen 1’556 kB an Archiven heruntergeladen werden.
Nach dieser Operation werden 428 kB Plattenplatz freigegeben.
Holen:1 https://weewx.com/apt/python3 buster/main all weewx all 5.0.2-1 [1’556 kB]
Es wurden 1’556 kB in 13 s geholt (121 kB/s).                                                                                                                                          
Changelogs werden gelesen... Fertig
Vorkonfiguration der Pakete ...
(Lese Datenbank ... 99087 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../archives/weewx_5.0.2-1_all.deb ...
Entpacken von weewx (5.0.2-1) über (4.10.2-1) ...
dpkg: Warnung: Altes Verzeichnis »/usr/share/weewx/user« kann nicht gelöscht werden: Das Verzeichnis ist nicht leer
dpkg: Warnung: Altes Verzeichnis »/etc/weewx/udev/rules.d« kann nicht gelöscht werden: Das Verzeichnis ist nicht leer
dpkg: Warnung: Altes Verzeichnis »/etc/weewx/skins/Standard/smartphone/icons« kann nicht gelöscht werden: Das Verzeichnis ist nicht leer
dpkg: Warnung: Altes Verzeichnis »/etc/weewx/skins/Standard/smartphone« kann nicht gelöscht werden: Das Verzeichnis ist nicht leer
dpkg: Warnung: Altes Verzeichnis »/etc/weewx/skins/Standard/lang« kann nicht gelöscht werden: Das Verzeichnis ist nicht leer
dpkg: Warnung: Altes Verzeichnis »/etc/weewx/skins/Standard/backgrounds« kann nicht gelöscht werden: Das Verzeichnis ist nicht leer
dpkg: Warnung: Altes Verzeichnis »/etc/weewx/skins/Standard/RSS« kann nicht gelöscht werden: Das Verzeichnis ist nicht leer
dpkg: Warnung: Altes Verzeichnis »/etc/weewx/skins/Standard/NOAA« kann nicht gelöscht werden: Das Verzeichnis ist nicht leer
dpkg: Warnung: Altes Verzeichnis »/etc/weewx/skins/Standard« kann nicht gelöscht werden: Das Verzeichnis ist nicht leer
dpkg: Warnung: Altes Verzeichnis »/etc/weewx/skins/Smartphone/lang« kann nicht gelöscht werden: Das Verzeichnis ist nicht leer
dpkg: Warnung: Altes Verzeichnis »/etc/weewx/skins/Smartphone/icons« kann nicht gelöscht werden: Das Verzeichnis ist nicht leer
dpkg: Warnung: Altes Verzeichnis »/etc/weewx/skins/Smartphone« kann nicht gelöscht werden: Das Verzeichnis ist nicht leer
dpkg: Warnung: Altes Verzeichnis »/etc/weewx/skins/Seasons/lang« kann nicht gelöscht werden: Das Verzeichnis ist nicht leer
dpkg: Warnung: Altes Verzeichnis »/etc/weewx/skins/Seasons/font« kann nicht gelöscht werden: Das Verzeichnis ist nicht leer
dpkg: Warnung: Altes Verzeichnis »/etc/weewx/skins/Seasons/NOAA« kann nicht gelöscht werden: Das Verzeichnis ist nicht leer
dpkg: Warnung: Altes Verzeichnis »/etc/weewx/skins/Seasons« kann nicht gelöscht werden: Das Verzeichnis ist nicht leer
dpkg: Warnung: Altes Verzeichnis »/etc/weewx/skins/Rsync« kann nicht gelöscht werden: Das Verzeichnis ist nicht leer
dpkg: Warnung: Altes Verzeichnis »/etc/weewx/skins/Mobile/lang« kann nicht gelöscht werden: Das Verzeichnis ist nicht leer
dpkg: Warnung: Altes Verzeichnis »/etc/weewx/skins/Mobile« kann nicht gelöscht werden: Das Verzeichnis ist nicht leer
dpkg: Warnung: Altes Verzeichnis »/etc/weewx/skins/Ftp« kann nicht gelöscht werden: Das Verzeichnis ist nicht leer
dpkg: Warnung: Altes Verzeichnis »/etc/weewx/skins« kann nicht gelöscht werden: Das Verzeichnis ist nicht leer
dpkg: Warnung: Altes Verzeichnis »/etc/weewx/scripts« kann nicht gelöscht werden: Das Verzeichnis ist nicht leer
dpkg: Warnung: Altes Verzeichnis »/etc/weewx/apache/conf.d« kann nicht gelöscht werden: Das Verzeichnis ist nicht leer
dpkg: Warnung: Altes Verzeichnis »/etc/weewx/apache/conf-available« kann nicht gelöscht werden: Das Verzeichnis ist nicht leer
dpkg: Warnung: Altes Verzeichnis »/etc/weewx/apache« kann nicht gelöscht werden: Das Verzeichnis ist nicht leer
weewx (5.0.2-1) wird eingerichtet ...
Neue Version der Konfigurationsdatei /etc/weewx/import/csv-example.conf wird installiert ...
Neue Version der Konfigurationsdatei /etc/weewx/import/cumulus-example.conf wird installiert ...
Neue Version der Konfigurationsdatei /etc/weewx/import/wd-example.conf wird installiert ...
Neue Version der Konfigurationsdatei /etc/weewx/import/weathercat-example.conf wird installiert ...
Neue Version der Konfigurationsdatei /etc/weewx/import/wu-example.conf wird installiert ...
Neue Version der Konfigurationsdatei /etc/weewx/logrotate.d/weewx wird installiert ...
Neue Version der Konfigurationsdatei /etc/weewx/rsyslog.d/weewx.conf wird installiert ...

Konfigurationsdatei »/etc/weewx/weewx.conf«
 ==> Geändert (von Ihnen oder von einem Skript) seit der Installation.
 ==> Paketverteiler hat eine aktualisierte Version herausgegeben.
   Wie möchten Sie vorgehen? Ihre Wahlmöglichkeiten sind:
    Y oder I : Die Version des Paket-Betreuers installieren
    N oder O : Die momentan installierte Version beibehalten
       D     : Die Unterschiede zwischen den Versionen anzeigen
       Z     : Eine Shell starten, um die Situation zu begutachten
 Der Standardweg ist das Beibehalten der momentanen Version.
*** weewx.conf (Y/I/N/O/D/Z) [Vorgabe=N] ? y
Neue Version der Konfigurationsdatei /etc/weewx/weewx.conf wird installiert ...
Using weewx:weewx as user:group
Saving old defaults to /etc/default/weewx-20240212181854
Creating /etc/default/weewx
Using debconf configuration values from previous install
Using configuration file /etc/weewx/weewx.conf
Processing configuration file /etc/weewx/weewx.conf
Saving configuration file /etc/weewx/weewx.conf
Migrating old extensions to /etc/weewx/bin/user
Saving old extensions to /usr/share/weewx/user-20240212181854
Adding system group weewx...done
Adding system user weewx...done
Adding user pi to group weewx
Installing systemd units
Installing udev rules
Configuring database directory /var/lib/weewx
Configuring reporting directory /var/www/html/weewx
Setting permissions weewx:weewx on /etc/weewx
Enabling startup using systemd
Synchronizing state of weewx.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable weewx
Created symlink /etc/systemd/system/multi-user.target.wants/weewx.service → /lib/systemd/system/weewx.service.
Starting weewxd using systemd
The following files might interfere with the init configuration:
  /etc/init.d/weewx

matthew wall

unread,
Feb 13, 2024, 1:32:41 PM2/13/24
to weewx-user
On Tuesday, February 13, 2024 at 4:13:27 AM UTC-5 geni08...@gmail.com wrote:
The third time I tried the Apt configuration, it found weewx.
The installation worked so far except for the dpkg: Warnung: Altes Verzeichnis.
Unfortunately, weewx did not react after that and a reboot did not work anymore.
Now I have to restore the backup and try again.
What went wrong?

it looks like nothing is wrong with the upgrade.

if weewx is not running, we must see the log messages from weewx.  these will be in the system log (different from the installer log).  this should give some hint about what is happening:

sudo systermctl status weewx

this wiki article has more information about logging:


geni08...@gmail.com

unread,
Feb 16, 2024, 12:43:26 PM2/16/24
to weewx-user
After the restore a new attempt, what is missing?

-- Journal begins at Fri 2024-02-02 10:19:01 CET. --
Feb 16 13:18:47 Wetter-Raspi4 weewxd[416320]: CRITICAL weewx.engine:     ****      self.port.openPort()
Feb 16 13:18:47 Wetter-Raspi4 weewxd[416320]: CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 319, in openPort
Feb 16 13:18:47 Wetter-Raspi4 weewxd[416320]: CRITICAL weewx.engine:     ****      self.serial_port = serial.Serial(self.port, self.baudrate, timeout=self.timeout)
Feb 16 13:18:47 Wetter-Raspi4 weewxd[416320]: CRITICAL weewx.engine:     ****    File "/usr/lib/python3/dist-packages/serial/serialutil.py", line 244, in __init__
Feb 16 13:18:47 Wetter-Raspi4 weewxd[416320]: CRITICAL weewx.engine:     ****      self.open()
Feb 16 13:18:47 Wetter-Raspi4 weewxd[416320]: CRITICAL weewx.engine:     ****    File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 325, in open
Feb 16 13:18:47 Wetter-Raspi4 weewxd[416320]: CRITICAL weewx.engine:     ****      raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))
Feb 16 13:18:47 Wetter-Raspi4 weewxd[416320]: CRITICAL weewx.engine:     ****  serial.serialutil.SerialException: [Errno 13] could not open port /dev/ttyUSB0: [Errno 13] Keine Berechtigung: '/dev/ttyUSB0'
Feb 16 13:18:47 Wetter-Raspi4 weewxd[416320]: CRITICAL __main__: Unable to load driver: [Errno 13] could not open port /dev/ttyUSB0: [Errno 13] Keine Berechtigung: '/dev/ttyUSB0'
Feb 16 13:18:47 Wetter-Raspi4 weewxd[416320]: CRITICAL __main__:     ****  Exiting...

matthew wall

unread,
Feb 16, 2024, 12:47:00 PM2/16/24
to weewx-user
On Friday, February 16, 2024 at 7:43:26 AM UTC-5 geni08...@gmail.com wrote:
After the restore a new attempt, what is missing?

-- Journal begins at Fri 2024-02-02 10:19:01 CET. --
Feb 16 13:18:47 Wetter-Raspi4 weewxd[416320]: CRITICAL weewx.engine:     ****      self.port.openPort()
Feb 16 13:18:47 Wetter-Raspi4 weewxd[416320]: CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 319, in openPort
Feb 16 13:18:47 Wetter-Raspi4 weewxd[416320]: CRITICAL weewx.engine:     ****      self.serial_port = serial.Serial(self.port, self.baudrate, timeout=self.timeout)
Feb 16 13:18:47 Wetter-Raspi4 weewxd[416320]: CRITICAL weewx.engine:     ****    File "/usr/lib/python3/dist-packages/serial/serialutil.py", line 244, in __init__
Feb 16 13:18:47 Wetter-Raspi4 weewxd[416320]: CRITICAL weewx.engine:     ****      self.open()
Feb 16 13:18:47 Wetter-Raspi4 weewxd[416320]: CRITICAL weewx.engine:     ****    File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 325, in open
Feb 16 13:18:47 Wetter-Raspi4 weewxd[416320]: CRITICAL weewx.engine:     ****      raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))
Feb 16 13:18:47 Wetter-Raspi4 weewxd[416320]: CRITICAL weewx.engine:     ****  serial.serialutil.SerialException: [Errno 13] could not open port /dev/ttyUSB0: [Errno 13] Keine Berechtigung: '/dev/ttyUSB0'
Feb 16 13:18:47 Wetter-Raspi4 weewxd[416320]: CRITICAL __main__: Unable to load driver: [Errno 13] could not open port /dev/ttyUSB0: [Errno 13] Keine Berechtigung: '/dev/ttyUSB0'
Feb 16 13:18:47 Wetter-Raspi4 weewxd[416320]: CRITICAL __main__:     ****  Exiting...

the error indicates that the weewxd process does not have permission to read/write the USB-to-serial device.  make sure that the user running weewxd has read/write permission to /dev/ttyUSB0 (which is probably a USB-to-serial adapter).

for example, if user 'weewx' is running weewxd, then put the weewx user into the dialout group then restart weewxd:

sudo usermod -aG dialout weewx
sudo systemctl restart weewx

see the section about reading/writing to devices in the wiki article "what you need to know about permissions":


geni08...@gmail.com

unread,
Feb 16, 2024, 12:57:08 PM2/16/24
to weewx-user
where can i see which user starts weewxd?
It worked with weewx

matthew wall

unread,
Feb 16, 2024, 1:44:24 PM2/16/24
to weewx-user
On Friday, February 16, 2024 at 7:57:08 AM UTC-5 geni08...@gmail.com wrote:
where can i see which user starts weewxd?

if weewxd is running, do this:

ps aux | grep weewxd

the first word is the user running weewxd

if weewxd is not running, then check the value for 'User' in the systemd unit file

# if you installed using DEB/RPM:
grep User /usr/lib/systemd/system/weewx.service

# if you installed using pip:
grep User /etc/systemd/system/weewx.service

m

geni08...@gmail.com

unread,
Feb 16, 2024, 3:13:19 PM2/16/24
to weewx-user
I have used this


sudo usermod -aG dialout weewx
sudo systemctl restart weewx

Weewx is running but there is another authorization problem


Feb 16 16:10:27 Wetter-Raspi4 weewxd[440995]: DEBUG user.rainrate: new_loop(1708096227): Added/updated pkt[rainRate] of 0.000000
Feb 16 16:10:27 Wetter-Raspi4 weewxd[440995]: DEBUG user.sunduration: Calculated LOOP sunshine_time = 2.000000, based on radiation = 90.000000, and threshold = 144.382899
Feb 16 16:10:28 Wetter-Raspi4 weewxd[440995]: DEBUG weewx.manager: Daily summary version is 4.0
Feb 16 16:10:28 Wetter-Raspi4 weewxd[440995]: ERROR weewx.reportengine: Caught unrecoverable exception in generator 'user.belchertown.HighchartsJsonGenerator'
Feb 16 16:10:28 Wetter-Raspi4 weewxd[440995]: ERROR weewx.reportengine:         ****  [Errno 13] Keine Berechtigung: '/var/www/html/weewx/json/24h.json'
Feb 16 16:10:28 Wetter-Raspi4 weewxd[440995]: ERROR weewx.reportengine:         ****  Traceback (most recent call last):
Feb 16 16:10:28 Wetter-Raspi4 weewxd[440995]: ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/reportengine.py", line 220, in run
Feb 16 16:10:28 Wetter-Raspi4 weewxd[440995]: ERROR weewx.reportengine:         ****      obj.start()
Feb 16 16:10:28 Wetter-Raspi4 weewxd[440995]: ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/reportengine.py", line 409, in start
Feb 16 16:10:28 Wetter-Raspi4 weewxd[440995]: ERROR weewx.reportengine:         ****      self.run()
Feb 16 16:10:28 Wetter-Raspi4 weewxd[440995]: ERROR weewx.reportengine:         ****    File "/etc/weewx/bin/user/belchertown.py", line 2817, in run
Feb 16 16:10:28 Wetter-Raspi4 weewxd[440995]: Traceback (most recent call last):
Feb 16 16:10:28 Wetter-Raspi4 weewxd[440995]:   File "/usr/share/weewx/weewx/reportengine.py", line 220, in run
Feb 16 16:10:28 Wetter-Raspi4 weewxd[440995]:     obj.start()
Feb 16 16:10:28 Wetter-Raspi4 weewxd[440995]:   File "/usr/share/weewx/weewx/reportengine.py", line 409, in start
Feb 16 16:10:28 Wetter-Raspi4 weewxd[440995]:     self.run()
Feb 16 16:10:28 Wetter-Raspi4 weewxd[440995]:   File "/etc/weewx/bin/user/belchertown.py", line 2817, in run
Feb 16 16:10:28 Wetter-Raspi4 weewxd[440995]:     with open(json_filename, mode="w") as jf:
Feb 16 16:10:28 Wetter-Raspi4 weewxd[440995]: PermissionError: [Errno 13] Keine Berechtigung: '/var/www/html/weewx/json/24h.json'
Feb 16 16:10:28 Wetter-Raspi4 weewxd[440995]: ERROR weewx.reportengine:         ****      with open(json_filename, mode="w") as jf:
Feb 16 16:10:28 Wetter-Raspi4 weewxd[440995]: ERROR weewx.reportengine:         ****  PermissionError: [Errno 13] Keine Berechtigung: '/var/www/html/weewx/json/24h.json'
Feb 16 16:10:28 Wetter-Raspi4 weewxd[440995]: ERROR weewx.reportengine:         ****  Generator terminated


and
sudo wee_reports
sudo: wee_reports: Befehl nicht gefunden

michael.k...@gmx.at

unread,
Feb 16, 2024, 3:20:00 PM2/16/24
to weewx-user
The user which ist running weewxd has no permission to generate/modify the resource  "/var/www/html/weewx/json/24h.json"

Feb 16 16:10:28 Wetter-Raspi4 weewxd[440995]: ERROR weewx.reportengine:         ****  [Errno 13] Keine Berechtigung: '/var/www/html/weewx/json/24h.json'


matthew wall

unread,
Feb 16, 2024, 3:35:20 PM2/16/24
to weewx-user
On Friday, February 16, 2024 at 10:13:19 AM UTC-5 geni08...@gmail.com wrote:
Feb 16 16:10:28 Wetter-Raspi4 weewxd[440995]: PermissionError: [Errno 13] Keine Berechtigung: '/var/www/html/weewx/json/24h.json'
Feb 16 16:10:28 Wetter-Raspi4 weewxd[440995]: ERROR weewx.reportengine:         ****      with open(json_filename, mode="w") as jf:
Feb 16 16:10:28 Wetter-Raspi4 weewxd[440995]: ERROR weewx.reportengine:         ****  PermissionError: [Errno 13] Keine Berechtigung: '/var/www/html/weewx/json/24h.json'
Feb 16 16:10:28 Wetter-Raspi4 weewxd[440995]: ERROR weewx.reportengine:         ****  Generator terminated


 
sudo wee_reports
sudo: wee_reports: Befehl nicht gefunden

in WeeWX v5, the tool "wee_reports" has been replaced by "weectl report"

geni08...@gmail.com

unread,
Feb 16, 2024, 4:14:23 PM2/16/24
to weewx-user
Thank you very much, everything seems to be working
Reply all
Reply to author
Forward
0 new messages