You are not logged in.

#1 2023-08-06 14:15:23

Rec100
Member
Registered: 2022-03-12
Posts: 32

Docker fails to create endpoint /add the host

Hi all,

I took some time this weekend, trying to resolve a problem, which occurred after an update about 3 weeks ago. I was hoping it will solve itself with later updates, but no.

When running

sudo docker run -it --rm -v ~/Repositories/foo:/src foo scrapy crawl check -a cfg=./check_example

(example), I get the following error:

docker: Error response from daemon: failed to create endpoint dazzling_napiers on network bridge: failed to add the host (veth3ac5b32) <=> sandbox (veth5957d61) pair interfaces: operation not supported.

Looking the problem up, I've found suggestions about missing kernel modules.


docker info:

Client:
 Version:    24.0.2
 Context:    default
 Debug Mode: false

Server:
 Containers: 1
  Running: 0
  Paused: 0
  Stopped: 1
 Images: 27
 Server Version: 24.0.2
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: true
  Native Overlay Diff: false
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: runc io.containerd.runc.v2
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 0cae528dd6cb557f7201036e9f43420650207b58.m
 runc version: 
 init version: de40ad0
 Security Options:
  seccomp
   Profile: builtin
  cgroupns
 Kernel Version: 6.4.3-arch1-2
 Operating System: Arch Linux
---
snip

Updating arch, rebooting, restarting docker didn't do the trick.

Any ideas what I could do?

Last edited by Rec100 (2023-08-06 14:16:46)

Offline

#2 2023-08-07 18:16:24

twelveeighty
Member
From: Alberta, Canada
Registered: 2011-09-04
Posts: 1,142

Re: Docker fails to create endpoint /add the host

Check the journal around the time you run the 'docker run' command to see if there's more detailed information. As you mentioned, it could be a missing kernel module, but a more detailed log entry might shed light on which one.

Offline

#3 2023-08-14 19:20:14

Rec100
Member
Registered: 2022-03-12
Posts: 32

Re: Docker fails to create endpoint /add the host

I am still struggeling with that problem. After fixing some of the issues I've found in journalctl, I am stuck with the following output:

Aug 14 19:01:00 host sudo[733418]:     user : TTY=pts/8 ; PWD=/home/user ; USER=root ; COMMAND=/usr/bin/docker run -it --rm -v /home/user/Repositories/foo:/src foo scrapy crawl check -a cfg=./check_example
Aug 14 19:01:00 host sudo[733418]: pam_unix(sudo:session): session opened for user root(uid=0) by user(uid=1000)
Aug 14 19:01:00 host systemd[1]: var-lib-docker-overlay2-6823fe349c399aeed5e44b26450355ab51ee3ffbb4432db5d8ce1968672857b7\x2dinit-merged.mount: Deactivated successfully.
Aug 14 19:01:00 host kernel: docker0: port 3(vethe601128) entered blocking state
Aug 14 19:01:00 host kernel: docker0: port 3(vethe601128) entered disabled state
Aug 14 19:01:00 host kernel: vethe601128: entered allmulticast mode
Aug 14 19:01:00 host kernel: vethe601128: entered promiscuous mode
Aug 14 19:01:00 host kernel: docker0: port 3(vethe601128) entered blocking state
Aug 14 19:01:00 host kernel: docker0: port 3(vethe601128) entered forwarding state
Aug 14 19:01:00 host NetworkManager[1251]: <info>  [1692032460.3889] manager: (veth2258282): new Veth device (/org/freedesktop/NetworkManager/Devices/27)
Aug 14 19:01:00 host NetworkManager[1251]: <info>  [1692032460.3895] manager: (vethe601128): new Veth device (/org/freedesktop/NetworkManager/Devices/28)
Aug 14 19:01:00 host kernel: docker0: port 3(vethe601128) entered disabled state
Aug 14 19:01:00 host containerd[1288]: time="2023-08-14T19:01:00.437051947+02:00" level=info msg="loading plugin \"io.containerd.internal.v1.shutdown\"..." runtime=io.containerd.runc.v2 type=io.containerd.internal.v1
Aug 14 19:01:00 host containerd[1288]: time="2023-08-14T19:01:00.437085212+02:00" level=info msg="loading plugin \"io.containerd.ttrpc.v1.pause\"..." runtime=io.containerd.runc.v2 type=io.containerd.ttrpc.v1
Aug 14 19:01:00 host containerd[1288]: time="2023-08-14T19:01:00.437097473+02:00" level=info msg="loading plugin \"io.containerd.event.v1.publisher\"..." runtime=io.containerd.runc.v2 type=io.containerd.event.v1
Aug 14 19:01:00 host containerd[1288]: time="2023-08-14T19:01:00.437105721+02:00" level=info msg="loading plugin \"io.containerd.ttrpc.v1.task\"..." runtime=io.containerd.runc.v2 type=io.containerd.ttrpc.v1
Aug 14 19:01:00 host systemd[1]: Started libcontainer container b01dec6e3aaaa3c70d3778c00126af7110e887a5a91355a086f57ba8e70c1ae3.
Aug 14 19:01:00 host kernel: eth0: renamed from veth2258282
Aug 14 19:01:00 host NetworkManager[1251]: <info>  [1692032460.6261] device (vethe601128): carrier: link connected
Aug 14 19:01:00 host kernel: docker0: port 3(vethe601128) entered blocking state
Aug 14 19:01:00 host kernel: docker0: port 3(vethe601128) entered forwarding state
Aug 14 19:01:01 host systemd[1]: run-docker-runtime\x2drunc-moby-b01dec6e3aaaa3c70d3778c00126af7110e887a5a91355a086f57ba8e70c1ae3-runc.7PoIHn.mount: Deactivated successfully.
Aug 14 19:04:42 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 19:04:42 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 19:04:48 host wpa_supplicant[1342]: wlan0: WPA: Group rekeying completed with dc:39:6f:65:36:b7 [GTK=CCMP]
Aug 14 19:04:50 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 19:04:50 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 19:06:10 host kernel: perf: interrupt took too long (3923 > 3921), lowering kernel.perf_event_max_sample_rate to 50700
Aug 14 19:09:42 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 19:09:42 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 19:09:55 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 19:09:55 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 19:14:42 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 19:14:42 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 19:14:48 host wpa_supplicant[1342]: wlan0: WPA: Group rekeying completed with dc:39:6f:65:36:b7 [GTK=CCMP]
Aug 14 19:14:50 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 19:14:50 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 19:19:42 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 19:19:42 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 19:19:55 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 19:19:55 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 19:24:43 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 19:24:43 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 19:24:48 host wpa_supplicant[1342]: wlan0: WPA: Group rekeying completed with dc:39:6f:65:36:b7 [GTK=CCMP]
Aug 14 19:24:50 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 19:24:50 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 19:29:43 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 19:29:43 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 19:29:55 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 19:29:55 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 19:34:44 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 19:34:44 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 19:34:48 host wpa_supplicant[1342]: wlan0: WPA: Group rekeying completed with dc:39:6f:65:36:b7 [GTK=CCMP]
Aug 14 19:34:51 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 19:34:51 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 19:39:44 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 19:39:44 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 19:39:56 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 19:39:56 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 19:44:44 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 19:44:44 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 19:44:48 host wpa_supplicant[1342]: wlan0: WPA: Group rekeying completed with dc:39:6f:65:36:b7 [GTK=CCMP]
Aug 14 19:44:51 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 19:44:51 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 19:49:45 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 19:49:45 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 19:49:56 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 19:49:56 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 19:52:33 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 19:52:33 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 19:54:45 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 19:54:45 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 19:54:48 host wpa_supplicant[1342]: wlan0: WPA: Group rekeying completed with dc:39:6f:65:36:b7 [GTK=CCMP]
Aug 14 19:54:51 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 19:54:51 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 19:59:46 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 19:59:46 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 19:59:56 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 19:59:56 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 20:04:46 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 20:04:46 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 20:04:48 host wpa_supplicant[1342]: wlan0: WPA: Group rekeying completed with dc:39:6f:65:36:b7 [GTK=CCMP]
Aug 14 20:04:52 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 20:04:52 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 20:09:47 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 20:09:47 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 20:09:57 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 20:09:57 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 20:14:47 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 20:14:47 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 20:14:48 host wpa_supplicant[1342]: wlan0: WPA: Group rekeying completed with dc:39:6f:65:36:b7 [GTK=CCMP]
Aug 14 20:14:52 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 20:14:52 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 20:19:47 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 20:19:47 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 20:19:57 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 20:19:57 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 20:24:47 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 20:24:47 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 20:24:48 host wpa_supplicant[1342]: wlan0: WPA: Group rekeying completed with dc:39:6f:65:36:b7 [GTK=CCMP]
Aug 14 20:24:52 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 20:24:52 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 20:29:47 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 20:29:47 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 20:29:58 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 20:29:58 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 20:34:48 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 20:34:48 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 20:34:48 host wpa_supplicant[1342]: wlan0: WPA: Group rekeying completed with dc:39:6f:65:36:b7 [GTK=CCMP]
Aug 14 20:34:53 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 20:34:53 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 20:39:49 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 20:39:49 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 20:39:58 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 20:39:58 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 20:44:48 host wpa_supplicant[1342]: wlan0: WPA: Group rekeying completed with dc:39:6f:65:36:b7 [GTK=CCMP]
Aug 14 20:44:49 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 20:44:49 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 20:44:53 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 20:44:53 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 20:49:49 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 20:49:49 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 20:49:58 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 20:49:58 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 20:54:48 host wpa_supplicant[1342]: wlan0: WPA: Group rekeying completed with dc:39:6f:65:36:b7 [GTK=CCMP]
Aug 14 20:54:50 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 20:54:50 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 20:54:53 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 20:54:53 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 20:59:50 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 20:59:50 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 20:59:59 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 20:59:59 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 21:03:14 host NetworkManager[1251]: <info>  [1692039794.9515] agent-manager: agent[52be0f3a7c9c05be,:1.58/org.gnome.Shell.NetworkAgent/1000]: agent registered
Aug 14 21:03:32 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 21:03:32 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 21:03:32 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 21:03:32 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 21:04:48 host sudo[3117111]: pam_systemd_home(sudo:auth): Not a user managed by systemd-homed: No home for user user known
Aug 14 21:04:48 host wpa_supplicant[1342]: wlan0: WPA: Group rekeying completed with dc:39:6f:65:36:b7 [GTK=CCMP]
Aug 14 21:04:51 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 21:04:51 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 21:04:53 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 21:04:53 host rtkit-daemon[1438]: Supervising 2 threads of 2 processes of 1 users.
Aug 14 21:04:57 host sudo[3117111]:     user : TTY=pts/7 ; PWD=/home/user/Repositories/ ; USER=root ; COMMAND=/usr/bin/killall docker -9
Aug 14 21:04:57 host sudo[3117111]: pam_unix(sudo:session): session opened for user root(uid=0) by user(uid=1000)
Aug 14 21:04:57 host sudo[3117111]: pam_unix(sudo:session): session closed for user root
Aug 14 21:04:57 host dockerd[1719]: time="2023-08-14T21:04:57.239807575+02:00" level=error msg="attach failed with error: error attaching stdout stream: write unix /run/docker.sock->@: write: broken pipe"
Aug 14 21:04:57 host sudo[733418]: pam_unix(sudo:session): session closed for user root

Does anyone see the source of the problem here?

I've kept the log from starting docker until killing it ungracefully with killall docker -9 (nothing else works).

Offline

Board footer

Powered by FluxBB