Error connecting to n8n Docker

Have 2 Docker Container on 2 different Docker Hosts.

One ist working fine and the other gives this error both have the same docker-compose.yaml

Describe the problem/error/question

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

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

Hi, were u able to fix it? how? got same error and cannot find anything on logs

Hey @nebelwaende.de & @htorres

Check you Docker logs to what is going wrong.

Docker Logs

n8n-1 | Permissions 0644 for n8n settings file /home/node/.n8n/config are too wide. This is ignored for now, but in the future n8n will attempt to change the permissions automatically. To automatically enforce correct permissions now set N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true (recommended), or turn this check off set N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=false.
n8n-1 | Initializing n8n process

n8n-1 | n8n ready on ::, port 5678
n8n-1 |
n8n-1 | There are deprecations related to your environment variables. Please take the recommended actions to update your configuration:
n8n-1 | - DB_SQLITE_POOL_SIZE → Running SQLite without a pool of read connections is deprecated. Please set DB_SQLITE_POOL_SIZE to a value higher than zero. See: Database environment variables | n8n Docs
n8n-1 | - N8N_RUNNERS_ENABLED → Running n8n without task runners is deprecated. Task runners will be turned on by default in a future version. Please set N8N_RUNNERS_ENABLED=true to enable task runners now and avoid potential issues in the future. Learn more: Task runners | n8n Docs
n8n-1 | - N8N_BLOCK_ENV_ACCESS_IN_NODE → The default value of N8N_BLOCK_ENV_ACCESS_IN_NODE will be changed from false to true in a future version. If you need to access environment varia
bles from the Code Node or from expressions, please set N8N_BLOCK_ENV_ACCESS_IN_NODE=false. Learn more: Security environment variables | n8n Docs
n8n-1 | - N8N_GIT_NODE_DISABLE_BARE_REPOS → Support for bare repositories in the Git Node will be removed in a future version due to security concerns. If you are not using bare repositories in the Git Node, please set N8N_GIT_NODE_DISABLE_BARE_REPOS=true. Learn more: Security environment variables | n8n Docs
n8n-1 |
n8n-1 | [license SDK] Skipping renewal on init: license cert is not initialized
n8n-1 | Version: 1.120.4
n8n-1 |
n8n-1 | Editor is now accessible via:
n8n-1 | http://192.168.178.50:5678

services:
  n8n:
    image: docker.n8n.io/n8nio/n8n
    restart: unless-stopped
    ports:
      - "5678:5678"
    environment:
      - N8N_HOST=192.168.178.50
      - N8N_BASIC_AUTH_ACTIVE=true
      - [email protected]
      - N8N_BASIC_AUTH_PASSWORD=admin
      - N8N_SECURE_COOKIE=false
      - GENERIC_TIMEZONE=Europe/Berlin
      - DB_TYPE=sqlite
    volumes:
      - n8n_data:/home/node/.n8n
      - ./local-files:/files

volumes:
  n8n_data:

Current n8n Version: latest

Database: SQLLite
Runnin n8n via Docker
Operating System: UGREEN Ugros (latest)

curl 192.168.178.50:5678

	<title>n8n.io - Workflow Automation</title>
	<script type="module" crossorigin src="/assets/index-BGi9eWjd.js"></script>
	<link rel="modulepreload" crossorigin href="/assets/_plugin-vue_export-helper-BwBpWJRZ.js">
	<link rel="modulepreload" crossorigin href="/assets/preload-helper-CR0ecmWK.js">
	<link rel="modulepreload" crossorigin href="/assets/chunk-6z4oVpB-.js">
	<link rel="modulepreload" crossorigin href="/assets/vue.runtime.esm-bundler-DDuXT-9r.js">
	<link rel="modulepreload" crossorigin href="/assets/_MapCache-Dw6Llo22.js">
	<link rel="modulepreload" crossorigin href="/assets/truncate-7XypoloM.js">
	<link rel="modulepreload" crossorigin href="/assets/icon-DmIKo5zZ.js">
	<link rel="modulepreload" crossorigin href="/assets/empty-RTEMfF4N.js">
	<link rel="modulepreload" crossorigin href="/assets/path-browserify-CTmc1OxV.js">
	<link rel="modulepreload" crossorigin href="/assets/sanitize-html-Cfxibw1n.js">
	<link rel="modulepreload" crossorigin href="/assets/en-BYTsM8fR.js">
	<link rel="modulepreload" crossorigin href="/assets/src-DsaRShTK.js">
	<link rel="modulepreload" crossorigin href="/assets/merge-Dnkh07HW.js">
	<link rel="modulepreload" crossorigin href="/assets/constants-Gz3J7Ncu.js">
	<link rel="modulepreload" crossorigin href="/assets/dateformat-D7TIhVd4.js">
	<link rel="modulepreload" crossorigin href="/assets/useDebounce-DFa0sFlC.js">
	<link rel="modulepreload" crossorigin href="/assets/useTelemetry-BTUGwy7s.js">
	<link rel="modulepreload" crossorigin href="/assets/useExternalHooks-pH-0QlJl.js">
	<link rel="modulepreload" crossorigin href="/assets/nodeIcon-Ds8g_Hxh.js">
	<link rel="modulepreload" crossorigin href="/assets/cloudPlan.store-C68NOTMW.js">
	<link rel="modulepreload" crossorigin href="/assets/templates.store-rf-kugLU.js">
	<link rel="modulepreload" crossorigin href="/assets/nodeCreator.store-ClKr6aCj.js">
	<link rel="modulepreload" crossorigin href="/assets/useToast-BSlmuaky.js">
	<link rel="modulepreload" crossorigin href="/assets/useClipboard-DK4r0OHX.js">
	<link rel="modulepreload" crossorigin href="/assets/usePinnedData-0aw9TJfH.js">
	<link rel="modulepreload" crossorigin href="/assets/focusPanel.store-GaBrByK0.js">
	<link rel="modulepreload" crossorigin href="/assets/folders.store-goqtY2cf.js">
	<link rel="modulepreload" crossorigin href="/assets/executions.store-DjxPaSNN.js">
	<link rel="modulepreload" crossorigin href="/assets/useCanvasOperations-CgoHJerx.js">
	<link rel="modulepreload" crossorigin href="/assets/retry-sDkwzrPY.js">
	<link rel="modulepreload" crossorigin href="/assets/overlay-C02_kK8Y.js">
	<link rel="modulepreload" crossorigin href="/assets/useMessage-Dx0l8onx.js">
	<link rel="modulepreload" crossorigin href="/assets/npsSurvey.store-DnkDQjNl.js">
	<link rel="modulepreload" crossorigin href="/assets/useWorkflowSaving-SooaFfqg.js">
	<link rel="modulepreload" crossorigin href="/assets/useRunWorkflow-DQmQ_zhk.js">
	<link rel="modulepreload" crossorigin href="/assets/FileSaver.min-DaytN8ae.js">
	<link rel="modulepreload" crossorigin href="/assets/uniqBy-DgcUNA1d.js">
	<link rel="modulepreload" crossorigin href="/assets/NDVEmptyState-C7QVArdv.js">
	<link rel="modulepreload" crossorigin href="/assets/vue-json-pretty-BAtqAAV1.js">
	<link rel="modulepreload" crossorigin href="/assets/assistant.store-BvbVZ6va.js">
	<link rel="modulepreload" crossorigin href="/assets/schemaPreview.store-DIHKHL08.js">
	<link rel="modulepreload" crossorigin href="/assets/chatPanel.store-D2Fkxnce.js">
	<link rel="modulepreload" crossorigin href="/assets/dateFormatter-DysKGI6w.js">
	<link rel="modulepreload" crossorigin href="/assets/useExecutionHelpers-BuzdVLXZ.js">
	<link rel="modulepreload" crossorigin href="/assets/externalSecrets.ee.store-BhJUIlE6.js">
	<link rel="modulepreload" crossorigin href="/assets/RunDataHtml-BNcvZDMJ.js">
	<link rel="modulepreload" crossorigin href="/assets/isEmpty-DtOHS0Vf.js">
	<link rel="modulepreload" crossorigin href="/assets/exports-D2D_Xd3F.js">
	<link rel="modulepreload" crossorigin href="/assets/vue-RAk0R0Jn.js">
	<link rel="modulepreload" crossorigin href="/assets/date-picker-D6cS76wx.js">
	<link rel="modulepreload" crossorigin href="/assets/dialog-Cgy1Sihv.js">
	<link rel="modulepreload" crossorigin href="/assets/Draggable-S25uHSLu.js">
	<link rel="modulepreload" crossorigin href="/assets/NodeIcon-DXMbdkJ-.js">
	<link rel="modulepreload" crossorigin href="/assets/useTelemetryContext-sgjkTDxj.js">
	<link rel="modulepreload" crossorigin href="/assets/nodeTransforms-CHjMxzWH.js">
	<link rel="modulepreload" crossorigin href="/assets/TextWithHighlights-CxxIad3D.js">
	<link rel="modulepreload" crossorigin href="/assets/VirtualSchema-opGcG-E_.js">
	<link rel="modulepreload" crossorigin href="/assets/ParameterInputList-DLsq7ooz.js">
	<link rel="modulepreload" crossorigin href="/assets/col-Da3-PCMn.js">
	<link rel="modulepreload" crossorigin href="/assets/dataTable.store-BS57NnAn.js">
	<link rel="modulepreload" crossorigin href="/assets/semver-vXxp_vSf.js">
	<link rel="modulepreload" crossorigin href="/assets/CommunityNodeUpdateInfo-CDRPbhJg.js">
	<link rel="modulepreload" crossorigin href="/assets/useActions-BZshnd5s.js">
	<link rel="modulepreload" crossorigin href="/assets/NodeSettings-CVriOGia.js">
	<link rel="modulepreload" crossorigin href="/assets/KeyboardShortcutTooltip-qZ5YD2sD.js">
	<link rel="modulepreload" crossorigin href="/assets/useKeybindings-BHt2EgW9.js">
	<link rel="modulepreload" crossorigin href="/assets/useCanvasMapping-DQrPKZ8N.js">
	<link rel="modulepreload" crossorigin href="/assets/chart-CE3HWIkr.js">
	<link rel="modulepreload" crossorigin href="/assets/ModalDrawer-B4phSp3m.js">
	<link rel="modulepreload" crossorigin href="/assets/radio-BlnltmtN.js">
	<link rel="modulepreload" crossorigin href="/assets/table-adhNf731.js">
	<link rel="modulepreload" crossorigin href="/assets/orderBy-dGkC94Fq.js">
	<link rel="modulepreload" crossorigin href="/assets/TimeAgo-DU8yaavw.js">
	<link rel="modulepreload" crossorigin href="/assets/sortByProperty-CUhVU03p.js">
	<link rel="modulepreload" crossorigin href="/assets/ProjectIcon-CHk5fa0e.js">
	<link rel="modulepreload" crossorigin href="/assets/apiKeys.store-ClrhY6O-.js">
	<link rel="modulepreload" crossorigin href="/assets/banners.store-DldsUPZP.js">
	<link rel="modulepreload" crossorigin href="/assets/logStreaming.store-Bh41NZod.js">
	<link rel="modulepreload" crossorigin href="/assets/sso.store-BN_yDmsC.js">
	<link rel="modulepreload" crossorigin href="/assets/roles.store-CG0STAnn.js">
	<link rel="modulepreload" crossorigin href="/assets/usage.store-D9THFl3H.js">
	<link rel="modulepreload" crossorigin href="/assets/versions.store-H0mQZjLQ.js">
	<link rel="modulepreload" crossorigin href="/assets/CopyInput-BC5smQeg.js">
	<link rel="modulepreload" crossorigin href="/assets/EnterpriseEdition.ee-BgUPzUwV.js">
	<link rel="modulepreload" crossorigin href="/assets/Modal-D5huNjfZ.js">
	<link rel="modulepreload" crossorigin href="/assets/SaveButton-CtUWsjwd.js">
	<link rel="modulepreload" crossorigin href="/assets/ItemsRenderer-BDzh5FF4.js">
	<link rel="modulepreload" crossorigin href="/assets/usePageRedirectionHelper-CqHl0wJF.js">
	<link rel="modulepreload" crossorigin href="/assets/useBugReporting-BJFGtsdb.js">
	<link rel="modulepreload" crossorigin href="/assets/useWorkflowActivate-tQOfFymc.js">
	<link rel="modulepreload" crossorigin href="/assets/constants-9ReQTHaF.js">
	<link rel="modulepreload" crossorigin href="/assets/mcp.constants-BCNosk1p.js">
	<link rel="modulepreload" crossorigin href="/assets/insights.constants-DK2g3nnD.js">
	<link rel="modulepreload" crossorigin href="/assets/insights.utils-ClwWcg-l.js">
	<link rel="modulepreload" crossorigin href="/assets/insights.store-DNqZkMeM.js">
	<link rel="modulepreload" crossorigin href="/assets/useRecentResources-SwW2nuZr.js">
	<link rel="modulepreload" crossorigin href="/assets/router-BjlAR2wH.js">
	<link rel="modulepreload" crossorigin href="/assets/templateTransforms-CKXIRTPD.js">
	<link rel="modulepreload" crossorigin href="/assets/SetupTemplateFormStep-DVyRoqKo.js">
	<link rel="modulepreload" crossorigin href="/assets/personalizedTemplatesV3.store-BR83Y4VD.js">
	<link rel="modulepreload" crossorigin href="/assets/useMcp-CmAtV6TS.js">
	<link rel="modulepreload" crossorigin href="/assets/ProjectCardBadge-B2UdYDVr.js">
	<link rel="modulepreload" crossorigin href="/assets/ProjectSharing-1F3Rmif8.js">
	<link rel="modulepreload" crossorigin href="/assets/auth.eventBus-16zfbqGs.js">
	<link rel="modulepreload" crossorigin href="/assets/CredentialIcon-BlkbU-T5.js">
	<link rel="modulepreload" crossorigin href="/assets/ExternalSecretsProviderConnectionSwitch.ee-SowXXSnW.js">
	<link rel="modulepreload" crossorigin href="/assets/sourceControl.eventBus-kAyFUXsG.js">
	<link rel="modulepreload" crossorigin href="/assets/useCommandBar-DdiXlxtK.js">
	<link rel="modulepreload" crossorigin href="/assets/TagsDropdown-BZTMmbh5.js">
	<link rel="modulepreload" crossorigin href="/assets/WorkflowTagsDropdown-C0Jb5Vh6.js">
	<link rel="stylesheet" crossorigin href="/assets/src-sI-DsSQQ.css">
	<link rel="stylesheet" crossorigin href="/assets/NDVEmptyState-Hm1vFJ4i.css">
	<link rel="stylesheet" crossorigin href="/assets/RunDataHtml-Bu3RZcuV.css">
	<link rel="stylesheet" crossorigin href="/assets/isEmpty-CAtRkxE7.css">
	<link rel="stylesheet" crossorigin href="/assets/Draggable-DfBtatxg.css">
	<link rel="stylesheet" crossorigin href="/assets/NodeIcon-eaW3atZy.css">
	<link rel="stylesheet" crossorigin href="/assets/useTelemetryContext-BpnKRIT7.css">
	<link rel="stylesheet" crossorigin href="/assets/TextWithHighlights-BgbTzzK2.css">
	<link rel="stylesheet" crossorigin href="/assets/VirtualSchema-BJ-Q30Fz.css">
	<link rel="stylesheet" crossorigin href="/assets/ParameterInputList-D18bFGrO.css">
	<link rel="stylesheet" crossorigin href="/assets/CommunityNodeUpdateInfo-kPDiipF5.css">
	<link rel="stylesheet" crossorigin href="/assets/NodeSettings-DKlYbu9E.css">
	<link rel="stylesheet" crossorigin href="/assets/KeyboardShortcutTooltip-pRLqnHdh.css">
	<link rel="stylesheet" crossorigin href="/assets/useCanvasMapping-Bldjj0CO.css">
	<link rel="stylesheet" crossorigin href="/assets/ModalDrawer-B-12esvU.css">
	<link rel="stylesheet" crossorigin href="/assets/ProjectIcon-DT95ZcDW.css">
	<link rel="stylesheet" crossorigin href="/assets/banners-UK5wWFEI.css">
	<link rel="stylesheet" crossorigin href="/assets/CopyInput-BiDmlr9B.css">
	<link rel="stylesheet" crossorigin href="/assets/Modal-DNkRJkUt.css">
	<link rel="stylesheet" crossorigin href="/assets/SaveButton-Dc01Y2MA.css">
	<link rel="stylesheet" crossorigin href="/assets/ItemsRenderer-Cr6c6uYy.css">
	<link rel="stylesheet" crossorigin href="/assets/SetupTemplateFormStep-She0GnTz.css">
	<link rel="stylesheet" crossorigin href="/assets/ProjectCardBadge-B_wj_mAB.css">
	<link rel="stylesheet" crossorigin href="/assets/ProjectSharing-DsD3YT5P.css">
	<link rel="stylesheet" crossorigin href="/assets/CredentialIcon-bZrcXcyJ.css">
	<link rel="stylesheet" crossorigin href="/assets/ExternalSecretsProviderConnectionSwitch-dpp96SMy.css">
	<link rel="stylesheet" crossorigin href="/assets/useCommandBar-eK4Fv9lH.css">
	<link rel="stylesheet" crossorigin href="/assets/TagsDropdown-2j57MEiW.css">
	<link rel="stylesheet" crossorigin href="/assets/index-4I6DPmNr.css">
	<script type="module">import.meta.url;import("_").catch(()=>1);(async function*(){})().next();window.__vite_is_modern_browser=true</script>
	<script type="module">!function(){if(window.__vite_is_modern_browser)return;console.warn("vite: loading legacy chunks, syntax error above and the same error below should be ignored");var e=document.getElementById("vite-legacy-polyfill"),n=document.createElement("script");n.src=e.src,n.onload=function(){System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))},document.body.appendChild(n)}();</script>
</head>
<body>
	<noscript>
		<strong
			>We're sorry but the n8n Editor-UI doesn't work properly without JavaScript enabled. Please
			enable it to continue.</strong
		>
	</noscript>
	<div id="app"></div>
	<script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script>
	<script nomodule crossorigin id="vite-legacy-polyfill" src="/assets/polyfills-legacy-NjHl0tEa.js"></script>
	<script nomodule crossorigin id="vite-legacy-entry" data-src="/assets/index-legacy-DUuL2jyr.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
</body>

It might be issue in ENV so kindly add below ENV in your docker-compose.yml file.

environment:
  - DB_SQLITE_POOL_SIZE=5
  - N8N_RUNNERS_ENABLED=true
  - N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true
  - N8N_GIT_NODE_DISABLE_BARE_REPOS=true

n8n-1 | Permissions 0644 for n8n settings file /home/node/.n8n/config are too wide. Changing permissions to 0600..
n8n-1 | Initializing n8n process
n8n-1 | n8n ready on ::, port 5678

n8n-1 | n8n Task Broker ready on 127.0.0.1, port 5679
n8n-1 |

n8n-1 | There is a deprecation related to your environment variables. Please take the recommended actions to update your configuration:
n8n-1 | - N8N_BLOCK_ENV_ACCESS_IN_NODE → The default value of N8N_BLOCK_ENV_ACCESS_IN_NODE will be changed from false to true in a future version. If you need to access environment variables from the Code Node or from expressions, please set N8N_BLOCK_ENV_ACCESS_IN_NODE=false. Learn more: Security environment variables | n8n Docs
n8n-1 |

n8n-1 | [license SDK] Skipping renewal on init: license cert is not initialized

n8n-1 | Registered runner “JS Task Runner” (_qoVq5Y5fhnXNj9XmJyOd)
n8n-1 | Version: 1.120.4
n8n-1 |
n8n-1 | Editor is now accessible via:
n8n-1 | http://192.168.178.50:5678

I recognize browser Issues: Using the same browser on one n8n docker container running in my lokal LAN - everything ist fine. while accessing a second instance running offsite via a wireguardes vpn connection to this machine it throws Browser errors.

(index):1 The Cross-Origin-Opener-Policy header has been ignored, because the URL’s origin was untrustworthy. It was defined either in the final response or a redirect. Please deliver the response using the HTTPS protocol. You can also use the ‘localhost’ origin instead. See Secure Contexts and HTML Standard.
(index):1 The page requested an origin-keyed agent cluster using the Origin-Agent-Cluster header, but could not be origin-keyed since the origin ‘http://192.168.178.50:5678’ had previously been placed in a site-keyed agent cluster. Update your headers to uniformly request origin-keying for all pages on the origin.
router-BjlAR2wH.js:1370 TypeError: Cannot read properties of undefined (reading ‘ldap’)
at Proxy.initialize (sso.store-BN_yDmsC.js:16:22)
at Proxy.wrappedAction (useTelemetry-BTUGwy7s.js:563:14)
at initializeCore (router-BjlAR2wH.js:389:11)
at async router-BjlAR2wH.js:1345:3
(anonymous) @ router-BjlAR2wH.js:1370

Current Setup uses no reverse Proxy (no nginx/ no traefik) due to the fact that it is a local testing env.

Downgraded to version 1.73.1 solved the issue, after that i upgrades to latest version - trying to pull higher versions so far it works with latest after interims downgrade of container - the hell knows why browser had issues with this.

services:
  n8n:
    image: docker.n8n.io/n8nio/n8n:1.119.2
    restart: unless-stopped
    ports:
      - "5678:5678"
    environment:
      - DB_SQLITE_POOL_SIZE=5
      - N8N_RUNNERS_ENABLED=true
      - N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true
      - N8N_GIT_NODE_DISABLE_BARE_REPOS=true
      - N8N_HOST=192.168.178.50
      - N8N_BASIC_AUTH_ACTIVE=true
      - [email protected]
      - N8N_BASIC_AUTH_PASSWORD=admin
      - N8N_SECURE_COOKIE=false
      - GENERIC_TIMEZONE=Europe/Berlin
      - DB_TYPE=sqlite
    volumes:
      - n8n_data:/home/node/.n8n
      - ./local-files:/files
1 Like

Version 1.119.2 worked!

1 Like

me too ,how to do

Use below command:

docker logs my-app
1 Like

Afterwards i switched back to latest Version and that woked too - strange behaviour

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