#500 Internal Server Error on fresh panel install (Gentoo Linux)

7 messages · Page 1 of 1 (latest)

stray lava
#

Hello friends, I have just installed Wings & the panel, however the panel is not accessible.
I get a "500 Internal Server error" when trying to open it up in my browser, and there are no logs created.

nginx.conf:

user nginx nginx;
worker_processes 1;

error_log /var/log/nginx/error_log info;

events {
    worker_connections 1024;
    use epoll;
}

http {
    include /etc/nginx/mime.types.nginx;
    types_hash_max_size 4096;
    default_type application/octet-stream;

    log_format main
        '$remote_addr - $remote_user [$time_local] '
        '"$request" $status $bytes_sent '
        '"$http_referer" "$http_user_agent" '
        '"$gzip_ratio"';

server {
    # Replace the example <domain> with your domain name or IP address
    listen 80;
    server_name 192.168.1.117;


    root /var/www/pterodactyl/public;
    index index.html index.htm index.php;
    charset utf-8;

    location / {
        try_files $uri $uri/ /index.php?$query_string;
    }

    location = /favicon.ico { access_log off; log_not_found off; }
    location = /robots.txt  { access_log off; log_not_found off; }

    access_log off;
    error_log  /var/log/nginx/pterodactyl.app-error.log error;

    # allow larger file uploads and longer script runtimes
    client_max_body_size 100m;
    client_body_timeout 120s;

    sendfile off;

    location ~ \.php$ {
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        fastcgi_pass unix:/run/php-fpm/php-fpm.sock;
        fastcgi_index index.php;
        fastcgi_param PHP_VALUE "upload_max_filesize = 100M \n post_max_size=100M";
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param HTTP_PROXY "";
        fastcgi_intercept_errors off;
        fastcgi_buffer_size 16k;
        fastcgi_buffers 4 16k;
        fastcgi_connect_timeout 300;
        fastcgi_send_timeout 300;
        fastcgi_read_timeout 300;
    include fastcgi.conf;
    }

    location ~ /\.ht {
        deny all;
    }
}
}

tidal falconBOT
#

You'll need to grab the error logs from the Panel. The following command uploads the last 150 lines of this day's log to our pastebin and provides a link you can share.
tail -n 150 /var/www/pterodactyl/storage/logs/laravel-$(date +%F).log | nc pteropaste.com 99

stray lava
mellow hearth
#

If you have a 500 error there will be logs

#

But ime just assume you may wane look into SMTP settings

#

Int the .env change mail provider from SMTP to mail and see what happens

spiral sparrow
#

I installed the panel on arch linux through the AUR but I have the same issue, 500 Server Error with no logs.