Error 500 when accessing Server Control page.



  • When accessing a specific server's control page, I am presented with:

    
    Server Error
    
    We're sorry! The server encountered an internal error and was unable to complete your request. Please try again later.
    
    error 500 | 13. 9. 2017 05:25
    
    

    I have scoured logs, and these are what I've gathered:

    from /srv/pufferpanel/logs/error.log:

    [2017-09-13 04-47-24] PHP Notice: Trying to get property of non-object in /srv/pufferpanel/src/core/oauth2.php:160  @  http://thecanoepirates.org:8081/node/index
    [2017-09-13 05-01-41] PHP Notice: Trying to get property of non-object in /srv/pufferpanel/src/core/oauth2.php:159  @  http://thecanoepirates.org:8081/node/index
    [2017-09-13 05-01-41] PHP Notice: Trying to get property of non-object in /srv/pufferpanel/src/core/oauth2.php:160  @  http://thecanoepirates.org:8081/node/index
    [2017-09-13 05-08-32] PHP Notice: Trying to get property of non-object in /srv/pufferpanel/src/core/oauth2.php:159  @  http://thecanoepirates.org:8081/node/index
    [2017-09-13 05-08-32] PHP Notice: Trying to get property of non-object in /srv/pufferpanel/src/core/oauth2.php:160  @  http://thecanoepirates.org:8081/node/index
    [2017-09-13 05-14-31] PHP Notice: Trying to get property of non-object in /srv/pufferpanel/src/core/oauth2.php:159  @  http://thecanoepirates.org:8081/node/index
    [2017-09-13 05-14-31] PHP Notice: Trying to get property of non-object in /srv/pufferpanel/src/core/oauth2.php:160  @  http://thecanoepirates.org:8081/node/index
    

    From /srv/pufferd/logs/<latest log>

    [01:14:27] [DEBUG] map[active:true scope:server.start server.stop server.install server.file.get server.file.put server.file.delete server.kill server.log server.console server.console.send server.stats server.network sftp server.create server.delete server.edit server.reload node.stop client_id:pufferpanel username:<nil> server_id:*]
    [01:14:27] [ERROR] Error handling route
    interface conversion: interface is float64, not string
    goroutine 23151 [running]:
    runtime/debug.Stack(0xc420504370, 0xa0fcc0, 0xc4204dc1c0)
            /usr/local/go/src/runtime/debug/stack.go:24 +0x79
    github.com/pufferpanel/apufferi/http/handler.Recovery.func1.1(0xc4204320b0)
            /srv/build/pufferd/src/github.com/pufferpanel/apufferi/http/handler/errorlogging.go:16 +0x1a4
    panic(0xa0fcc0, 0xc4204dc1c0)
            /usr/local/go/src/runtime/panic.go:458 +0x243
    github.com/pufferpanel/pufferd/programs.(*programData).GetNetwork(0xc4202203c0, 0xc4201a4929, 0x24)
            /srv/build/pufferd/src/github.com/pufferpanel/pufferd/programs/program.go:304 +0x1c4
    github.com/pufferpanel/pufferd/routing/server.NetworkServer(0xc4204320b0)
            /srv/build/pufferd/src/github.com/pufferpanel/pufferd/routing/server/server.go:445 +0x187
    github.com/gin-gonic/gin.(*Context).Next(0xc4204320b0)
            /srv/build/pufferd/src/github.com/gin-gonic/gin/context.go:111 +0x5a
    github.com/pufferpanel/apufferi/http/handler.Recovery.func1(0xc4204320b0)
            /srv/build/pufferd/src/github.com/pufferpanel/apufferi/http/handler/errorlogging.go:20 +0x51
    github.com/gin-gonic/gin.(*Context).Next(0xc4204320b0)
            /srv/build/pufferd/src/github.com/gin-gonic/gin/context.go:111 +0x5a
    github.com/gin-gonic/gin.RecoveryWithWriter.func1(0xc4204320b0)
            /srv/build/pufferd/src/github.com/gin-gonic/gin/recovery.go:45 +0x5a
    github.com/gin-gonic/gin.(*Context).Next(0xc4204320b0)
            /srv/build/pufferd/src/github.com/gin-gonic/gin/context.go:111 +0x5a
    github.com/gin-gonic/gin.(*Engine).handleHTTPRequest(0xc4202486c0, 0xc4204320b0)
            /srv/build/pufferd/src/github.com/gin-gonic/gin/gin.go:336 +0x6c6
    github.com/gin-gonic/gin.(*Engine).ServeHTTP(0xc4202486c0, 0xd7e140, 0xc4204961a0, 0xc4207c04b0)
            /srv/build/pufferd/src/github.com/gin-gonic/gin/gin.go:303 +0x130
    github.com/braintree/manners.(*gracefulHandler).ServeHTTP(0xc4201b4100, 0xd7e140, 0xc4204961a0, 0xc4207c04b0)
            /srv/build/pufferd/src/github.com/braintree/manners/server.go:277 +0x8f
    net/http.serverHandler.ServeHTTP(0xc4201b8300, 0xd7e140, 0xc4204961a0, 0xc4207c04b0)
            /usr/local/go/src/net/http/server.go:2202 +0x7d
    net/http.(*conn).serve(0xc4201b8580, 0xd7edc0, 0xc4204491c0)
            /usr/local/go/src/net/http/server.go:1579 +0x4b7
    created by net/http.(*Server).Serve
            /usr/local/go/src/net/http/server.go:2293 +0x44d
    

    This is from the nginx access logs, as no errors were in the error logs:

    173.90.17.46 - - [13/Sep/2017:01:14:33 -0400] "GET /daemon/server/e15daf02-7633-4183-a98f-676a50abf0ed HTTP/1.1" 403 31 "http://thecanoepirates.org:8081/admin/server/view/27?tab=edit" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0"
    173.90.17.46 - - [13/Sep/2017:01:25:34 -0400] "GET /index/e15daf02-7633-4183-a98f-676a50abf0ed HTTP/1.1" 302 5 "http://thecanoepirates.org:8081/admin/server/view/27?tab=edit" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0"
    173.90.17.46 - - [13/Sep/2017:01:25:34 -0400] "GET /node/index HTTP/1.1" 500 1356 "http://thecanoepirates.org:8081/admin/server/view/27?tab=edit" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0"
    

    And the imgur links below are screenshots from the panel:
    http://imgur.com/a/UNUnQ
    http://imgur.com/a/rom9k
    http://imgur.com/a/MEoma

    My config.json is set to bind to the local IP address that gets routed through the router's firewall. From what I can tell, same result when binding to 0.0.0.0

    I'm a bit at a loss at this point, so I welcome suggestions!



  • So, Solved not solved? I've narrowed the issue down to a migration issue. When new servers are created, it works, but the old servers from before the upgrade from 1.0.3/0.8 aren't working. Just gonna recreate them.


 

2
Online

750
Users

785
Topics

3.4k
Posts