Docker Error - Running But Command Line Hung

Describe the problem/error/question

Getting ‘ERR_ERL_UNEXPECTED_X_FORWARDED_FOR’ when starting docker. The N8N instance started okay and runs from the UI but the console is seems to just hang after starting workflow correctly.

I found in the forum where it was recommended to set N8N_PROXY_HOPS to 1, but that didn’t seem to fix it. Anyone else seeing something similar?

What is the error message (if any)?

This the error I got. Only getting error after a recent upgrade to 1.54.4

ValidationError: The 'X-Forwarded-For' header is set but the Express 'trust proxy' setting is false (default). This could indicate a misconfiguration which would prevent express-rate-limit from accurately identifying users. See https://express-rate-limit.github.io/ERR_ERL_UNEXPECTED_X_FORWARDED_FOR/ for more information.

Information on your n8n setup

  • n8n version: 1.54.4
  • Database (default: SQLite): SQLite
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: Ubuntu

Hey @JackDigital,

What you have looks to be ok to me, What are you expecting to see in the console?

With the error you are seeing it is more of a warning which setting N8N_PROXY_HOPS will fix normally the value would be 1 if you have one proxy but you would need to increase it if you have more this shouldn’t impact n8n from working though.

Hi @Jon! Not expecting to see anything specific; but the console appears to hang in spite of the instance operating properly. Is this normal? Shouldn’t it take me back to the command prompt?

Hey @JackDigital,

It depends on the command you ran, If you don’t use the detach option it will stay like it is so assuming you are using compose you would want to use docker compose up -d which would solve the problem.

Thanks Jon!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.