Grad getestet. Sah gut aus, bis ich gemerkt habe, dass ich das Verzeichnis für /srv/data nicht angepasst hatte. Container gelöscht, mit korrigierten Pfaden neu gestartet und nix geht mehr…
Der erste Versuch sah super aus, was wohl offenbar mit dem /srv/data-Verzeichnis zusammenhing. Die Angabe aus der Docker-Hub-Beschreibung sah folgende Zuordnung vor:
-v /volume1/ecodmsData:/srv/data
Er hat offenbarem Start des fehlerhaft konfigurierten Docker-Images den Ordner "ecodmsData" angelegt:
Code:
martin@vdocker:/volume1$ ls -all
total 12
drwxr-xr-x 3 root root 4096 Mai 3 13:43 .
drwxr-xr-x 24 root root 4096 Mai 3 13:43 ..
drwxrwxr--+ 8 root root 4096 Mai 3 13:43 ecodmsData
So hat es geklappt und der Client konnte sich mit dem Server verbinden...
Meine "kaputtkorrigierte" Konfiguration sieht folgende Zuordnung vor:
-v /mnt/ecodms/data:/srv/data
wobei /mnt/ecodms eine Freigabe ist, in der sich ein Ordner "data" befindet, siehe:
Code:
martin@vdocker:/volume1$ ls -all /mnt/ecodms/
total 4
drwxr-xr-x 2 root root 0 Mai 3 13:43 .
drwxr-xr-x 4 root root 4096 Mai 2 17:31 ..
drwxr-xr-x 2 root root 0 Apr 21 17:25 _backup
drwxr-xr-x 2 root root 0 Mai 3 13:36 backup
drwxr-xr-x 2 root root 0 Mai 3 16:04 data
drwxr-xr-x 2 root root 0 Mai 3 13:43 ecodmsfileimport
drwxr-xr-x 2 root root 0 Mai 3 13:39 fileimport
drwxr-xr-x 2 root root 0 Mai 3 13:39 fileimport_move
drwxr-xr-x 2 root root 0 Mai 2 16:20 _restore
drwxr-xr-x 2 root root 0 Mai 3 13:36 restore
drwxr-xr-x 2 root root 0 Mai 3 13:46 scaninput
Wenn ich die beiden Verzeichnisse vergleiche, ergibt sich folgendes Bild:
Code:
drwxrwxr--+ 8 root root 4096 Mai 3 13:43 ecodmsData
drwxr-xr-x 2 root root 0 Mai 3 16:04 data
Der Name dürfte keine Rolle spielen, da das im Container ja über /srv/data angesprochen wird ... für die restlichen Angaben fehlt mir ehrlich gesagt der Background :-(
Kann mir jemand von Euch erklären, wie sich die Verzeichnisse hinsichtlich der Rechte unterscheiden ?
Martin
Code:
2024-05-03T16:04:31.198228775Z
2024-05-03T16:04:31.198230964Z The database cluster will be initialized with locale "de_DE.UTF-8".
2024-05-03T16:04:31.198233725Z The default text search configuration will be set to "german".
2024-05-03T16:04:31.198236600Z
2024-05-03T16:04:31.198238772Z Data page checksums are disabled.
2024-05-03T16:04:31.198240927Z
2024-05-03T16:04:31.199706889Z fixing permissions on existing directory /srv/data/psql12 ... initdb: error: could not change permissions of directory "/srv/data/psql12": Operation not permitted
2024-05-03T16:04:31.206807301Z pg_ctl: directory "/srv/data/psql12" is not a database cluster directory
2024-05-03T16:04:31.246357678Z psql: error: could not connect to server: Connection refused
2024-05-03T16:04:31.246377898Z Is the server running on host "127.0.0.1" and accepting
2024-05-03T16:04:31.246381523Z TCP/IP connections on port 17002?
2024-05-03T16:04:31.252417837Z pg_ctl: directory "/srv/data/psql12" is not a database cluster directory
2024-05-03T16:04:31.259473648Z setfacl: /srv/data: Operation not supported
2024-05-03T16:04:31.261355372Z OLD Database doesnt't exists no migration
2024-05-03T16:04:31.334132334Z Linking Scaninput to /srv/scaninput
2024-05-03T16:04:31.336702914Z mv: cannot stat '/srv/data/workdir/scaninput/*': No such file or directory
2024-05-03T16:04:31.340815159Z ln: failed to create symbolic link '/srv/data/workdir/scaninput': Input/output error
2024-05-03T16:04:31.343333090Z Linking external Backupdir to /srv/backup
2024-05-03T16:04:31.345870058Z mv: cannot stat '/srv/data/backup/*': No such file or directory
2024-05-03T16:04:31.349755424Z ln: failed to create symbolic link '/srv/data/backup': Input/output error
2024-05-03T16:04:31.352321068Z Linking external Restore-Dir to /srv/restore
2024-05-03T16:04:31.354787052Z mv: cannot stat '/srv/data/restore/*': No such file or directory
2024-05-03T16:04:31.358909845Z ln: failed to create symbolic link '/srv/data/restore': Input/output error
2024-05-03T16:04:31.361250045Z Linking external fileimport-Dir to /srv/fileimport
2024-05-03T16:04:31.363739252Z mv: cannot stat '/srv/data/fileimport/*': No such file or directory
2024-05-03T16:04:31.367879169Z ln: failed to create symbolic link '/srv/data/fileimport': Input/output error
2024-05-03T16:04:31.370245247Z Linking external fileimport_mov-Dir to /srv/fileimport_move
2024-05-03T16:04:31.373119428Z mv: cannot stat '/srv/data/fileimport_move/*': No such file or directory
2024-05-03T16:04:31.377133798Z ln: failed to create symbolic link '/srv/data/fileimport_move': Input/output error
2024-05-03T16:04:31.406175299Z 2024-05-03 16:04:31.405 GMT [145] LOG: skipping missing configuration file "/srv/data/psql12/postgresql.auto.conf"
2024-05-03T16:04:31.407066236Z pg_ctl: directory "/srv/data/psql12" is not a database cluster directory
2024-05-03T16:04:31.411599107Z Check Started...
2024-05-03T16:04:31.417597361Z Unable to connect to postgres: "could not connect to server: Connection refused\n\tIs the server running on host \"localhost\" (::1) and accepting\n\tTCP/IP connections on port 17002?\ncould not connect to server: Connection refused\n\tIs the server running on host \"localhost\" (127.0.0.1) and accepting\n\tTCP/IP connections on port 17002?\nQPSQL: Unable to connect"
2024-05-03T16:04:31.419790679Z ecoDMS Server startet as service
2024-05-03T16:04:31.426295634Z INFO: Using ecoDMS java: "/opt/ecodms/ecodmsserver/Java/bin/java"