#✘ Network immich_default Error Error response from daemon: add inter-network communication rule

1 messages · Page 1 of 1 (latest)

meager grove
#

✘ Network immich_default Error Error response from daemon: add inter-network communication rule: (iptables failed: iptables --wai... 0.1s
failed to create network immich_default: Error response from daemon: add inter-network communication rule: (iptables failed: iptables --wait -t filter -A DOCKER-ISOLATION-STAGE-1 -i br-008e844f31d4 ! -o br-008e844f31d4 -j DOCKER-ISOLATION-STAGE-2: iptables v1.8.10 (nf_tables): Chain 'DOCKER-ISOLATION-STAGE-2' does not exist
Try `iptables -h' or 'iptables --help' for more information.

I keep getting this error when i turn on with "docker compose up -d".
Any ideea on what is the issue? Port already open in UFW. Self-hosted, ubuntu.

Thanks!

subtle mothBOT
#

:wave: Hey @meager grove,

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

#

Checklist

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.

subtle mothBOT
muted minnow
#

Post your compose and env

plush scaffold
#

restart the docker daemon service

meager grove
#

Already tried restarting, same.

#

file: hwaccel.ml.yml

#   service: cpu # set to one of [armnn, cuda, rocm, openvino, openvino-wsl, rknn] for accelerated inference - use the `-wsl` version for WSL2 where appl>
volumes:
  - model-cache:/cache
env_file:
  - .env
restart: always
healthcheck:
  disable: false

redis:
container_name: immich_redis
image: docker.io/valkey/valkey:8@sha256:81db6d39e1bba3b3ff32bd3a1b19a6d69690f94a3954ec131277b9a26b95b3aa
healthcheck:
test: redis-cli ping || exit 1
restart: always

database:
container_name: immich_postgres
image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0@sha256:bcf63357191b76a916ae5eb93464d65c07511da41e3bf7a8416db519b40b1c23
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_DB: ${DB_DATABASE_NAME}
POSTGRES_INITDB_ARGS: '--data-checksums'
# Uncomment the DB_STORAGE_TYPE: 'HDD' var if your database isn't stored on SSDs
# DB_STORAGE_TYPE: 'HDD'
volumes:
# Do not edit the next line. If you want to change the database storage location on your system, edit the value of DB_DATA_LOCATION in the .env file
- ${DB_DATA_LOCATION}:/var/lib/postgresql/data
shm_size: 128mb
restart: always

volumes:
model-cache:

#

You can find documentation for all the supported env variables at https://docs.immich.app/install/environment-variables

The location where your uploaded files are stored

UPLOAD_LOCATION=./library

The location where your database files are stored. Network shares are not supported for the database

DB_DATA_LOCATION=./postgres

To set a timezone, uncomment the next line and change Etc/UTC to a TZ identifier from this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zon>

TZ=Etc/UTC

The Immich version to use. You can pin this to a specific version like "v2.1.0"

IMMICH_VERSION=v2

Connection secret for postgres. You should change it to a random password

Please use only the characters A-Za-z0-9, without special characters or spaces

DB_PASSWORD=postgres

The values below this line do not need to be changed

###################################################################################
DB_USERNAME=postgres
DB_DATABASE_NAME=immich

plush scaffold
#

posting code on discord is with triple backtics:

code
meager grove
#

rest of the compose went fine, i just get the above mentioned errors regarding network. will try to paste also full compose

#

sorry, will try tu use backticks

#

'''sorin@LEA-Server:~/immich-app$ docker compose up -d
[+] up 1/1
✘ Network immich_default Error Error response from daemon: add inter-network communication rule: (iptables failed: iptables --wai... 0.1s
failed to create network immich_default: Error response from daemon: add inter-network communication rule: (iptables failed: iptables --wait -t filter -A DOCKER-ISOLATION-STAGE-1 -i br-ad60bebeeb69 ! -o br-ad60bebeeb69 -j DOCKER-ISOLATION-STAGE-2: iptables v1.8.10 (nf_tables): Chain 'DOCKER-ISOLATION-STAGE-2' does not exist
Try `iptables -h' or 'iptables --help' for more information.
(exit status 2))
'''

#

that's all the output i got for the moment, can't find full compose output in CLI

plush scaffold
#

your compose file is incomplete I mean

#

the top is missing

meager grove
#

ok ill try again

#
# WARNING: To install Immich, follow our guide: https://docs.immich.app/install/docker-compose
#
# Make sure to use the docker-compose.yml of the current release:
#
# https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml
#
# The compose file on main may not be compatible with the latest release.

name: immich

services:
  immich-server:
    container_name: immich_server
    image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
    # extends:
    #   file: hwaccel.transcoding.yml
    #   service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding
    volumes:
      # Do not edit the next line. If you want to change the media storage location on your system, edit the value of UPLOAD_LOCATION in the .env file
      - ${UPLOAD_LOCATION}:/data
      - /etc/localtime:/etc/localtime:ro
    env_file:
      - .env
    ports:
      - '2283:2283'
    depends_on:
      - redis
      - database
    restart: always
    healthcheck:
#

  immich-machine-learning:
    container_name: immich_machine_learning
    # For hardware acceleration, add one of -[armnn, cuda, rocm, openvino, rknn] to the image tag.
    # Example tag: ${IMMICH_VERSION:-release}-cuda
    image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
    # extends: # uncomment this section for hardware acceleration - see https://docs.immich.app/features/ml-hardware-acceleration
    #   file: hwaccel.ml.yml
    #   service: cpu # set to one of [armnn, cuda, rocm, openvino, openvino-wsl, rknn] for accelerated inference - use the `-wsl` version for WSL2 where appl>
    volumes:
      - model-cache:/cache
    env_file:
      - .env
    restart: always
    healthcheck:
      disable: false

  redis:
    container_name: immich_redis
    image: docker.io/valkey/valkey:8@sha256:81db6d39e1bba3b3ff32bd3a1b19a6d69690f94a3954ec131277b9a26b95b3aa
    healthcheck:
      test: redis-cli ping || exit 1
    restart: always

  database:
    container_name: immich_postgres
    image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0@sha256:bcf63357191b76a916ae5eb93464d65c07511da41e3bf7a8416db519b40b1c23
    environment:
      POSTGRES_PASSWORD: ${DB_PASSWORD}
      POSTGRES_USER: ${DB_USERNAME}
      POSTGRES_DB: ${DB_DATABASE_NAME}
      POSTGRES_INITDB_ARGS: '--data-checksums'
      # Uncomment the DB_STORAGE_TYPE: 'HDD' var if your database isn't stored on SSDs
      # DB_STORAGE_TYPE: 'HDD'
#
      # Do not edit the next line. If you want to change the database storage location on your system, edit the value of DB_DATA_LOCATION in the .env file
      - ${DB_DATA_LOCATION}:/var/lib/postgresql/data
    shm_size: 128mb
    restart: always

volumes:
  model-cache:

#

unfortunetly MobaXtrem is giving me some grief in copying whole file

plush scaffold
#

mobaxterm, are you on windows?

meager grove
#

yes, i use mobaxtrem to ssh to my headless ubuntu home server

plush scaffold
#

Ah the server isn't, okay

#

you're sure you installed docker core and not docker snap?

meager grove
#

can i check from CLI?

#
 Version:           29.1.3
 API version:       1.51 (downgraded from 1.52)
 Go version:        go1.25.5
 Git commit:        f52814d
 Built:             Fri Dec 12 14:49:32 2025
 OS/Arch:           linux/amd64
 Context:           default

Server:
 Engine:
  Version:          28.4.0
  API version:      1.51 (minimum version 1.24)
  Go version:       go1.24.6
  Git commit:       249d679
  Built:            Thu Sep 11 16:43:39 2025
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          v1.7.27
  GitCommit:        05044ec0a9a75232cad458027ca83437aae3f4da
 runc:
  Version:          1.2.6
  GitCommit:
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0
plush scaffold
#

snap info docker

meager grove
#
summary:   Docker container runtime
publisher: Canonical✓
store-url: https://snapcraft.io/docker
license:   (Apache-2.0 AND MIT AND GPL-2.0)
description: |
  Build and run container images with Docker.

  **Usage**

  Refer to https://github.com/canonical/docker-snap/blob/main/README.md

  **Authors**

  This snap is built by Canonical based on source code published by Docker, Inc. It is not endorsed
  or published by Docker, Inc.

  Docker and the Docker logo are trademarks or registered trademarks of Docker, Inc. in the United
  States and/or other countries. Docker, Inc. and other parties may also have trademark rights in
  other terms used herein.
commands:
  - docker.compose
  - docker
services:
  docker.dockerd:                  simple, enabled, active
  docker.nvidia-container-toolkit: oneshot, enabled, inactive
snap-id:      sLCsFAO8PKM5Z0fAKNszUOX0YASjQfeZ
tracking:     latest/stable
refresh-date: yesterday at 15:38 EET
channels:
  latest/stable:    28.4.0   2025-11-17 (3377) 158MB -
  latest/candidate: ↑
  latest/beta:      29.1.2   2025-12-12 (3433) 141MB -
  latest/edge:      29.1.2   2025-12-13 (3446) 141MB -
  core24/stable:    28.4.0   2025-10-29 (3377) 158MB -
  core24/candidate: ↑
  core24/beta:      ↑
  core24/edge:      ↑
  core22/stable:    28.1.1+1 2025-07-30 (3265) 147MB -
  core22/candidate: ↑
  core22/beta:      28.3.3   2025-08-27 (3359) 154MB -
  core22/edge:      28.3.3   2025-08-14 (3359) 154MB -
installed:          28.4.0              (3377) 158MB -
plush scaffold
#

looks like you have snap docker indeed

#

Is your Immich already running or are you just trying to set things up @meager grove ?

#

If just trying to set up, do you have other docker things running or not

meager grove
#

just installing

#

atm all docker containers are down, i had radarr a few hours to test but removed it

#
55aeae02ffcd   lscr.io/linuxserver/radarr:latest   "/init"   28 hours ago   Up 8 hours   0.0.0.0:7878->7878/tcp, [::]:7878->7878/tcp   radarr
plush scaffold
#

Best just remove docker snap altogether and install docker core properly @meager grove

meager grove
#

ok will do that. any particular step i need to do ATM in order to prevent any future conflict with this attempted install?

muted minnow
#

sudo snap remove docker --purge then reboot

meager grove
#

will do, thanks for the suggestion

meager grove
#

worked like a charm, managed to install and sync a test batch of photos