I’m getting these errors every minute or less. Openhabian is new to me, although been an OH user for quite a few years now. i’m running openHAB 2.5.11-1 (Release Build)
2020-12-20 18:20:08.961 [WARN ] [sysfs.internal.SysfsUsbSerialScanner] - Could not find the device path for /sys/class/tty/ttyUSB1 in the sysfs: /sys/class/tty/ttyUSB1
2020-12-20 18:20:08.972 [WARN ] [sysfs.internal.SysfsUsbSerialScanner] - Could not find the device path for /sys/class/tty/ttyACM0 in the sysfs: /sys/class/tty/ttyACM0
2020-12-20 18:20:08.979 [WARN ] [sysfs.internal.SysfsUsbSerialScanner] - Could not find the device path for /sys/class/tty/ttyUSB0 in the sysfs: /sys/class/tty/ttyUSB0
2020-12-20 18:20:23.991 [WARN ] [sysfs.internal.SysfsUsbSerialScanner] - Could not find the device path for /sys/class/tty/ttyUSB1 in the sysfs: /sys/class/tty/ttyUSB1
2020-12-20 18:20:24.001 [WARN ] [sysfs.internal.SysfsUsbSerialScanner] - Could not find the device path for /sys/class/tty/ttyACM0 in the sysfs: /sys/class/tty/ttyACM0
2020-12-20 18:20:24.006 [WARN ] [sysfs.internal.SysfsUsbSerialScanner] - Could not find the device path for /sys/class/tty/ttyUSB0 in the sysfs: /sys/class/tty/ttyUSB0
Could you login to the karaf console ( command is openhab-cli ) and enter:
log:get
This will show the logging settings.
Besides that what does:
ls -lH /sys/class/tty/ttyUSB0 /sys/class/tty/ttyUSB1 /sys/class/tty/ttyACM0
return ?
This should show the content of the directories that are behind the links.
I would expect to see errors or empty directories here as the code that raises the warnings explains:
/**
* In the sysfs, the directory 'class/tty' contains a symbolic link for every serial port style device, i.e., also
* for serial devices. This symbolic link points to the directory for that device within the sysfs device tree. This
* method returns the directory to which this symbolic link points for a given serial port.
* <p/>
* If the symbolic link cannot be converted to the real path, null is returned and a warning is logged.
*/
Thanks for the feedback.
With regard to log:get : this command needs to be executed in the karaf console. First run command ‘openhab-cli console’ to login to the karaf console.
Could you do
sudo ls -lH /sys/class/tty/ttyUSB0 /sys/class/tty/ttyUSB1 /sys/class/tty/ttyACM0
instead of the previous ls command. It looks like it could be a permission item.
Apologies only just seen your message. Distracted after finding out I’ve tested positive for the lovely virus that half the country thinks doesn’t exist, or is caused by 5G. I’ll reply in the morning with what you’ve asked for.
Thanks for the support though.
Colin
Yes, i had to use “sudo”. After your post i checked the permissions of /dev/ttyUSB4. Others didnt had access. I changed the permission to 666 but this did not solve the problem but now the ls command works without sudo.
@s4ndst0rm, @BigCol as far as I can see the settings are ok.
At the moment I do not have further ideas.
The only option that is left and may help is try to change the log level for this kind of message from WARN to ERROR:
assumed that sysfs.internal.SysfsUsbSerialScanner is the full name of the log level and nothing before sysfs is stripped of by logger formatting/restrictions.