panel icon indicating copy to clipboard operation
panel copied to clipboard

Startup Variables Ignored By Wings

Open Zendrex opened this issue 6 years ago • 10 comments

Background (please complete the following information):

  • Panel or Daemon: Both
  • Version of Panel/Daemon: 1.0.0-rc1
  • Server's OS: Ubuntu 18.04
  • Your Computer's OS & Browser: Win10/Firefox

Describe the bug It seems that any startup variables changed at server creation OR post-creation are ignored by wings, but are updated to the database. On top of this, the UI does not update the "startup command" string when variables are changed/saved.

Example: https://gyazo.com/f1953f67d0c59608b63f15130a7694ba

To Reproduce

  1. Create A Server / Select Existing Server
  2. Change Startup Command Variables
  3. Start/Restart Server
  4. See No Changes Executed

Expected behavior Startup variables to take effect. Wings seems to only use the default nest variables.

Zendrex avatar Aug 24 '20 09:08 Zendrex

Does restarting wings pull new variables?

notAreYouScared avatar Aug 24 '20 12:08 notAreYouScared

@Sir3lit I've attempted this before, and did again just now with no avail.

Zendrex avatar Aug 24 '20 14:08 Zendrex

It seems all variables aren't parsed (same for installation variables). When I running installation script, default variables are used instead of server variables.

Corenb avatar Aug 24 '20 16:08 Corenb

It is quite possible I broke this unintentionally when I made changes to startup variable handling. I'm guessing the API is actually sending along incorrect values. You can confirm this by checking the server install logs in /var/log/pterodactyl I believe.

DaneEveritt avatar Aug 24 '20 16:08 DaneEveritt

That does seem to be the issue. That it's passing the defaults to the install script.

notAreYouScared avatar Aug 25 '20 00:08 notAreYouScared

Duplicate of #2261 (which has been resolved due to a pull request)

matthewpi avatar Aug 25 '20 03:08 matthewpi

This isn't a duplicate.

DaneEveritt avatar Aug 25 '20 04:08 DaneEveritt

@DaneEveritt Just tested RC2, however it seems that this issue still persists in some manner. Restarting wings does grab the correct variables, however updating them post-restart still doesn't update wings.

Zendrex avatar Aug 26 '20 05:08 Zendrex

Also have learned that variables are still not updated in the log, however they seem to work within wings. https://gyazo.com/b902806d6d6ab2891fcd33e3523817f9 (parkervcp discordjs egg)

Zendrex avatar Aug 26 '20 06:08 Zendrex

Also have learned that variables are still not updated in the log, however they seem to work within wings. https://gyazo.com/b902806d6d6ab2891fcd33e3523817f9 (parkervcp discordjs egg)

This is specific to how I am parsing the commands. I'm not going to sped a ton of time working on fixing that wither.

parkervcp avatar Aug 26 '20 12:08 parkervcp