Postgres permission error, not sure whats wrong? - fresh install
compose file attached.
Permissions errors:
36 Replies
:wave: Hey @Shingo,
Thanks for reaching out to us. Please carefully read this message and follow the recommended actions. This will help us be more effective in our support effort and leave more time for building Immich :immich:.
References
- Container Logs:
docker compose logs
docs
- Container Status: docker ps -a
docs
- Reverse Proxy: https://immich.app/docs/administration/reverse-proxy
- Code Formatting https://support.discord.com/hc/en-us/articles/210298617-Markdown-Text-101-Chat-Formatting-Bold-Italic-Underline#h_01GY0DAKGXDEHE263BCAYEGFJAChecklist
I have...
1. :ballot_box_with_check: verified I'm on the latest release(note that mobile app releases may take some time).
2. :ballot_box_with_check: read applicable release notes.
3. :ballot_box_with_check: reviewed the FAQs for known issues.
4. :ballot_box_with_check: reviewed Github for known issues.
5. :ballot_box_with_check: tried accessing Immich via local ip (without a custom reverse proxy).
6. :ballot_box_with_check: uploaded the relevant information (see below).
7. :ballot_box_with_check: tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable
(an item can be marked as "complete" by reacting with the appropriate number)
Information
In order to be able to effectively help you, we need you to provide clear information to show what the problem is. The exact details needed vary per case, but here is a list of things to consider:
- Your docker-compose.yml and .env files.
- Logs from all the containers and their status (see above).
- All the troubleshooting steps you've tried so far.
- Any recent changes you've made to Immich or your system.
- Details about your system (both software/OS and hardware).
- Details about your storage (filesystems, type of disks, output of commands like
fdisk -l
and df -h
).
- The version of the Immich server, mobile app, and other relevant pieces.
- Any other information that you think might be relevant.
Please paste files and logs with proper code formatting, and especially avoid blurry screenshots.
Without the right information we can't work out what the problem is. Help us help you ;)
If this ticket can be closed you can use the /close
command, and re-open it later if needed.GitHub
immich-app immich · Discussions
Explore the GitHub Discussions forum for immich-app immich. Discuss code, ask questions & collaborate with the developer community.
FAQ | Immich
User
GitHub
Issues · immich-app/immich
High performance self-hosted photo and video management solution. - Issues · immich-app/immich
Successfully submitted, a tag has been added to inform contributors. :white_check_mark:
Can you also post the other info?
☑️ read applicable release notes.
- nothing explaining the permissions in a fresh install
☑️ reviewed the FAQs for known issues.
- followed install guide (as best I can from the github site)
☑️ reviewed Github for known issues.
- fresh install, using docker compose.
☑️ tried accessing Immich via local ip (without a custom reverse proxy).
- no proxy, local only
☑️ uploaded the relevant information (see below).
- using default .env file (no changes)
- running in an ubuntu vm on proxmox, both latest
- deleted, pruned, remade, etc, always a permission issue
☑️ tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable
- containers arrent running, NA
What filesystem and OS/deployment are you using?
Ubuntu 24, and ext4
system was built yesterday, and docker setup today, and immich today as well
can you please post output of
df -h
and ls -l /home/case/immich
also sudo docker ps -a
are you running docker as root/sudo?
how did you install docker?
can you also post
docker inspect postgres14
if you're on normal ubuntu you might do better with our standard compsoe file as well, instead of the imagegeniusRun as sudo
``````
I am game to run the standard one
shall I prune and delete images?
can you confirm if you run
docker compose up -d
you still get lots of postgres errors?
i don't see anything super wrong here
let me know this oneDocker Documentation
Ubuntu
Jumpstart your client-side server applications with Docker Engine on Ubuntu. This guide details prerequisites and multiple methods to install Docker Engine on Ubuntu.
Docker Documentation
Ubuntu
Jumpstart your client-side server applications with Docker Engine on Ubuntu. This guide details prerequisites and multiple methods to install Docker Engine on Ubuntu.
very strange
running as root or sudo same answer
try a
docker compose down; docker image prune -a
, then use our official compose and envmake a new directory too ?
fresh directory, yes. and it will auto make the subfolders in that folder
so for exampole put th ecompose and env in
immich-new
and let is make the folders
once it works you can move stuff around but let's keep it simple for nowfor the .env file, should I populate it with the appropriate directory ? or run raw and then down and edit it after we see it running ?
i would run raw
you can easily do a
down; mv; up
pulling now
ok, it's running, did the first touch wizard, and logged in, no errors in the console
if you logged in it's working
if you want to move the UPLOAD_LOCATION (stored pictures/vids) you can do a down,
mv
the folder to the new location, set the UPLOAD_LOCATION, then up
no real reason to move the database, that needs to be on local storageright, should i change anything if I'm using an smb share mounted as a directory to the local file system?
SMB is fine for the UPLOAD_LOCATION
wait, were you using that for the database..? I didn't see that on
df
no, db was always local
ok, got it. then not sure why it did not work earlier
smb is fine for the upload
kk, is there an easy way to import the files that are already on the smb share? or will it see stuff and know what to do ?
i had it running on another host, and the pi memory card died, so i moved eveyrthing to a proxmox vm host
but the previous uiploads are there, but in a different directory
I know there's a bulk upload tool, but is there an easier way?
Do you have a database backup?
It might be in the backups folder
nope, it died on the sd card
Then no, gotta bulk upload
maybe, one sec
i'll check
like 15 compressed sql files
and one .immich file
thanks