Jump to content

PhotoPrism Probleme beim mit Postgresql15


chris_judge
Go to solution Solved by alturismo,

Recommended Posts

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:

 

image.thumb.png.0787de1a5ff38e00000fd1569c05dc3e.png

 

Einstellungen von Postgresql15:

 

image.thumb.png.7ad2e37ab3f9d58307cb129368af226d.png

 

Habt ihr noch Ideen wo ich ansetzen kann?

 


Danke vorab... ;-)

 

Christian

Link to comment
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

Link to comment

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.

 

image.thumb.png.745b29be2a25b86eb643cb46ffc9a59c.png

 

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 by chris_judge
Link to comment
  • Solution

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;

 

Link to comment
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 by chris_judge
Link to comment
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

Link to comment
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.

Link to comment
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.

Link to comment
8 hours ago, alturismo said:

zum Spaß, funktioniert oob hier ... mal auf die Schnelle einfach installiert ... vorher den user halt mit % eingegeben

 

image.thumb.png.9b4f83e86f9aff9f8360dd7a7f9d9a09.png

 

image.thumb.png.983d36e770c30b28e5d4e3e0eeb41bcf.png

 

image.thumb.png.6d7018ce92e247fd12f95f1127f82100.png

 

image.png.5babddff743ac3561c70e53442f58458.png

 

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!!

  • Like 2
Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...