panel
panel copied to clipboard
Access to server specific variable during daemon server start-up request.
Is there an existing feature request for this?
- [X] I have searched the existing issues before opening this feature request.
Describe the feature you would like to see.
Access to server specific variable during daemon server start-up request that can be addressed / used in Egg variables. The main idea here is ability to have a mount that is server specific. i.e.: mount /home/${P_SERVER_UUID} /home/container/save-data
Currently the server UUID is known during the start process: INFO: [Jul 31 19:52:46.044] completed server preflight, starting boot process... server=82153660-7039-4adb-97bc-c086d73a7f8a INFO: [Jul 31 19:52:46.310] releasing exclusive lock for power action action=start lock_id=7505ef09-4f76-11ef-9819-eafb6fe7fbb9 server=82153660-7039-4adb-97bc-c086d73a7f8a ERROR: [Jul 31 19:52:46.311] failed to handle server crash error=failed to start server after crash detection: environment/docker: failed to run pre-boot process: environment/docker: failed to create container: Error response from daemon: invalid mount config for type "bind": bind source path does not exist: /home/${P_SERVER_UUID} server=82153660-7039-4adb-97bc-c086d73a7f8a
Stacktrace: Error response from daemon: invalid mount config for type "bind": bind source path does not exist: /home/${P_SERVER_UUID} environment/docker: failed to create container github.com/pterodactyl/wings/environment/docker.(*Environment).Create github.com/pterodactyl/wings/environment/docker/container.go:261 github.com/pterodactyl/wings/environment/docker.(*Environment).OnBeforeStart github.com/pterodactyl/wings/environment/docker/power.go:43 github.com/pterodactyl/wings/environment/docker.(*Environment).Start github.com/pterodactyl/wings/environment/docker/power.go:105 github.com/pterodactyl/wings/server.(*Server).HandlePowerAction github.com/pterodactyl/wings/server/power.go:135 github.com/pterodactyl/wings/server.(*Server).handleServerCrash github.com/pterodactyl/wings/server/crash.go:90 github.com/pterodactyl/wings/server.(*Server).OnStateChange.func1 github.com/pterodactyl/wings/server/server.go:324 runtime.goexit runtime/asm_amd64.s:1650
environment/docker: failed to run pre-boot process failed to start server after crash detection github.com/pterodactyl/wings/server.(*Server).handleServerCrash github.com/pterodactyl/wings/server/crash.go:90 github.com/pterodactyl/wings/server.(*Server).OnStateChange.func1 github.com/pterodactyl/wings/server/server.go:324 runtime.goexit runtime/asm_amd64.s:1650
container@pterodactyl~ Error Event [aaf52a26-09b4-468c-9e8d-c467e16d2454]: environment/docker: failed to run pre-boot process: environment/docker: failed to create container: Error response from daemon: invalid mount config for type "bind": bind source path does not exist: /home/${P_SERVER_UUID
Describe the solution you'd like.
A server specific variable that would be accessible during docker environment create that you could use in the egg definition / mounts attached to the egg.
Additional context to this request.
No response