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

Error when opening "databases" tab on a server page #4898

Closed
2 of 3 tasks
zmiguel opened this issue Oct 19, 2023 · 4 comments
Closed
2 of 3 tasks

Error when opening "databases" tab on a server page #4898

zmiguel opened this issue Oct 19, 2023 · 4 comments
Labels
not confirmed Report seems plausible but requires additional testing or 3rd part confirmation.

Comments

@zmiguel
Copy link

zmiguel commented Oct 19, 2023

Current Behavior

This happens when I try to go to the databases tab on a server

image

I've just setup a database host and the panel seems happy about it.
I could create a database but when I click to view the password I get that message.
I also get a 500 HTTP Error on the page .../api/client/servers/<server_id>/databases?include=password

Expected Behavior

It to works and show my the databases and view their password

Steps to Reproduce

Go to the databases tab on a server

Panel Version

1.11.5

Wings Version

1.11

Games and/or Eggs Affected

No response

Docker Image

No response

Error Logs

https://pteropaste.com/nyfhce273nu4/

Is there an existing issue for this?

  • I have searched the existing issues before opening this issue.
  • 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.
  • 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.
@zmiguel zmiguel added the not confirmed Report seems plausible but requires additional testing or 3rd part confirmation. label Oct 19, 2023
@Boy132
Copy link
Contributor

Boy132 commented Oct 19, 2023

Please visit the Discord for configuration related issues. This is not a bug.

@matthewpi matthewpi closed this as not planned Won't fix, can't repro, duplicate, stale Oct 19, 2023
@iceHtwoO
Copy link

iceHtwoO commented Oct 24, 2023

@zmiguel Could you find a fix? I have the same issue and the discord server wasn't much help

@Boy132
Copy link
Contributor

Boy132 commented Oct 24, 2023

@zmiguel Could you find a fix? I have the same issue and the discord server wasn't much help

Please visit the Discord for configuration related issues. This isn't the place to ask.

@abaurens
Copy link

abaurens commented Nov 19, 2024

Doccumenting the solution here for anyone else finding this issue.
I did not find the solution myself. Credits goes to Loki on the pterodactyl discord for finding the reason and solution to the issue.

Turns out the pannel docker image is missing the HASHIDS_SALT and HASHIDS_LENGTH environment variables.
HASHIDS_SALT should probably be generated by the entry point just like other variables of the same kind, but isn't right now.
HASHIDS_LENGTH should be set to 8 but it has a default value in case it's missing anyway.

You can fix the error by generating a random alphanumeric string of length 20 (no special chars) and then adding these variables to your container's environment either directly with docker, or in pterodactyl's /app/var/.env file:

/app/var/.env

  APP_KEY=79fA6r2Psc6Dj5L32ZiyiWHx3ceolnpD
  HASHIDS_LENGTH=8
  HASHIDS_SALT=sXDDV7Vw65XbvV64yzaM

docker compose:

  environment:
      ...
      HASHIDS_SALT: "sXDDV7Vw65XbvV64yzaM"
      HASHIDS_LENGTH: 8

Finally, here is a pull request (#5131) someone made 6 month ago to fix this. But it seems like it's stuck in testing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not confirmed Report seems plausible but requires additional testing or 3rd part confirmation.
Projects
None yet
Development

No branches or pull requests

5 participants