panel icon indicating copy to clipboard operation
panel copied to clipboard

Maintenance mode does not work

Open OpenSource03 opened this issue 6 years ago • 3 comments

Background (please complete the following information):

  • Panel or Daemon: panel
  • Version of Panel/Daemon: 1.1.1
  • Server's OS: Debian 9
  • Your Computer's OS & Browser: macOS, Safari

Describe the bug I'm not sure if you're aware of this, but Maintenance mode does not work.

To Reproduce After trying to enable it, and hitting the save button, it automatically disables after the page refresh.

Expected behavior The Maintenance mode should enable and not let any users enter their server panel if they are on the node with mm enabled.

OpenSource03 avatar Nov 13 '20 15:11 OpenSource03

It does enable it. It seems to take a few seconds and F5 to see that it was enabled (The admin dashboard is not using React). Regardless of that it doesn't have the effect that is suppose to have. The clients can still access their servers.

GravityCube avatar Nov 13 '20 15:11 GravityCube

It seems that the maintenance mode is not implemented. I couldn't find anything related on wings and the Node model doesn't take maintenance into account so it is never sent to wings. https://github.com/pterodactyl/panel/blob/c928214a833cb108cfbc4a06daa56af2ab573c56/app/Models/Node.php#L149-L175

GravityCube avatar Nov 13 '20 16:11 GravityCube

Its not exported in the configuration. Never was exported in 0.7 either but its there

notAreYouScared avatar Nov 13 '20 19:11 notAreYouScared