Photoprism config: invalid originals path, check configuration and permissions (Default and Advance Setup) #475

Closed
opened 2026-02-04 19:08:25 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @cprhh on GitHub (Feb 10, 2025).

Originally assigned to: @MickLesk on GitHub.

Have you read and understood the above guidelines?

yes

📜 What is the name of the script you are using?

PhotoPrism LXC

📂 What was the exact command used to execute the script?

bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/photoprism.sh)"

📝 Provide a clear and concise description of the issue.

Running the default script for PhotoPrism results in a configuration setup that has an error.
This means you can't add users from the CLI (required unless you have a subscription that unlocks the GUI), or use the CLI to manage the system.
Same issue like here:
https://github.com/community-scripts/ProxmoxVE/issues/1621
https://github.com/tteck/Proxmox/issues/3978 --> Here a solution was discussed.

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Debian 12

🔄 Steps to reproduce the issue.

Run the default/advance settings install of the script. (see setting below)
When complete, go to the lxc shell and type a photoprism command e.g. photoprism index or photoprism passwd admin

Paste the full error output (if available).

ssh root@192.168.2.116
The authenticity of host '192.168.2.116 (192.168.2.116)' can't be established.
ED25519 key fingerprint is SHA256:9AqQSj7icgDIyd6c/Zt0QUnvU3nk4npuLJcVsRKOCws.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '192.168.2.116' (ED25519) to the list of known hosts.
root@192.168.2.116's password: 

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.

PhotoPrism LXC Container
    🌐   Provided by: community-scripts ORG | GitHub: https://github.com/community-scripts/ProxmoxVE

    🖥️   OS: Debian GNU/Linux - Version: 12
    🏠   Hostname: photoprism
    💡   IP Address: 192.168.2.116
root@photoprism:~# photoprism index
ERRO[2025-02-10T13:07:05+01:00] config: invalid originals path, check configuration and permissions 

🖼️ Additional context (optional).

The tested advanced setting:

    ____  __          __        ____       _              
   / __ \/ /_  ____  / /_____  / __ \_____(_)________ ___ 
  / /_/ / __ \/ __ \/ __/ __ \/ /_/ / ___/ / ___/ __ `__ \
 / ____/ / / / /_/ / /_/ /_/ / ____/ /  / (__  ) / / / / /
/_/   /_/ /_/\____/\__/\____/_/   /_/  /_/____/_/ /_/ /_/ 
                                                          
  🧩  Using Advanced Settings on node pve1
  🖥️  Operating System: debian
  🌟  Version: 12
  📦  Container Type: Unprivileged
  🔐  Root Password: ********
  🆔  Container ID: 112
  🏠  Hostname: photoprism
  💾  Disk Size: 2500 GB
  🧠  CPU Cores: 6
  🛠️  RAM Size: 8000 MiB
  🌉  Bridge: vmbr0
  📡  IP Address: dhcp
  🌐  Gateway IP Address: Default
  📡  APT-Cacher IP Address: Default
  🚫  Disable IPv6: no
  ⚙️  Interface MTU Size: Default
  🔍  DNS Search Domain: Host
  📡  DNS Server IP Address: Host
  🏷️  Vlan: Default
  📡  Tags: community-script;media;photo
  🔑  Root SSH Access: yes
Warning: No SSH key provided.
  🔍  Verbose Mode: no
  🚀  Creating a PhotoPrism LXC using the above advanced settings
  ✔️  Using local for Template Storage.
  ✔️  Using bud for Container Storage.
  ✔️  Updated LXC Template List
  ✔️  LXC Container 112 was successfully created.
  ✔️  Started LXC Container
  ✔️  Set up Container OS
  ✔️  Network Connected: 192.168.2.116 2a00:1f:e701:ae01:be24:11ff:fea4:57e0 fdfb:fe92:f120:1:be24:11ff:fea4:57e0 
  ✔️  IPv4 Internet Connected
  ✔️  IPv6 Internet Connected
  ✔️  DNS Resolved github.com to 140.82.121.4
  ✔️  Updated Container OS
  ✔️  Installed Dependencies
  ✔️  Installed PhotoPrism
  ✔️  Created Service
  ✔️  Cleaned
  ✔️  Completed Successfully!

  🚀  PhotoPrism setup has been successfully initialized!
  💡   Access it using the following URL:
    🌐  http://192.168.2.116:2342
Originally created by @cprhh on GitHub (Feb 10, 2025). Originally assigned to: @MickLesk on GitHub. ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? PhotoPrism LXC ### 📂 What was the exact command used to execute the script? bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/photoprism.sh)" ### 📝 Provide a clear and concise description of the issue. Running the default script for PhotoPrism results in a configuration setup that has an error. This means you can't add users from the CLI (required unless you have a subscription that unlocks the GUI), or use the CLI to manage the system. Same issue like here: https://github.com/community-scripts/ProxmoxVE/issues/1621 https://github.com/tteck/Proxmox/issues/3978 --> Here a solution was discussed. ### ⚙️ What settings are you using? - [x] Default Settings - [x] Advanced Settings ### 🖥️ Which Linux distribution are you using? Debian 12 ### 🔄 Steps to reproduce the issue. Run the default/advance settings install of the script. (see setting below) When complete, go to the lxc shell and type a photoprism command e.g. photoprism index or photoprism passwd admin ### ❌ Paste the full error output (if available). ``` ssh root@192.168.2.116 The authenticity of host '192.168.2.116 (192.168.2.116)' can't be established. ED25519 key fingerprint is SHA256:9AqQSj7icgDIyd6c/Zt0QUnvU3nk4npuLJcVsRKOCws. This key is not known by any other names Are you sure you want to continue connecting (yes/no/[fingerprint])? yes Warning: Permanently added '192.168.2.116' (ED25519) to the list of known hosts. root@192.168.2.116's password: The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. PhotoPrism LXC Container 🌐 Provided by: community-scripts ORG | GitHub: https://github.com/community-scripts/ProxmoxVE 🖥️ OS: Debian GNU/Linux - Version: 12 🏠 Hostname: photoprism 💡 IP Address: 192.168.2.116 root@photoprism:~# photoprism index ERRO[2025-02-10T13:07:05+01:00] config: invalid originals path, check configuration and permissions ``` ### 🖼️ Additional context (optional). The tested advanced setting: ``` ____ __ __ ____ _ / __ \/ /_ ____ / /_____ / __ \_____(_)________ ___ / /_/ / __ \/ __ \/ __/ __ \/ /_/ / ___/ / ___/ __ `__ \ / ____/ / / / /_/ / /_/ /_/ / ____/ / / (__ ) / / / / / /_/ /_/ /_/\____/\__/\____/_/ /_/ /_/____/_/ /_/ /_/ 🧩 Using Advanced Settings on node pve1 🖥️ Operating System: debian 🌟 Version: 12 📦 Container Type: Unprivileged 🔐 Root Password: ******** 🆔 Container ID: 112 🏠 Hostname: photoprism 💾 Disk Size: 2500 GB 🧠 CPU Cores: 6 🛠️ RAM Size: 8000 MiB 🌉 Bridge: vmbr0 📡 IP Address: dhcp 🌐 Gateway IP Address: Default 📡 APT-Cacher IP Address: Default 🚫 Disable IPv6: no ⚙️ Interface MTU Size: Default 🔍 DNS Search Domain: Host 📡 DNS Server IP Address: Host 🏷️ Vlan: Default 📡 Tags: community-script;media;photo 🔑 Root SSH Access: yes Warning: No SSH key provided. 🔍 Verbose Mode: no 🚀 Creating a PhotoPrism LXC using the above advanced settings ✔️ Using local for Template Storage. ✔️ Using bud for Container Storage. ✔️ Updated LXC Template List ✔️ LXC Container 112 was successfully created. ✔️ Started LXC Container ✔️ Set up Container OS ✔️ Network Connected: 192.168.2.116 2a00:1f:e701:ae01:be24:11ff:fea4:57e0 fdfb:fe92:f120:1:be24:11ff:fea4:57e0 ✔️ IPv4 Internet Connected ✔️ IPv6 Internet Connected ✔️ DNS Resolved github.com to 140.82.121.4 ✔️ Updated Container OS ✔️ Installed Dependencies ✔️ Installed PhotoPrism ✔️ Created Service ✔️ Cleaned ✔️ Completed Successfully! 🚀 PhotoPrism setup has been successfully initialized! 💡 Access it using the following URL: 🌐 http://192.168.2.116:2342 ```
OVERLORD added the investigation label 2026-02-04 19:08:25 +03:00
Author
Owner

@cprhh commented on GitHub (Feb 10, 2025):

With this I get this running:

mkdir -p /etc/photoprism/

cat <<EOF >/etc/photoprism/defaults.yml
ConfigPath: "~/.config/photoprism"
StoragePath: "/opt/photoprism/storage"
OriginalsPath: "/opt/photoprism/photos/originals"
ImportPath: "/media"
AdminUser: "admin"
AdminPassword: "changeme"
AuthMode: "password"
DatabaseDriver: "sqlite"
HttpHost: "0.0.0.0"
HttpPort: 2342
HttpCompression: "gzip"
DisableTLS: false
DefaultTLS: true
Experimental: false
DisableWebDAV: false
DisableSettings: false
DisableTensorFlow: false
DisableFaces: false
DisableClassification: false
DisableVectors: false
DisableRaw: false
RawPresets: false
JpegQuality: 85
DetectNSFW: false
UploadNSFW: true
EOF
@cprhh commented on GitHub (Feb 10, 2025): With this I get this running: ``` mkdir -p /etc/photoprism/ cat <<EOF >/etc/photoprism/defaults.yml ConfigPath: "~/.config/photoprism" StoragePath: "/opt/photoprism/storage" OriginalsPath: "/opt/photoprism/photos/originals" ImportPath: "/media" AdminUser: "admin" AdminPassword: "changeme" AuthMode: "password" DatabaseDriver: "sqlite" HttpHost: "0.0.0.0" HttpPort: 2342 HttpCompression: "gzip" DisableTLS: false DefaultTLS: true Experimental: false DisableWebDAV: false DisableSettings: false DisableTensorFlow: false DisableFaces: false DisableClassification: false DisableVectors: false DisableRaw: false RawPresets: false JpegQuality: 85 DetectNSFW: false UploadNSFW: true EOF ```
Author
Owner

@michelroegl-brunner commented on GitHub (Feb 11, 2025):

Merged.

@michelroegl-brunner commented on GitHub (Feb 11, 2025): Merged.
Author
Owner

@cprhh commented on GitHub (Feb 11, 2025):

Thx for fixing.

@cprhh commented on GitHub (Feb 11, 2025): Thx for fixing.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#475