Closed megapearl closed 1 year ago
Can you check your server and microservices log? You commented out some of the depends on clause which can mess up the start up sequence.
Here is the guide to setup Immich on Portainer that use the .env file or stack.env to be exact
Wow you're fast replying...
You're right, I think I set the environment variables to the wrong docker, will read the install portainer link you mentioned.
Error: Config validation error: "DB_USERNAME" is required. "DB_PASSWORD" is required. "DB_DATABASE_NAME" is required. "TYPESENSE_API_KEY" is required
I have the same issue with a fresh installl, following the docker compose + .env given here. The only thing changed is that I use Caddy as a reverse proxy.
Chrome console gives me a HTTP POST 404 error when I click the register button: (address blurred)
Could it be a misconfiguration of the IMMICH_*_URL environment variables?
Edit: Got it to work! I now see that it was a misconfiguration of the reverse proxy, as written in the documentation. For future reference, here's my Caddy configuration:
immich.mydomain.com {
route /api/* {
uri strip_prefix /api
reverse_proxy immich-server:3001
}
reverse_proxy immich-web:3000
}
@megapearl you've configured this:
environment:
- IMMICH_WEB_URL=http://photo.mydomainhere.com:3006
- IMMICH_SERVER_URL=http://photo.mydomainhere.com:3007
- IMMICH_MACHINE_LEARNING_URL=http://photo.mydomainhere.com:3008
Unless you have a very custom setup and those services are indeed reachable at those URLs, that is probably incorrect. The default values should work :)
@bo0tzz Yes, I have a custom setup, because other services are already running at the standard immich ports (3000 to 3003) and I already have postgresql redis and a reverse proxy (nginx via swag) running for some other dockers and want to minimize the load of the server which is too high at the moment. At the moment I'm configuring immich using the https://immich.app/docs/install/portainer which I somehow missed.
Immich's ports are internal except for the 2283 port on the proxy, so you shouldn't need to change anything about that.
Yes, internal, but I have other services running (compreface and frigate for example) which are also running on that ports, so I mapped it to another port as I'm not using the 'host' mode in the docker-compose. And I'm not using the proxy of immich because I already have a proxy running doing the same thing.
It is obviously misconfigured and we're trying to tell you those envs are probably wrong. There is no need to change any ports if you're using a bridge network for the stack.
Yes, your comments are valued, that's why I'm starting over using https://immich.app/docs/install/portainer which I mentioned earlier. With some slight modifications using the already running redis postgresql and swag/nginx reverse proxy to minimize the load of the server.
Perfect, sounds good!
Used the instructions that I missed on https://immich.app/docs/install/portainer and https://immich.app/docs/administration/reverse-proxy and adjusted the urls to redis and postgresql and Immich is up and running now. Thanks for all feedback!
The bug
Hi,
First off thanks for your great work, I switched from photoprism to immich since you got face recognition working.
I use portainer stacks, and set up Immich using the docker-compose file, using an already existing postgres and redis database and reverse proxy nginx (swag).
All dockers are running and are not giving any errors, when I browse to Immich for the first time I got the welcome image with 'Getting Started' button which I clicked, after that I got below image.
When I press the signup button nothing happens and no errors are logged in any of the dockers.
How to troubleshoot?
Best Regards, Donald.
The OS that Immich Server is running on
Photonos linux kernel 5.10.175-4.ph4-esx via Portainer virtualised via ESXi
Version of Immich Server
release
Version of Immich Mobile App
release
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Additional information
Reverse proxy configuration: