Comments (8)
Seeing a similar thing, installed on 4 pi's already and just spinning a new one up and hit the same. Really unsure where to do with it having spent a couple of hours on Google!
Traceback (most recent call last):
File "/opt/RPi-Reporter-MQTT2HA-Daemon/ISP-RPi-mqtt-daemon.py", line 35, in <module>
local_tz = get_localzone()
File "/usr/local/lib/python3.7/dist-packages/tzlocal/unix.py", line 206, in get_localzone
_cache_tz = _get_localzone()
File "/usr/local/lib/python3.7/dist-packages/tzlocal/unix.py", line 168, in _get_localzone
tzname = _get_localzone_name(_root)
File "/usr/local/lib/python3.7/dist-packages/tzlocal/unix.py", line 147, in _get_localzone_name
raise utils.ZoneInfoNotFoundError(message)
tzlocal.utils.ZoneInfoNotFoundError: 'Multiple conflicting time zone configurations found:\n/etc/timezone: Europe/London\n/etc/localtime is a symlink to: GB\nFix the configuration, or set the time zone in a TZ environment variable.\n'
from rpi-reporter-mqtt2ha-daemon.
Same, so it's not just me.
Traceback (most recent call last): File "/opt/RPi-Reporter-MQTT2HA-Daemon/ISP-RPi-mqtt-daemon.py", line 35, in <module> local_tz = get_localzone() File "/usr/local/lib/python3.7/dist-packages/tzlocal/unix.py", line 206, in get_localzone _cache_tz = _get_localzone() File "/usr/local/lib/python3.7/dist-packages/tzlocal/unix.py", line 168, in _get_localzone tzname = _get_localzone_name(_root) File "/usr/local/lib/python3.7/dist-packages/tzlocal/unix.py", line 147, in _get_localzone_name raise utils.ZoneInfoNotFoundError(message) tzlocal.utils.ZoneInfoNotFoundError: 'Multiple conflicting time zone configurations found:\n/etc/timezone: America/New_York\n/etc/localtime is a symlink to: posixrules\nFix the configuration, or set the time zone in a TZ environment variable.\n'
from rpi-reporter-mqtt2ha-daemon.
FWIW there was a tzdata package update that was ready for install this AM. Doing the upgrade and restarting the server produced the same results.
from rpi-reporter-mqtt2ha-daemon.
I'm looking into this... more soon...
from rpi-reporter-mqtt2ha-daemon.
OK, I'm going to need more info about your setups. Please help!
In order to recreate I took a new RPi4 and new uSD, initialized with buster 2021-05-07-raspios-buster-armhf.img
After getting it up on my network at the proper IP, I then ran:
- sudo apt-get update
- sudo apt-get dist-upgrade
I then followed the RPI-Daemon install instructions to the letter.
MY FINDING: No such issues for me.
So something is different about how you are installing.
@tehbra1n @woodmj74 @jojo416 please provide more information about your context.
from rpi-reporter-mqtt2ha-daemon.
@ironsheep - thank you for taking the time to look into this. I decided to do a fresh build again following your comments and can confirm I have this now running.
I am unable to explain what I did different to previous attempts (very good at following instructions) but had done a number of fresh installs originally to check I wasn't missing anything.
Once again, appreciate you looking at this and big thanks for doing this in the first instance, I love it!
from rpi-reporter-mqtt2ha-daemon.
I noticed this issue with tzlocal. I installed tzlocal==4.1 and can now successfully start the daemon by hand running the python script, but starting it as a daemon with systemctl still results in an error:
pi@miflora:~ $ sudo systemctl start isp-rpi-reporter.service
Job for isp-rpi-reporter.service failed because the control process exited with error code.
See "systemctl status isp-rpi-reporter.service" and "journalctl -xe" for details.
pi@miflora:~ $ sudo systemctl status isp-rpi-reporter.service
● isp-rpi-reporter.service - RPi Reporter MQTT Client/Daemon
Loaded: loaded (/opt/RPi-Reporter-MQTT2HA-Daemon/isp-rpi-reporter.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Fri 2021-11-12 08:53:52 EST; 1s ago
Docs: https://github.com/ironsheep/RPi-Reporter-MQTT2HA-Daemon
Process: 1507 ExecStart=/usr/bin/python3 -u /opt/RPi-Reporter-MQTT2HA-Daemon/ISP-RPi-mqtt-daemon.py (code=exited, status=1/FAILURE)
Main PID: 1507 (code=exited, status=1/FAILURE)
pi@miflora:~ $ journalctl -xe
Nov 12 08:53:56 miflora python3[1513]: tzlocal.utils.ZoneInfoNotFoundError: 'Multiple conflicting time zone configurations found:\n/etc/timezone: America/New_York\n/usr/share/zoneinfo/posixrules: posixrules\nFix the configuration, or set the time zone
Nov 12 08:53:56 miflora systemd[1]: isp-rpi-reporter.service: Main process exited, code=exited, status=1/FAILURE
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- An ExecStart= process belonging to unit isp-rpi-reporter.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 1.
Nov 12 08:53:56 miflora systemd[1]: isp-rpi-reporter.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The unit isp-rpi-reporter.service has entered the 'failed' state with result 'exit-code'.
Nov 12 08:53:56 miflora systemd[1]: Failed to start RPi Reporter MQTT Client/Daemon.
-- Subject: A start job for unit isp-rpi-reporter.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A start job for unit isp-rpi-reporter.service has finished with a failure.
--
-- The job identifier is 14231 and the job result is failed.
from rpi-reporter-mqtt2ha-daemon.
I got some time to reflash that Pi and reinstall this software and everything works fine. No idea what I might have done differently but I'll close this out.
from rpi-reporter-mqtt2ha-daemon.
Related Issues (20)
- Buster not reporting, status of payload sometimes "offline", sometimes "online" HOT 4
- I'm struggling to get this workin on my pi4 HOT 1
- Should {hostname} be replaced with hostname? HOT 6
- Ability for networking to show all connections HOT 2
- Discovery prefix is forced to lowercase HOT 1
- Feature Request: Adding wifi signal strength HOT 5
- This URL has been moved to https
- Reboot and shutdown buttons not working from Home Assistant. HOT 2
- RPi-Reporter doesn't work with paho-mqtt 2.0.0+ HOT 2
- systemctl stopped being able start process HOT 7
- Option for setting mqtt not to retain state... HOT 2
- Problems with MQTT coms when adding new Raspberry Pi or when changing name of RPi
- 3rd Party Data Collection to kz0q (dot) com HOT 1
- Self-contained package or add-on for Kodi/LibreELEC
- Positional argument missing HOT 3
- Complete uninstallation
- There is no data in the MQTT topic. Status only HOT 31
- Custom commands, error vcgencmd "not allowed" HOT 1
- MQTT subscripton to home/nodes/command/rpi-rpi4-4gb-b/+ disabled
- Daemon fails if it cant contact http://kz0q.com/daemon-releases HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rpi-reporter-mqtt2ha-daemon.