This repository was archived by the owner on Oct 13, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 9
This repository was archived by the owner on Oct 13, 2025. It is now read-only.
Can't connect to Database (MariaDB, Docker) #45
Copy link
Copy link
Closed
Labels
Fixed for upcoming versionFixed in new versionFixed in new versionbugSomething isn't workingSomething isn't workingsolutionSolution found and present.Solution found and present.
Description
I've got an error during the installation / installation check.
I'm using:
- Docker
- Nextcloud 23.0.0
- MariaDB 10.5
- Media DC 0.1.8
That all runs on a Raspberry Pi 4B 8GB with a Ubuntu Server environment.
I've already looked through some issues here, but can't find a "simple" solution. So I think(hope that this issue can help others too.
That is the error log in the UI of Media DC:

Configuration errors
db_exception_handler:
Traceback (most recent call last):
File "/var/www/html/custom_apps/mediadc/lib/Service/python/db/pymysql/connections.py", line 602, in connect
sock.connect(self.unix_socket)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/www/html/custom_apps/mediadc/lib/Service/python/db/connectors.py", line 37, in create_connection
connection = pymysql.connect(unix_socket=config['usock'],
File "/var/www/html/custom_apps/mediadc/lib/Service/python/db/pymysql/connections.py", line 352, in __init__
self.connect()
File "/var/www/html/custom_apps/mediadc/lib/Service/python/db/pymysql/connections.py", line 664, in connect
raise exc
db.pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)")
Cant connect to database.
The database container looks like the following:
19b785dc4569 | mariadb:10.5 | "docker-entrypoint.s…" | 4 days ago | Up 4 days | 3306/tcp | db_1
My dbport in my nextcloud config.php is empty (#11):
'dbport' => '',
Metadata
Metadata
Assignees
Labels
Fixed for upcoming versionFixed in new versionFixed in new versionbugSomething isn't workingSomething isn't workingsolutionSolution found and present.Solution found and present.