From 93753b751f5f0a7fcddad046b0fea773cf8259b0 Mon Sep 17 00:00:00 2001 From: Loki <59907407+Loki-101@users.noreply.github.com> Date: Thu, 18 May 2023 17:18:30 -0700 Subject: [PATCH 1/5] Update troubleshooting.md --- panel/1.0/troubleshooting.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/panel/1.0/troubleshooting.md b/panel/1.0/troubleshooting.md index a368fa6f..dd27af95 100644 --- a/panel/1.0/troubleshooting.md +++ b/panel/1.0/troubleshooting.md @@ -118,6 +118,22 @@ audit2allow -a -M http_port_t semodule -i http_port_t.pp ``` +### Containers don't have internet? Probably a DNS issue! +Now that Wings has run successfully and you have gotten the green heart on your Nodes page, the wings config at '/etc/pterodactyl/config.yml' will have new values. +One of those values is DNS, which by default will be 1.1.1.1 and 1.0.0.1 +If you are using a host that blocks Cloudflare DNS, you will have to use different DNS Servers; typically the same ones your host system is using. +You can view what DNS Servers your host uses through a number of ways depending on how your operating system handles networking. If one of these doesn't work, try another one. +```bash +# Systemd-Resolve +systemd-resolve --status" +# Network Manager +nmcli dev show +# Raw file locations that may have your host system's DNS Servers for various distributions +/etc/resolv.conf +/etc/network/interfaces +``` +If this returns different DNS Servers than 1.1.1.1 and 1.0.0.1 you'll need to edit the wings 'config.yml' file to use the DNS servers that were returned from the command. If you see output that looks like an IPV6 address in addition to your IPV4 DNS Servers, make sure you put that in the IPV6 section and not the IPV4 section. To be clear, if you have to use different DNS Servers than the default, make sure to REMOVE 1.1.1.1 and 1.0.0.1 from the wings config; don't just add the new servers, replace the old servers. + ## FirewallD issues If you are on a RHEL/CentOS server with `firewalld` installed you may have broken DNS. From f066864b9eec8a9f51bf4be79eadb54f576bc26c Mon Sep 17 00:00:00 2001 From: Loki <59907407+Loki-101@users.noreply.github.com> Date: Sun, 21 May 2023 18:06:40 -0700 Subject: [PATCH 2/5] Update troubleshooting.md Added resolvectl status and better labels --- panel/1.0/troubleshooting.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/panel/1.0/troubleshooting.md b/panel/1.0/troubleshooting.md index dd27af95..527a9619 100644 --- a/panel/1.0/troubleshooting.md +++ b/panel/1.0/troubleshooting.md @@ -124,8 +124,10 @@ One of those values is DNS, which by default will be 1.1.1.1 and 1.0.0.1 If you are using a host that blocks Cloudflare DNS, you will have to use different DNS Servers; typically the same ones your host system is using. You can view what DNS Servers your host uses through a number of ways depending on how your operating system handles networking. If one of these doesn't work, try another one. ```bash -# Systemd-Resolve +# Systemd-Resolve (Ubuntu 18.04 and 20.04) systemd-resolve --status" +# Resolve-CTL (Newer Version of Ubuntu) +resolvectl status # Network Manager nmcli dev show # Raw file locations that may have your host system's DNS Servers for various distributions From 9b720c50ef8b8c2d96b9f7fe88e22ac130fedf77 Mon Sep 17 00:00:00 2001 From: Loki <59907407+Loki-101@users.noreply.github.com> Date: Fri, 9 Jun 2023 18:23:18 -0700 Subject: [PATCH 3/5] Update troubleshooting.md --- panel/1.0/troubleshooting.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/panel/1.0/troubleshooting.md b/panel/1.0/troubleshooting.md index 527a9619..9db5ba94 100644 --- a/panel/1.0/troubleshooting.md +++ b/panel/1.0/troubleshooting.md @@ -124,12 +124,12 @@ One of those values is DNS, which by default will be 1.1.1.1 and 1.0.0.1 If you are using a host that blocks Cloudflare DNS, you will have to use different DNS Servers; typically the same ones your host system is using. You can view what DNS Servers your host uses through a number of ways depending on how your operating system handles networking. If one of these doesn't work, try another one. ```bash +# Network Manager (This will show both your IPV4 DNS and IPV6 DNS Servers in case you want to add the IPV6 DNS Server(s) from your host to your Wings Config as well. +nmcli -g ip4.dns,ip6.dns dev show # Systemd-Resolve (Ubuntu 18.04 and 20.04) systemd-resolve --status" -# Resolve-CTL (Newer Version of Ubuntu) +# Resolve-CTL (Newer Versions of Ubuntu) resolvectl status -# Network Manager -nmcli dev show # Raw file locations that may have your host system's DNS Servers for various distributions /etc/resolv.conf /etc/network/interfaces From b53096af4036822c1cc538356cd2fdb9c2641962 Mon Sep 17 00:00:00 2001 From: Loki <59907407+Loki-101@users.noreply.github.com> Date: Sun, 15 Oct 2023 21:03:59 -0700 Subject: [PATCH 4/5] Update troubleshooting.md Not sure why there was a quote there, probably a fat-finger moment. --- panel/1.0/troubleshooting.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panel/1.0/troubleshooting.md b/panel/1.0/troubleshooting.md index 9db5ba94..40724aa4 100644 --- a/panel/1.0/troubleshooting.md +++ b/panel/1.0/troubleshooting.md @@ -127,7 +127,7 @@ You can view what DNS Servers your host uses through a number of ways depending # Network Manager (This will show both your IPV4 DNS and IPV6 DNS Servers in case you want to add the IPV6 DNS Server(s) from your host to your Wings Config as well. nmcli -g ip4.dns,ip6.dns dev show # Systemd-Resolve (Ubuntu 18.04 and 20.04) -systemd-resolve --status" +systemd-resolve --status # Resolve-CTL (Newer Versions of Ubuntu) resolvectl status # Raw file locations that may have your host system's DNS Servers for various distributions From 2cff4606d8ca9f8a88da88dd746cbdf2f8d91d12 Mon Sep 17 00:00:00 2001 From: Loki <59907407+Loki-101@users.noreply.github.com> Date: Thu, 8 Feb 2024 15:31:06 -0800 Subject: [PATCH 5/5] Update troubleshooting.md --- panel/1.0/troubleshooting.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/panel/1.0/troubleshooting.md b/panel/1.0/troubleshooting.md index 40724aa4..55eddbc0 100644 --- a/panel/1.0/troubleshooting.md +++ b/panel/1.0/troubleshooting.md @@ -118,7 +118,7 @@ audit2allow -a -M http_port_t semodule -i http_port_t.pp ``` -### Containers don't have internet? Probably a DNS issue! +## Containers don't have internet? Probably a DNS issue! Now that Wings has run successfully and you have gotten the green heart on your Nodes page, the wings config at '/etc/pterodactyl/config.yml' will have new values. One of those values is DNS, which by default will be 1.1.1.1 and 1.0.0.1 If you are using a host that blocks Cloudflare DNS, you will have to use different DNS Servers; typically the same ones your host system is using. @@ -136,6 +136,23 @@ resolvectl status ``` If this returns different DNS Servers than 1.1.1.1 and 1.0.0.1 you'll need to edit the wings 'config.yml' file to use the DNS servers that were returned from the command. If you see output that looks like an IPV6 address in addition to your IPV4 DNS Servers, make sure you put that in the IPV6 section and not the IPV4 section. To be clear, if you have to use different DNS Servers than the default, make sure to REMOVE 1.1.1.1 and 1.0.0.1 from the wings config; don't just add the new servers, replace the old servers. +## Schedule Troubleshooting +- Check logs from your queue manager ``journalctl -xeu pteroq`` +- Restart pteroq ``systemctl restart pteroq`` +- Clear schedule cache ``php /var/www/pterodactyl/artisan schedule:clear-cache`` +- Check your php version - up to 8.1 is supported ``php -v`` +- Check your crontab syntax using - make sure it's what you intended +- Verify the problem is with the schedule and not with the tasks you have set up (Set the first task in your schedule to something you know prints a message in the console, ie. run ``say test`` in the console for a Minecraft server, if the text "test" shows up in the console successfully, set the first task to ``say test`` so you know if it runs +- Are your tasks off by a bit? Make sure you on the latest version of the panel? In version 1.11.5 there was a fix for schedules running at the wrong time. Alternatively, you may have the wrong timezone set. Make sure your timezones all match. + - System Timezone ``timedatectl`` + - Panel Timezone ``nano /var/www/pterodactyl/.env`` + - Wings Timezone (Passed to containers as the TZ environmental variable, unrelated to schedules but while you're checking timezones you may as well set this too) ``nano /etc/pterodactyl/config.yml`` +- Check your database where schedules are stored - MariaDB by default + - ``systemctl status mariadb`` - if it's not active, ``journalctl -xeu mariadb`` +- Check queue handler - Redis by default + - ``systemctl status redis`` - if it's not active, ``journalctl -xeu redis`` (On some distributions the service will be named ``redis-server`` instead) +- Check for panel errors ``tail -n 150 /var/www/pterodactyl/storage/logs/laravel-$(date +%F).log | nc pteropaste.com 99`` + ## FirewallD issues If you are on a RHEL/CentOS server with `firewalld` installed you may have broken DNS.