flcontainers / guacamole

A Docker Container for Apache Guacamole, a client-less remote desktop gateway. It supports standard protocols like VNC, RDP, and SSH over HTML5. For x64, arm64 and ppc64le.
https://hub.docker.com/r/flcontainers/guacamole
GNU General Public License v3.0
343 stars 65 forks source link

Issues with postgress #132

Closed thierrybla closed 3 months ago

thierrybla commented 3 months ago

Hi I am getting the following error from the my docker container, I run the latest version.

Docker-Compose:

name: guacamole
services:
    guacamole:
        container_name: guacamole
        restart: unless-stopped
        ports:
            - 8181:8080
        volumes:
            - /docker/guacamole/config:/config
        environment:
            - TZ=Europe/Amsterdam
            - EXTENSIONS=auth-jdbc-postgresql,auth-totp
        image: flcontainers/guacamole

Error:

2024-08-22 09:50:26.912 UTC [42] LOG:  starting PostgreSQL 13.13 on aarch64-alpine-linux-musl, compiled by gcc (Alpine 13.2.1_git20231014) 13.2.1 20231014, 64-bit
2024-08-22 09:50:26.913 UTC [42] LOG:  listening on IPv6 address "::1", port 5432
2024-08-22 09:50:26.913 UTC [42] LOG:  listening on IPv4 address "127.0.0.1", port 5432
2024-08-22 09:50:26.915 UTC [42] FATAL:  lock file "/run/postgresql/.s.PGSQL.5432.lock" already exists
2024-08-22 09:50:26.915 UTC [42] HINT:  Is another postmaster (PID 44) using socket file "/run/postgresql/.s.PGSQL.5432"?
2024-08-22 09:50:26.916 UTC [42] LOG:  database system is shut down
MaxWaldorf commented 3 months ago

The solution is in the log you posted...

Remove the lock file...

thierrybla commented 3 months ago

The solution is in the log you posted...

Remove the lock file...

Hi, thanks for the suggestion, where would it be located in my config? I tried to look for it but I can't find it, even with the find command.

thierrybla commented 3 months ago

Nvm I succeeded by going into the container with docker exec, deleting the postgresql directory in /run/ and restarting the container.