-
-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Container can only start if serial device is on ttyUSB* #310
Comments
More info: #309 |
Ah ok, sorry. What you could do is map to /dev/ttyUSB0 instead of /dev/dsmr. I'll fix it in a new release. Odd thing is that it already was in past releases actually...
Quick fix: devices:
- /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_AQ4KS8IA-if00-port0:/dev/ttyUSB0 |
That is indeed what I did (and why I no longer had the error logs :-) ) I haven't seen this before, and I have the Thanks |
New release is coming: https://github.com/xirixiz/dsmr-reader-docker/actions/runs/3686579928 It now validates whatever you specify for:
So in your case you should provide this env var with |
I have set my container to be a DSMR receiver with:
However with this new version I am unable to start the container. It keeps looking for USB devices, even if I set the aforementioned env var. It get this in the logs:
It's clearly saying "using serial connection" but that's not what I want, as I've set it to receiver. It will never find a serial device on the system DSMR is hosted on. The serial data is coming from a different place in my network. I see this issue now #303. However I cannot reach those mentioned settings, because my container is in an infinite reboot loop. I always used the receiver mode, because I have a different device with a datalogger script that uses the API to push telegrams in this container. I do not use network sockets or something like that. I just want to disable the datalogger in this container. How do I do that? |
Hi, if you look at the readme on the main page it should become clear. |
As you replied I just found that info in the readme indeed. It's getting hard to keep up with these kinds of changes :) I will try it when I get home from work. Just for future reference, is there somewhere I can read these kinds of backwards incompatible changes before updating? Because it's quite some work going through all the commits and figuring out if something will break when I update the container. This is the second time that the way of telling the container it should not try to run the datalogger itself, has changed in an incompatible way. Or perhaps it would be wise to also have backwards compatible mappings for these kinds of situations (like mapping the old value of "receiver" to "API_SERVER"). I know it's difficult because you are only wrapping another package (DSMR Reader) but I feel it could be a bit more smooth. |
Yes, working on it. I will create releases in GH in the future, so release notes are visible there. It's api_server btw... lowercase ;). Updated the README |
Excellent! I'll update my docker-compose tonight and let you know if it works. But I think this is the thing that's causing issues so I think it'll be all right. |
I'm having the same problem, changed the env to 'api_server' but it is still in a reboot loop.
|
PEBKAC here .. it works fine as documented. |
The env name has also changed:
|
The documentation is unclear for me. DSMRREADER_REMOTE_DATALOGGER_MODE=api_server And that is working, but I can't find it in the documentation. |
Like xirixiz said, you have to replace the environment variable: I had the same "issue" so PEBKAC :) |
Container is running again. Problem is solved now. |
Support guidelines
I've found an issue and checked that ...
Description
Since the latest release, the serial port needs to be on a
ttyUSB*
port, commit: de0cec3Getting this error: https://github.com/xirixiz/dsmr-reader-docker/blob/master/rootfs/etc/cont-init.d/20-set-app-defaults#L84
Expected behaviour
The container deals with serial devices on other locations than ttyUSB
Actual behaviour
The container can only start when I set the serial device on a ttyUSB*
Steps to reproduce
See docker-compose below
Docker info
NA.
Version
docker-compose --version
): docker-compose version 1.29.2, build unknownuname -a
): Linux nuc10i3fnh 5.15.0-52-generic WARNING: The xdp3UZK6JlGcE2TznUl variable is not set #58-Ubuntu SMP Thu Oct 13 08:03:55 UTC 2022 x86_64 x86_64 x86_64 GNU/LinuxDocker compose
Container logs
Haven't stored any logs
Additional info
No response
The text was updated successfully, but these errors were encountered: