pterodactyl / panel

Pterodactyl® is a free, open-source game server management panel built with PHP, React, and Go. Designed with security in mind, Pterodactyl runs all game servers in isolated Docker containers while exposing a beautiful and intuitive UI to end users.
https://pterodactyl.io
Other
6.68k stars 1.69k forks source link

key path error for new Servers after Panel update #3635

Closed StoffelCPR closed 3 years ago

StoffelCPR commented 3 years ago

Is there an existing issue for this?

Current Behavior

Hello,

I recently updated my panel from 1.4.X to 1.6.0 using artisan to update. The update went well and the Panel resumed work afterwards. I now tried to create a new Server and was unable to do so.

ERROR: [Sep 18 16:22:18.408] error while handling HTTP request error=Key path not found request_id=ec3391f7-48bd-437e-95a0-5d98d0ea8f78 status=500 url=/api/servers

Stacktrace:
Key path not found
github.com/pterodactyl/wings/installer.New
    /home/runner/work/wings/wings/installer/installer.go:48
github.com/pterodactyl/wings/router.postCreateServer
    /home/runner/work/wings/wings/router/router_system.go:47
github.com/gin-gonic/gin.(*Context).Next
    /home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.6.3/context.go:161
github.com/pterodactyl/wings/router/middleware.RequireAuthorization.func1
    /home/runner/work/wings/wings/router/middleware/middleware.go:302
github.com/gin-gonic/gin.(*Context).Next
    /home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.6.3/context.go:161
github.com/gin-gonic/gin.LoggerWithConfig.func1
    /home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.6.3/logger.go:241
github.com/gin-gonic/gin.(*Context).Next
    /home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.6.3/context.go:161
github.com/pterodactyl/wings/router/middleware.AttachApiClient.func1
    /home/runner/work/wings/wings/router/middleware/middleware.go:177
github.com/gin-gonic/gin.(*Context).Next
    /home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.6.3/context.go:161
github.com/pterodactyl/wings/router/middleware.AttachServerManager.func1
    /home/runner/work/wings/wings/router/middleware/middleware.go:168
github.com/gin-gonic/gin.(*Context).Next
    /home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.6.3/context.go:161
github.com/pterodactyl/wings/router/middleware.SetAccessControlHeaders.func1
    /home/runner/work/wings/wings/router/middleware/middleware.go:251
github.com/gin-gonic/gin.(*Context).Next
    /home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.6.3/context.go:161
github.com/pterodactyl/wings/router/middleware.CaptureErrors.func1
    /home/runner/work/wings/wings/router/middleware/middleware.go:194
github.com/gin-gonic/gin.(*Context).Next
    /home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.6.3/context.go:161
github.com/pterodactyl/wings/router/middleware.AttachRequestID.func1
    /home/runner/work/wings/wings/router/middleware/middleware.go:159
github.com/gin-gonic/gin.(*Context).Next
    /home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.6.3/context.go:161
github.com/gin-gonic/gin.RecoveryWithWriter.func1
    /home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.6.3/recovery.go:83
github.com/gin-gonic/gin.(*Context).Next
    /home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.6.3/context.go:161
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
    /home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.6.3/gin.go:409
github.com/gin-gonic/gin.(*Engine).ServeHTTP
    /home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.6.3/gin.go:367
net/http.serverHandler.ServeHTTP
    /opt/hostedtoolcache/go/1.16.5/x64/src/net/http/server.go:2887
net/http.(*conn).serve
    /opt/hostedtoolcache/go/1.16.5/x64/src/net/http/server.go:1952
runtime.goexit
    /opt/hostedtoolcache/go/1.16.5/x64/src/runtime/asm_amd64.s:1371

This error pops up in the wings.log

systemctl status wings has the following additional information: 2021/09/18 18:09:43 http: TLS handshake error from 109.70.100.36:35893: tls: client offered only unsupported versions: [302 301]

Which suggests a mere configurational issue, that I'm unable to solve on my own.

I'd appreciate some help on this.

Expected Behavior

That, after pressing create server in the Panel the wings'll be able to take that command and create the requested server instance.

Steps to Reproduce

Unsure if that's possible

Panel Version

1.6.0

Wings Version

1.4.4

Error Logs

Wings: https://ptero.co/kahodelamu
Panel: https://bin.ptdl.co/dqs8a/
rilnofekkatto commented 3 years ago

Looks like you forgot to update Wings?

Software-Noob commented 3 years ago

1.6.0 panel update contains breaking changes. You must update Wings to 1.5.0 or newer.

The supported versions are listed in the update documentation.