Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access to server specific variable during daemon server start-up request. #5177

Open
1 task done
Sloanstar opened this issue Jul 31, 2024 · 0 comments
Open
1 task done
Labels
feature request A request for a new feature.

Comments

@Sloanstar
Copy link

Is there an existing feature request for this?

  • 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

@Sloanstar Sloanstar added the feature request A request for a new feature. label Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request A request for a new feature.
Projects
None yet
Development

No branches or pull requests

1 participant