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.81k stars 1.74k forks source link

failed to load server configurations {"error": "Key path not found" #2035

Closed RihanArfan closed 4 years ago

RihanArfan commented 4 years ago

Background (please complete the following information):

Describe the bug Upon starting Wings, I am presented with this error:

1.5896684685332415e+09  info    cmd/root.go:84  using configuration from path: /var/lib/pterodactyl/config.yml
1.5896684685333152e+09  info    cmd/root.go:102 checking for pterodactyl system user "pterodactyl"
1.5896684685335832e+09  info    cmd/root.go:107 configured system user  {"username": "pterodactyl", "uid": "999", "gid": "999"}
1.5896684685336127e+09  info    cmd/root.go:110 beginning file permission setting on server data directories
1.5896684685338068e+09  info    cmd/root.go:114 finished ensuring file permissions
1.589668468881176e+09   fatal   cmd/root.go:118 failed to load server configurations    {"error": "Key path not found", "errorVerbose": "Key path not found\ngithub.com/pterodactyl/wings/parser.(*ConfigurationFileReplacement).UnmarshalJSON\n\tparser/parser.go:69\nencoding/json.(*decodeState).object\n\t/usr/local/Cellar/go/1.14.2_1/libexec/src/encoding/json/decode.go:626\nencoding/json.(*decodeState).value\n\t/usr/local/Cellar/go/1.14.2_1/libexec/src/encoding/json/decode.go:387\nencoding/json.(*decodeState).array\n\t/usr/local/Cellar/go/1.14.2_1/libexec/src/encoding/json/decode.go:575\nencoding/json.(*decodeState).value\n\t/usr/local/Cellar/go/1.14.2_1/libexec/src/encoding/json/decode.go:377\nencoding/json.(*decodeState).object\n\t/usr/local/Cellar/go/1.14.2_1/libexec/src/encoding/json/decode.go:782\nencoding/json.(*decodeState).value\n\t/usr/local/Cellar/go/1.14.2_1/libexec/src/encoding/json/decode.go:387\nencoding/json.(*decodeState).array\n\t/usr/local/Cellar/go/1.14.2_1/libexec/src/encoding/json/decode.go:575\nencoding/json.(*decodeState).value\n\t/usr/local/Cellar/go/1.14.2_1/libexec/src/encoding/json/decode.go:377\nencoding/json.(*decodeState).object\n\t/usr/local/Cellar/go/1.14.2_1/libexec/src/encoding/json/decode.go:782\nencoding/json.(*decodeState).value\n\t/usr/local/Cellar/go/1.14.2_1/libexec/src/encoding/json/decode.go:387\nencoding/json.(*decodeState).object\n\t/usr/local/Cellar/go/1.14.2_1/libexec/src/encoding/json/decode.go:782\nencoding/json.(*decodeState).value\n\t/usr/local/Cellar/go/1.14.2_1/libexec/src/encoding/json/decode.go:387\nencoding/json.(*decodeState).object\n\t/usr/local/Cellar/go/1.14.2_1/libexec/src/encoding/json/decode.go:782\nencoding/json.(*decodeState).value\n\t/usr/local/Cellar/go/1.14.2_1/libexec/src/encoding/json/decode.go:387\nencoding/json.(*decodeState).unmarshal\n\t/usr/local/Cellar/go/1.14.2_1/libexec/src/encoding/json/decode.go:180\nencoding/json.Unmarshal\n\t/usr/local/Cellar/go/1.14.2_1/libexec/src/encoding/json/decode.go:107\ngithub.com/pterodactyl/wings/api.(*PanelRequest).GetAllServerConfigurations\n\tapi/server_endpoints.go:72\ngithub.com/pterodactyl/wings/server.LoadDirectory\n\tserver/server.go:173\ngithub.com/pterodactyl/wings/cmd.rootCmdRun\n\tcmd/root.go:117\ngithub.com/spf13/cobra.(*Command).execute\n\t/Users/dane/go/pkg/mod/github.com/spf13/cobra@v0.0.7/command.go:842\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\t/Users/dane/go/pkg/mod/github.com/spf13/cobra@v0.0.7/command.go:943\ngithub.com/spf13/cobra.(*Command).Execute\n\t/Users/dane/go/pkg/mod/github.com/spf13/cobra@v0.0.7/command.go:883\ngithub.com/pterodactyl/wings/cmd.Execute\n\tcmd/root.go:220\nmain.main\n\twings.go:8\nruntime.main\n\t/usr/local/Cellar/go/1.14.2_1/libexec/src/runtime/proc.go:203\nruntime.goexit\n\t/usr/local/Cellar/go/1.14.2_1/libexec/src/runtime/asm_amd64.s:1373\ngithub.com/pterodactyl/wings/api.(*PanelRequest).GetAllServerConfigurations\n\tapi/server_endpoints.go:73\ngithub.com/pterodactyl/wings/server.LoadDirectory\n\tserver/server.go:173\ngithub.com/pterodactyl/wings/cmd.rootCmdRun\n\tcmd/root.go:117\ngithub.com/spf13/cobra.(*Command).execute\n\t/Users/dane/go/pkg/mod/github.com/spf13/cobra@v0.0.7/command.go:842\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\t/Users/dane/go/pkg/mod/github.com/spf13/cobra@v0.0.7/command.go:943\ngithub.com/spf13/cobra.(*Command).Execute\n\t/Users/dane/go/pkg/mod/github.com/spf13/cobra@v0.0.7/command.go:883\ngithub.com/pterodactyl/wings/cmd.Execute\n\tcmd/root.go:220\nmain.main\n\twings.go:8\nruntime.main\n\t/usr/local/Cellar/go/1.14.2_1/libexec/src/runtime/proc.go:203\nruntime.goexit\n\t/usr/local/Cellar/go/1.14.2_1/libexec/src/runtime/asm_amd64.s:1373\ngithub.com/pterodactyl/wings/server.LoadDirectory\n\tserver/server.go:176\ngithub.com/pterodactyl/wings/cmd.rootCmdRun\n\tcmd/root.go:117\ngithub.com/spf13/cobra.(*Command).execute\n\t/Users/dane/go/pkg/mod/github.com/spf13/cobra@v0.0.7/command.go:842\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\t/Users/dane/go/pkg/mod/github.com/spf13/cobra@v0.0.7/command.go:943\ngithub.com/spf13/cobra.(*Command).Execute\n\t/Users/dane/go/pkg/mod/github.com/spf13/cobra@v0.0.7/command.go:883\ngithub.com/pterodactyl/wings/cmd.Execute\n\tcmd/root.go:220\nmain.main\n\twings.go:8\nruntime.main\n\t/usr/local/Cellar/go/1.14.2_1/libexec/src/runtime/proc.go:203\nruntime.goexit\n\t/usr/local/Cellar/go/1.14.2_1/libexec/src/runtime/asm_amd64.s:1373\ngithub.com/pterodactyl/wings/cmd.rootCmdRun\n\tcmd/root.go:118\ngithub.com/spf13/cobra.(*Command).execute\n\t/Users/dane/go/pkg/mod/github.com/spf13/cobra@v0.0.7/command.go:842\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\t/Users/dane/go/pkg/mod/github.com/spf13/cobra@v0.0.7/command.go:943\ngithub.com/spf13/cobra.(*Command).Execute\n\t/Users/dane/go/pkg/mod/github.com/spf13/cobra@v0.0.7/command.go:883\ngithub.com/pterodactyl/wings/cmd.Execute\n\tcmd/root.go:220\nmain.main\n\twings.go:8\nruntime.main\n\t/usr/local/Cellar/go/1.14.2_1/libexec/src/runtime/proc.go:203\nruntime.goexit\n\t/usr/local/Cellar/go/1.14.2_1/libexec/src/runtime/asm_amd64.s:1373"}
github.com/pterodactyl/wings/cmd.rootCmdRun
        cmd/root.go:118
github.com/spf13/cobra.(*Command).execute
        /Users/dane/go/pkg/mod/github.com/spf13/cobra@v0.0.7/command.go:842
github.com/spf13/cobra.(*Command).ExecuteC
        /Users/dane/go/pkg/mod/github.com/spf13/cobra@v0.0.7/command.go:943
github.com/spf13/cobra.(*Command).Execute
        /Users/dane/go/pkg/mod/github.com/spf13/cobra@v0.0.7/command.go:883
github.com/pterodactyl/wings/cmd.Execute
        cmd/root.go:220
main.main
        wings.go:8
runtime.main
        /usr/local/Cellar/go/1.14.2_1/libexec/src/runtime/proc.go:203

Panel: PHP 7.4.6 (cli) (built: May 14 2020 10:02:44) ( NTS ) (the php version in use). Daemon: Linux pterodactyl-8 4.15.0-96-generic #97-Ubuntu SMP Wed Apr 1 03:25:46 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux & https://file.properties/paste/ewusepigaz

To Reproduce Steps to reproduce the behaviour:

  1. Follow Wings install docs from here. https://pterodactyl.io/wings/1.0/installing.html#installing-wings-2
  2. Copy config from panel to the directory needed by wings
  3. Run ./wings

Expected behaviour I expect Wings to start without error.

DaneEveritt commented 4 years ago

The parsed stack for ease:

Key path not found
github.com/pterodactyl/wings/parser.(*ConfigurationFileReplacement).UnmarshalJSON
    parser/parser.go:69
encoding/json.(*decodeState).object
    /usr/local/Cellar/go/1.14.2_1/libexec/src/encoding/json/decode.go:626
encoding/json.(*decodeState).value
    /usr/local/Cellar/go/1.14.2_1/libexec/src/encoding/json/decode.go:387
encoding/json.(*decodeState).array
    /usr/local/Cellar/go/1.14.2_1/libexec/src/encoding/json/decode.go:575
encoding/json.(*decodeState).value
    /usr/local/Cellar/go/1.14.2_1/libexec/src/encoding/json/decode.go:377
encoding/json.(*decodeState).object
    /usr/local/Cellar/go/1.14.2_1/libexec/src/encoding/json/decode.go:782
encoding/json.(*decodeState).value
    /usr/local/Cellar/go/1.14.2_1/libexec/src/encoding/json/decode.go:387
encoding/json.(*decodeState).array
    /usr/local/Cellar/go/1.14.2_1/libexec/src/encoding/json/decode.go:575
encoding/json.(*decodeState).value
    /usr/local/Cellar/go/1.14.2_1/libexec/src/encoding/json/decode.go:377
encoding/json.(*decodeState).object
    /usr/local/Cellar/go/1.14.2_1/libexec/src/encoding/json/decode.go:782
encoding/json.(*decodeState).value
    /usr/local/Cellar/go/1.14.2_1/libexec/src/encoding/json/decode.go:387
encoding/json.(*decodeState).object
    /usr/local/Cellar/go/1.14.2_1/libexec/src/encoding/json/decode.go:782
encoding/json.(*decodeState).value
    /usr/local/Cellar/go/1.14.2_1/libexec/src/encoding/json/decode.go:387
encoding/json.(*decodeState).object
    /usr/local/Cellar/go/1.14.2_1/libexec/src/encoding/json/decode.go:782
encoding/json.(*decodeState).value
    /usr/local/Cellar/go/1.14.2_1/libexec/src/encoding/json/decode.go:387
encoding/json.(*decodeState).unmarshal
    /usr/local/Cellar/go/1.14.2_1/libexec/src/encoding/json/decode.go:180
encoding/json.Unmarshal
    /usr/local/Cellar/go/1.14.2_1/libexec/src/encoding/json/decode.go:107
github.com/pterodactyl/wings/api.(*PanelRequest).GetAllServerConfigurations
    api/server_endpoints.go:72
github.com/pterodactyl/wings/server.LoadDirectory
    server/server.go:173
github.com/pterodactyl/wings/cmd.rootCmdRun
    cmd/root.go:117
github.com/spf13/cobra.(*Command).execute
    /Users/dane/go/pkg/mod/github.com/spf13/cobra@v0.0.7/command.go:842
github.com/spf13/cobra.(*Command).ExecuteC
    /Users/dane/go/pkg/mod/github.com/spf13/cobra@v0.0.7/command.go:943
github.com/spf13/cobra.(*Command).Execute
    /Users/dane/go/pkg/mod/github.com/spf13/cobra@v0.0.7/command.go:883
github.com/pterodactyl/wings/cmd.Execute
    cmd/root.go:220
main.main
    wings.go:8
runtime.main
    /usr/local/Cellar/go/1.14.2_1/libexec/src/runtime/proc.go:203
runtime.goexit
    /usr/local/Cellar/go/1.14.2_1/libexec/src/runtime/asm_amd64.s:1373
github.com/pterodactyl/wings/api.(*PanelRequest).GetAllServerConfigurations
    api/server_endpoints.go:73
github.com/pterodactyl/wings/server.LoadDirectory
    server/server.go:173
github.com/pterodactyl/wings/cmd.rootCmdRun
    cmd/root.go:117
github.com/spf13/cobra.(*Command).execute
    /Users/dane/go/pkg/mod/github.com/spf13/cobra@v0.0.7/command.go:842
github.com/spf13/cobra.(*Command).ExecuteC
    /Users/dane/go/pkg/mod/github.com/spf13/cobra@v0.0.7/command.go:943
github.com/spf13/cobra.(*Command).Execute
    /Users/dane/go/pkg/mod/github.com/spf13/cobra@v0.0.7/command.go:883
github.com/pterodactyl/wings/cmd.Execute
    cmd/root.go:220
main.main
    wings.go:8
runtime.main
    /usr/local/Cellar/go/1.14.2_1/libexec/src/runtime/proc.go:203
runtime.goexit
    /usr/local/Cellar/go/1.14.2_1/libexec/src/runtime/asm_amd64.s:1373
github.com/pterodactyl/wings/server.LoadDirectory
    server/server.go:176
github.com/pterodactyl/wings/cmd.rootCmdRun
    cmd/root.go:117
github.com/spf13/cobra.(*Command).execute
    /Users/dane/go/pkg/mod/github.com/spf13/cobra@v0.0.7/command.go:842
github.com/spf13/cobra.(*Command).ExecuteC
    /Users/dane/go/pkg/mod/github.com/spf13/cobra@v0.0.7/command.go:943
github.com/spf13/cobra.(*Command).Execute
    /Users/dane/go/pkg/mod/github.com/spf13/cobra@v0.0.7/command.go:883
github.com/pterodactyl/wings/cmd.Execute
    cmd/root.go:220
main.main
    wings.go:8
runtime.main
    /usr/local/Cellar/go/1.14.2_1/libexec/src/runtime/proc.go:203
runtime.goexit
    /usr/local/Cellar/go/1.14.2_1/libexec/src/runtime/asm_amd64.s:1373
github.com/pterodactyl/wings/cmd.rootCmdRun
    cmd/root.go:118
github.com/spf13/cobra.(*Command).execute
    /Users/dane/go/pkg/mod/github.com/spf13/cobra@v0.0.7/command.go:842
github.com/spf13/cobra.(*Command).ExecuteC
    /Users/dane/go/pkg/mod/github.com/spf13/cobra@v0.0.7/command.go:943
github.com/spf13/cobra.(*Command).Execute
    /Users/dane/go/pkg/mod/github.com/spf13/cobra@v0.0.7/command.go:883
github.com/pterodactyl/wings/cmd.Execute
    cmd/root.go:220
main.main
    wings.go:8
runtime.main
    /usr/local/Cellar/go/1.14.2_1/libexec/src/runtime/proc.go:203
runtime.goexit
    /usr/local/Cellar/go/1.14.2_1/libexec/src/runtime/asm_amd64.s:1373