B
Blueprint10mo ago
Nectz

Ptero Errors

Having some issues getting the panel back going after a sudo reboot
Oct 31 18:28:20 VexiNode1 systemd[1]: Failed to start mariadb.service - MariaDB 11.5.2 database server.
░░ Subject: A start job for unit mariadb.service has failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit mariadb.service has finished with a failure.
░░
░░ The job identifier is 28708 and the job result is failed.
Oct 31 18:28:20 VexiNode1 systemd[1]: Failed to start mariadb.service - MariaDB 11.5.2 database server.
░░ Subject: A start job for unit mariadb.service has failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit mariadb.service has finished with a failure.
░░
░░ The job identifier is 28708 and the job result is failed.
19 Replies
Loki
Loki10mo ago
Fetch the last few lines of your MariaDB logs from somewhere in /var/log Might be under mariadb or mysql To be clear, did you get Redis to start successfully?
Nectz
NectzOP10mo ago
nope and nothing in the mysql logs
Nectz
NectzOP10mo ago
Nectz
NectzOP10mo ago
That is redis log
Nectz
NectzOP10mo ago
Nectz
NectzOP10mo ago
twas a permission issue
Loki
Loki10mo ago
They both look like permission issues
Nectz
NectzOP10mo ago
yep its working fine w chatgpt
sudo chown -R mysql:mysql /var/lib/mysql
sudo chmod -R 755 /var/lib/mysql
sudo chown -R mysql:mysql /var/lib/mysql
sudo chmod -R 755 /var/lib/mysql
Loki
Loki10mo ago
ChatGPT is very useful if you can check if what you did worked afterwards, but just in case I'd recommend always including at the end of your prompt
"Also, give me the steps I would need to take to un-do this if it doesn't work or has unintended consequences. If I need to give you more information for you to know how to undo it, let me know what information you need."
Nectz
NectzOP10mo ago
okay great cause my next plan is to somehow move the panel to my AWS instance and connect it back to this server it's currently on but i dont want to lose servers that are spun up
Loki
Loki10mo ago
Panel and Wings are completely separate. You can migrate the panel without worrying about losing servers; you'll just need to connect it to Wings again.
Nectz
NectzOP10mo ago
yeah i gotta figure out how to move the panel and blueprint and all that and then connect it back. Im trying to do this in production soooo danger
Loki
Loki10mo ago
Just don't remove anything from your current server until AFTER everything's working on the new one.
Nectz
NectzOP10mo ago
do i just go into nodes and map it to the domain?
Nectz
NectzOP10mo ago
This look right?
Loki
Loki10mo ago
No, that looks like AI hallucinations. Use the migrate guide for the panel. https://gist.github.com/trenutoo/c18258658bef28e73b24d11d02d24915#migrating-panel You'll have to update your Database Host user's host and your Wings machine's firewall afterwards as well. Wings machine:
mariadb -u root -p
ALTER USER 'pterodactyluser'@'127.0.0.1' RENAME TO 'pterodactyluser'@'new_panel_ip';
mariadb -u root -p
ALTER USER 'pterodactyluser'@'127.0.0.1' RENAME TO 'pterodactyluser'@'new_panel_ip';
ufw allow from new_panel_ip to any port 3306 proto tcp
ufw allow from new_panel_ip to any port 3306 proto tcp
Panel: - Change host in database host to your Wings machine's public IP instead of 127.0.0.1
Nectz
NectzOP10mo ago
Okay so far I got the node setup and green heartbeat. Im working on allocations now. After I finish that I should run those commands above correct? to clarify I have the node on the main server connected to the panel on the aws
Loki
Loki10mo ago
Yes, but obviously replacing new_panel_ip with the actual IP of your AWS panel.
Nectz
NectzOP10mo ago
got it i'll give it a shot. i messed up and put the public ip in the ip portion so now i have to delete 89 pages of allocations a command for this would be goals
container@pterodactyl~ Server marked as offline...
[Pterodactyl Daemon]: Server crash was detected but an error occurred while handling it.
[Pterodactyl Daemon]: ---------- Detected server process in a crashed state! ----------
[Pterodactyl Daemon]: Exit code: 128
[Pterodactyl Daemon]: Out of memory: false
[Pterodactyl Daemon]: Aborting automatic restart, last crash occurred less than 60 seconds ago.
container@pterodactyl~ Server marked as offline...
[Pterodactyl Daemon]: Server crash was detected but an error occurred while handling it.
[Pterodactyl Daemon]: ---------- Detected server process in a crashed state! ----------
[Pterodactyl Daemon]: Exit code: 128
[Pterodactyl Daemon]: Out of memory: false
[Pterodactyl Daemon]: Aborting automatic restart, last crash occurred less than 60 seconds ago.
What potentially can cause this?
Error Event [47383a41-5dab-4d84-b2b9-9c47f7c99a59]: environment/docker: failed to start container: Error response from daemon: driver failed programming external connectivity on endpoint cfe434e9-7a9b-4fb9-beea-b98b3b1130fa (7945d1bc63e6f60f5aac4cd901dd3c5ff28414da49940c5ecb1309ed6a5cc787): Bind for 192.168.1.170:25565 failed: port is already allocated
Error Event [47383a41-5dab-4d84-b2b9-9c47f7c99a59]: environment/docker: failed to start container: Error response from daemon: driver failed programming external connectivity on endpoint cfe434e9-7a9b-4fb9-beea-b98b3b1130fa (7945d1bc63e6f60f5aac4cd901dd3c5ff28414da49940c5ecb1309ed6a5cc787): Bind for 192.168.1.170:25565 failed: port is already allocated
oh i see. so i have to set the ip of the node machine or the panel machine? boom. fixed

Did you find this page helpful?