#Debian VM with portainer unable to deploy Immich

1 messages · Page 1 of 1 (latest)

mint jacinth
#

I have a DB setup in proxmox with remote db and upload location on truenas samba share. After setting on correct variable and configs, I get this error that db_password and databse_name is required. While the postgres db service seems to run fine without error.

idle rockBOT
#

:wave: Hey @mint jacinth,

Thanks for reaching out to us. Please follow the recommended actions below; this will help us be more effective in our support effort and leave more time for building Immich immich.

References

Checklist

  1. :blue_square: I have verified I'm on the latest release(note that mobile app releases may take some time).
  2. :blue_square: I have read applicable release notes.
  3. :blue_square: I have reviewed the FAQs for known issues.
  4. :blue_square: I have reviewed Github for known issues.
  5. :blue_square: I have tried accessing Immich via local ip (without a custom reverse proxy).
  6. :blue_square: I have uploaded the relevant logs, docker compose, and .env files using the buttons below or the /upload command.
  7. :blue_square: I have 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)

If this ticket can be closed you can use the /close command, and re-open it later if needed.

sage crest
#
#    env_file:
#      - .env

Why did you comment this out? That's the reason it's not working

mint jacinth
#

I added the variables on portainer separately. I recall from other setup. That it just looks up the individual variable and their value. Is that wrong?

sage crest
#

Did you add them to each container separately? Or to the stack?

#

They need to get passed through to the container which is what that commented out line does

mint jacinth
mint jacinth
sage crest
#

Have you read the immich docs for installing with portainer?

mint jacinth
#

yes,

#

also if i uncomment teh .env lines, i get the error.

#

I guess i might have missed some steps.

charred mountain
#

I recommend starting over

mint jacinth
#

fixed the stack.env

#

and now 3/4 services are running and green

#

i can reacg the gui as well. just wondering why postgres is showing yellow

charred mountain
#

It says starting. How long did you wait? What do the logs say?

thick crag
#

again, below that in portainer you need the "extra variables", that's the .env info like below

mint jacinth
#

But now my mount point is not saving file to nas, but created directories locally. so need to fix the automount of share.

mint jacinth
mint jacinth
#

db creation is failing

thick crag
#

Well now, your data dir has no access for postgres, go validate /var/lib/postgresql/data and fix the permissions

mint jacinth
#

I am struggling with permissions, if I add Postgres user and group to truenas share, it breaks the access to directory but db work. I manually tried adding both but it’s not working.