1. What is not working as documented?
See description.
2. How can we reproduce it?
- Run
docker-compose exec photoprism photoprism passwd admin
- Input
b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b as the password (ditto for the "retype password" prompt)
- See the log in section 5 of this issue
- Try logging in with the password in the browser - notice how you get an "Invalid credentials" error
3. What behavior do you expect?
The password is set properly and I can log in using it.
4. What could be the cause of your problem?
I don't really see anything relevant in the troubleshooting guide - I checked the "cannot log in" section, but this issue originally cropped up when I upgraded, not when I manually changed the admin password. Note though that I was upgrading from a really old release; I think it was from around last November but I'm really not sure.
5. Can you provide us with example files for testing, error logs, or screenshots?
Here's the output to console:
root@230615:/photoprism$ photoprism passwd admin # I ran this inside the container
DEBU[2023-06-16T18:05:50Z] config: overriding config with values from /photoprism/storage/config/options.yml
DEBU[2023-06-16T18:05:50Z] settings: loaded from /photoprism/storage/config/settings.yml
DEBU[2023-06-16T18:05:50Z] config: running on 'Intel(R) Pentium(R) CPU 1403 v2 @ 2.60GHz', 34 GB memory detected
DEBU[2023-06-16T18:05:50Z] config: successfully initialized [77.944076ms]
INFO[2023-06-16T18:05:50Z] migrate: running database migrations
DEBU[2023-06-16T18:05:50Z] migrate: 20221015-100000 skipped
DEBU[2023-06-16T18:05:50Z] migrate: 20221015-100100 skipped
DEBU[2023-06-16T18:05:50Z] migrate: 20211121-094727 skipped
DEBU[2023-06-16T18:05:50Z] migrate: 20211124-120008 skipped
DEBU[2023-06-16T18:05:50Z] migrate: 20220329-030000 skipped
DEBU[2023-06-16T18:05:50Z] migrate: 20220329-040000 skipped
DEBU[2023-06-16T18:05:50Z] migrate: 20220329-050000 skipped
DEBU[2023-06-16T18:05:50Z] migrate: 20220329-060000 skipped
DEBU[2023-06-16T18:05:50Z] migrate: 20220329-061000 skipped
DEBU[2023-06-16T18:05:50Z] migrate: 20220329-070000 skipped
DEBU[2023-06-16T18:05:50Z] migrate: 20220329-071000 skipped
DEBU[2023-06-16T18:05:50Z] migrate: 20220329-080000 skipped
DEBU[2023-06-16T18:05:50Z] migrate: 20220329-081000 skipped
DEBU[2023-06-16T18:05:50Z] migrate: 20220329-083000 skipped
DEBU[2023-06-16T18:05:50Z] migrate: 20220329-090000 skipped
DEBU[2023-06-16T18:05:50Z] migrate: 20220329-091000 skipped
DEBU[2023-06-16T18:05:50Z] migrate: 20220329-093000 skipped
DEBU[2023-06-16T18:05:50Z] migrate: 20220421-200000 skipped
DEBU[2023-06-16T18:05:50Z] migrate: 20220521-000001 skipped
DEBU[2023-06-16T18:05:50Z] migrate: 20220521-000002 skipped
DEBU[2023-06-16T18:05:50Z] migrate: 20220521-000003 skipped
DEBU[2023-06-16T18:05:50Z] migrate: 20220927-000100 skipped
DEBU[2023-06-16T18:05:50Z] migrate: 20221002-000100 skipped
DEBU[2023-06-16T18:05:50Z] migrate: 20230102-000001 skipped
DEBU[2023-06-16T18:05:50Z] migrate: 20230211-000001 skipped
DEBU[2023-06-16T18:05:50Z] migrate: 20230309-000001 skipped
DEBU[2023-06-16T18:05:50Z] migrate: 20230313-000001 skipped
DEBU[2023-06-16T18:05:51Z] migrate: completed in 1.267721165s
WARN[2023-06-16T18:05:51Z] config: password required to initialize 'admin' account
INFO[2023-06-16T18:05:51Z] please enter a new password for admin (minimum 8 characters)
New Password:
Retype Password:
ERRO[2023-06-16T18:06:27Z] auth: password is too short
INFO[2023-06-16T18:06:27Z] password for admin successfully changed
DEBU[2023-06-16T18:06:27Z] closed database connection
6. Which software versions do you use?
(a) PhotoPrism Architecture & Build Number: photoprism version 230615-90a18f6e7-Linux-AMD64-Plus
(b) Database Type & Version: MariaDB 10.5.19-0+deb11u2 (installed from Debian on the host)
(c) Operating System Types & Versions: Linux (Debian 11) running in a LXD container
(d) Browser Types & Versions: N/A
(e) Ad Blockers, Browser Plugins, and/or Firewall Software? No
7. On what kind of device is PhotoPrism installed?
N/A
8. Do you use a Reverse Proxy, Firewall, VPN, or CDN?
N/A
1. What is not working as documented?
See description.
2. How can we reproduce it?
docker-compose exec photoprism photoprism passwd adminb3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3bas the password (ditto for the "retype password" prompt)3. What behavior do you expect?
The password is set properly and I can log in using it.
4. What could be the cause of your problem?
I don't really see anything relevant in the troubleshooting guide - I checked the "cannot log in" section, but this issue originally cropped up when I upgraded, not when I manually changed the admin password. Note though that I was upgrading from a really old release; I think it was from around last November but I'm really not sure.
5. Can you provide us with example files for testing, error logs, or screenshots?
Here's the output to console:
6. Which software versions do you use?
(a) PhotoPrism Architecture & Build Number:
photoprism version 230615-90a18f6e7-Linux-AMD64-Plus(b) Database Type & Version: MariaDB
10.5.19-0+deb11u2(installed from Debian on the host)(c) Operating System Types & Versions: Linux (Debian 11) running in a LXD container
(d) Browser Types & Versions: N/A
(e) Ad Blockers, Browser Plugins, and/or Firewall Software? No
7. On what kind of device is PhotoPrism installed?
N/A
8. Do you use a Reverse Proxy, Firewall, VPN, or CDN?
N/A