#DNS Reflection Issues

28 messages · Page 1 of 1 (latest)

rustic oriole
#

I am having trouble fixing the reflection issues. When I am able to see the domain working for minecraft server, I am now unable to access the panel.
I changed my /etc/hosts to

::1             localhost ip6-localhost ip6-loopback
ff02::1         ip6-allnodes
ff02::2         ip6-allrouters
# --- BEGIN PVE ---
192.168.1.44 pterodactylubuntu.local pterodactylubuntu ptepanel.[domain].com bozos.[domain].com
# --- END PVE ---

I'm not sure how to debug it from here as I have made sure my dns records are correct and configurations.
I checked the logs files and the systemctl all seem correct.

inner trellis
#

You're going to need to provide actual errors. " I am now unable to access the panel." doean't help anyone help you

rustic oriole
#

I have been getting
root@pterodactylubuntu:~# sudo tail -f /var/log/nginx/pterodactyl.app-error.log

#2 /var/www/pterodactyl/vendor/monolog/monolog/src/Monolog/Logger.php(390): Monolog\Handler\AbstractProcessingHandler->handle()
#3 /var/www/pterodactyl/vendor/monolog/monolog/src/Monolog/Lo...; PHP message: PHP Fatal error:  Uncaught UnexpectedValueException: The stream or file "/var/www/pterodactyl/storage/logs/laravel-2025-03-06.log" could not be opened in append mode: Failed to open stream: Permission denied
The exception occurred while attempting to log: file_put_contents(/var/www/pterodactyl/storage/framework/views/4e5709c1c93b720882e66b4c395cf5d7.php): Failed to open stream: Permission denied
Context: {"exception":{}} in /var/www/pterodactyl/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:156
Stack trace:
#0 /var/www/pterodactyl/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php(110): Monolog\Handler\StreamHandler->write()
#1 /var/www/pterodactyl/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(44): Monolog\Handler\RotatingFileHandler->write()
#2 /var/www/pterodactyl/vendor/monolog/monolog/src/Monolog/Logger.php(390): Monolog\Handler\AbstractProcessingHandler->handle()
#3 /var/ww```
But I was previously able to get it to work regardless of this error. 

I tried 

sudo chmod -R 777 /var/www/pterodactyl/storage
sudo chmod -R 777 /var/www/pterodactyl/bootstrap/cache

but doesn't seem to fix the permission issue
unborn raftBOT
rustic oriole
#

after running that command, I get

#1 /var/www/pterodactyl/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(44): Monolog\Handler\RotatingFileHandler->write()
#2 /var/www/pterodactyl/vendor/monolog/monolog/src/Monolog/Logger.php(390): Monolog\Handler\AbstractProcessingHandler->handle()
#3 /var/www/pterodactyl/vendor/monolog/monolog/src/Monolog/Lo...; PHP message: PHP Fatal error:  Uncaught UnexpectedValueException: The stream or file "/var/www/pterodactyl/storage/logs/laravel-2025-03-06.log" could not be opened in append mode: Failed to open stream: Permission denied
The exception occurred while attempting to log: file_put_contents(/var/www/pterodactyl/storage/framework/views/4e5709c1c93b720882e66b4c395cf5d7.php): Failed to open stream: Permission denied
Context: {"exception":{}} in /var/www/pterodactyl/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:156
Stack trace:
#0 /var/www/pterodactyl/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php(110): Monolog\Handler\StreamHandler->write()
#1 /var/www/pterodactyl/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(44): Monolog\Handler\RotatingFileHandler->write()
#2 /var/www/pterodactyl/vendor/monolog/monolog/src/Monolog/Logger.php(390): Monolog\Handler\AbstractProcessingHandler->handle()
#3 /var/ww
unborn raftBOT
inner trellis
#

That's all the exact same text, with no timestamps

Are you sure that's not the same error entry?

rustic oriole
#

even though I run the chmod command and giving it permission, it doesn't seem to solve the permission issue.

root@pterodactylubuntu:/var/www/pterodactyl# ls -l bootstrap/cache/
total 416
-rwxr-xr-x 1 www-data www-data  22878 Mar  7 04:39 config.php
-rwxr-xr-x 1 www-data www-data   1707 Mar  7 01:05 packages.php
-rwxr-xr-x 1 www-data www-data 371734 Mar  7 04:39 routes-v7.php
-rwxr-xr-x 1 www-data www-data  21590 Mar  7 01:05 services.php
#

oh, that may be possible.

inner trellis
#

Again, what's your actual error preventing you from reaching the panel
What are you trying to look for in the webserver logs

rustic oriole
#

I'm not entirely sure. what other logs can I check to figure out why my panel can't be accessible now?

inner trellis
#

Literally just your browser error
There won't be any logs on your machine if your browser can't reach your machine in the first place

#

Aka how are you determining you can't reach your panel

rustic oriole
#

oh.
Hmmm… can't reach this page
ptepanel.[domain].com refused to connect.

inner trellis
#

Check your nginx status, firewall and routing

rustic oriole
#

I have to make port 8080 is accessible right? because thats for the panel

inner trellis
#

Nope
8080 is wings default

Panel is plain old regular http/s ports

rustic oriole
#

I debugged it to the point where I noticed that I can run the laravel frontend for the panel in port 8000 locally, but on port 80, I can't access it. is there any logs file I can look at more?

#

It seems port 80, port 443 is timing out according to port scanner.

inner trellis
#

None of that is useful
The useful part is 76 lines above that

rustic oriole
inner trellis
#

But there won't be anything of use in your laravel log if nothing is reaching your panel

#

That's just your panel failing to reach wings

Solve your browser reaching your panel first. They are likely related

rustic oriole
#

It seems I am able to access through curl but just not the web browser.

root@pterodactylubuntu:/var/www/pterodactyl# curl -v https://ptepanel.dobbss.com
*   Trying 192.168.1.44:443...
* TCP_NODELAY set
* Connected to ptepanel.dobbss.com (192.168.1.44) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: /etc/ssl/certs
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN, server accepted to use h2
* Server certificate:
*  subject: CN=*.dobbss.com
*  start date: Mar  6 22:43:17 2025 GMT
*  expire date: Jun  4 22:43:16 2025 GMT
*  subjectAltName: host "ptepanel.dobbss.com" matched cert's "*.dobbss.com"
*  issuer: C=US; O=Let's Encrypt; CN=E5
*  SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0x567a81a390d0)
> GET / HTTP/2
> Host: ptepanel.dobbss.com
> user-agent: curl/7.68.0
> accept: */*
> 
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* old SSL session ID is stale, removing
* Connection state changed (MAX_CONCURRENT_STREAMS == 128)!
< HTTP/2 200 
< server: nginx/1.18.0 (Ubuntu)
< content-type: text/html; charset=UTF-8
< cache-control: no-cache, private
< date: Fri, 07 Mar 2025 06:49:43 GMT

Is this correct thinking?

inner trellis
#

That's your ptero machine reaching your panel
Doesn't help that much when your issue is your browser reaching your panel

#

Timeouts and conn refused are either firewall, routing or webserver issues

rustic oriole
#

Yeah, thats correct intuition. now the panel is working. I had to port forward to 80 and 443.