fengshao0907 / weed-fs

Automatically exported from code.google.com/p/weed-fs
0 stars 0 forks source link

Once the process is killed weed does not release port 9333, this problem is fond on Mac OS X Snow Leopard #55

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Kill the process of "weed master"
2. Try to run "weed master" again

What is the expected output? What do you see instead?
Expected output is a graceful start of "weed master". I see instead - "Fail to 
start:listen tcp <nil>:9333: bind: address already in use"

What version of the product are you using? On what operating system?
version 0.43 darwin amd64. OS: Mac OS X Serve, ver: 10.7.5, BuildVersion:11G63

Please provide any additional information below.
The error log:
"mini2:sfw chiradip$ sudo ./weed master 
I1124 11:47:49 27520 sequence.go:44] Loading file id sequence 20000 => 30000
I1124 11:47:49 27520 topology.go:58] Using default configurations.
I1124 11:47:49 27520 master.go:218] Volume Size Limit is 32768 MB
I1124 11:47:49 27520 master.go:232] Start Weed Master 0.43 at port 9333
F1124 11:47:49 27520 master.go:240] Fail to start:listen tcp <nil>:9333: bind: 
address already in use
goroutine 1 [running]:
code.google.com/p/weed-fs/go/glog.stacks(0x210985500, 0x0, 0x0, 0x0)
    /home/chris/dev/workspace/home/gopath/src/code.google.com/p/weed-fs/go/glog/glog.go:722 +0xd5
code.google.com/p/weed-fs/go/glog.(*loggingT).output(0x7c4660, 0x200000003, 
0x2109a2180)
    /home/chris/dev/workspace/home/gopath/src/code.google.com/p/weed-fs/go/glog/glog.go:673 +0x257
code.google.com/p/weed-fs/go/glog.(*loggingT).printf(0x7c4660, 0x200000003, 
0x3edad0, 0x10, 0x2210931db0, ...)
    /home/chris/dev/workspace/home/gopath/src/code.google.com/p/weed-fs/go/glog/glog.go:631 +0x1a5
code.google.com/p/weed-fs/go/glog.Fatalf(0x3edad0, 0x10, 0x2210931db0, 0x1, 0x1)
    /home/chris/dev/workspace/home/gopath/src/code.google.com/p/weed-fs/go/glog/glog.go:1029 +0x64
main.runMaster(0x7bd7e0, 0x21092b020, 0x0, 0x0, 0x0)
    /home/chris/dev/workspace/home/gopath/src/code.google.com/p/weed-fs/go/weed/master.go:240 +0xb00
main.main()
    /home/chris/dev/workspace/home/gopath/src/code.google.com/p/weed-fs/go/weed/weed.go:75 +0x59d"

Original issue reported on code.google.com by chiradip...@gmail.com on 24 Nov 2013 at 7:55

GoogleCodeExporter commented 9 years ago
I could not reproduce this with exactly the same setup.

I suspect you did not kill the old process. Can you please verify the old 
process is killed?

Here is the command I used to verify which process is listening on port 9333

clu-ltm5:~ clu$ lsof -n -i4tcp:9333
COMMAND  PID USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
weed    9955  clu    4u  IPv6 0xffffff801eacc440      0t0  TCP *:9333 (LISTEN)

Original comment by chris...@gmail.com on 25 Nov 2013 at 8:21

GoogleCodeExporter commented 9 years ago
I will close this as non reproducible if it's ok. Please update. 

Original comment by chris...@gmail.com on 26 Nov 2013 at 12:28

GoogleCodeExporter commented 9 years ago

Original comment by chris...@gmail.com on 26 Nov 2013 at 6:17