N8n Docker Install ERROR 500

Hi Community,

I’ve followed all the steps of installing n8n docker with cyberpanel. And failed.
I’m asking you all for a tip so that i can uderstand what the problem is… and then try to solve it.

500 ## Internal Server Error - An internal server error has occured

While the container is running, in the Container manager, inside the myn8ndocker, I refreshed the log field:

UserSettings were generated and saved to: /home/node/.n8n/config
n8n ready on 0.0.0.0, port 5678
Migrations in progress, please do NOT stop the process.
Initializing n8n process
Migrations finished.
Version: 0.228.2
Editor is now accessible via:
http://localhost:5678/

I’m trying to access it by a subdomain. In the reverse proxy steps:

extprocessor myn8ndocker {
type proxy
address http:// yourcyberpanelip:yourport
maxConns 100
pcKeepAliveTimeout 60
initTimeout 60
retryTimeout 0
respBuffer 0
}

Instead of the http://yourcyberpanelip:yourport i used my IP: xxx.xxx.xxx.xxx:5678;
I’m running a VPS in Hostinger VPS centOS7;

I’ve created .htaccess file and upload it to /home/mysubdomain/public_html;

RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
REWRITERULE ^(.*)$ http://myn8ndocker/$1 [P]

Also maybe important, I’m hosting some sites like wordpress and mautic but this is the first container with docker.
This is killing me as i’m no coder and already tried all available tutorials here and there. Also tried to install with docker compose but found a lot of issues. Curiose is that i got an 503 Error in the end. Please help to try to get some info about the source of the problem. I also accept a magic solution :slight_smile:

Cheers

cyberpanel using port 5678 for terminal, might creating issues

I changed to 7172 and now i get a 503 ERROR

If i open xx.xx.xx.xx:7172 it works.
But how can i use the subdomain i created for?

Now it is working.
The trick is to set extprocessor myn8ndocker into vConf inside website settings in Cyberpanel. Also there you can REWRITERULE.