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

Can´t read machine-id from normal Java container for Java 17 #4043

Closed
3 tasks done
BolverBlitz opened this issue Apr 9, 2022 · 6 comments
Closed
3 tasks done

Can´t read machine-id from normal Java container for Java 17 #4043

BolverBlitz opened this issue Apr 9, 2022 · 6 comments
Labels
not confirmed Report seems plausible but requires additional testing or 3rd part confirmation.

Comments

@BolverBlitz
Copy link

Current Behavior

One of my Eggs requires a way to get a unique id, for this it reads a file thats pressent on most OSs and diffrent locations.
However it cant find the file in the normal Java Yolk for java 17: open /etc/machine-id: no such file or directory it works as expected with the J9 version.

Java 8,11 and 16 Yolks have this file aswell, only Java 17 is not working.

Expected Behavior

Should be able to read /etc/machine-id from Java 17 Yolk like on most distros and the J9 yolks and older normal Java Yolks.

Steps to Reproduce

Try to read /etc/machine-id file with the Java Yolk
Or use the egg thats not working.

Panel Version

1.7.0

Wings Version

1.6.1

Games and/or Eggs Affected

https://github.com/gekware/minecraft-server-hibernation-pterodactyl-egg/blob/main/egg-paper-on-demand.json

Docker Image

ghcr.io/pterodactyl/yolks:java_17

Error Logs

2022/04/09 18:42:14 [error *   ] main: LoadConfig: loadDefault: machineid: machineid: open /etc/machine-id: no such file or directory

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.
@BolverBlitz BolverBlitz added the not confirmed Report seems plausible but requires additional testing or 3rd part confirmation. label Apr 9, 2022
@parkervcp
Copy link
Member

This would be an issue for any docker container. It's even an issue on the machineid git repo.

denisbrodbeck/machineid#5

@BolverBlitz
Copy link
Author

Hm, but why is it specific the Java 17 yolk then.

Yolks 8,11,16 and 8J9,11J9,16J9 and 17J9 all work fine.
Any other solution to get a unique inside a container managed by pterodactyl maybe?

@parkervcp
Copy link
Member

Every server has a uuid attached to it and is part of the env vars.

If you passed in a machine id file they would all get the same id every time.

@BolverBlitz
Copy link
Author

Could i not just use that env var to put into the file thats missing in the eggs install script?

@parkervcp
Copy link
Member

No. The only files that are saved are the ones in /mnt/server/.

@DaneEveritt
Copy link
Member

Closing this out, doesn't appear to be software specific.

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

3 participants