Closed leandrotoledo closed 2 years ago
Hi!
I have a feeling that dbus should not be started automatically inside the container. Are you able to build the container yourself but remove that line from run.sh
?
Oh my god. This is my problem. I've been chasing down this stupid "The name org.freedesktop.systemd1 was not provided by any .service files: unknown" error for so long....
Everything in my stack worked perfectly prior to this, so maybe it was an update that borked it. Removing this container fixed everything though.
Even if this doesn't get fixed, thank you @leandrotoledo for making this known.
@zemsten I know the feeling, it was driving me crazy. I even reinstalled my whole system thinking something else was borked. :-(
@sbs20 turns out my printer works with AirScan without the host dbus, so I might not be able to fully test the impact of removing it from starting on run.sh
.
I'm removing the dbus start - I hadn't appreciated the bad side effects.
With any luck this is resolved now. At the very least, it won't automatically restart anything.
I'm going to mark the issue as closed for now - but do let me know if there are still problems and we can re open.
Hi there,
Let me start saying this is the most awesome self hosted service I came across, you gave new life for my old scanner and I really appreciate that.
There's one small issue that I've notice though. And this is completely shot in the dark while I'm still trying to fully understand what's going on.
When scanservjs starts, it seems like it also (re-)start the dbus service, thus recreating a new session and PID for the container. The problem with that is the local host user loses the reference of the original session and dependent services suddenly start to fail; at least that's my initial assumption.
To Reproduce Steps to reproduce the behavior:
systemctl -l
, see error:Workaround Stop container, reboot the host.
Server (please complete the following information):
docker-compose.yml
Logs if in docker
docker logs scanservjs-container
Hopefully there's a better way to bind into dbus services inside the container? I will do some further testing and report back if I learn anything new.
Thank you!