chris_judge Posted October 19, 2023 Share Posted October 19, 2023 Hi zusammen, ich würde gern Photoprism für meine Fotoverwaltung nutzen. Ich bekomme dies allerdings nicht mit postgresql15 zum laufen, über die interne sqlite funktioniert Photoprism bestens. So wie es scheint, kann der Photoprism-Container nicht in die Datenbank von Postgres schreiben. Die Connection zur Datenbank sollte eigentlich richtig sein: photoprism:xxx@tcp(192.168.178.6:5433)/photoprism?parseTime=true -> Password durch xxx ersetzt Im Log von Photoprism bekomme ich folgende Meldung: /opt/photoprism/bin/photoprism start /opt/photoprism/bin/photoprism start started 231011 as root (amd64-prod) init: updating filesystem permissions PHOTOPRISM_DISABLE_CHOWN="true" disables permission updates Problems? Our Troubleshooting Checklists help you quickly diagnose and solve them: https://docs.photoprism.app/getting-started/troubleshooting/ file umask....: "0002" (u=rwx,g=rwx,o=rx) home directory: /photoprism assets path...: /opt/photoprism/assets storage path..: /photoprism/storage config path...: default cache path....: default backup path...: /photoprism/storage/backups import path...: /photoprism/import originals path: /photoprism/originals switching to uid 99:100 /opt/photoprism/bin/photoprism start [mysql] 2023/10/19 10:21:50 packets.go:36: unexpected EOF [mysql] 2023/10/19 10:22:50 packets.go:36: unexpected EOF [mysql] 2023/10/19 10:23:50 packets.go:36: unexpected EOF [mysql] 2023/10/19 10:24:50 packets.go:36: unexpected EOF [mysql] 2023/10/19 10:25:50 packets.go:36: unexpected EOF [mysql] 2023/10/19 10:26:50 packets.go:36: unexpected EOF [mysql] 2023/10/19 10:27:55 packets.go:36: unexpected EOF [mysql] 2023/10/19 10:28:55 packets.go:36: unexpected EOF [mysql] 2023/10/19 10:29:55 packets.go:36: unexpected EOF [mysql] 2023/10/19 10:31:00 packets.go:36: unexpected EOF [mysql] 2023/10/19 10:32:00 packets.go:36: unexpected EOF [mysql] 2023/10/19 10:33:00 packets.go:36: unexpected EOF Einstellungen von Photoprism: Einstellungen von Postgresql15: Habt ihr noch Ideen wo ich ansetzen kann? Danke vorab... Christian Quote Link to comment
saber1 Posted October 19, 2023 Share Posted October 19, 2023 Sicher, das PostgreSQL mit photoprism läuft? In deren Doku ist nicht davon die Rede: https://docs.photoprism.app/getting-started/advanced/databases/ Und bei Github ist dazu ein Issue seit 2018 offen: https://github.com/photoprism/photoprism/issues/47 Quote Link to comment
martinriedel Posted October 19, 2023 Share Posted October 19, 2023 2 minutes ago, saber1 said: Sicher, das PostgreSQL mit photoprism läuft? In deren Doku ist nicht davon die Rede: https://docs.photoprism.app/getting-started/advanced/databases/ Und bei Github ist dazu ein Issue seit 2018 offen: https://github.com/photoprism/photoprism/issues/47 Wollte ich auch fragen, es gibt aber eine docker compose Datei https://github.com/photoprism/photoprism/blob/develop/docker-compose.postgres.yml Quote Link to comment
chris_judge Posted October 19, 2023 Author Share Posted October 19, 2023 (edited) Danke schn mal für die Antworten. Habe jetzt MariaDB nochmals probiert, leider auch ohne Erfolg. Irgendwie hat Photoprism kein Zugriff... Den Port habe natürlich entsprechend auf IP:3306 gesetzt für MariaDB. Fehlermeldung: /opt/photoprism/bin/photoprism start started 231011 as root (amd64-prod) init: updating filesystem permissions PHOTOPRISM_DISABLE_CHOWN="true" disables permission updates Problems? Our Troubleshooting Checklists help you quickly diagnose and solve them: https://docs.photoprism.app/getting-started/troubleshooting/ file umask....: "0002" (u=rwx,g=rwx,o=rx) home directory: /photoprism assets path...: /opt/photoprism/assets storage path..: /photoprism/storage config path...: default cache path....: default backup path...: /photoprism/storage/backups import path...: /photoprism/import originals path: /photoprism/originals switching to uid 99:100 /opt/photoprism/bin/photoprism start time="2023-10-19T17:47:38+02:00" level=error msg="Error 1045: Access denied for user 'photoprism'@'172.17.0.1' (using password: YES)" /opt/photoprism/bin/photoprism start time="2023-10-19T17:48:41+02:00" level=error msg="Error 1045: Access denied for user 'photoprism'@'172.17.0.1' (using password: YES)" /opt/photoprism/bin/photoprism start time="2023-10-19T17:49:43+02:00" level=error msg="Error 1045: Access denied for user 'photoprism'@'172.17.0.1' (using password: YES)" /opt/photoprism/bin/photoprism start time="2023-10-19T17:50:46+02:00" level=error msg="Error 1045: Access denied for user 'photoprism'@'172.17.0.1' (using password: YES)" /opt/photoprism/bin/photoprism start mmm... 😞 Edited October 19, 2023 by chris_judge Quote Link to comment
saber1 Posted October 19, 2023 Share Posted October 19, 2023 Jetzt scheinst Du aber die falsche IP (172er) angegeben zu haben... Quote Link to comment
Solution alturismo Posted October 19, 2023 Solution Share Posted October 19, 2023 oder dem user nicht die ip maske frei gegeben ... bei mariadb ein Muss ... und die interne docker ip ... kann man machen ... die kann sich aber auch ändern daher nicht unbedingt die beste Idee ... Beispiel in der mariadb CLI einen user zu adden mit % als Maske (passt immer), wenn die mariadb NICHT nach außen offen ist (extern ...) mysql -u root -p CREATE DATABASE nextcloud; ### OR ### CREATE DATABASE IF NOT EXISTS nextcloud; CREATE USER 'nextclouduser'@'%' IDENTIFIED BY 'new_password_here'; GRANT ALL ON nextcloud.* TO 'nextclouduser'@'%' IDENTIFIED BY 'user_password_here' WITH GRANT OPTION; FLUSH PRIVILEGES; EXIT; Quote Link to comment
chris_judge Posted October 20, 2023 Author Share Posted October 20, 2023 (edited) 12 hours ago, alturismo said: oder dem user nicht die ip maske frei gegeben ... bei mariadb ein Muss ... und die interne docker ip ... kann man machen ... die kann sich aber auch ändern daher nicht unbedingt die beste Idee ... Beispiel in der mariadb CLI einen user zu adden mit % als Maske (passt immer), wenn die mariadb NICHT nach außen offen ist (extern ...) mysql -u root -p CREATE DATABASE nextcloud; ### OR ### CREATE DATABASE IF NOT EXISTS nextcloud; CREATE USER 'nextclouduser'@'%' IDENTIFIED BY 'new_password_here'; GRANT ALL ON nextcloud.* TO 'nextclouduser'@'%' IDENTIFIED BY 'user_password_here' WITH GRANT OPTION; FLUSH PRIVILEGES; EXIT; mmhh... Ich bin neu im Thema Docker und Unraid.. Wie und wo komme ich auf die CLI? Wenn ich über das GUI von Unraid auf die Konsole gehe, will er die Befehle irgendwie nicht nehmen. Dank vorab.. 🙂 Edited October 20, 2023 by chris_judge Quote Link to comment
saber1 Posted October 20, 2023 Share Posted October 20, 2023 Auf das entsprechende Docker-Symbol klicken und "Console" anklicken: Quote Link to comment
chris_judge Posted October 20, 2023 Author Share Posted October 20, 2023 17 hours ago, alturismo said: oder dem user nicht die ip maske frei gegeben ... bei mariadb ein Muss ... und die interne docker ip ... kann man machen ... die kann sich aber auch ändern daher nicht unbedingt die beste Idee ... Beispiel in der mariadb CLI einen user zu adden mit % als Maske (passt immer), wenn die mariadb NICHT nach außen offen ist (extern ...) mysql -u root -p CREATE DATABASE nextcloud; ### OR ### CREATE DATABASE IF NOT EXISTS nextcloud; CREATE USER 'nextclouduser'@'%' IDENTIFIED BY 'new_password_here'; GRANT ALL ON nextcloud.* TO 'nextclouduser'@'%' IDENTIFIED BY 'user_password_here' WITH GRANT OPTION; FLUSH PRIVILEGES; EXIT; Jetzt bekomme ich folgende Fehlermeldung nachdem ich diese Befehle in der Konsole eingegeben habe. Natürlich mit Änderungen auf meinen User /PW.. /opt/photoprism/bin/photoprism start time="2023-10-20T14:08:39+02:00" level=error msg="Error 1044: Access denied for user 'photoprism'@'%' to database 'photoprism'" /opt/photoprism/bin/photoprism start time="2023-10-20T14:08:39+02:00" level=error msg="Error 1044: Access denied for user 'photoprism'@'%' to database 'photoprism'" Ideen? VG Christian Quote Link to comment
alturismo Posted October 20, 2023 Share Posted October 20, 2023 Natürlich in der mariadb Konsole eingegeben um den User dort anzulegen ?Gesendet von iPhone mit Tapatalk Quote Link to comment
chris_judge Posted October 20, 2023 Author Share Posted October 20, 2023 2 hours ago, alturismo said: Natürlich in der mariadb Konsole eingegeben um den User dort anzulegen ? Gesendet von iPhone mit Tapatalk Ja, habe es in der MariaDB eingegeben. Das Log ist von Photoprism. Muss ich ggf. das % durch den zugelassenen IP-Bereich anpassen? Quote Link to comment
alturismo Posted October 20, 2023 Share Posted October 20, 2023 8 hours ago, chris_judge said: Muss ich ggf. das % durch den zugelassenen IP-Bereich anpassen? nope, das % bedeutet alles ist erlaubt ... du könntest es einschränken, macht aber aktuell keinen Sinn ... nutzt du Sonderzeichen im user / pass ? Quote Link to comment
chris_judge Posted October 20, 2023 Author Share Posted October 20, 2023 Just now, alturismo said: nope, das % bedeutet alles ist erlaubt ... du könntest es einschränken, macht aber aktuell keinen Sinn ... nutzt du Sonderzeichen im user / pass ? nee, nur Kleinschreubung und eine Zahl... nutzt hier keiner Photoprism bzw. was nutzt ihr für eure Fotos? Aktuell komme ich von Synology Photos und ich möchte eine ähnliche Funktionalität. Quote Link to comment
alturismo Posted October 20, 2023 Share Posted October 20, 2023 Just now, chris_judge said: nutzt hier keiner Photoprism bzw. was nutzt ihr für eure Fotos? ich nicht mehr, ging aber oob hier ... und zu großer Aufwand für Bilder für mich daher nur NC upload und fertig, ansonsten ist ja alles in google fotos hier ... das reicht mir persönlich. 2 minutes ago, chris_judge said: nee, nur Kleinschreubung und eine Zahl... dann fällt mir nichts mehr Schlaues ein ... und du hast auch umgestellt auf "mariadb" als hostname wie empfohlen ... ansonsten, sorry. Quote Link to comment
alturismo Posted October 20, 2023 Share Posted October 20, 2023 9 hours ago, chris_judge said: Ja, habe es in der MariaDB eingegeben. zum Spaß, funktioniert oob hier ... mal auf die Schnelle einfach installiert ... vorher den user halt mit % eingegeben fang vielleicht nochmal von vorne an ? Quote Link to comment
chris_judge Posted October 21, 2023 Author Share Posted October 21, 2023 8 hours ago, alturismo said: zum Spaß, funktioniert oob hier ... mal auf die Schnelle einfach installiert ... vorher den user halt mit % eingegeben fang vielleicht nochmal von vorne an ? Hat funktioniert... 🙂 Habe die Container nochmals gelöscht und alle Daten in AppData ebenfalls. Alles nochmal von neuen eingerichtet, User über die Konsole angelegt und siehe da.... es funktioniert. Danke!! 2 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.