Skip to content

Gaseous Server Container Fails to Connect to MariaDB with Access Denied Error for Both root and gaseous Users #575

@byteme4188

Description

@byteme4188

Describe the bug
I'm trying to run the Gaseous Server using the official Docker Compose setup with MariaDB as the database. However, the server container repeatedly logs:

Waiting for database...
Access denied for user 'gaseous'@'%' to database 'gaseous'

To Reproduce
Used the following docker-compose.yml, tested with both root and created new gaseous user for mariadb
version: '2'
services:
gaseous-server:
container_name: gaseous-server
image: gaseousgames/gaseousserver:latest
restart: unless-stopped
networks:
- gaseous
depends_on:
- gsdb
ports:
- 5198:80
volumes:
- gs:/root/.gaseous-server
environment:
- TZ=America/New_York
- dbhost=gsdb
- dbuser=gaseous
- dbpass=gaseous
- igdbclientid=
- igdbclientsecret=
gsdb:
container_name: gsdb
image: mariadb
restart: unless-stopped
networks:
- gaseous
volumes:
- gsdb:/var/lib/mysql
environment:
- MARIADB_ROOT_PASSWORD=gaseous
- MARIADB_USER=gaseous
- MARIADB_PASSWORD=gaseous
networks:
gaseous:
driver: bridge
volumes:
gs:
gsdb:

Run docker compose up -d.

Check the logs of the gaseous-server container using docker logs gaseous-server.

Database connectivity was manually tested via:
docker run -it --rm --network gaseous_gaseous mysql:latest mysql -h gsdb -uroot -pgaseous
docker run -it --rm --network gaseous_gaseous mysql:latest mysql -h gsdb -ugaseous -pgaseous

ran inside of MYSQL Client
CREATE DATABASE IF NOT EXISTS gaseous;
GRANT ALL PRIVILEGES ON gaseous.* TO 'gaseous'@'%' IDENTIFIED BY 'gaseous';
FLUSH PRIVILEGES;

Expected behavior
The server should connect successfully to the database and initialize without error.

Error
Same error for root user as well
Waiting for database...

20250809 035811: Critical: Database: Error while executing 'CREATE DATABASE IF NOT EXISTS gaseous;'
MySqlConnector.MySqlException (0x80004005): Access denied for user 'gaseous'@'%' to database 'gaseous'

Desktop (please complete the following information):
Proxmox V9 LXC Container
Docker version: 28.3.3, build 980b856
Docker Compose version: v2.39.1
OS: Ubuntu 22.04
MariaDB version: Official mariadb image (latest)
Gaseous Server image: gaseousgames/gaseousserver:latest

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions