[BUG] Connection error after setup via Portainer #504

Closed
opened 2026-02-04 20:53:27 +03:00 by OVERLORD · 6 comments
Owner

Originally created by @Marcus-Schubert on GitHub (Dec 21, 2022).

Describe the bug
Immich services seem to start I can connect, although logs are looking fine.

I have tried the following:

  • access via http://192.168.178.210:2283 (server) --> no connection possible
  • access via http://192.168.178.213:2283 (web) --> no connection possible

After looking at the logs, I saw that the web component is listening on port 3000, so I tried accessing it via http://192.168.178.213:3000. I get to the start screen, but when I click on "Getting Started" I run into "Error code 500". When looking at the logs of web, I can see an error (see attachment), but I'm not sure whether this is a false positive due to me using another port to access the web URL.

Task List

Please complete the task list below. We need this information to help us reproduce the bug or point out problems in your setup. You are not providing enough info may delay our effort to help you.

  • I have read thoroughly the README setup and installation instructions.
  • I have included my docker-compose file.
  • I have included my redacted .env file.
  • I have included information on my machine, and environment.

To Reproduce
Steps to reproduce the behavior:

  1. Deploy immich via Portainer
  2. Try opening ip:2283
  3. See connection error

Expected behavior
Immich is being accessed correctly

Screenshots
Error message that is being shown after accessing the webIP:3000.
grafik

System

  • Phone OS [iOS, Android]: n/a
  • Server Version: 1.39.0
  • Mobile App Version: n/a

Additional context
Next to docker-compose and stack.env I also added the logs of server and web.
stack.txt
compose.txt
_immich-immich-server-1_logs(1).txt
_immich-immich-web-1_logs.txt

Originally created by @Marcus-Schubert on GitHub (Dec 21, 2022). <!-- Note: Please search to see if an issue already exists for the bug you encountered. --> **Describe the bug** Immich services seem to start I can connect, although logs are looking fine. I have tried the following: - access via `http://192.168.178.210:2283` (server) --> no connection possible - access via `http://192.168.178.213:2283` (web) --> no connection possible After looking at the logs, I saw that the web component is listening on port 3000, so I tried accessing it via `http://192.168.178.213:3000`. I get to the start screen, but when I click on "Getting Started" I run into "Error code 500". When looking at the logs of web, I can see an error (see attachment), but I'm not sure whether this is a false positive due to me using another port to access the web URL. **Task List** *Please complete the task list below. We need this information to help us reproduce the bug or point out problems in your setup. You are not providing enough info may delay our effort to help you.* - [x] I have read thoroughly the README setup and installation instructions. - [x] I have included my `docker-compose` file. - [x] I have included my redacted `.env` file. - [x] I have included information on my machine, and environment. **To Reproduce** Steps to reproduce the behavior: 1. Deploy immich via Portainer 2. Try opening ip:2283 3. See connection error **Expected behavior** Immich is being accessed correctly **Screenshots** Error message that is being shown after accessing the webIP:3000. ![grafik](https://user-images.githubusercontent.com/73036442/208932820-2cb95882-1de1-4e52-80eb-bb3066c03e08.png) **System** - Phone OS [iOS, Android]: n/a - Server Version: 1.39.0 - Mobile App Version: n/a **Additional context** Next to docker-compose and stack.env I also added the logs of server and web. [stack.txt](https://github.com/immich-app/immich/files/10278524/stack.txt) [compose.txt](https://github.com/immich-app/immich/files/10278506/compose.txt) [_immich-immich-server-1_logs(1).txt](https://github.com/immich-app/immich/files/10278598/_immich-immich-server-1_logs.1.txt) [_immich-immich-web-1_logs.txt](https://github.com/immich-app/immich/files/10278618/_immich-immich-web-1_logs.txt)
Author
Owner

@alextran1502 commented on GitHub (Dec 21, 2022):

You should use 192.168.178.216:2283

@alextran1502 commented on GitHub (Dec 21, 2022): You should use `192.168.178.216:2283`
Author
Owner

@alextran1502 commented on GitHub (Dec 21, 2022):

IN your .env setting, you need to append the port to

IMMICH_SERVER_URL=http://192.168.178.210:3001
IMMICH_WEB_URL=http://192.168.178.213:3000
@alextran1502 commented on GitHub (Dec 21, 2022): IN your .env setting, you need to append the port to ``` IMMICH_SERVER_URL=http://192.168.178.210:3001 IMMICH_WEB_URL=http://192.168.178.213:3000 ```
Author
Owner

@alextran1502 commented on GitHub (Dec 21, 2022):

I highly recommended to use the default network setup though.

@alextran1502 commented on GitHub (Dec 21, 2022): I highly recommended to use the default network setup though.
Author
Owner

@jrasm91 commented on GitHub (Dec 21, 2022):

You have another issue in that, by using that "default" network, you are somehow running into a port conflict for the immich-web container. It's almost like all these containers are running in host network mode. You really only need an IP address and port exposed for the proxy container.

@jrasm91 commented on GitHub (Dec 21, 2022): You have another issue in that, by using that "default" network, you are somehow running into a port conflict for the immich-web container. It's almost like all these containers are running in host network mode. You really only need an IP address and port exposed for the proxy container.
Author
Owner

@Marcus-Schubert commented on GitHub (Dec 21, 2022):

@alextran1502
Thank you for the quick response. I appended the port and used http://192.168.178.216:2283 to access immich, but I still got the connection error.

I tried to use it in bridge mode instead of macvlan and it worked without an issue.

@jrasm91 Good point, I will change the configuration to only one IP and port.

@Marcus-Schubert commented on GitHub (Dec 21, 2022): @alextran1502 Thank you for the quick response. I appended the port and used http://192.168.178.216:2283 to access immich, but I still got the connection error. I tried to use it in bridge mode instead of macvlan and it worked without an issue. @jrasm91 Good point, I will change the configuration to only one IP and port.
Author
Owner

@alextran1502 commented on GitHub (Dec 21, 2022):

@Marcus-Schubert Sounds good! I guess I will close this issue. Please feel free to open it if you encounter anything else

@alextran1502 commented on GitHub (Dec 21, 2022): @Marcus-Schubert Sounds good! I guess I will close this issue. Please feel free to open it if you encounter anything else
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#504