n8ntb
1
Hi All,
I’m using latest version for on-promise n8n (v 1.74.3) installed via docker where I’m having the following issue:
I can’t really debug and test flows as in test more, where its saying “Listen for test event” it does not display requests.
Execute previous nodes in Editor are also empty No input data yet while all requests are logged properly under Executions tab.
What would be the way to resolve it?
Thanks
Information on your n8n setup
- 1.74.3
- **Running n8n via Docker
n8n
2
It looks like your topic is missing some important information. Could you provide the following if applicable.
- n8n version:
- Database (default: SQLite):
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app):
- Operating system:
Jon
3
Hey @n8ntb,
Welcome to the community 
Is it safe to assume that you are using nginx as your reverse proxy of choice?
n8ntb
4
it is proxy over apache — it is set as following, and I feel the issue is there:
<VirtualHost *:443>
ServerAdmin webmaster@domain
DocumentRoot "/home/n8n"
#RemoteIPHeader CF-Connecting-IP
ServerName n8n.domain
ServerAlias n8n-test.domain
ProxyRequests Off
ProxyPreserveHost On
ErrorLog ${APACHE_LOG_DIR}/error.n8n.log
CustomLog ${APACHE_LOG_DIR}/access.n8n.log combined
<Proxy *>
Order allow,deny
Allow from all
</Proxy>
ProxyPass / http://127.0.0.1:5678/
ProxyPassReverse / http://n8n.domain
RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME}
RewriteCond %{HTTP:Upgrade} websocket [NC]
RewriteCond %{HTTP:Connection} upgrade [NC]
RewriteRule ^/?(.*) "ws://127.0.0.1:5678/$1" [P,L]
</VirtualHost>
Any thoughts?
Jon
5
Hey @n8ntb,
The issue will be with the websockets, I am not overly familiar with the Apache configuration but I do know that the below works.
<VirtualHost *:80>
ServerName n8n.yourdomain.tld
RewriteEngine On
RewriteCond %{HTTP:Upgrade} =websocket [NC]
RewriteRule /(.*) ws://172.17.0.1:5678/$1 [P,L]
RewriteCond %{HTTP:Upgrade} !=websocket [NC]
RewriteRule /(.*) http://172.17.0.1:5678/$1 [P,L]
ProxyPassReverse / http://n8n.yourdomain.tld
</VirtualHost>
Looking at your config I would probably start with something like…
<VirtualHost *:443>
ServerName n8n.domain
ServerAlias n8n-test.domain
DocumentRoot "/home/n8n"
RewriteEngine On
RewriteCond %{HTTP:Upgrade} =websocket [NC]
RewriteRule /(.*) ws://127.0.0.1:5678/$1 [P,L]
RewriteCond %{HTTP:Upgrade} !=websocket [NC]
RewriteRule /(.*) http://127.0.0.1:5678/$1 [P,L]
ProxyPassReverse / http://n8n.domain
</VirtualHost>
1 Like
n8ntb
6
wow yes, it worked! you saved my day!
Thanks Jon
1 Like
system
Closed
7
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.