Troubleshooting
Panel errors
If you see a 500 | SERVER ERROR or An unexpected error was encountered while processing this request you have to check your panel logs by running the following command.
tail -n 1000 /var/www/pelican/storage/logs/laravel-$(date +%F).log | grep "\[$(date +%Y)"
Common errors
Wrong file permissions
If the command above doesn't return anything, you most likely have incorrect file permissions . So you first need to fix that.
You can set the correct permissions by running sudo chmod -R 755 /var/www/pelican/storage/* /var/www/pelican/bootstrap/cache/. Also make sure that your panel files are owned by the correct user.
- NGINX/Apache
- Rocky Linux NGINX
- Rocky Linux Apache
sudo chown -R www-data:www-data /var/www/pelican
sudo chown -R nginx:nginx /var/www/pelican
sudo chown -R apache:apache /var/www/pelican
Wings connection issues
Check the wings service
First you should make sure that the wings service is running. To do that run systemctl status wings.
It should say that the service is active and running. If its in a failed state run sudo wings diagnostics to check the wings logs for errors.
Common errors
Check the wings port
If you confirmed that wings is running without errors you should make sure that the wings port (8080 by default) isn't blocked by any firewall. The best way to check this is to use online port checkers like dnschecker.org
It should say "open" if you check for your node FQDN (e.g. node.example.com or 123.123.123.123) and your wings port (e.g. 8080). If it says "timed-out" you have some firewall blocking the port. This could be an internal firewall (like iptables) or an external firewall (e.g. from your provider).
Check for NAT loop back
If your panel and wings are on the same machine or same network, and you are using domains you should check for NAT loop back issues.
Edit the /etc/hosts file on your panel/ wings machine and add an entry for your ip and domain.
Example:
123.123.123.123 panel.example.com node.example.com
Check the wings connection
If you confirmed the above points you have to do some advanced troubleshooting.
Check if your panel and your browser can connect to wings.
Panel <-> Wings connection
Run curl <protocol><node fqdn>:<node port> (e.g. curl https://node.example.com:8080 or curl http://123.123.123.123:8080) on your panel machine and see what it outputs.
Browser <-> Wings connection
Open <protocol><node fqdn>:<node port> (e.g. https://node.example.com:8080 or http://123.123.123.123:8080) in your browser and see what it outputs.
In both cases it should output this when wings is reachable:
{"error" : "The required authorization heads were not present in the request."}
Not sure what a specific error means? Visit our Discord and we will be happy to help you!
Check node settings
If the connection checks above were both successfull you might have misconfigured the Node settings in the Panel.
Make sure that your Node FQDN/ IP, Port and Scheme (HTTP/ HTTPS) is correct.
When using a reverse proxy you might have different external and internal ports for Wings. (e.g. 80 internally and 443 externally)
In that case make sure the Node settings in the Panel uses the external port while the Wings config file uses the internal port!
Schedules not running
If your Schedules are stuck on Processing or don't execute the tasks check the following:
- Is your Schedule set to run
ONLY WHEN SERVER IS ONLINEand the server is currently offline? - Is your queue worker service running? (
systemctl status pelican-queue) - Is your queue worker service using the correct PHP version? (
php -v) - Is your cronjob setup correctly?
crontab -l -u www-data(wherewww-datais your webserver user) should show the following entry:
* * * * * php /var/www/pelican/artisan schedule:run >> /dev/null 2>&1
If your queue worker service is not running you can also check the panel logs for errors.
tail -n 100 /var/www/pelican/storage/logs/laravel-$(date +%F).log | grep "\[$(date +%Y)"
To recreate the queue worker service you can run php /var/www/pelican/artisan p:environment:queue-service --overwrite.
File Upload issues
If a file upload form returns an error like mountedActionsData.0.files.24d4b82d-a3ae-47fd-981f-8b2f0f6a21d4 it is most likely a proxy issue.
Make sure your Trusted Proxies are set to the correct ips, both in the panel settings and your proxy settings!
Also make sure your webserver and/ or proxy have a high enough upload limit. (e.g. client_max_body_size, upload_max_filesize and post_max_size)
In some cases the issue can also be caused by incorrect file permissions. See above on how to fix your file permissions.