d4l3k / starry

A starbound server manager with an API for remote administration.
MIT License
15 stars 1 forks source link

Server restart loop #1

Open saik0 opened 10 years ago

saik0 commented 10 years ago

Unsure if bug or config/platform issue.

$ ps -fwwC starbound_server                             
UID        PID  PPID  C STIME TTY          TIME CMD
NNN       3859     1  3 17:23 ?        00:00:36 /opt/starbound/linux64/starbound_server -log starbound_server.log

$ netstat --listen | grep 21024
tcp        0      0 *:21024                 *:*                     LISTEN
udp        0      0 *:21024                 *:*

$ cat starry.config
{
    "ServerPath": "/opt/starbound/linux64/starbound_server",
    "LogFile": "/opt/starbound/linux64/starbound_server.log",
    "ServerAddress": "localhost:21024",
    "ProxyAddress": "0.0.0.0:21025",
    "Password": "changeme", 
    "MOTD": "Welcome to Starry!",
    "FirstConnectItems": {
        "coalore": 100
    },
    "Admins": [
        {
            "Name": "Tom",
            "Uuid": "17943f2ec4f6edb83ae33bbc820c312d"
        },
        {

            "Name": "Fun fun",
            "Uuid": "d69d7ff4684f316af200acc4036dbcbc"
        }
    ],
    "Bans": [],
    "Remembered": [
        "17943f2ec4f6edb83ae33bbc820c312d",
        "89e16f2ce2fe686552820db2a3b5abde",
        "d69d7ff4684f316af200acc4036dbcbc",
        "8291fa64ff299a2dc6ced36072d1cf39",
        "ab33e4be16205bf1430d18de1e712522"
    ]
}

$ go run starry.go
Starry CLI - Welcome to Starry!
EOF
[Error] Server crashed. Rebooting in 3 seconds...
Starry is a command line Starbound and remote access administration tool.
> [Error] Rebooting...
EOF
[Error] Server crashed. Rebooting in 3 seconds...
[Error] Rebooting...
EOF
[Error] Server crashed. Rebooting in 3 seconds...
^Cexit status 2

$ go version
go version go1.1.2 linux/amd64

$ dpkg -l golang*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-=================================
ii  golang         2:1.1.2-2ubu all          Go programming language compiler 
ii  golang-doc     2:1.1.2-2ubu all          Go programming language compiler 
ii  golang-go      2:1.1.2-2ubu amd64        Go programming language compiler
ii  golang-go-linu 2:1.1.2-2ubu amd64        Go standard library compiled for 
ii  golang-src     2:1.1.2-2ubu amd64        Go programming language compiler 
saik0 commented 10 years ago

Ah, the server path was not in LD_LIBRARY_PATH when it was called from starry. Not closing the bug, as I think we should think about how to fix it (better docs, platform detection, etc)

d4l3k commented 10 years ago

Yeah. Starry is pretty rough at the moment.