Skip to content

Cant create server #3

Description

@PeterMaZep

Current Behavior

Panel returns
cURL error 28: Operation timed out after 15011 milliseconds with 0 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://127.0.0.1:8080/api/servers

When trying to add server after connecting to wings

Wings return
1lZDI1NTE5AAAAIBRSf0l5OoKeFyWLFxp2kpMKH6hRox7UXfH9gnGIQ/J0
ERROR: [Jun 7 18:53:27.129] error while handling HTTP request error=Get "http://127.0.0.1:8000/api/remote/servers/150f770b-e178-4ac5-9563-b1c6713e0d86": context canceled request_id=3b447631-c7ea-48f5-8c63-6afe995545a7 status=500 url=/api/servers

Stacktrace:
Get "http://127.0.0.1:8000/api/remote/servers/150f770b-e178-4ac5-9563-b1c6713e0d86": context canceled
github.com/pwindows/phantom-wings/server/installer.New
D:/Phantom-Wings/server/installer/installer.go:33
github.com/pwindows/phantom-wings/router.postCreateServer
D:/Phantom-Wings/router/router_system.go:170
github.com/gin-gonic/gin.(*Context).Next
C:/Users/mazep/go/pkg/mod/github.com/gin-gonic/gin@v1.12.0/context.go:192
github.com/pwindows/phantom-wings/router.Configure.RequireAuthorization.func7
D:/Phantom-Wings/router/middleware/middleware.go:144
github.com/gin-gonic/gin.(*Context).Next
C:/Users/mazep/go/pkg/mod/github.com/gin-gonic/gin@v1.12.0/context.go:192
github.com/gin-gonic/gin.LoggerWithConfig.func1
C:/Users/mazep/go/pkg/mod/github.com/gin-gonic/gin@v1.12.0/logger.go:282
github.com/gin-gonic/gin.(*Context).Next
C:/Users/mazep/go/pkg/mod/github.com/gin-gonic/gin@v1.12.0/context.go:192
github.com/pwindows/phantom-wings/router.Configure.AttachApiClient.func5
D:/Phantom-Wings/router/middleware/middleware.go:41
github.com/gin-gonic/gin.(*Context).Next
C:/Users/mazep/go/pkg/mod/github.com/gin-gonic/gin@v1.12.0/context.go:192
github.com/pwindows/phantom-wings/router.Configure.AttachServerManager.func4
D:/Phantom-Wings/router/middleware/middleware.go:34
github.com/gin-gonic/gin.(*Context).Next
C:/Users/mazep/go/pkg/mod/github.com/gin-gonic/gin@v1.12.0/context.go:192
github.com/pwindows/phantom-wings/router/middleware.SetAccessControlHeaders.func1
D:/Phantom-Wings/router/middleware/middleware.go:107
github.com/gin-gonic/gin.(*Context).Next
C:/Users/mazep/go/pkg/mod/github.com/gin-gonic/gin@v1.12.0/context.go:192
github.com/pwindows/phantom-wings/router.Configure.CaptureErrors.func3
D:/Phantom-Wings/router/middleware/middleware.go:52
github.com/gin-gonic/gin.(*Context).Next
C:/Users/mazep/go/pkg/mod/github.com/gin-gonic/gin@v1.12.0/context.go:192
github.com/pwindows/phantom-wings/router.Configure.AttachRequestID.func2
D:/Phantom-Wings/router/middleware/middleware.go:27
github.com/gin-gonic/gin.(*Context).Next
C:/Users/mazep/go/pkg/mod/github.com/gin-gonic/gin@v1.12.0/context.go:192
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1
C:/Users/mazep/go/pkg/mod/github.com/gin-gonic/gin@v1.12.0/recovery.go:90
github.com/gin-gonic/gin.(*Context).Next
C:/Users/mazep/go/pkg/mod/github.com/gin-gonic/gin@v1.12.0/context.go:192
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
C:/Users/mazep/go/pkg/mod/github.com/gin-gonic/gin@v1.12.0/gin.go:722
github.com/gin-gonic/gin.(*Engine).ServeHTTP
C:/Users/mazep/go/pkg/mod/github.com/gin-gonic/gin@v1.12.0/gin.go:672
net/http.serverHandler.ServeHTTP
C:/Program Files/Go/src/net/http/server.go:3311
net/http.(*conn).serve
C:/Program Files/Go/src/net/http/server.go:2073
runtime.goexit
C:/Program Files/Go/src/runtime/asm_amd64.s:1771

Expected Behavior

Can connect easily and create server

Steps to Reproduce

Connect node
Add server
Fail

Panel Version

develop

Wings Version

develop

Games and/or Eggs Affected

All

Docker Image

Native

Error Logs

Server not set up yet

Is there an existing issue for this?

  • I have searched the existing issues before opening this issue.
  • I have provided all relevant details, including the specific game and Docker images I am using if this issue is related to running a server.
  • I have checked in the Discord server and believe this is a bug with the software, and not a configuration issue with my specific system.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions