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
Admincraft Meta
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
Wafflez
Wafflez2y ago
have you followed the pterodactyl "how-to" ? what issue are you having ?
Trailbounder
TrailbounderOP2y ago
Yes, and it didn't help.
Deleted User
Deleted User2y ago
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?
Trailbounder
TrailbounderOP2y ago
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...
Trailbounder
TrailbounderOP2y ago
I may just be attempting this all wrong in the first place, it a learning experience for sure.
Deleted User
Deleted User2y ago
videos like that are mostly outdated
Trailbounder
TrailbounderOP2y ago
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
Deleted User
Deleted User2y ago
could you send what error you're having with LE?
Trailbounder
TrailbounderOP2y ago
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"
Deleted User
Deleted User2y ago
that's not an error it just says it failed due to another reason could you ping google.com
Trailbounder
TrailbounderOP2y ago
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
Deleted User
Deleted User2y ago
could be a dns issue
itaquito
itaquito2y ago
Are you using certbot?
Trailbounder
TrailbounderOP2y ago
I'm not, but it's possible I need to. This is my first foray into https
itaquito
itaquito2y ago
Yeah, you should use certbot as the pterodactyl docs suggest
Deleted User
Deleted User2y ago
yea
itaquito
itaquito2y ago
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
Deleted User
Deleted User2y ago
the install script is probably using certbot
Trailbounder
TrailbounderOP2y ago
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.
itaquito
itaquito2y ago
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
Trailbounder
TrailbounderOP2y ago
Okay, so maybe an issue with my ddns address servername.ddns.net that forwards to my public IP?
itaquito
itaquito2y ago
Yep! Also, if your home network requires port forwarding, you need to open port 80 (HTTP) and 443 (HTTPS)
itaquito
itaquito2y ago
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.
itaquito
itaquito2y ago
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.
Trailbounder
TrailbounderOP2y ago
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
itaquito
itaquito2y ago
Yeah, also pterodactyl uses other ports
Trailbounder
TrailbounderOP2y ago
I'll have to start over and reinstall from scratch, which other ports?
itaquito
itaquito2y ago
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)
Trailbounder
TrailbounderOP2y ago
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
itaquito
itaquito2y ago
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
Trailbounder
TrailbounderOP2y ago
I'm probably going to get lost again, lol
itaquito
itaquito2y ago
But getting it just right might be difficult for the first time
Trailbounder
TrailbounderOP2y ago
Script...or attempt step by step on the guide again?
itaquito
itaquito2y ago
The guide For the most part, its just copy and paste commands Specially if you are using ubuntu xP
Trailbounder
TrailbounderOP2y ago
Kept getting weird issues on that
itaquito
itaquito2y ago
Which version of ubuntu are you using?
Trailbounder
TrailbounderOP2y ago
22.04
itaquito
itaquito2y ago
oo, it should work without any problems then should
Trailbounder
TrailbounderOP2y ago
My first attempt was 23.04...that, was a nightmare
itaquito
itaquito2y ago
Just follow the guide, if an error appears, post it here
Trailbounder
TrailbounderOP2y ago
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
Trailbounder
TrailbounderOP2y ago
No description
Trailbounder
TrailbounderOP2y ago
Right clicked by mistake, wont let me re-run the command
Trailbounder
TrailbounderOP2y ago
won't let me run or rerun any php artisan commands
No description
Trailbounder
TrailbounderOP2y ago
fixed by deleting entire directory and purging database then starting again on database creation. After running the script, it finally works!
1who¡ssus?
1who¡ssus?2y ago
Gg
Trailbounder
TrailbounderOP2y ago
Just need to figure out the correct port to sent to a cloudflare tunnel now And 100% working! !solved
Admincraft Meta
post closed!
The post/thread has been closed!
Requested by trailbounder#0

Did you find this page helpful?