Pterodactyl panel with Cloudflare errors
Hello,
I'm here in the hope that you can help me solve the problems I'm having with Pterodactyl under cloudflare.
Since I set up Cloudflare nothing works (absolutely nothing, panel in maintenance mode). Currently, here are the errors I'm getting:
And here are parts of the configurations that are linked to them:
Due to the character limit, I can't send any more configs and files, but don't hesitate to ask me.
Thanks in advance
FATAL: [Jul 25 18:59:00.239] failed to load server configurations error=remote: could not unmarshal response: invalid character '<' looking for beginning of value
Stacktrace:
invalid character '<' looking for beginning of value
remote: could not unmarshal response
github.com/pterodactyl/wings/remote.(*Response).BindJSON
github.com/pterodactyl/wings/remote/http.go:251
github.com/pterodactyl/wings/remote.(*client).getServersPaged
github.com/pterodactyl/wings/remote/servers.go:209
github.com/pterodactyl/wings/remote.(*client).GetServers
github.com/pterodactyl/wings/remote/servers.go:26
FATAL: [Jul 25 18:59:00.239] failed to load server configurations error=remote: could not unmarshal response: invalid character '<' looking for beginning of value
Stacktrace:
invalid character '<' looking for beginning of value
remote: could not unmarshal response
github.com/pterodactyl/wings/remote.(*Response).BindJSON
github.com/pterodactyl/wings/remote/http.go:251
github.com/pterodactyl/wings/remote.(*client).getServersPaged
github.com/pterodactyl/wings/remote/servers.go:209
github.com/pterodactyl/wings/remote.(*client).GetServers
github.com/pterodactyl/wings/remote/servers.go:26
[2024-07-25 12:17:02] production.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `settings` where `key` = app:telemetry:uuid limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `settings` where `key` = app:telemetry:uuid limit 1) at /var/www/pterodactyl/vendor/laravel/framework/src/Illuminate/Database/Connection.php:760)
[2024-07-25 14:41:01] production.NOTICE: A query exception was encountered while trying to load settings from the database: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `settings`)
[2024-07-25 12:17:02] production.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `settings` where `key` = app:telemetry:uuid limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `settings` where `key` = app:telemetry:uuid limit 1) at /var/www/pterodactyl/vendor/laravel/framework/src/Illuminate/Database/Connection.php:760)
[2024-07-25 14:41:01] production.NOTICE: A query exception was encountered while trying to load settings from the database: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `settings`)
api:
host: 0.0.0.0
port: 8080
ssl:
enabled: false
cert: /etc/ssl/certs/certificat.pem
key: /etc/ssl/private/private_key.key
disable_remote_download: false
upload_limit: 500
trusted_proxies: []
api:
host: 0.0.0.0
port: 8080
ssl:
enabled: false
cert: /etc/ssl/certs/certificat.pem
key: /etc/ssl/private/private_key.key
disable_remote_download: false
upload_limit: 500
trusted_proxies: []
2 Replies
I have tried to configure the WAF firewall but I only have my IP in the rule history, and no trace of my VPS. If need be I can provide the NGINX configs, because I'm not a specialist and maybe the error is there.
Hi, I've regained access to the panel, but wings won't start. Is it a firewall problem? Because I have everything configured
Nginx return this :
-FATAL: [Jul 26 11:27:11.091] failed to load server configurations error=manager: failed to retrieve server configurations: Error response from Panel: _MissingResponseCode: No error response returned from API endpoint. (HTTP/404)
Stacktrace:
Error response from Panel: _MissingResponseCode: No error response returned from API endpoint. (HTTP/404)
github.com/pterodactyl/wings/remote.(*client).request.func1
github.com/pterodactyl/wings/remote/http.go:161
github.com/cenkalti/backoff/v4.RetryNotifyWithTimer.Operation.withEmptyData.func1
github.com/cenkalti/backoff/[email protected]/retry.go:18
github.com/cenkalti/backoff/v4.doRetryNotify[...]
github.com/cenkalti/backoff/[email protected]/retry.go:88
-FATAL: [Jul 26 11:27:11.091] failed to load server configurations error=manager: failed to retrieve server configurations: Error response from Panel: _MissingResponseCode: No error response returned from API endpoint. (HTTP/404)
Stacktrace:
Error response from Panel: _MissingResponseCode: No error response returned from API endpoint. (HTTP/404)
github.com/pterodactyl/wings/remote.(*client).request.func1
github.com/pterodactyl/wings/remote/http.go:161
github.com/cenkalti/backoff/v4.RetryNotifyWithTimer.Operation.withEmptyData.func1
github.com/cenkalti/backoff/[email protected]/retry.go:18
github.com/cenkalti/backoff/v4.doRetryNotify[...]
github.com/cenkalti/backoff/[email protected]/retry.go:88
2024/07/26 11:24:53 [error] 7593#7593: *219 connect() failed (111: Connection refused) while connecting to upstream, client: 172.XX.XXX.XXX, server: example.com, request: "GET /api/application/nodes/1/configuration HTTP/2.0", upstream: "http://127.0.0.1:8443/api/application/nodes/1/configuration", host: "example.com"
2024/07/26 11:24:53 [error] 7593#7593: *219 open() "/var/www/html/50x.html" failed (2: No such file or directory), client: 172.XX.XXX.XXX, server: example.com, request: "GET /api/application/nodes/1/configuration HTTP/2.0", upstream: "http://127.0.0.1:8443/api/application/nodes/1/configuration", host: "example.com"
2024/07/26 11:25:05 [error] 7593#7593: *194 connect() failed (111: Connection refused) while connecting to upstream, client: 172.XX.XXX.XXX, server: example.com, request: "GET /api/application/nodes/1/configurationAn HTTP/2.0", upstream: "http://127.0.0.1:8443/api/application/nodes/1/configurationAn", host: "example.com"
2024/07/26 11:25:05 [error] 7593#7593: *194 open() "/var/www/html/50x.html" failed (2: No such file or directory), client: 172.XX.XXX.XXX, server: example.com, request: "GET /api/application/nodes/1/configurationAn HTTP/2.0", upstream: "http://127.0.0.1:8443/api/application/nodes/1/configurationAn", host: "example.com"
2024/07/26 11:25:13 [error] 7593#7593: *194 connect() failed (111: Connection refused) while connecting to upstream, client: 172.XX.XXX.XXX, server: example.com, request: "GET /api/application/nodes/1/ HTTP/2.0", upstream: "http://127.0.0.1:8443/api/application/nodes/1/", host: "example.com"
2024/07/26 11:25:13 [error] 7593#7593: *194 open() "/var/www/html/50x.html" failed (2: No such file or directory), client: 172.XX.XXX.XXX, server: example.com, request: "GET /api/application/nodes/1/ HTTP/2.0", upstream: "http://127.0.0.1:8443/api/application/nodes/1/", host: "example.com"
2024/07/26 11:24:53 [error] 7593#7593: *219 connect() failed (111: Connection refused) while connecting to upstream, client: 172.XX.XXX.XXX, server: example.com, request: "GET /api/application/nodes/1/configuration HTTP/2.0", upstream: "http://127.0.0.1:8443/api/application/nodes/1/configuration", host: "example.com"
2024/07/26 11:24:53 [error] 7593#7593: *219 open() "/var/www/html/50x.html" failed (2: No such file or directory), client: 172.XX.XXX.XXX, server: example.com, request: "GET /api/application/nodes/1/configuration HTTP/2.0", upstream: "http://127.0.0.1:8443/api/application/nodes/1/configuration", host: "example.com"
2024/07/26 11:25:05 [error] 7593#7593: *194 connect() failed (111: Connection refused) while connecting to upstream, client: 172.XX.XXX.XXX, server: example.com, request: "GET /api/application/nodes/1/configurationAn HTTP/2.0", upstream: "http://127.0.0.1:8443/api/application/nodes/1/configurationAn", host: "example.com"
2024/07/26 11:25:05 [error] 7593#7593: *194 open() "/var/www/html/50x.html" failed (2: No such file or directory), client: 172.XX.XXX.XXX, server: example.com, request: "GET /api/application/nodes/1/configurationAn HTTP/2.0", upstream: "http://127.0.0.1:8443/api/application/nodes/1/configurationAn", host: "example.com"
2024/07/26 11:25:13 [error] 7593#7593: *194 connect() failed (111: Connection refused) while connecting to upstream, client: 172.XX.XXX.XXX, server: example.com, request: "GET /api/application/nodes/1/ HTTP/2.0", upstream: "http://127.0.0.1:8443/api/application/nodes/1/", host: "example.com"
2024/07/26 11:25:13 [error] 7593#7593: *194 open() "/var/www/html/50x.html" failed (2: No such file or directory), client: 172.XX.XXX.XXX, server: example.com, request: "GET /api/application/nodes/1/ HTTP/2.0", upstream: "http://127.0.0.1:8443/api/application/nodes/1/", host: "example.com"
Did you ever fix this?