abesnier / docker-guacamole

A self-contained guacamole docker container for x64. Remotely connect over SSH, RDP or VNC using HTML5.
https://hub.docker.com/r/abesnier/guacamole
GNU General Public License v3.0
78 stars 14 forks source link

Change /dev/log location? #5

Closed alexbelgium closed 2 years ago

alexbelgium commented 2 years ago

Describe Your Problem:

Thanks for continuing to update and support this app. I'm trying to build an addon for homeassistant based on your app, however I have encountered an issue.

HA os (home assistant os) doesn't allow to access /dev/log. This causes the issue "unable to bind socket to /dev/log: Read-only file system"

What could I change to make the logs use another location ?

Here is my repo if you want : https://github.com/alexbelgium/hassio-addons-test/tree/master/guacamole I've simply modified it to use /data instead of /config (as this is the only remanent location allowed in HA) ; and added a few scripts to provide a banner at launch.

Thanks, Best regards

Logs:

s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service syslogd-prepare: starting
s6-rc: info: service syslogd-prepare successfully started
s6-rc: info: service syslogd-log: starting
s6-rc: info: service syslogd-log successfully started
s6-rc: info: service syslogd: starting
s6-socklog: fatal: unable to bind socket to /dev/log: Read-only file system

Screenshots:

Environment:

abesnier commented 2 years ago

To be honest, I have absolutely no idea! But let me setup a test environment, and I'll see what I can do, looks like a good opportunity to teach me something new!

alexbelgium commented 2 years ago

Thanks very much :-) I'm also trying on my side.

It seems I should actually disable "s6-socklog" but I can't find how

abesnier commented 2 years ago

Hi. Sorry for not giving news, I've been sick the last 10 days. Before falling sick, I setup HA and managed to replicate the same error messages. I tried to play a bit with S6 overlay, but did not manage anything yet.

alexbelgium commented 2 years ago

Hi, thanks for the feedback and the effort in setting the test env ! Hope you are feeling better. No urgency, indeed I tried also but s6 seems extremely complicated to learn and get onboard

alexbelgium commented 2 years ago

I've found another way to make it work, so I'll close this issue. Thanks very much for your efforts.

abesnier commented 2 years ago

hi @alexbelgium. Sorry I could not help you. Do you mind describing what you did, for future reference (and implementation in the image maybe?)

alexbelgium commented 2 years ago

Hi, I'm not especially proud of that but I used another fork that is still on the previous s6 version and it worked out of the box : https://github.com/MaxWaldorf/guacamole. I didn't take the time to check what were the exact differences given that it worked straight away...

Thanks very much for your support and your interest on my addon conversion :-)

abesnier commented 2 years ago

No worries. With all the issues I had with this version 3 of S6 overlay, I knew I should have quit and stayed with version 2! Glad to know you found an image that works, and good luck with your project!