panel icon indicating copy to clipboard operation
panel copied to clipboard

Upgrading Wings moves the default location back to /var/lib/pterodactyl/volumes and not whatever was set.

Open VanillaChan6571 opened this issue 2 years ago • 11 comments

Current Behavior

When upgrading wings. The volume location if set custom like /panel/volumes it will revert back to the default location volumes of /var/lib/pterodactyl/volumes because configuration believes its always located /var/lib/pterodactyl/volumes and not whatever the config says and no way to overwrite admin/nodes/view/XYZ/configuration

Expected Behavior

It should never reset or move the default location of volumes when upgrading.

Steps to Reproduce

  1. Upgrade Wings
  2. All files go missing
  3. Get Confused because wings should never move location of volumes.
  4. Check the /etc/pterodactyl/config.yml
  5. Sure enough it moved the location back to /var/lib/pterodactyl/volumes

Panel Version

1.11.3

Wings Version

1.11.8

Games and/or Eggs Affected

N/A

Docker Image

N/A

Error Logs

N/A due to a wings config issue not a log issue.

Is there an existing issue for this?

  • [X] I have searched the existing issues before opening this issue.
  • [X] 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.
  • [X] 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.

VanillaChan6571 avatar Nov 26 '23 01:11 VanillaChan6571

You need to set the data path in the database if you didn't set it right when you created the node, or moved it after the fact.

Wings will update parts of its configuration from the panel when it restarts. it's not defaulting, it's using the value you have set for the node in the database

danny6167 avatar Nov 26 '23 06:11 danny6167

@danny6167 what? There is no database for "nodes"

VanillaChan6571 avatar Nov 26 '23 09:11 VanillaChan6571

@danny6167 what? There is no database for "nodes"

Of course there is. How else do you think the panel keeps a record of its nodes.

danny6167 avatar Nov 26 '23 09:11 danny6167

@danny6167 what? There is no database for "nodes"

Of course there is. How else do you think the panel keeps a record of its nodes.

The panel keeps the nodes records in the config.yml, the nodes have no database connection except api calls to the master webhost. YOU have no idea what your talking about.

VanillaChan6571 avatar Nov 26 '23 09:11 VanillaChan6571

@danny6167 what? There is no database for "nodes"

Of course there is. How else do you think the panel keeps a record of its nodes.

The panel keeps the nodes records in the config.yml, the nodes have no database connection except api calls to the master webhost. YOU have no idea what your talking about.

Actually you have no idea what you are talking about.

The config.yml is there to store the basic settings for the wings service to start up. But the panel doesn't read it at all, it stores all of it's information in the panels database.

danny6167 avatar Nov 26 '23 09:11 danny6167

image

danny6167 avatar Nov 26 '23 09:11 danny6167

@danny6167 what? There is no database for "nodes"

Of course there is. How else do you think the panel keeps a record of its nodes.

The panel keeps the nodes records in the config.yml, the nodes have no database connection except api calls to the master webhost. YOU have no idea what your talking about.

Actually you have no idea what you are talking about.

The config.yml is there to store the basic settings for the wings service to start up. But the panel doesn't read it at all, it stores all of it's information in the panels database.

No I do as you didnt even read what I posted. "/var/lib/pterodactyl/volumes" is located in config.yml and NO WHERE in any database. Your talking about something else.

VanillaChan6571 avatar Nov 26 '23 09:11 VanillaChan6571

image

I do not have a "demonBase" as it marked as - for every node.

VanillaChan6571 avatar Nov 26 '23 09:11 VanillaChan6571

I just showed you where it is in the database.

As I explained before, when wings pulls updated config data from the panel it will update your config.yml with details from the panel database.

At no point did I ever say wings had a direct connection to the panels database. It is done when wings calls the panels API for settings.

danny6167 avatar Nov 26 '23 09:11 danny6167

So basically editing the config is useless and needs to be updated via database which has a one way talking point which in the dumbest way to store volume locations as it should be called on the config when requesting wings. or when wings restarts it should send a updated copy to the database no matter what

VanillaChan6571 avatar Nov 26 '23 09:11 VanillaChan6571

For some values, yes. you need to update them in the panels database.

You can also set ignore_panel_config_updates to true in your wings config and it will ignore config updates from the panel.

danny6167 avatar Nov 26 '23 09:11 danny6167