Skip to content
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

postgres uid causing container to be unusable #30

Open
simonaplin opened this issue Dec 31, 2023 · 3 comments
Open

postgres uid causing container to be unusable #30

simonaplin opened this issue Dec 31, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@simonaplin
Copy link

simonaplin commented Dec 31, 2023

Describe The Bug:
When launching the container the postgres uid is set to 103. On my system 103 is already mapped to tss which makes the postgres folder unreachable by postgres inside the container.

To Reproduce:
Launch the container on a system where 103 is mapped to tss

Expected behavior:
I would really like it if there was an environment variable to specify a uid for the postgres user created in the startup script to prevent local conflicts like this.

Logs:
guacamole_guacamole.1.q85oee0mwiqv@shammel | Starting postgres...
guacamole_guacamole.1.q85oee0mwiqv@shammel | postgres: could not access directory "/config/postgres": Permission denied
guacamole_guacamole.1.q85oee0mwiqv@shammel | /var/run/postgresql:5432 - no response
guacamole_guacamole.1.q85oee0mwiqv@shammel | Waiting for postgres to come up...
guacamole_guacamole.1.q85oee0mwiqv@shammel | Starting postgres...
guacamole_guacamole.1.q85oee0mwiqv@shammel | postgres: could not access directory "/config/postgres": Permission denied
guacamole_guacamole.1.q85oee0mwiqv@shammel | /var/run/postgresql:5432 - no response
guacamole_guacamole.1.q85oee0mwiqv@shammel | Waiting for postgres to come up...
guacamole_guacamole.1.q85oee0mwiqv@shammel | Starting postgres...
guacamole_guacamole.1.q85oee0mwiqv@shammel | postgres: could not access directory "/config/postgres": Permission denied
guacamole_guacamole.1.q85oee0mwiqv@shammel | /var/run/postgresql:5432 - no response
guacamole_guacamole.1.q85oee0mwiqv@shammel | Waiting for postgres to come up...
guacamole_guacamole.1.q85oee0mwiqv@shammel | Starting postgres...
guacamole_guacamole.1.q85oee0mwiqv@shammel | postgres: could not access directory "/config/postgres": Permission denied
guacamole_guacamole.1.q85oee0mwiqv@shammel | /var/run/postgresql:5432 - no response
guacamole_guacamole.1.q85oee0mwiqv@shammel | Waiting for postgres to come up...
guacamole_guacamole.1.q85oee0mwiqv@shammel | Starting postgres...
guacamole_guacamole.1.q85oee0mwiqv@shammel | postgres: could not access directory "/config/postgres": Permission denied
guacamole_guacamole.1.q85oee0mwiqv@shammel | /var/run/postgresql:5432 - no response
guacamole_guacamole.1.q85oee0mwiqv@shammel | Waiting for postgres to come up...
guacamole_guacamole.1.q85oee0mwiqv@shammel | Starting postgres...
guacamole_guacamole.1.q85oee0mwiqv@shammel | postgres: could not access directory "/config/postgres": Permission denied

Screenshots:
N/A

Environment:

  • Guacamole Version: latest docker version
  • Operating System: Ubuntu / Docker
@simonaplin simonaplin added the bug Something isn't working label Dec 31, 2023
@simonaplin simonaplin changed the title postres uid causing container to be unusable postgres uid causing container to be unusable Dec 31, 2023
@jwetzell
Copy link
Owner

Right now there is no startup script that creates the postgres user it is done during image creation. It shouldn't be too hard to add, I will look into what the proper way to do this in an image is.

@SalaryTheft
Copy link

Any manual workaround? I'm getting same problem with Fedora / Podman environment.

@jwetzell
Copy link
Owner

I haven't had the time to look into this. As far as I can tell in the 1.5.4 tags the UID of the postgres user is 1000.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants