Main loop exiting

51 views
Skip to first unread message

ried...@gmail.com

unread,
Apr 13, 2021, 3:34:08 AM4/13/21
to weewx-user
Hello I have had a problem since updating to weewx 4.5.1. Weewx is no longer running. The following error appears in the log.


Apr 13 09:29:03 raspberrypi weewx[519] INFO weewx.engine: Main loop exiting. Shutting engine down.
Apr 13 09:29:03 raspberrypi weewx[519] CRITICAL __main__: Caught WeeWxIOError:
Apr 13 09:29:03 raspberrypi weewx[519] CRITICAL __main__:     ****  Waiting 60 seconds then retrying...

I use the HP1000 driver from https://github.com/AussieSusan/HP1000 I hope someone can help me. 

 Greetings André

ried...@gmail.com

unread,
Apr 13, 2021, 3:08:53 PM4/13/21
to weewx-user
I have now tried to reinstall the HP driver because the driver is not in the list. Unfortunately, I get an error message during the installation.

xxx@raspberrypi:~# wee_extension --install=/var/tmp/HP1000.tar.gz
Request to install '/var/tmp/HP1000.tar.gz'
Extracting from tar archive /var/tmp/HP1000.tar.gz
Traceback (most recent call last):
  File "/usr/share/weewx/wee_extension", line 88, in <module>
    main()
  File "/usr/share/weewx/wee_extension", line 80, in main
    ext.install_extension(options.install)
  File "/usr/share/weewx/weecfg/extension.py", line 118, in install_extension
    self.tmpdir, self.logger)
  File "/usr/share/weewx/weecfg/__init__.py", line 1808, in extract_tar
    tar_archive = tarfile.open(filename, mode='r')
  File "/usr/lib/python3.7/tarfile.py", line 1580, in open
    raise ReadError("file could not be opened successfully")
tarfile.ReadError: file could not be opened successfully

vince

unread,
Apr 13, 2021, 7:52:14 PM4/13/21
to weewx-user
You are on a pi trying to install something as a non-privileged user into a directory owned as root.
Try "sudo wee_extension --install=/var/tmp/HP1000.tar.gz" and see if that works.
Reply all
Reply to author
Forward
0 new messages