Re: 使用su命令启动失败

63 views
Skip to first unread message

Chris Lu

unread,
May 9, 2016, 1:45:11 AM5/9/16
to seaw...@googlegroups.com
clean up /opt/seaweedfs/m1 before each trying

On Sun, May 8, 2016 at 10:36 PM, Saxon Yan <saxon....@gmail.com> wrote:
直接执行(root用户)
/opt/app/seaweedfs/weed -v=3 master -port=9333 -mdir=/opt/seaweedfs/m1 -peers=localhost:9333,localhost:9334,localhost:9335 -defaultReplication=100
能够成功运行
而如果使用su执行
su -l seaweedfs -c "/opt/app/seaweedfs/weed -v=3 master -port=9333 -mdir=/opt/seaweedfs/m1 -peers=localhost:9333,localhost:9334,localhost:9335 -defaultReplication=100" -s /bin/bash
报如下错误
I0509 13:34:00 20833 file_util.go:20] Folder /opt/seaweedfs/m1 Permission: -rwxr-xr-x
I0509 13:34:00 20833 topology.go:86] Using default configurations.
I0509 13:34:00 20833 master_server.go:59] Volume Size Limit is 30000 MB
I0509 13:34:00 20833 master.go:69] Start Seaweed Master 0.70 at 0.0.0.0:9333
I0509 13:34:00 20833 raft_server.go:50] Starting RaftServer with IP:localhost:9333:
I0509 13:34:00 20833 raft_server.go:74] Joining cluster: localhost:9333,localhost:9334,localhost:9335
I0509 13:34:00 20833 raft_server.go:134] Attempting to connect to: http://localhost:9334/cluster/join
I0509 13:34:00 20833 raft_server.go:139] Post returned error:  Post http://localhost:9334/cluster/join: dial tcp [::1]:9334: getsockopt: connection refused
I0509 13:34:00 20833 raft_server.go:134] Attempting to connect to: http://localhost:9335/cluster/join
I0509 13:34:00 20833 raft_server.go:139] Post returned error:  Post http://localhost:9335/cluster/join: dial tcp [::1]:9335: getsockopt: connection refused
I0509 13:34:00 20833 raft_server.go:78] No existing server found. Starting as leader in the new cluster.
I0509 13:34:00 20833 raft_server.go:84] raft: Has been stopped
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x5d5975]

goroutine 13 [running]:
panic(0xc194a0, 0xc8200100c0)
        /home/chris/apps/go/src/runtime/panic.go:464 +0x3e6
github.com/chrislusf/seaweedfs/go/weed/weed_server.(*MasterServer).SetRaftServer(0xc82000a2a0, 0x0)
        /home/chris/dev/workspace/home/gopath/src/github.com/chrislusf/seaweedfs/go/weed/weed_server/master_server.go:86 +0x885
main.runMaster.func1(0xc820072dc0, 0xc82000a2a0)
        /home/chris/dev/workspace/home/gopath/src/github.com/chrislusf/seaweedfs/go/weed/master.go:84 +0x1b9
created by main.runMaster
        /home/chris/dev/workspace/home/gopath/src/github.com/chrislusf/seaweedfs/go/weed/master.go:85 +0x8a4

--
You received this message because you are subscribed to the Google Groups "Seaweed File System" group.
To unsubscribe from this group and stop receiving emails from it, send an email to seaweedfs+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Saxon Yan

unread,
May 9, 2016, 2:13:36 AM5/9/16
to Seaweed File System
呃,帖子删掉了怎么还有回复
找到原因了,是这个目录的权限问题

在 2016年5月9日星期一 UTC+8下午1:45:11,ChrisLu写道:
Reply all
Reply to author
Forward
0 new messages