Pterodactyl setup
After hours spent attempting to setup pterodactyl on a self-host machine....I have no idea what i'm doing. I've made it as far as successfully running the installation script. However that failed the "Let's Encrypt" checks (might simply be a port forward fix, but not sure what I need). After quite some time, I've given up for now and am running my server barebones on ubuntu. Can anyone help me get pterodactyl setup or let me know where to find the fixes? I'm a little lost on the wiki. Setup: Self-host on Ubuntu 22.04, Dell Optiplex 3040, i5-6500t, 8Gb ram (upgrading to 16Gb monday), 1Tb SSD. Gigabit network, full access to ports. Server is running on paperMC.
Thanks!
49 Replies
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close
!close
!solved
!answered
Requested by trailbounder#0
have you followed the pterodactyl "how-to" ? what issue are you having ?
Yes, and it didn't help.
port forwarding is required, yes
install script doesnt really expose all the errors
you should try it with official doocs
they work very hard on it just so people can use an automated script
could you send what error you're having with LE?
Okay, as far as I can tell, I would have zero issues with a private installation with local access similar to this video https://youtu.be/sZjAQnnfUP0?si=z1-Me7HzG_a_ZDws. I was attempting setup with HTTPS/SSL for external access using my ddns based address...I've never setup https and don't know what ports or prior setup I need in order to properly enable this and succeed with the "let's encrypt" check.
Nate Zone
YouTube
How To Setup A Home Pterodactyl Minecraft Server Like A Pro!
I show you how I set up my Pterodactyl Minecraft server from scratch. I help guide you to get a basic Minecraft server up and running with some basic plugins installed.
SCRIPT LINK (At Step 9)
https://www.ghostcap.com/install-pterodactyl-panel/
Download Script .TXT (If the link above doesn't work)
https://drive.google.com/file/d/12btpIAt10Ainc...
I may just be attempting this all wrong in the first place, it a learning experience for sure.
videos like that are mostly outdated
I first tried on step by step with docs and came out with constant errors. The script fixed that for me, it should be mostly a configuration issue on my side now
could you send what error you're having with LE?
LE? And I'll have to return to it and run it from scratch again, last I remember it was something along the line of "let's encrypt check failed"
that's not an error
it just says it failed due to another reason
could you ping google.com
Right, which is why I believe it may be a network configuration error
**user error
From the server? I successfully ran the barebones server and had external players on. I'm not sure what you need from the ping
could be a dns issue
Are you using certbot?
I'm not, but it's possible I need to. This is my first foray into https
Yeah, you should use certbot as the pterodactyl docs suggest
yea
It helps you to automatically get certificates and renew them
Certbot actually hooks into apache/nginx to make the domain verification, it also has a standalone web server if for some reason you are not using ngninx or apache.
You could also do a DNS verification, but that will only work the first time you get the certs
the install script is probably using certbot
Ngninx was installed, again, I'm thinking I need to actually open a port to run the check correctly. I'm looking through the docs for the process.
It runs on port 80, as any other web server
You just have to make sure your webserver is accessible to the internet via the domain that you want to get the certs for
Okay, so maybe an issue with my ddns address servername.ddns.net that forwards to my public IP?
Yep!
Also, if your home network requires port forwarding, you need to open port 80 (HTTP) and 443 (HTTPS)
Here is the tutorial for your webserver configuration: https://pterodactyl.io/panel/1.0/webserver_configuration.html
Webserver Configuration | 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.
Creating SSL Certificates | 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.
User error then, I needed to forward port 80, and 443 to the server. I guess I didn't realize. Whoops. Laser focused on an issue and didn't realize a potential easy fix
Yeah, also pterodactyl uses other ports
I'll have to start over and reinstall from scratch, which other ports?
By default, wings uses 8080 and SFTP uses 2022
Probably just restarting your webserver configurations is enough
And also! You have to create a certificate for the domain of your panel and the domain of wings (which may be different depending on your setup)
I switched to the script on this instruction "cp .env.example .env
composer install --no-dev --optimize-autoloader" it was telling me that the file didnt exist
Just. why?
I appreciate it, I feel like im getting schooled setting this up. I'm gonna go ahead and re-install os and start again
np!
Pterodactyl its an interesting thing to install.. but on its core, its a really simple app
Just a PHP website that connects to a backend application
I'm probably going to get lost again, lol
But getting it just right might be difficult for the first time
Script...or attempt step by step on the guide again?
The guide
For the most part, its just copy and paste commands
Specially if you are using ubuntu xP
Kept getting weird issues on that
Which version of ubuntu are you using?
22.04
oo, it should work without any problems then
should
My first attempt was 23.04...that, was a nightmare
Just follow the guide, if an error appears, post it here
Thanks, Ill have the OS up in a minute or two
Am I doing it wrong if I have to run every command as sudo?
on this command: php artisan p:environment:setup
Right clicked by mistake, wont let me re-run the command
won't let me run or rerun any php artisan commands
fixed by deleting entire directory and purging database then starting again on database creation.
After running the script, it finally works!
Gg
Just need to figure out the correct port to sent to a cloudflare tunnel now
And 100% working!
!solved
post closed!
The post/thread has been closed!
Requested by trailbounder#0