This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
openplotter-i2c-read error in syslog
#1
While trying to drill down, how to activate my BMP390 sensor in Signal K,
i checked syslog ("journalctl -r") and found it spammed with these events:
Code:
May 07 10:17:46 openplotter systemd[1]: openplotter-i2c-read.service: Failed with result 'exit-code'.
May 07 10:17:46 openplotter systemd[1]: openplotter-i2c-read.service: Main process exited, code=exited, status=1/FAILURE
May 07 10:17:46 openplotter openplotter-i2c-read[40940]: FileNotFoundError: [Errno 2] No such file or directory: '.lgd-nfy-3'
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:     self._file = open('.lgd-nfy{}'.format(self._notify), 'rb')
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:   File "/usr/lib/python3/dist-packages/lgpio.py", line 504, in __init__
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:                      ^^^^^^^^^^^^^^^^^^
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:     _notify_thread = _callback_thread()
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:   File "/usr/lib/python3/dist-packages/lgpio.py", line 562, in <module>
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:     import lgpio
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:   File "/usr/local/lib/python3.11/dist-packages/adafruit_blinka/microcontroller/generic_linux/lgpio_pin.py", line 7, in <mod>
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:     from adafruit_blinka.microcontroller.generic_linux.lgpio_pin import Pin
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:   File "/usr/local/lib/python3.11/dist-packages/adafruit_blinka/microcontroller/bcm2712/pin.py", line 7, in <module>
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:     from adafruit_blinka.microcontroller.bcm2712 import pin
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:   File "/usr/local/lib/python3.11/dist-packages/adafruit_blinka/board/raspberrypi/raspi_5.py", line 6, in <module>
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:     from adafruit_blinka.board.raspberrypi.raspi_5 import *
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:   File "/usr/local/lib/python3.11/dist-packages/board.py", line 45, in <module>
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:     import time, board, json, ssl, sys
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:   File "/usr/lib/python3/dist-packages/openplotterI2c/openplotterI2cRead.py", line 18, in <module>
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:     module = __import__(self.module_name, fromlist=['__name__'], level=0)
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:   File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2474, in resolve
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:            ^^^^^^^^^^^^^^
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:     return self.resolve()
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:   File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2468, in load
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:            ^^^^^^^^^
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:     return ep.load()
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:   File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2855, in load_entry_point
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:     return get_distribution(dist).load_entry_point(group, name)
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:   File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 522, in load_entry_point
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:     load_entry_point('openplotterI2c==4.2.0', 'console_scripts', 'openplotter-i2c-read')()
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:   File "/usr/bin/openplotter-i2c-read", line 11, in <module>
May 07 10:17:46 openplotter openplotter-i2c-read[40940]: Traceback (most recent call last):
May 07 10:17:46 openplotter openplotter-i2c-read[40940]: 2025-05-07 10:17:46 xCreatePipe: Can't set permissions (436) for //.lgd-nfy0, No such file or directory
May 07 10:17:46 openplotter systemd[1]: Started openplotter-i2c-read.service.
May 07 10:17:46 openplotter systemd[1]: Stopped openplotter-i2c-read.service.
May 07 10:17:46 openplotter systemd[1]: openplotter-i2c-read.service: Scheduled restart job, restart counter is at 17708.
May 07 10:17:43 openplotter systemd[1]: openplotter-i2c-read.service: Failed with result 'exit-code'.
Any ideas, how:
- to troubleshoot this error, and
- how to solve it

RPi 5, OpenPlotter 4.2.9, Sensor i2c BMP390
Reply
#2
(2025-05-07, 10:23 AM)ulsi Wrote: While trying to drill down, how to activate my BMP390 sensor in Signal K,
i checked syslog ("journalctl -r") and found it spammed with these events:
Code:
May 07 10:17:46 openplotter systemd[1]: openplotter-i2c-read.service: Failed with result 'exit-code'.
May 07 10:17:46 openplotter systemd[1]: openplotter-i2c-read.service: Main process exited, code=exited, status=1/FAILURE
May 07 10:17:46 openplotter openplotter-i2c-read[40940]: FileNotFoundError: [Errno 2] No such file or directory: '.lgd-nfy-3'
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:     self._file = open('.lgd-nfy{}'.format(self._notify), 'rb')
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:   File "/usr/lib/python3/dist-packages/lgpio.py", line 504, in __init__
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:                      ^^^^^^^^^^^^^^^^^^
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:     _notify_thread = _callback_thread()
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:   File "/usr/lib/python3/dist-packages/lgpio.py", line 562, in <module>
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:     import lgpio
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:   File "/usr/local/lib/python3.11/dist-packages/adafruit_blinka/microcontroller/generic_linux/lgpio_pin.py", line 7, in <mod>
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:     from adafruit_blinka.microcontroller.generic_linux.lgpio_pin import Pin
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:   File "/usr/local/lib/python3.11/dist-packages/adafruit_blinka/microcontroller/bcm2712/pin.py", line 7, in <module>
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:     from adafruit_blinka.microcontroller.bcm2712 import pin
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:   File "/usr/local/lib/python3.11/dist-packages/adafruit_blinka/board/raspberrypi/raspi_5.py", line 6, in <module>
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:     from adafruit_blinka.board.raspberrypi.raspi_5 import *
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:   File "/usr/local/lib/python3.11/dist-packages/board.py", line 45, in <module>
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:     import time, board, json, ssl, sys
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:   File "/usr/lib/python3/dist-packages/openplotterI2c/openplotterI2cRead.py", line 18, in <module>
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:     module = __import__(self.module_name, fromlist=['__name__'], level=0)
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:   File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2474, in resolve
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:            ^^^^^^^^^^^^^^
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:     return self.resolve()
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:   File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2468, in load
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:            ^^^^^^^^^
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:     return ep.load()
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:   File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2855, in load_entry_point
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:     return get_distribution(dist).load_entry_point(group, name)
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:   File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 522, in load_entry_point
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:     load_entry_point('openplotterI2c==4.2.0', 'console_scripts', 'openplotter-i2c-read')()
May 07 10:17:46 openplotter openplotter-i2c-read[40940]:   File "/usr/bin/openplotter-i2c-read", line 11, in <module>
May 07 10:17:46 openplotter openplotter-i2c-read[40940]: Traceback (most recent call last):
May 07 10:17:46 openplotter openplotter-i2c-read[40940]: 2025-05-07 10:17:46 xCreatePipe: Can't set permissions (436) for //.lgd-nfy0, No such file or directory
May 07 10:17:46 openplotter systemd[1]: Started openplotter-i2c-read.service.
May 07 10:17:46 openplotter systemd[1]: Stopped openplotter-i2c-read.service.
May 07 10:17:46 openplotter systemd[1]: openplotter-i2c-read.service: Scheduled restart job, restart counter is at 17708.
May 07 10:17:43 openplotter systemd[1]: openplotter-i2c-read.service: Failed with result 'exit-code'.
Any ideas, how:
- to troubleshoot this error, and
- how to solve it

RPi 5, OpenPlotter 4.2.9, Sensor i2c BMP390

Ulsi,

I think this is the same issue I found with lgpio.py used by the openplotter-i2c-read service.  The following link in that thread is I believe the best solution.  There also is another solution earlier in the thread.  Give it a try I think it will solve your openplotter-i2c-read service error.

https://forum.openmarine.net/showthread....1#pid33681

Jay
S/V Priority
Reply
#3
Many thanks for the suggestion.
I followed the instructions and created a file in /etc/profile.d for the export command, but
after reboot situation was the same and couple second the message is logged.

Hi Jay_cd33,
and i read the thread you linked from the beginning and found your solution of commenting
line 504 where the file is opened.
For now it works for me as well, also it is a bit dirty solution.
I guess i will dig a bit more in direction i got from Raspberry Forum.
Maybe the issue is that the Openplotter image is more for Rpi4 and before, and not so much for Rpi5 (yet).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)