Just got a new hetzner server, need help with mojang links not resolving.
For example here : om.mojang.authlib.exceptions.MinecraftClientException: Failed to read from https://api.minecraftservices.com/publickeys due to api.minecraftservices.com
or when installing paper, I get :
cant resolve "piston-data.mojang.com"
I assume this is something with firewall or dns, just not sure. Any help would be appreciated.
165 Replies
I turned off hetnzer firewall and am instead only using ufw but still didn't fix my problem
.
can you get the DNS records for piston-data.mojang.com on it
e.g.
dig piston-data.mojang.com
oh sorry. can you get api.minecraftservices.com
thats whats its complaining about
I can't access either
Well I can but not via pterodactyl
It's something with docker I think
docker compose or cli
I am not sure, it's pterodactyl
Just using default minecraft egg
can the machine running wings dig those domains
The wings and panel are on the same machine
And node was showing green heart, so it was connected to the node. But for some reason I just cannot access any mojang links
but in a shell, can said machine access their DNS records
now I can't even start pterodactyl idk wtf I'm doing wrong lmao
might want to check if your password is actually yes
I don't have a password, or anywhere set where a password would = yes
oh nvm i misread that completely LMAO
i fixed that error
now new error
,
How do you have Pterodactyl setup?
Did you follow the standard install steps from https://pterodactyl.io/panel/1.0/getting_started.html
Getting Started | Pterodactyl
Pterodactyl is an open-source game server management panel built with PHP, React, and Go. Designed with security in mind, Pterodactyl runs all game servers in isolated Docker containers while exposing a beautiful and intuitive UI to end users.
Are you using docker-compose with some pterodactyl compse file?
i was in this instance yes. but when doing the install from the docs, what happens is my panel site doesn't resolve, and neither does the direct ip + port
ok, so are you using nginx, apache or something else?
sorry should've mentioned this, yes i am using nginx, and i have set it up according to the docs with the correct domain, pointed to my ip using an a record
and when you
nslookup yourdomain.com
, do you see the expected Hetzner IP?yes
And on the dedicated server, if you do
netstat -tlupn
, can you see Nginx listening on port 80/443?yes, on tcp and tcp6
on 80 and 443?
yes
so if you do
curl -v yourdomain.com
on the dedicated server, what do you see?and if you try
curl -v https://panel.guw.ad
(since it's wanting to redirect you from http to https)Then your Nginx config isn't correct
Are the panel files currently installed at
/var/www/pterodactyl
where the guide says to?yes
And what is the contents of your
/etc/nginx/sites-enabled/pterodactyl.conf
?just realized i deleted the config so that makes sense, sorry, i forgot. here it is with the config in sites-enabled
seems to be the same thing
And when you do
nginx -t
you get no issues reported?
And you've done service nginx reload
?created symlink as well
okay now i am getting this
after adding the config to nginx
You appear to have 2 configs for your panel?
I see that but there is only 1 config here


not in default either
Does
grep -rnw '/etc/nginx' -e 'panel.guw.ad'
show anything else?i think i found the issue omg
it was that i made a nginx/conf.d/ config
That is also a valid config location to be fair
But yes, one or the other
I know, I just kind of forgot i put it there haha
does this look correct?
No, you're now getting an error from pterodactyl/php
HTTP/2 500
Which is an internal server error
First thing to check is tail -n 100 /var/log/nginx/error.log
This will let us know if it's an issue with nginx speaking with php
or if there's nothing, we look at pterodactyl logshttps://ctxt.io/2/AAB47WBJFw
I don't know exactly how to read this but it looks like its conflicting with AMP (which i only installed to try as an alternative to pterodactyl but hated it)
I went through the uninstall steps in the AMP docs though, so it shouldn't be there.
Yeah, amp config is still there
and eating the requests which should be going to Pterodactyl
I will try to uninstall amp again.
Do
grep -rnw '/etc/nginx' -e 'panel.guw.ad'
and remove the other nginx config
that's not the pterodactyl one
Or if it's in your defaut.conf, modify it to remove itIt isn't in my default, and there is no other config besides pterodactyl.conf
And to sanity check, you've restarted / reloaded nginx since removing the AMP config?
Yes I did that just a minute ago when putting in the pterodactyl.conf
Failing that, can you check
grep -rnw '/etc/nginx' -e 'server_name'
instead, as it may be listening on a wildcard or something other than the panel.guw.ad domainI think this could be it, this looks all messed up.
like the example.com but idk
actually i think it's fine.
Whelp, the logs you shared shows that when attempting to navigate to your panel, it's selecting the upstream localhost:8080, which is wrong
But ignoring that, you can try and check
tail -n 100 /var/www/pterodactyl/storage/logs/laravel-$(date +%F).log
To see if requests are still getting to php/pterodactyl (and for some reason aren't in the logs)
As the addresses being navigated to in those errors you shared don't appear to be related to panel requestshttps://pastebin.com/raw/ndGTr6X0
I also have a discord music bot web dashboard and a file host site so there could be some references to those somewhere
ok, your pterodactyl user doesn't have permission to the mariadb database
Did you follow the database configuration steps at the top of installation?
Getting Started | Pterodactyl
Pterodactyl is an open-source game server management panel built with PHP, React, and Go. Designed with security in mind, Pterodactyl runs all game servers in isolated Docker containers while exposing a beautiful and intuitive UI to end users.
I am sorry I literally am such a noob, I don't know how u guys remember how all of these things work hahaha
I will configure the mariadb I think I messed that up earlier
My job is to do stuff like this, I used to work for a host and maintained their panel, and I've installed Pterodactyl too many times.
I understand but still, impressive. I feel like an idiot sometimes hahaha. Usually following docs, I have 0 issues but when I do have issues I feel so dumb 😂😂
Okay so in that log I sent you, it shows it's trying to connect to mysql right? My db is mariadb. Would it be easier to just use mysql instead?
It doesn't matter which you use
Its whatever you've got installed
The log doesn't specify which it's connecting to as it doesn't care
Oh okay. Well, I checked and mariadb is running and everything I'm pretty sure. But still getting that error.
It may be running, but have you created the user and database?

I ran
DROP USER 'pterodactyl'@'127.0.0.1';
and then ran
CREATE USER 'pterodactyl'@'127.0.0.1' IDENTIFIED BY 'yourPassword';
with my password of course
I had to do that because it said there already was a user, but i was unsure of the password so i remade it to make sure.
And you already have a database called panel?
If so, you still need to run
GRANT ALL PRIVILEGES ON panel.* TO 'pterodactyl'@'127.0.0.1' WITH GRANT OPTION;
yes I made sure to create database panel beforehand, and grant privleges afterwards
I just basically removed database and user and redid the commands in the doc
And you've got your credentials set in
/var/www/pterodactyl/.env
for the pterodactyl user?I didn't actually.
Because I assume you left that blank
I just set it
And if you now check
tail -n 100 /var/www/pterodactyl/storage/logs/laravel-$(date +%F).log
againIn "db_connection" should i have this set to mariadb instead of mysql or is it handled the samea?
No
the other values of
DB_CONNECTION
would be for sqlite, postgresql, microsoft SQL server, MongoDB, etc.https://pastebin.com/raw/zjJ1KpAu
now I believe it's something to do with my tables or something?
You need to go to /var/www/pterodactyl
You basically need to run the steps: https://pterodactyl.io/panel/1.0/getting_started.html#database-setup
Getting Started | Pterodactyl
Pterodactyl is an open-source game server management panel built with PHP, React, and Go. Designed with security in mind, Pterodactyl runs all game servers in isolated Docker containers while exposing a beautiful and intuitive UI to end users.
forward
So
php artisan migrate --seed --force
, php artisan p:user:make
and the set permissions stuff (top command of the three)
Also the section above it first (before the above) for environment setup, database and mail if you've not done itOkay I have done that. But the log is still looking the same.
Maybe I should try from the top?
php artisan migrate --seed --force
is what you needed to run
It installs the tables required for the panel to functionYou also would need to browse to the panel to trigger new log entries
I am not able to access the panel from the domain
HTTP ERROR 500
Then run these first:
Then run
php artisan migrate --seed --force
againokay doing this, also i was curious, would redis, memcached, or file be the best?
If you followed the full steps, redis is what you should be selecting
if you didn't, select file
okay that's what i assumed
Yeah still HTTP ERROR 500
logs
https://pastebin.com/raw/cmnZR8a2
looks the same
Unsure what to say
Either it's a cached response
Or the migration isn't applying and the table isn't being created
If you open up the mysql instance you used to create the user
can you type
use panel;
and show tables;
(if I'm remembering the right SQL from the top of my head)
I think that's correct right?
I am running the mariadb on another user, but that shouldn't matter right?
Depends which database it's connecting to, but it sh ould be that one
Because that right there has a table called settings in the panel database
which makes this line not true

Yeah and that's what it was complaining about not having
yes exactly so it makes no sense
Are you able to share the lines starting with
DB_
in your .env without sharing your pass
But the migration and laravel should be using the same .envDB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=panel
DB_USERNAME=pterodactyl
DB_PASSWORD=
Assuming the panel database is empty
Honestly, just run
DROP DATABASE panel;
CREATE DATABASE panel;
I tried this before I think but I will try again
GRANT ALL PRIVILEGES ON panel.* TO 'pterodactyl'@'127.0.0.1' WITH GRANT OPTION;
and then php artisan migrate --seed --force
after leaving the sql cliDidn't fix it sadly
Can try
php artisan cache:clear
as a last resort
and try and reload the page
But other than that, you probably need to ask in the Pterodactyl Discord serverYeah sadly didn't work. I will try Pterodactyl discord server.
Thank you a lot for trying to help I really appreciate it
No worries
You're 80% of the way there
Just no clue where this is going wrong, and I gotta sleep
Goodnight once again seriously thanks a lot
Ptero discord is pretty inactive sadly, if anyone here thinks they could help I would appreciate it.
Fixed it with , guess I somehow forgot to do this.
Now I cannot get wings to work
any error?
That's why you gotta RTFM
And repeat all the steps if needed :P
in browser console I am getting these errors.
i have no clue
@SilentBot sorry to bug you, would you have any idea what these errors could be resulting from?
Wings isn't accessible publicly on port 8080
Either blocked by firewall
or wings isn't running at all
I got it resolved. LetsEncrypt saved my cert like example.com-0003 so that was my issue.
solved
Nicesu
Curious about what you didn't like about AMP?
Out of the box imo it just felt a bit weird to navigate, for most people I'm sure it'd be fine but I just felt very confused with how it was layed out. Also I'm a bit of a noob and I was having a tough time learning to do certain things, because it wasn't more idiot friendly in the docs 😂 just imo felt more complex than pterodactyl, honest review 😂
That's cool - could you give any specific examples of things that felt unintuitive?
If I was actively using it I could tell you but, for example, after installing I was having issues and I had to go to discord because I couldn't find anything about it on the docs. And I just generally didn't like the layout of the interface regardless, just felt a bit dated.
Can you elaborate in any way at all? xD
"I was trying to do X, I expected to be able to Y" etc?
It's not an issue of that, I'm sure if I messed with it I would've been able to do anything pterodactyl could do. The only reason I didn't like it is because when using it I felt like I didn't know what I was doing.
My opinion on these types of things is honestly invaluable though I use nomachine for terminal as a reference to my inexperience with this type of stuff 😂
I'm guessing you're quite young?
Spose that's unhelpful given that I call anyone under 25 'young'
I'm 22, just don't really know much about this type of stuff. I only got into self hosting and stuff a year ago or so
Hahaha then yeah
yeah I figured - it's more that you're seemingly unable to quantify anything which is a common issue with younger people
So the feedback is consequently vague and unactionable
It's not real feedback I just didn't like it. I'm sure others would, especially if they weren't so used to pterodactyls layout. (Or stubborn)
I try as much as I can to get feedback from people who didn't like it so I can try and find out why and examine what could be done better
I'm assuming you got it installed, saw the big blue "Create Instance" button and got at least as far as creating a game instance? Maybe you'd be able to describe the first time you felt that you didn't know what you were doing?
I kind of just bought it without even looking into it, so I went in completely with no idea what I was even installing besides that its a panel that does similar things to pterodactyl. That's part of the reason I was clueless, probably. Also I felt like it was hard to find docs, it took me too long to realize ampinstmgr was the command for the panel, for example. Once I figured it out yeah I felt a little stupid because you had to use the command to install, but idk for some reason that wasn't apparent to me.
Not just that just an example.
I would have to be actively using it to give you good feedback
Do you remember the kind of things you were looking for docs for? What the "Huh, I can't figure out how to do this" thing was that made you go looking because it wasn't obvious?
Okay here's one I definitely can remember
After installing (from the websites instructions), you're kind of left with nowhere to go/ nothing to do. Like, it would be nice if under the install, there was a link to docs to show how basic things are done
That sounds more like you didn't get into the panel at all?
I did, I just had to use chatgpt to figure out what was going wrong. I believe I had a nginx issue or something.
So you got to the panel, and you saw the empty interface and a big blue "Create Instance" button with the arrow pointing to it saying "Click here to create your first instance" ?
Just to refresh your memory it would have looked like this:

Yes and I created an instance, and tested my mc server for a bit because this was the first time I was able to get a little test server going on my dedicated I got.
The thing that really drew me away was the interface. And one thing I really liked was the way the whole ampinstmgr (command) is setup
Why were you using ampinstmgr at all? There's like no good reason to use it ever except for recovery situations or certain maintainence tasks - what were you trying to do with it?
Yes
When troubleshooting, when I was having issues at the start.
And it was quite a bit easier than messing with wings and ptero panel I will admit
You're like blood from a stone dude, what were the issues you were trying to troubleshoot?
I do not remember, probably the nginx issue. Used it to get logs and things
wouldn't have been that, I'm guessing this more than a few days ago given how little you remember?
It was like yesterday or the day before 😂
Christ 😂
I'll give amp another try some time, if it helps that day was one of the more stressful days so the odds of me giving it a fair chance for that day, is much lower.
If you ever do, and you run into something you don't like - actually not just with AMP but any software you ever use, take a moment to ask yourself "why don't I like this?" because it's the absolute #1 thing developers want to know
I mean even I don't know where everything is in AMP, but I also will just go straight to the search box to find a setting or some documentation or whatever I need
100% I get you. I'll try to give some more valuable feedback. Saying "I don't like it", isn't very helpful in changing / fixing what I do not like.
I'd appreciate that 🙂
also check out the other themes it has if you don't like how it looks 😉
I'm watching a video on amp and I definitely didn't give it a good first chance. I never even used the search bar once. No wonder I didn't know where the docs were.

Definitely giving it another go soon sorry for the quick judgement, that search bar is sick (how lame of me to find a search bar, sick)
what's fun is the setup process explicitly draws attention to it xD
settings etc too

That's as user friendly as it gets tbh 😂 I get why you're so confused how I'm finding it complicated
Well we've now finally got something I can use right? Your attention wasn't strongly enough drawn to the search box to even think to use it for documentation
So maybe I need to revisit how that's done
maybe there could be a "walkaround" on install just to dummy proof it 😂
Omg I didn't mean to edit my message 😂
Well it has this image at the end of the setup process:

Okay I'm just stupid
but people are clearly not noticing it
I blame that on my own lack of patience
I must have just blindly skipped that
you're not the first not to even realise the search box was there you see
I might make it a video xD
This video is what I was watching, could just include this too I guess at the bottom of the install 😂
CubeCoders
YouTube
Creating a Minecraft: Java Edition server in AMP
In this video I cover how to install and configure a Minecraft: Java Edition server through AMPs web interface, and how to find settings within AMP.
- AMP Installation Tutorials -
Linux: https://youtu.be/s_I9OdAj8xo
Windows: https://youtu.be/6oZDzvoYSJ0
Site: https://cubecoders.com/AMP/Minecraft?utm_source=youtube
Patreon: https://patreon.com/...
I need to replace those old videos really
There's an unfinished version of the replacement for that video here: https://www.youtube.com/watch?v=8yfIxauIhXI
Yeah this one is a bit nicer.
I feel like the pacing is a little slow, but it's clearer and has better production values.
I think its better for it to be slow. Always gotta account for people like me 😂😂
And editing is great