#Connectivity Issues from within the Container

1 messages · Page 1 of 1 (latest)

tribal quartz
#

I seem to be having connectivity issues from my containers to the outside world. But GeoNames and huggingface cant be reached to downloaded needed data.

immich_machine_learning | urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /api/models/sentence-transformers/clip-ViT-B-32 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fda018e7e50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

immich_microservices | Error downloading GeoNames cities500 data: Error: getaddrinfo EAI_AGAIN download.geonames.org

I can see the requests coming to my dns and being processed correctly. I have no Issues connecting to these sites with a browser.

jade spire
#

Can you please share your docker-compose file?

elfin siren
#

Well, we know it's a dns issue within your setup can you elaborate on how you have configured dns, especially if it is non-standard?

tribal quartz
#

version: "3.8"

services:
immich-server:
container_name: immich_server
image: ghcr.io/immich-app/immich-server:v1.52.1
entrypoint: ["/bin/sh", "./start-server.sh"]
volumes:
- ${UPLOAD_LOCATION}:/usr/src/app/upload
env_file:
- .env
environment:
- NODE_ENV=production
depends_on:
- redis
- database
- typesense
restart: always

immich-microservices:
container_name: immich_microservices
image: ghcr.io/immich-app/immich-server:v1.52.1
entrypoint: ["/bin/sh", "./start-microservices.sh"]
volumes:
- ${UPLOAD_LOCATION}:/usr/src/app/upload
env_file:
- .env
environment:
- NODE_ENV=production
depends_on:
- redis
- database
- typesense
restart: always

immich-machine-learning:
container_name: immich_machine_learning
image: ghcr.io/immich-app/immich-machine-learning:v1.52.1
volumes:
- ${UPLOAD_LOCATION}:/usr/src/app/upload
- ${MODEL_CACHE}:/cache
env_file:
- .env
environment:
- NODE_ENV=production
restart: always

#

immich-web:
container_name: immich_web
image: ghcr.io/immich-app/immich-web:v1.52.1
entrypoint: ["/bin/sh", "./entrypoint.sh"]
env_file:
- .env
restart: always

typesense:
container_name: immich_typesense
image: typesense/typesense:0.24.0
environment:
- TYPESENSE_API_KEY=${TYPESENSE_API_KEY}
- TYPESENSE_DATA_DIR=/data
logging:
driver: none
volumes:
- ${TS_DATA}:/data
restart: always

redis:
container_name: immich_redis
image: redis:6.2
restart: always

database:
container_name: immich_postgres
image: postgres:14
env_file:
- .env
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_DB: ${DB_DATABASE_NAME}
PG_DATA: /var/lib/postgresql/data
volumes:
- ${PG_DATA}:/var/lib/postgresql/data
restart: always

immich-proxy:
container_name: immich_proxy
image: ghcr.io/immich-app/immich-proxy:v1.52.1
environment:
# Make sure these values get passed through from the env file
- IMMICH_SERVER_URL
- IMMICH_WEB_URL
ports:
- 2283:8080
logging:
driver: none
depends_on:
- immich-server
restart: always

tribal quartz
elfin siren
#

Well, dns takes some time to propogate

#

Also, if it was set at the router level, does that mean it's only propagated to the host machine when it connects?

tribal quartz
#

I rebooted the host and kicked it of the network and reconnected it so it should be updated

elfin siren
#

And same issue?

tribal quartz
#

Yeah still the same, im looking into the dns setting on the host now

elfin siren
#

Do you have a firewall or anything?

tribal quartz
#

Managed to solve it though still not sure what the issue was, I just completely wiped docker from my system and reinstalled from scratch and that did the trick, turned out my other containers also had no internet access, all back up and running now, thanks for the help