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

weave Net 2.5.0 on macosx 10.14.1 #3405

Closed
guijun opened this issue Sep 17, 2018 · 10 comments
Closed

weave Net 2.5.0 on macosx 10.14.1 #3405

guijun opened this issue Sep 17, 2018 · 10 comments
Labels
Milestone

Comments

@guijun
Copy link

guijun commented Sep 17, 2018

No DNS entry added after container started.
steps to repoduce:

  1. Docker Version 18.06.1-ce-mac73 (26764)
  2. install weave 2.4.1 by curl
  3. eval $(weave env)
  4. docker run --name AAA bash /usr/bash
  5. weave ps
    No entry listed.
@guijun
Copy link
Author

guijun commented Sep 17, 2018

INFO: 2018/09/17 10:33:23.634525 Checking for pre-existing addresses on weave bridge
INFO: 2018/09/17 10:33:23.651539 [allocator 06:e5:51:81:de:cc] Deleting persisted data for peername ba:10:f1:df:37:f2
INFO: 2018/09/17 10:33:23.655403 [allocator 06:e5:51:81:de:cc] Initialising via deferred consensus
INFO: 2018/09/17 10:33:23.657490 Listening for DNS queries on 172.17.0.1:53
INFO: 2018/09/17 10:33:23.660993 Sniffing traffic on datapath (via ODP)
INFO: 2018/09/17 10:33:23.662647 Listening for HTTP control messages on 127.0.0.1:6784
INFO: 2018/09/17 10:33:23.662985 Listening for status+metrics requests on 127.0.0.1:6782
INFO: 2018/09/17 10:33:23.663572 Waiting for Weave API Server...
INFO: 2018/09/17 10:33:23.665776 Finished waiting for Weave API Server
INFO: 2018/09/17 10:33:23.665847 Listening on /run/docker/plugins/weave.sock for global scope
INFO: 2018/09/17 10:33:23.665889 Listening on /run/docker/plugins/weavemesh.sock for local scope
INFO: 2018/09/17 10:33:23.665908 Creating default "weave" network
2018/09/17 10:40:51 http: panic serving 127.0.0.1:45342: runtime error: invalid memory address or nil pointer dereference
goroutine 541 [running]:
net/http.(*conn).serve.func1(0xc422983360)
/usr/local/go/src/net/http/server.go:1726 +0xd0
panic(0x1261400, 0x1fe0320)
/usr/local/go/src/runtime/panic.go:502 +0x229
github.com/weaveworks/weave/ipam.(*Allocator).HandleHTTP.func11(0x158f920, 0xc4214ba8c0, 0xc42335ec00)
/go/src/github.com/weaveworks/weave/ipam/http.go:202 +0x33
net/http.HandlerFunc.ServeHTTP(0xc42101a5d0, 0x158f920, 0xc4214ba8c0, 0xc42335ec00)
/usr/local/go/src/net/http/server.go:1947 +0x44
github.com/weaveworks/weave/vendor/github.com/gorilla/mux.(*Router).ServeHTTP(0xc42135f420, 0x158f920, 0xc4214ba8c0, 0xc42335ec00)
/go/src/github.com/weaveworks/weave/vendor/github.com/gorilla/mux/mux.go:159 +0xed
github.com/weaveworks/weave/common.(*loggingHandler).ServeHTTP(0xc42101b270, 0x158f920, 0xc4214ba8c0, 0xc42335ea00)
/go/src/github.com/weaveworks/weave/common/http.go:13 +0x131
net/http.(*ServeMux).ServeHTTP(0x203e380, 0x158f920, 0xc4214ba8c0, 0xc42335ea00)
/usr/local/go/src/net/http/server.go:2337 +0x130
net/http.serverHandler.ServeHTTP(0xc4212d6000, 0x158f920, 0xc4214ba8c0, 0xc42335ea00)
/usr/local/go/src/net/http/server.go:2694 +0xbc
net/http.(*conn).serve(0xc422983360, 0x15908a0, 0xc423564440)
/usr/local/go/src/net/http/server.go:1830 +0x651
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2795 +0x27b
INFO: 2018/09/17 10:40:51.735396 Assuming quorum size of 1
2018/09/17 10:41:35 http: panic serving 127.0.0.1:45346: runtime error: invalid memory address or nil pointer dereference
goroutine 629 [running]:
net/http.(*conn).serve.func1(0xc422920960)
/usr/local/go/src/net/http/server.go:1726 +0xd0
panic(0x1261400, 0x1fe0320)
/usr/local/go/src/runtime/panic.go:502 +0x229
github.com/weaveworks/weave/ipam.(*Allocator).HandleHTTP.func11(0x158f920, 0xc4213e8000, 0xc421394a00)
/go/src/github.com/weaveworks/weave/ipam/http.go:202 +0x33
net/http.HandlerFunc.ServeHTTP(0xc42101a5d0, 0x158f920, 0xc4213e8000, 0xc421394a00)
/usr/local/go/src/net/http/server.go:1947 +0x44
github.com/weaveworks/weave/vendor/github.com/gorilla/mux.(*Router).ServeHTTP(0xc42135f420, 0x158f920, 0xc4213e8000, 0xc421394a00)
/go/src/github.com/weaveworks/weave/vendor/github.com/gorilla/mux/mux.go:159 +0xed
github.com/weaveworks/weave/common.(*loggingHandler).ServeHTTP(0xc42101b270, 0x158f920, 0xc4213e8000, 0xc421394800)
/go/src/github.com/weaveworks/weave/common/http.go:13 +0x131
net/http.(*ServeMux).ServeHTTP(0x203e380, 0x158f920, 0xc4213e8000, 0xc421394800)
/usr/local/go/src/net/http/server.go:2337 +0x130
net/http.serverHandler.ServeHTTP(0xc4212d6000, 0x158f920, 0xc4213e8000, 0xc421394800)
/usr/local/go/src/net/http/server.go:2694 +0xbc
net/http.(*conn).serve(0xc422920960, 0x15908a0, 0xc421372640)
/usr/local/go/src/net/http/server.go:1830 +0x651
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2795 +0x27b
2018/09/17 10:43:12 http: panic serving 127.0.0.1:45352: runtime error: invalid memory address or nil pointer dereference
goroutine 791 [running]:
net/http.(*conn).serve.func1(0xc4229d86e0)
/usr/local/go/src/net/http/server.go:1726 +0xd0
panic(0x1261400, 0x1fe0320)
/usr/local/go/src/runtime/panic.go:502 +0x229
github.com/weaveworks/weave/ipam.(*Allocator).HandleHTTP.func11(0x158f920, 0xc4214ba460, 0xc4227c6800)
/go/src/github.com/weaveworks/weave/ipam/http.go:202 +0x33
net/http.HandlerFunc.ServeHTTP(0xc42101a5d0, 0x158f920, 0xc4214ba460, 0xc4227c6800)
/usr/local/go/src/net/http/server.go:1947 +0x44
github.com/weaveworks/weave/vendor/github.com/gorilla/mux.(*Router).ServeHTTP(0xc42135f420, 0x158f920, 0xc4214ba460, 0xc4227c6800)
/go/src/github.com/weaveworks/weave/vendor/github.com/gorilla/mux/mux.go:159 +0xed
github.com/weaveworks/weave/common.(*loggingHandler).ServeHTTP(0xc42101b270, 0x158f920, 0xc4214ba460, 0xc4227c6600)
/go/src/github.com/weaveworks/weave/common/http.go:13 +0x131
net/http.(*ServeMux).ServeHTTP(0x203e380, 0x158f920, 0xc4214ba460, 0xc4227c6600)
/usr/local/go/src/net/http/server.go:2337 +0x130
net/http.serverHandler.ServeHTTP(0xc4212d6000, 0x158f920, 0xc4214ba460, 0xc4227c6600)
/usr/local/go/src/net/http/server.go:2694 +0xbc
net/http.(*conn).serve(0xc4229d86e0, 0x15908a0, 0xc42136bb40)
/usr/local/go/src/net/http/server.go:1830 +0x651
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2795 +0x27b
INFO: 2018/09/17 15:53:41.239929 === received SIGINT/SIGTERM ===
*** exiting
INFO: 2018/09/17 15:54:29.710203 Command line options: map[datapath:datapath docker-bridge:docker0 host-root:/host nickname:linuxkit-025000000001 dns-listen-address:172.17.0.1:53 resolv-conf:/var/run/weave/etc/resolv.conf http-addr:127.0.0.1:6784 plugin:true status-addr:127.0.0.1:6782 weave-bridge:weave H:[unix:///var/run/weave/weave.sock] ipalloc-range:10.32.0.0/12 port:6783 proxy:true]
INFO: 2018/09/17 15:54:29.710516 weave 2.4.1
INFO: 2018/09/17 15:54:30.408052 Docker API on unix:///var/run/docker.sock: &[ApiVersion=1.38 MinAPIVersion=1.12 GitCommit=e68fc7a Os=linux Arch=amd64 BuildTime=2018-08-21T17:29:02.000000000+00:00 Platform={"Name":""} Components=[{"Details":{"ApiVersion":"1.38","Arch":"amd64","BuildTime":"2018-08-21T17:29:02.000000000+00:00","Experimental":"true","GitCommit":"e68fc7a","GoVersion":"go1.10.3","KernelVersion":"4.9.93-linuxkit-aufs","MinAPIVersion":"1.12","Os":"linux"},"Name":"Engine","Version":"18.06.1-ce"}] Version=18.06.1-ce GoVersion=go1.10.3 KernelVersion=4.9.93-linuxkit-aufs Experimental=true]
INFO: 2018/09/17 15:54:30.419037 proxy listening on unix:///var/run/weave/weave.sock
INFO: 2018/09/17 15:54:30.745489 Bridge type is bridged_fastdp
INFO: 2018/09/17 15:54:30.745510 Communication between peers is unencrypted.
INFO: 2018/09/17 15:54:30.750769 Our name is 46:50:a8:9c:01:14(linuxkit-025000000001)
INFO: 2018/09/17 15:54:30.750981 Restart/resume detected - using persisted peer list: []
INFO: 2018/09/17 15:54:30.752354 Docker API on unix:///var/run/docker.sock: &[MinAPIVersion=1.12 GoVersion=go1.10.3 Os=linux Experimental=true Components=[{"Details":{"ApiVersion":"1.38","Arch":"amd64","BuildTime":"2018-08-21T17:29:02.000000000+00:00","Experimental":"true","GitCommit":"e68fc7a","GoVersion":"go1.10.3","KernelVersion":"4.9.93-linuxkit-aufs","MinAPIVersion":"1.12","Os":"linux"},"Name":"Engine","Version":"18.06.1-ce"}] ApiVersion=1.38 GitCommit=e68fc7a Arch=amd64 KernelVersion=4.9.93-linuxkit-aufs BuildTime=2018-08-21T17:29:02.000000000+00:00 Platform={"Name":""} Version=18.06.1-ce]
INFO: 2018/09/17 15:54:30.754030 Checking for pre-existing addresses on weave bridge
INFO: 2018/09/17 15:54:30.764153 [allocator 46:50:a8:9c:01:14] Deleting persisted data for peername 06:e5:51:81:de:cc
INFO: 2018/09/17 15:54:30.766592 [allocator 46:50:a8:9c:01:14] Initialising via deferred consensus
INFO: 2018/09/17 15:54:30.769393 Listening for DNS queries on 172.17.0.1:53
INFO: 2018/09/17 15:54:30.774320 Sniffing traffic on datapath (via ODP)
INFO: 2018/09/17 15:54:30.776413 Listening for HTTP control messages on 127.0.0.1:6784
INFO: 2018/09/17 15:54:30.776729 Listening for status+metrics requests on 127.0.0.1:6782
INFO: 2018/09/17 15:54:30.776839 Waiting for Weave API Server...
INFO: 2018/09/17 15:54:30.778791 Finished waiting for Weave API Server
INFO: 2018/09/17 15:54:30.778861 Listening on /run/docker/plugins/weave.sock for global scope
INFO: 2018/09/17 15:54:30.778892 Listening on /run/docker/plugins/weavemesh.sock for local scope
INFO: 2018/09/17 15:54:30.778911 Creating default "weave" network
INFO: 2018/09/17 15:55:00.798168 Error checking version: Get https://checkpoint-api.weave.works/v1/check/weave-net?arch=amd64&flag_docker-version=18.06.1-ce&flag_kernel-version=4.9.93-linuxkit-aufs&os=linux&signature=dfEZKpIf4Sm8vpSfG%2Bu7ONY3mO5cegifuXEpnW7LoYM%3D&version=2.4.1: dial tcp 216.58.221.115:443: i/o timeout
2018/09/17 15:55:39 http: panic serving 127.0.0.1:43068: runtime error: invalid memory address or nil pointer dereference
goroutine 238 [running]:
net/http.(*conn).serve.func1(0xc4213d8f00)
/usr/local/go/src/net/http/server.go:1726 +0xd0
panic(0x1261400, 0x1fe0320)
/usr/local/go/src/runtime/panic.go:502 +0x229
github.com/weaveworks/weave/ipam.(*Allocator).HandleHTTP.func11(0x158f920, 0xc4214dae00, 0xc421371300)
/go/src/github.com/weaveworks/weave/ipam/http.go:202 +0x33
net/http.HandlerFunc.ServeHTTP(0xc420f5e840, 0x158f920, 0xc4214dae00, 0xc421371300)
/usr/local/go/src/net/http/server.go:1947 +0x44
github.com/weaveworks/weave/vendor/github.com/gorilla/mux.(*Router).ServeHTTP(0xc42135d2d0, 0x158f920, 0xc4214dae00, 0xc421371300)
/go/src/github.com/weaveworks/weave/vendor/github.com/gorilla/mux/mux.go:159 +0xed
github.com/weaveworks/weave/common.(*loggingHandler).ServeHTTP(0xc420f5f4e0, 0x158f920, 0xc4214dae00, 0xc421371100)
/go/src/github.com/weaveworks/weave/common/http.go:13 +0x131
net/http.(*ServeMux).ServeHTTP(0x203e380, 0x158f920, 0xc4214dae00, 0xc421371100)
/usr/local/go/src/net/http/server.go:2337 +0x130
net/http.serverHandler.ServeHTTP(0xc42137aa90, 0x158f920, 0xc4214dae00, 0xc421371100)
/usr/local/go/src/net/http/server.go:2694 +0xbc
net/http.(*conn).serve(0xc4213d8f00, 0x15908a0, 0xc42291e000)
/usr/local/go/src/net/http/server.go:1830 +0x651
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2795 +0x27b
INFO: 2018/09/17 15:55:39.298370 Assuming quorum size of 1

@guijun
Copy link
Author

guijun commented Sep 18, 2018

in macosx:
I can't find log lines like below:

INFO: 2018/09/18 14:49:03.386818 GET /_ping
INFO: 2018/09/18 14:49:03.407516 POST /v1.38/containers/create?name=bash01
INFO: 2018/09/18 14:49:03.413996 Creating container with WEAVE_CIDR ""
INFO: 2018/09/18 14:49:09.028982 GET /_ping
INFO: 2018/09/18 14:49:09.030883 GET /v1.38/containers/json?all=1
INFO: 2018/09/18 14:49:13.727706 GET /_ping
INFO: 2018/09/18 14:49:13.734527 DELETE /v1.38/containers/ecb
INFO: 2018/09/18 14:49:18.941662 GET /_ping
INFO: 2018/09/18 14:49:18.944324 GET /v1.38/containers/json
INFO: 2018/09/18 14:49:25.060308 GET /_ping
INFO: 2018/09/18 14:49:25.062860 POST /v1.38/containers/ecb/stop
INFO: 2018/09/18 14:49:25.990321 [nameserver 36:bb:50:ce:71:0c] container ecb837686cbf1d7b7d463bbf10d77187db59a5f2a9d7ce6922617ff7003f43f6 died; tombstoning entry bash01.weave.local. -> 10.32.0.1
INFO: 2018/09/18 14:49:30.125288 GET /_ping
INFO: 2018/09/18 14:49:30.126700 DELETE /v1.38/containers/ecb
INFO: 2018/09/18 14:49:37.040208 GET /_ping
INFO: 2018/09/18 14:49:37.041915 POST /v1.38/containers/create?name=bash01
INFO: 2018/09/18 14:49:37.042120 Creating container with WEAVE_CIDR ""
INFO: 2018/09/18 14:49:37.143940 POST /v1.38/containers/f3b0aba6d71ce7d3610359b5194b15b361fd8a6707c833f5b8f07a4f6ab5ef75/wait?condition=next-exit
INFO: 2018/09/18 14:49:37.147628 POST /v1.38/containers/f3b0aba6d71ce7d3610359b5194b15b361fd8a6707c833f5b8f07a4f6ab5ef75/start
INFO: 2018/09/18 14:49:38.821974 Attaching container f3b0aba6d71ce7d3610359b5194b15b361fd8a6707c833f5b8f07a4f6ab5ef75 with WEAVE_CIDR "" to weave network
INFO: 2018/09/18 14:49:39.947841 [nameserver 36:bb:50:ce:71:0c] adding entry for f3b0aba6d71ce7d3610359b5194b15b361fd8a6707c833f5b8f07a4f6ab5ef75: bash01.weave.local. -> 10.32.0.1

@guijun
Copy link
Author

guijun commented Sep 19, 2018

Same issue in 2.4.1 2.4.0 2.3.0.

@murali-reddy
Copy link
Contributor

@guijun How are you running/installing weave on Mac as per the instructions?

2018/09/17 10:40:51 http: panic serving 127.0.0.1:45342: runtime error: invalid memory address or nil pointer dereference
goroutine 541 [running]:

Is this the error across the 2.4.1 2.4.0 2.3.0 versions you tried?

@brb
Copy link
Contributor

brb commented Sep 21, 2018

@guijun Thanks for the bug report. I was able to reproduce the crash. Should be fixed in #3408.

@brb brb added this to the 2.4.2 milestone Sep 21, 2018
bboreham added a commit that referenced this issue Sep 25, 2018
ipam: Do not deref nil in GET /ipinfo/tracker if tracker doesn't exist
@brb
Copy link
Contributor

brb commented Sep 26, 2018

Fixed in #3408

@brb brb closed this as completed Sep 26, 2018
@guijun
Copy link
Author

guijun commented Sep 26, 2018

thanks for feedback.
"weave ps" will list new running container with name+ip if I upgrade to 2.4.2, right?

@guijun
Copy link
Author

guijun commented Oct 5, 2018

Could you please let me know that when will 2.4.2 will be released and had follow issue fixed?

No DNS entry added after container started.
steps to repoduce:

Docker Version 18.06.1-ce-mac73 (26764)
install weave 2.4.1 by curl
eval $(weave env)
docker run --name AAA bash /usr/bash
weave ps
No entry listed.

@murali-reddy
Copy link
Contributor

there is nothing targeted/planned for 2.4.2, but likely 2.5 will be released in next couple of weeks

@bboreham bboreham modified the milestones: 2.4.2, 2.5 Nov 1, 2018
@guijun guijun changed the title weave Net 2.4.1 on macosx 10.13.6 weave Net 2.5.0 on macosx 10.14.1 Dec 7, 2018
@guijun
Copy link
Author

guijun commented Dec 7, 2018

No DNS entry added after container started.
steps to repoduce:

Docker Version 18.06.1-ce-mac73 (26764)
install weave 2.5.0 by curl
eval $(weave env)
docker run --name AAA bash /usr/bash
weave ps
No entry listed.

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

No branches or pull requests

4 participants