Issues with creating a server.



  • Hello,
    I can not create a server, whenever I try I get the error:

    An error occurred while trying to connect to the remote node. Please check that the daemon is running and try again.
    An error occurred trying to add a server. () []
    

    On the list nodes page it says that status is green:
    0_1495045402560_Screenshot_13.png

    No idea what to do, any suggestions appreciated.

    Info
    OS: CentOS 7 Minimal
    Framework: Nginx

    Attempts

    • Change public address of node to public IP
    • Switched to v1.0.3 but had different issue when creating a server.

    Log -- Pufferd

    [16:15:35] [INFO] pufferd v1.1.1 (2017-05-03_05:41:41PM 562ffd093386f50c8d3785d6c52b44557879837c)
    [16:15:35] [INFO] Logging set to INFO
    [16:15:35] [WARN] No HTTPS.PEM found in data folder, will use http instead
    [16:15:35] [DEBUG] Loading existing key
    [16:15:35] [INFO] Started SFTP Server on 0.0.0.0:5657
    [16:15:35] [INFO] Starting web access on 0.0.0.0:5656
    [16:15:35] [DEBUG] Checking for updates using https://dl.pufferpanel.com/pufferd/v1.1/version.txt
    [16:35:59] [DEBUG] [GET] [/]
    [16:35:59] [DEBUG] [GET] [/]
    [16:37:41] [DEBUG] [GET] [/]
    [16:37:41] [DEBUG] [GET] [/]
    [16:37:49] [DEBUG] [GET] [/]
    [16:37:49] [DEBUG] [GET] [/templates]
    [16:37:56] [DEBUG] [GET] [/]
    [16:37:56] [DEBUG] [PUT] [/server/6e11ff92-66e1-463f-ac13-0d49f0e79d81]
    [16:37:56] [ERROR] Unexpected response code from auth server
    401
    [16:37:56] [ERROR] Error handling route
    interface conversion: interface is nil, not string
    goroutine 56 [running]:
    runtime/debug.Stack(0xc42023cd40, 0x880200, 0xc42023cbc0)
            /usr/local/go/src/runtime/debug/stack.go:24 +0x79
    github.com/pufferpanel/pufferd/httphandlers.Recovery.func1.1(0xc4202cc000)
            /srv/build/pufferd/src/github.com/pufferpanel/pufferd/httphandlers/errorlogging.go:15 +0x18c
    panic(0x880200, 0xc42023cbc0)
            /usr/local/go/src/runtime/panic.go:458 +0x243
    github.com/pufferpanel/pufferd/routing/server.handleInitialCallServer(0xc4202cc000, 0x8fec85, 0xd, 0xc42023c900, 0x24, 0x5, 0xc4266bcb1e)
            /srv/build/pufferd/src/github.com/pufferpanel/pufferd/routing/server/server.go:488 +0xc1
    github.com/pufferpanel/pufferd/routing/server.CreateServer(0xc4202cc000)
            /srv/build/pufferd/src/github.com/pufferpanel/pufferd/routing/server/server.go:119 +0x97
    github.com/gin-gonic/gin.(*Context).Next(0xc4202cc000)
            /srv/build/pufferd/src/github.com/gin-gonic/gin/context.go:97 +0x5a
    github.com/pufferpanel/pufferd/httphandlers.Recovery.func1(0xc4202cc000)
            /srv/build/pufferd/src/github.com/pufferpanel/pufferd/httphandlers/errorlogging.go:19 +0x51
    github.com/gin-gonic/gin.(*Context).Next(0xc4202cc000)
            /srv/build/pufferd/src/github.com/gin-gonic/gin/context.go:97 +0x5a
    github.com/gin-gonic/gin.RecoveryWithWriter.func1(0xc4202cc000)
            /srv/build/pufferd/src/github.com/gin-gonic/gin/recovery.go:45 +0x5a
    github.com/gin-gonic/gin.(*Context).Next(0xc4202cc000)
            /srv/build/pufferd/src/github.com/gin-gonic/gin/context.go:97 +0x5a
    github.com/gin-gonic/gin.(*Engine).handleHTTPRequest(0xc4200f09a0, 0xc4202cc000)
            /srv/build/pufferd/src/github.com/gin-gonic/gin/gin.go:284 +0x64e
    github.com/gin-gonic/gin.(*Engine).ServeHTTP(0xc4200f09a0, 0xb13d60, 0xc420260270, 0xc4202b72c0)
            /srv/build/pufferd/src/github.com/gin-gonic/gin/gin.go:265 +0x130
    github.com/braintree/manners.(*gracefulHandler).ServeHTTP(0xc4202372c0, 0xb13d60, 0xc420260270, 0xc4202b72c0)
            /srv/build/pufferd/src/github.com/braintree/manners/server.go:277 +0x8f
    net/http.serverHandler.ServeHTTP(0xc42015cb80, 0xb13d60, 0xc420260270, 0xc4202b72c0)
            /usr/local/go/src/net/http/server.go:2202 +0x7d
    net/http.(*conn).serve(0xc420304400, 0xb145e0, 0xc4202396c0)
            /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
    
    [16:37:57] [DEBUG] [GET] [/]
    [16:37:57] [DEBUG] [GET] [/templates]
    [16:37:57] [DEBUG] [GET] [/]
    [16:37:57] [DEBUG] [GET] [/templates]
    [16:41:38] [DEBUG] [GET] [/]
    [16:41:38] [DEBUG] [GET] [/]
    

    Log -- Pufferpanel

    PHP Notice: Trying to get property of non-object in /srv/pufferpanel/src/routes/admin/server/routes.php:299  @  http://192.168.0.10:81/admin/server/new
    
    

    JTheComputerNerd



  • For future reference
    The error was an incorrect authentication token in /etc/pufferd/config.json.

    To rectify:

    # If you don't have phpMyAdmin setup
    mysql -u root -p
    # Login in with your password
    USE pufferpanel
    SELECT daemon_secret FROM nodes;
    # It should return the correct authentication token from which you should update the authentication token in /etc/pufferd/config.json
    
    # If you do have phpMyAdmin setup:
    Login
    Navigate to pufferpanel
    Navigate to nodes
    Check the daemon_secret
    # Again if it doesn't match update the authentication token in /etc/pufferd/config.json
    

    Thanks to puffrfish for the solution,
    JTheComputerNerd.



  • Glad you got it working and thanks for posting the solution to your problem!


Log in to reply
 

Looks like your connection to PufferPanel Community was lost, please wait while we try to reconnect.