GithubHelp home page GithubHelp logo

Comments (8)

woodmj74 avatar woodmj74 commented on June 5, 2024

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.

jojo416 avatar jojo416 commented on June 5, 2024

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.

tehbra1n avatar tehbra1n commented on June 5, 2024

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.

ironsheep avatar ironsheep commented on June 5, 2024

I'm looking into this... more soon...

from rpi-reporter-mqtt2ha-daemon.

ironsheep avatar ironsheep commented on June 5, 2024

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.

woodmj74 avatar woodmj74 commented on June 5, 2024

@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.

tehbra1n avatar tehbra1n commented on June 5, 2024

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.

tehbra1n avatar tehbra1n commented on June 5, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.