#Error connecting node

1 messages · Page 1 of 1 (latest)

sour trout
#

I have my Pterodactyl Panel sitting behind Traefik. It is exposing ports 3443, and 380. I use cloudflare for my certs.

I have my wings node sitting on another ip, .245 not behind traefik proxy. I create the node in panel, using 3443 as the daemon. Selecting behind Proxy, using SSL. I put the config into the /etc/pterodactyl/config.yml, enable debugging.

No issues on the node, it appears to POST, and request a GET. I have attempted wget on my host pterodactyl.domain.com, it gets a HTTP 200.

The Panel cannot communicate with the node. Anyone know why? Its killing me. I have debugging on, no logs are showing in the panel, in the mariadb, or the cache.

tardy nova
#

curl panel IP and port on wings machine; curl wings IP and port on panel machine.

sour trout
#

I have successfully curl -v http and https of the panel.
http fails (8080) but (443) succeeds from the panel to the node. This makes sesnse, as it needs to be set to daemon 443, behind proxy, and FQDN in the settings for its creation

#

I have both containers using the correct DNS, as nslookups result correctly as well

tardy nova
#

I am confused… is your daemon port 8080, 443 or 3443?

sour trout
#

I reverted it to 443 since the first origin post

tardy nova
#

Wings sends requests/replies exclusively over 443 of you’re using SSL

#

Panels sends over daemon port

sour trout
#

Since Traefik is handing out certificates, as both node and panel are behind it, I set it to 443 with SSL, and behind proxy checked

tardy nova
#

I don’t think having the daemon and https port be the same will cause any issues but it’s a bit risky

sour trout
#

Here is a shot of the wings logs

#

Should my Daemon actually be 8080?

tardy nova
#

I mean you can try but wings appears to be communicating fine

#

What are browser logs like?

sour trout
#

So how do I see the browser logs? I know how to access the /laravel logs

#

The ONLY laravel log I've seeen thus far, has been
[2023-10-22 01:02:41] production.NOTICE: A query exception was encountered while trying to load settings from the database: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'panel.settings' doesn't exist (SQL: select * from settings)

Which I was able to resolve by forcing the php seed command

unreal ruinBOT
#

@sour trout; Your database migration was skipped or failed. You may attempt to complete it by running php artisan migrate --seed --force in the Pterodactyl install directory. If you encounter errors, please do not ignore them and instead post them here.

tardy nova
#

F12

#

Is browser log

#

Do so in node settings

sour trout
#

When Im actively creating a new Node you mean?

tardy nova
#

No.

#

In the menu with the read heart

sour trout
#

I am in the settings, although I don't see anything particularly useful coming out of the developer logs

tardy nova
#

Check console > errors

sour trout
#

Oh that is incrediblely useful

#

Firstly thank you for pointing that out, looks like there is a block

tardy nova
#

I’m 99% sure the bot has the a predefined response to the CORS error

#

Try posting it as text

sour trout
#

has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

unreal ruinBOT
#

@sour trout; Make sure that your Wings are running and reachable. This error usually happens when your browser can't reach Wings to verify the CORS headers. Click on the URL in the CORS error to verify it can be connected to without any errors.

tardy nova
#

Yeah try clicking on the link

sour trout
#

Link gives a badgateway

tardy nova
#

Is it end-to-end SSL?

#

I’ve seen that error when it’s only proxy-client ssl

#

If it isn’t end-to-end, disable SSL in wings settings

#

config.yml

sour trout
#

Is there a sure-fire way for me to check that?

The steps for obtaining a cert -
Traefik hands it out VIA cloudflare, througha redirect

tardy nova
#

Not sure with traefik

#

Perhaps check browser console in the bad gateway menu

sour trout
#

Okay, I actually have SSL pre-disabled rn

tardy nova
#

Try enabling it then restarting wings

sour trout
#

Enabling it gives me a direct error saying no Letsencrypt file locally on the wings client, which would be correct

tardy nova
#

I reckon that traefik is trying to send an SSL request to wings, which isn’t running SSL.

sour trout
#

Thats probably it, I believe you are right

#

Is there a specified setting I cna use in wings to go around tls requirements?

tardy nova
#

I mean, you could put the SSL certs it’s complaining about on the wings machine, and leave SSL on.

#

If it’s in a different format, there will be lots of translate guides online

sour trout
#

So..

If anyone is familiar with Traefik:

Would this configuration work for my wings/panel setup?

http:
 #region routers 
  routers:
# Pterodactyl_wings http
    pterodactyl_wings-node01:
      entryPoints:
        - "http"
      rule: "Host(`pt-node-01.cinderblock.tech`)"
      middlewares:
        - https-redirectscheme
      service: pterodactyl_wings-node01
## Pterodactyl_wings https
    pterodactyl_wings-node01-secure:
      entryPoints:
        - "https"
      rule: "Host(`pt-node-01.cinderblock.tech`)"
      middlewares:
        - default-headers
      tls: {}
      service: pterodactyl_wings-node01
  services:
# Pterodactyl_wings Loadbalancer   
    pterodactyl_wings-node01:
      loadBalancer:
        servers:
          - url: "http://192.168.1.245:80"
        passHostHeader: true
#

I think you may be right, I'll have to figure out how to get my cloudflare cert directly on the wings node

tardy nova
#

You can upload it to some sort of command line file sharing, idk what it’s called, then curl or wget on the wings machine.

#

I did this with my proxy, if I recall

viscid dust
#

In wings config file you have to add panel url to trusted_origins

#

That should work

sour trout
#

You mean in the /etc/pterodactyl/config.yml file?

Would it look along the lines of
trusted_origins: ['URL_HERE']

#

I've done as so, and am now getting the same CORS error.

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://pt-node-01.domain.com/api/system(Reason: CORS request did not succeed). Status code: (null).
or
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://pt-node-01.domain.com/api/system. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 502.

Do I need do perform anything on the panel side?

unreal ruinBOT
#

@sour trout; Make sure that your Wings are running and reachable. This error usually happens when your browser can't reach Wings to verify the CORS headers. Click on the URL in the CORS error to verify it can be connected to without any errors.

sour trout
#

HTTP Error 301 - strict-origin-when-cross-origin