Skip to content

Access denied when accessing database, able to connect successfully manually - Error 1045 #1700

Discussion options

You must be logged in to vote

I was able to fix this by accessing the console for the photoprism_app container and changing the UID and GID of the photoprism user from 1000:1000 to my custom UID and GID.

To assign a new UID to user called photoprism, enter:

usermod -u 3001 photoprism

To assign a new GID to group called photoprism, enter:

groupmod -g 3001 photoprism

Update ownership for files outside of home dir:

# find / -group 1000 -exec chgrp -h photoprism {} \;
# find / -user 1000 -exec chown -h photoprism {} \;

Then I had to restart my containers and it worked.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@edgariscoding
Comment options

@lastzero
Comment options

Answer selected by graciousgrey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants