Skip to content

Cells 5 GORM rewrite does not work with mysql unix socket #950

Description

@zuckschwerdt

📝 Describe the bug

With Cells 5 (tested 5.0.0 and 5.0.1) a database DSN using mysql UNIX socket does not work anymore (regression from Cells 4).

E.g. "Cannot connect to database, please review the parameters: address /run/mysqld/mysqld.sock: missing port in address"

⚙️ How-to Reproduce

Steps to reproduce the behavior:

E.g. on a Debian 13 Trixe Cloud image with MySQL (MariaDB) installed:

$ ls -al /run/mysqld/mysqld.sock
srwxrwxrwx 1 mysql mysql 0 Jun 27 16:35 /run/mysqld/mysqld.sock

get Cells 5

$ wget https://download.pydio.com/pub/cells/release/5.0.1/linux-amd64/cells ; chmod 755 cells

and try to configure a MySQL connection using a socket:

$ ./cells configure
✔ MySQL/MariaDB - Socket
Socket File: /run/mysqld/mysqld.sock
Database Name: cells
Database User: cells
Database Password (leave empty if not needed): *****
✗ Cannot connect to database, please review the parameters: address /run/mysqld/mysqld.sock: missing port in address

Also a manually configured (or migrated from Cells 4) DSN like

{
  "driver": "mysql",
  "dsn": "pydio:pydio@unix(/run/mysqld/mysqld.sock)/cells?parseTime=true"
},

Will error on startup as unable to connect to the database.

🩺 Environment / Setup

Server Versions:

  • Cells Version 5.0.0 and 5.0.1 (regression from e.g. 4.4.17)
  • MariaDB version e.g. 11.8.6
  • Server OS: e.g. Debian 13 Trixe cloud image

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedIssue has been accepted and is tracked internally

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions