Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Docker V2 Plugin Install Error #3706

Open
gkoerk opened this issue Oct 2, 2019 · 5 comments
Open

Docker V2 Plugin Install Error #3706

gkoerk opened this issue Oct 2, 2019 · 5 comments

Comments

@gkoerk
Copy link

gkoerk commented Oct 2, 2019

What you expected to happen?

The docker plugin would install successfully.

What happened?

# docker plugin install weaveworks/net-plugin:latest_release
Plugin "weaveworks/net-plugin:latest_release" is requesting the following privileges:
 - network: [host]
 - mount: [/proc/]
 - mount: [/var/run/docker.sock]
 - mount: [/var/lib/]
 - mount: [/etc/]
 - mount: [/lib/modules/]
 - capabilities: [CAP_SYS_ADMIN CAP_NET_ADMIN CAP_SYS_MODULE]
Do you grant the above permissions? [y/N] y
latest_release: Pulling from weaveworks/net-plugin
808b21b1a419: Download complete                                                                                                                                                                                                                                                                                                                                                            Digest: sha256:44b9652a96f5eadd10781d1d87041ac64138c561de12c65f78e0c7d59e82f6d1
Status: Downloaded newer image for weaveworks/net-plugin:latest_release
Error response from daemon: dial unix /run/docker/plugins/0f208375c934c309d12b455c3babe7c5e52952190bdb17f6403c894e4ca61e82/weave.sock: connect: no such file or directory

How to reproduce it?

docker plugin install weaveworks/net-plugin:latest_release

Anything else we need to know?

  • Docker Info:
Containers: 46
 Running: 46
 Paused: 0
 Stopped: 0
Images: 45
Server Version: 17.09.1-ce
Storage Driver: overlay2
 Backing Filesystem: extfs
 Supports d_type: true
 Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: active
 NodeID: jgepzyc4z782izfzkz78yzouw
 Is Manager: true
 ClusterID: nfqwtrh9o84ux7dpp4n518w4z
 Managers: 1
 Nodes: 1
 Orchestration:
  Task History Retention Limit: 5
 Raft:
  Snapshot Interval: 10000
  Number of Old Snapshots to Retain: 0
  Heartbeat Tick: 1
  Election Tick: 3
 Dispatcher:
  Heartbeat Period: 5 seconds
 CA Configuration:
  Expiry Duration: 3 months
  Force Rotate: 0
 Autolock Managers: false
 Root Rotation In Progress: false
 Node Address: 192.168.1.100
 Manager Addresses:
  192.168.1.100:2377
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 6c000fd07a23e5904618abdbb31f75c44865ef13 (expected: 06b9cb35161009dcb7123345749fef02f7cea8e0)
runc version: 3f2f8b84a77f73d38244dd690525642a72156c64
init version: 949e6fa
Security Options:
 seccomp
  Profile: default
Kernel Version: 4.14.24-qnap
Operating System: QTS 4.4.1 (20190816)
OSType: linux
Architecture: x86_64
CPUs: 16
Total Memory: 62.77GiB
Name: GKNAS
ID: FOAM:2BRN:CWEC:GDK4:7RXW:7EU5:5XUG:OQ5K:T3OJ:HZKM:7KW5:3UAN
Docker Root Dir: /share/CACHEDEV1_DATA/Container/container-station-data/lib/docker
Debug Mode (client): false
Debug Mode (server): true
 File Descriptors: 474
 Goroutines: 871
 System Time: 2019-10-02T15:51:03.450564218-05:00
 EventsListeners: 46
Registry: https://index.docker.io/v1/
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

Versions:

$ weave version
weave script 2.5.2
weave 2.5.2

$ docker version
Client:
 Version:      17.09.1-ce
 API version:  1.32
 Go version:   go1.8.3
 Git commit:   e398b97
 Built:        Tue May 28 12:02:28 2019
 OS/Arch:      linux/amd64

Server:
 Version:      17.09.1-ce
 API version:  1.32 (minimum version 1.12)
 Go version:   go1.8.3
 Git commit:   e398b97
 Built:        Tue May 28 12:02:28 2019
 OS/Arch:      linux/amd64
 Experimental: false

$ uname -a
Linux GKNAS 4.14.24-qnap #1 SMP Fri Aug 16 18:41:53 CST 2019 x86_64 GNU/Linux

$ kubectl version
-sh: kubectl: command not found

Logs:

$ docker logs weave
Error response from daemon: No such container: weave

$ journalctl -u docker.service --no-pager
-sh: journalctl: command not found

$ journalctl -u kubelet --no-pager
-sh: journalctl: command not found

$ kubectl get events
-sh: kubectl: command not found

Network:

N/A

@bboreham
Copy link
Contributor

bboreham commented Oct 3, 2019

It appears that your Docker installation is not working the same way others' does.

The way Docker plugins work is to communicate over a "unix socket" in the filesystem.

Error response from daemon: dial unix /run/docker/plugins/0f208375c934c309d12b455c3babe7c5e52952190bdb17f6403c894e4ca61e82/weave.sock: connect: no such file or directory

This means the unix socket was not created as expected.

$ journalctl -u docker.service --no-pager
-sh: journalctl: command not found

Find out where your Docker logs are, there may be some clues in them.

@gkoerk
Copy link
Author

gkoerk commented Oct 5, 2019

I am thinking this is the way I want to try and get Weave installed is via docker plugin install.
You are right that the problem is the is a NAS and though it has docker and swarm support (via Container Station - it's a proprietary OS and they like to hide a LOT of things through symbolic links. Is there a good place you can point me with all the weave environment variables?

@bboreham
Copy link
Contributor

bboreham commented Oct 7, 2019

The source code is the only place to find all the environment variables.
In particular WEAVE_CNI_PLUGIN_DIR which I set at #3707 (comment) is missing from the docs and from the set that are passed through the first weave command hence I had to find another route to set it.

@manelio
Copy link

manelio commented Sep 12, 2022

Same problem here.

I'm trying to find any information, but it looks like this issue has been reported several times in last 3 years and there's no clear solution.

I'm just testing Weave, trying to create a network shared by two hosts with docker network create. But it's being frustrating.

@Alqio
Copy link

Alqio commented Oct 11, 2022

I was experiencing the same problem. Fixed by changing

docker plugin install weaveworks/net-plugin:latest

to

docker plugin install weaveworks/net-plugin:latest_release

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants