Hey, Just tried to install n8n and im getting a crash loop. Logs say something about permissions: n8n Log: Filter (e.g. error) Auto-scroll Download .log Connecting... �2026-06-16T22:40:21.166849262Z 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 N8NENFORCESETTINGSFILEPERMISSIONS=true (recommended), or turn this check off set N8NENFORCESETTINGSFILEPERMISSIONS=false. 82026-06-16T22:40:27.581243375Z Initializing n8n process ?2026-06-16T22:40:29.685291187Z n8n ready on 0.0.0.0, port 5678 W2026-06-16T22:40:29.777536475Z Migrations in progress, please do NOT stop the process. P2026-06-16T22:40:29.777820513Z Starting migration InitialMigration1587669153312 P2026-06-16T22:40:29.865085770Z Finished migration InitialMigration1587669153312 L2026-06-16T22:40:29.884095188Z Starting migration WebhookModel1589476000887 L2026-06-16T22:40:29.906889342Z Finished migration WebhookModel1589476000887 T2026-06-16T22:40:29.914061462Z Starting migration CreateIndexStoppedAt1594828256133 T2026-06-16T22:40:29.924846189Z Finished migration CreateIndexStoppedAt1594828256133 U2026-06-16T22:40:29.931934314Z Starting migration MakeStoppedAtNullable1607431743768 U2026-06-16T22:40:29.934537237Z Finished migration MakeStoppedAtNullable1607431743768 L2026-06-16T22:40:29.941455607Z Starting migration AddWebhookId1611144599516 L2026-06-16T22:40:29.952766271Z Finished migration AddWebhookId1611144599516 O2026-06-16T22:40:29.959079505Z Starting migration CreateTagEntity1617270242566 O2026-06-16T22:40:30.205583628Z Finished migration CreateTagEntity1617270242566 S2026-06-16T22:40:30.218134522Z Starting migration UniqueWorkflowNames1620824779533 S2026-06-16T22:40:30.229588031Z Finished migration UniqueWorkflowNames1620824779533 K2026-06-16T22:40:30.235723769Z Starting migration AddwaitTill1626176912946 K2026-06-16T22:40:30.245283387Z Finished migration AddwaitTill1626176912946 Y2026-06-16T22:40:30.251558362Z Starting migration UpdateWorkflowCredentials1630419189837 Y2026-06-16T22:40:30.268050327Z Finished migration UpdateWorkflowCredentials1630419189837 Y2026-06-16T22:40:30.275312402Z Starting migration AddExecutionEntityIndexes1644422880309 Y2026-06-16T22:40:30.322788114Z Finished migration AddExecutionEntityIndexes1644422880309 X2026-06-16T22:40:30.330502836Z Starting migration IncreaseTypeVarcharLimit1646834195327 X2026-06-16T22:40:30.336350643Z Finished migration IncreaseTypeVarcharLimit1646834195327 T2026-06-16T22:40:30.342524669Z Starting migration CreateUserManagement1646992772331 T2026-06-16T22:40:30.537344640Z Finished migration CreateUserManagement1646992772331 R2026-06-16T22:40:30.542219691Z Starting migration LowerCaseUserEmail1648740597343 R2026-06-16T22:40:30.546742363Z Finished migration LowerCaseUserEmail1648740597343 N2026-06-16T22:40:30.553518046Z Starting migration CommunityNodes1652254514002 N2026-06-16T22:40:30.598521808Z Finished migration CommunityNodes1652254514002 O2026-06-16T22:40:30.603366372Z Starting migration AddUserSettings1652367743993 O2026-06-16T22:40:30.646023357Z Finished migration AddUserSettings1652367743993 O2026-06-16T22:40:30.653742265Z Starting migration AddAPIKeyColumn1652905585850 O2026-06-16T22:40:30.668675261Z Finished migration AddAPIKeyColumn1652905585850 P2026-06-16T22:40:30.673346837Z Starting migration IntroducePinData1654090467022 P2026-06-16T22:40:30.675717290Z Finished migration IntroducePinData1654090467022 J2026-06-16T22:40:30.682134633Z Starting migration AddNodeIds1658932090381 J2026-06-16T22:40:30.686095610Z Finished migration AddNodeIds1658932090381 Q2026-06-16T22:40:30.694202395Z Starting migration AddJsonKeyPinData1659902242948 Q2026-06-16T22:40:30.696294288Z Finished migration AddJsonKeyPinData1659902242948 Y2026-06-16T22:40:30.703917687Z Starting migration CreateCredentialsUserRole1660062385367 Y2026-06-16T22:40:30.709979007Z Finished migration CreateCredentialsUserRole1660062385367 Y2026-06-16T22:40:30.717110715Z Starting migration CreateWorkflowsEditorRole1663755770893 Y2026-06-16T22:40:30.718406007Z Finished migration CreateWorkflowsEditorRole1663755770893 R2026-06-16T22:40:30.726753762Z Starting migration WorkflowStatistics1664196174001 R2026-06-16T22:40:30.751318047Z Finished migration WorkflowStatistics1664196174001 Z2026-06-16T22:40:30.760155201Z Starting migration CreateCredentialUsageTable1665484192212 Z2026-06-16T22:40:30.782337379Z Finished migration CreateCredentialUsageTable1665484192212 Z2026-06-16T22:40:30.791433851Z Starting migration RemoveCredentialUsageTable1665754637025 Z2026-06-16T22:40:30.818246996Z Finished migration RemoveCredentialUsageTable1665754637025 Z2026-06-16T22:40:30.825909386Z Starting migration AddWorkflowVersionIdColumn1669739707126 Z2026-06-16T22:40:30.830244829Z Finished migration AddWorkflowVersionIdColumn1669739707126 U2026-06-16T22:40:30.837057433Z Starting migration AddTriggerCountColumn1669823906995 U2026-06-16T22:40:30.841099568Z Finished migration AddTriggerCountColumn1669823906995 [2026-06-16T22:40:30.849203047Z Starting migration MessageEventBusDestinations1671535397530 [2026-06-16T22:40:30.868534821Z Finished migration MessageEventBusDestinations1671535397530 \2026-06-16T22:40:30.874833414Z Starting migration RemoveWorkflowDataLoadedFlag1671726148421 \2026-06-16T22:40:30.880729622Z Finished migration RemoveWorkflowDataLoadedFlag1671726148421 ]2026-06-16T22:40:30.886619191Z Starting migration DeleteExecutionsWithWorkflows1673268682475 ]2026-06-16T22:40:30.980271864Z Finished migration DeleteExecutionsWithWorkflows1673268682475 U2026-06-16T22:40:30.989940074Z Starting migration AddStatusToExecutions1674138566000 U2026-06-16T22:40:30.992765563Z Finished migration AddStatusToExecutions1674138566000 R2026-06-16T22:40:30.998738008Z Starting migration CreateLdapEntities1674509946020 R2026-06-16T22:40:31.046084279Z Finished migration CreateLdapEntities1674509946020 2026-06-16T22:40:31.052776503Z Starting migration PurgeInvalidWorkflowConnections1675940580449 2026-06-16T22:40:31.056433312Z Finished migration PurgeInvalidWorkflowConnections1675940580449 V2026-06-16T22:40:31.066418721Z Starting migration MigrateExecutionStatus1676996103000 V2026-06-16T22:40:31.070604257Z Finished migration MigrateExecutionStatus1676996103000 \2026-06-16T22:40:31.078840625Z Starting migration UpdateRunningExecutionStatus1677236854063 \2026-06-16T22:40:31.083604697Z Finished migration UpdateRunningExecutionStatus1677236854063 O2026-06-16T22:40:31.087978125Z Starting migration CreateVariables1677501636754 O2026-06-16T22:40:31.109456610Z Finished migration CreateVariables1677501636754 \2026-06-16T22:40:31.115891823Z Starting migration CreateExecutionMetadataTable1679416281778 \2026-06-16T22:40:31.174373772Z Finished migration CreateExecutionMetadataTable1679416281778 X2026-06-16T22:40:31.182624904Z Starting migration AddUserActivatedProperty1681134145996 X2026-06-16T22:40:31.199384419Z Finished migration AddUserActivatedProperty1681134145996 T2026-06-16T22:40:31.205123686Z Starting migration RemoveSkipOwnerSetup1681134145997 T2026-06-16T22:40:31.207866537Z Finished migration RemoveSkipOwnerSetup1681134145997 Z2026-06-16T22:40:31.215048524Z Starting migration MigrateIntegerKeysToString1690000000000 Z2026-06-16T22:40:31.648935504Z Finished migration MigrateIntegerKeysToString1690000000000 U2026-06-16T22:40:31.659971454Z Starting migration SeparateExecutionData1690000000020 U2026-06-16T22:40:31.692846500Z Finished migration SeparateExecutionData1690000000020 Z2026-06-16T22:40:31.699643243Z Starting migration RemoveResetPasswordColumns1690000000030 Z2026-06-16T22:40:31.919492538Z Finished migration RemoveResetPasswordColumns1690000000030 M2026-06-16T22:40:31.926091702Z Starting migration AddMfaColumns1690000000030 M2026-06-16T22:40:31.939854310Z Finished migration AddMfaColumns1690000000030 c2026-06-16T22:40:31.947249789Z Starting migration AddMissingPrimaryKeyOnExecutionData1690787606731 c2026-06-16T22:40:31.961818925Z Finished migration AddMissingPrimaryKeyOnExecutionData1690787606731 W2026-06-16T22:40:31.967444609Z Starting migration CreateWorkflowNameIndex1691088862123 W2026-06-16T22:40:32.046846098Z Finished migration CreateWorkflowNameIndex1691088862123 Z2026-06-16T22:40:32.057599051Z Starting migration CreateWorkflowHistoryTable1692967111175 Z2026-06-16T22:40:32.120261115Z Finished migration CreateWorkflowHistoryTable1692967111175 S2026-06-16T22:40:32.126370933Z Starting migration ExecutionSoftDelete1693491613982 S2026-06-16T22:40:32.262395521Z Finished migration ExecutionSoftDelete1693491613982 X2026-06-16T22:40:32.272715452Z Starting migration DisallowOrphanExecutions1693554410387 X2026-06-16T22:40:32.408146390Z Finished migration DisallowOrphanExecutions1693554410387 T2026-06-16T22:40:32.412965556Z Starting migration MigrateToTimestampTz1694091729095 T2026-06-16T22:40:33.357872743Z Finished migration MigrateToTimestampTz1694091729095 S2026-06-16T22:40:33.422364151Z Starting migration AddWorkflowMetadata1695128658538 S2026-06-16T22:40:33.694435019Z Finished migration AddWorkflowMetadata1695128658538 h2026-06-16T22:40:33.702088105Z Starting migration ModifyWorkflowHistoryNodesAndConnections1695829275184 h2026-06-16T22:40:33.827576751Z Finished migration ModifyWorkflowHistoryNodesAndConnections1695829275184 R2026-06-16T22:40:33.833365104Z Starting migration AddGlobalAdminRole1700571993961 R2026-06-16T22:40:33.839880853Z Finished migration AddGlobalAdminRole1700571993961 O2026-06-16T22:40:33.844535275Z Starting migration DropRoleMapping1705429061930 O2026-06-16T22:40:34.666854774Z Finished migration DropRoleMapping1705429061930 [2026-06-16T22:40:34.692571757Z Starting migration RemoveFailedExecutionStatus1711018413374 [2026-06-16T22:40:34.698956518Z Finished migration RemoveFailedExecutionStatus1711018413374 U2026-06-16T22:40:34.706324210Z Starting migration MoveSshKeysToDatabase1711390882123 h2026-06-16T22:40:34.711232106Z [MoveSshKeysToDatabase1711390882123] No SSH keys in filesystem, skipping U2026-06-16T22:40:34.713549385Z Finished migration MoveSshKeysToDatabase1711390882123 Q2026-06-16T22:40:34.719911416Z Starting migration RemoveNodesAccess1712044305787 Q2026-06-16T22:40:34.807328754Z Finished migration RemoveNodesAccess1712044305787 M2026-06-16T22:40:34.818604154Z Starting migration CreateProject1714133768519 M2026-06-16T22:40:35.735481458Z Finished migration CreateProject1714133768519 ^2026-06-16T22:40:35.744969008Z Starting migration MakeExecutionStatusNonNullable1714133768521 ^2026-06-16T22:40:35.889368200Z Finished migration MakeExecutionStatusNonNullable1714133768521 Y2026-06-16T22:40:35.896068572Z Starting migration AddActivatedAtUserSetting1717498465931 Y2026-06-16T22:40:35.900040422Z Finished migration AddActivatedAtUserSetting1717498465931 2026-06-16T22:40:35.905735976Z Starting migration AddConstraintToExecutionMetadata1720101653148 2026-06-16T22:40:36.048251645Z Finished migration AddConstraintToExecutionMetadata1720101653148 \2026-06-16T22:40:36.096743662Z Starting migration FixExecutionMetadataSequence1721377157740 \2026-06-16T22:40:36.106113694Z Finished migration FixExecutionMetadataSequence1721377157740 [2026-06-16T22:40:36.113528773Z Starting migration CreateInvalidAuthTokenTable1723627610222 [2026-06-16T22:40:36.143417908Z Finished migration CreateInvalidAuthTokenTable1723627610222 X2026-06-16T22:40:36.150550497Z Starting migration RefactorExecutionIndices1723796243146 X2026-06-16T22:40:36.204701272Z Finished migration RefactorExecutionIndices1723796243146 V2026-06-16T22:40:36.211300566Z Starting migration CreateAnnotationTables1724753530828 V2026-06-16T22:40:36.309156112Z Finished migration CreateAnnotationTables1724753530828 O2026-06-16T22:40:36.316491986Z Starting migration AddApiKeysTable1724951148974 O2026-06-16T22:40:36.369607517Z Finished migration AddApiKeysTable1724951148974 X2026-06-16T22:40:36.375698474Z Starting migration CreateProcessedDataTable1726606152711 X2026-06-16T22:40:36.410617955Z Finished migration CreateProcessedDataTable1726606152711 b2026-06-16T22:40:36.415590455Z Starting migration SeparateExecutionCreationFromStart1727427440136 b2026-06-16T22:40:36.520499878Z Finished migration SeparateExecutionCreationFromStart1727427440136 j2026-06-16T22:40:36.529455176Z Starting migration AddMissingPrimaryKeyOnAnnotationTagMapping1728659839644 j2026-06-16T22:40:36.624090478Z Finished migration AddMissingPrimaryKeyOnAnnotationTagMapping1728659839644 d2026-06-16T22:40:36.632194273Z Starting migration UpdateProcessedDataValueColumnToText1729607673464 d2026-06-16T22:40:36.736554257Z Finished migration UpdateProcessedDataValueColumnToText1729607673464 Y2026-06-16T22:40:36.743074649Z Starting migration CreateTestDefinitionTable1730386903556 Y2026-06-16T22:40:36.828304272Z Finished migration CreateTestDefinitionTable1730386903556 ^2026-06-16T22:40:36.834382296Z Starting migration AddDescriptionToTestDefinition1731404028106 ^2026-06-16T22:40:36.953825553Z Finished migration AddDescriptionToTestDefinition1731404028106 2026-06-16T22:40:36.959016733Z Starting migration MigrateTestDefinitionKeyToString1731582748663 2026-06-16T22:40:37.016124077Z Finished migration MigrateTestDefinitionKeyToString1731582748663 U2026-06-16T22:40:37.026382427Z Starting migration CreateTestMetricTable1732271325258 U2026-06-16T22:40:37.054649442Z Finished migration CreateTestMetricTable1732271325258 M2026-06-16T22:40:37.064756201Z Starting migration CreateTestRun1732549866705 M2026-06-16T22:40:37.094490838Z Finished migration CreateTestRun1732549866705 d2026-06-16T22:40:37.100749217Z Starting migration AddMockedNodesColumnToTestDefinition1733133775640 d2026-06-16T22:40:37.103864834Z Finished migration AddMockedNodesColumnToTestDefinition1733133775640 /2026-06-16T22:40:45.977179617Z Version: 1.72.1 2026-06-16T22:40:46.301970115Z =2026-06-16T22:40:46.302040412Z Editor is now accessible via: 62026-06-16T22:40:46.302049697Z http://localhost:5678/ B2026-06-16T22:43:07.611865398Z Received SIGTERM. Shutting down... 2026-06-16T22:43:07.621455186Z /2026-06-16T22:43:07.621498004Z Stopping n8n... �2026-06-16T22:43:12.349505579Z 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 N8NENFORCESETTINGSFILEPERMISSIONS=true (recommended), or turn this check off set N8NENFORCESETTINGSFILEPERMISSIONS=false. Q2026-06-16T22:43:12.351520972Z User settings loaded from: /home/node/.n8n/config 82026-06-16T22:43:18.470179724Z Initializing n8n process ?2026-06-16T22:43:20.483302241Z n8n ready on 0.0.0.0, port 5678 /2026-06-16T22:43:30.177635473Z Version: 1.72.1 2026-06-16T22:43:30.524546734Z =2026-06-16T22:43:30.524611849Z Editor is now accessible via: 62026-06-16T22:43:30.524624689Z http://localhost:5678/ B2026-06-16T22:46:07.639675143Z Received SIGTERM. Shutting down... 2026-06-16T22:46:07.651290006Z /2026-06-16T22:46:07.651345710Z Stopping n8n... �2026-06-16T22:46:12.032173635Z 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 N8NENFORCESETTINGSFILEPERMISSIONS=true (recommended), or turn this check off set N8NENFORCESETTINGSFILEPERMISSIONS=false. Q2026-06-16T22:46:12.034092927Z User settings loaded from: /home/node/.n8n/config 82026-06-16T22:46:18.635899421Z Initializing n8n process ?2026-06-16T22:46:20.772402532Z n8n ready on 0.0.0.0, port 5678 /2026-06-16T22:46:29.793957921Z Version: 1.72.1 2026-06-16T22:46:30.161677649Z =2026-06-16T22:46:30.161774045Z Editor is now accessible via: 62026-06-16T22:46:30.161787409Z http://localhost:5678/ B2026-06-16T22:49:07.614653651Z Received SIGTERM. Shutting down... 2026-06-16T22:49:07.628352920Z /2026-06-16T22:49:07.628406111Z Stopping n8n... �2026-06-16T22:49:12.198817736Z 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 N8NENFORCESETTINGSFILEPERMISSIONS=true (recommended), or turn this check off set N8NENFORCESETTINGSFILEPERMISSIONS=false. Q2026-06-16T22:49:12.200324057Z User settings loaded from: /home/node/.n8n/config 82026-06-16T22:49:18.550309456Z Initializing n8n process ?2026-06-16T22:49:20.473640275Z n8n ready on 0.0.0.0, port 5678 /2026-06-16T22:49:30.084444149Z Version: 1.72.1 2026-06-16T22:49:30.446324649Z =2026-06-16T22:49:30.446391691Z Editor is now accessible via: 62026-06-16T22:49:30.446404998Z http://localhost:5678/ B2026-06-16T22:52:07.853235512Z Received SIGTERM. Shutting down... 2026-06-16T22:52:07.861634202Z /2026-06-16T22:52:07.861698767Z Stopping n8n... n8n database log: Connecting... m2026-06-16T22:40:01.332631864Z The files belonging to this database system will be owned by user "postgres". K2026-06-16T22:40:01.332732487Z This user must also own the server process. 2026-06-16T22:40:01.332747374Z b2026-06-16T22:40:01.332895735Z The database cluster will be initialized with locale "enUS.utf8". a2026-06-16T22:40:01.332924942Z The default database encoding has accordingly been set to "UTF8". 2026-06-16T22:40:01.332935032Z The default text search configuration will be set to "english". 2026-06-16T22:40:01.332943039Z A2026-06-16T22:40:01.332950169Z Data page checksums are disabled. 2026-06-16T22:40:01.332957346Z h2026-06-16T22:40:01.333114364Z fixing permissions on existing directory /var/lib/postgresql/data ... ok 2026-06-16T22:40:01.335127195Z creating subdirectories ... ok X2026-06-16T22:40:01.335279485Z selecting dynamic shared memory implementation ... posix I2026-06-16T22:40:01.442623077Z selecting default maxconnections ... 100 J2026-06-16T22:40:01.587226292Z selecting default sharedbuffers ... 128MB C2026-06-16T22:40:01.897397516Z selecting default time zone ... UTC C2026-06-16T22:40:01.900582845Z creating configuration files ... ok ?2026-06-16T22:40:02.929421837Z running bootstrap script ... ok 52026-06-16T22:40:04.596348713Z sh: locale: not found n2026-06-16T22:40:04.596407184Z 2026-06-16 22:40:04.596 UTC [36] WARNING: no usable system locales were found O2026-06-16T22:40:08.312042222Z performing post-bootstrap initialization ... ok ;2026-06-16T22:40:10.327259555Z syncing data to disk ... ok 2026-06-16T22:40:10.327314193Z 2026-06-16T22:40:10.327325177Z U2026-06-16T22:40:10.327333124Z Success. You can now start the database server using: 2026-06-16T22:40:10.327341081Z W2026-06-16T22:40:10.327348464Z pgctl -D /var/lib/postgresql/data -l logfile start 2026-06-16T22:40:10.327358884Z f2026-06-16T22:40:10.327339564Z initdb: warning: enabling "trust" authentication for local connections �2026-06-16T22:40:10.327380195Z initdb: hint: You can change this by editing pghba.conf or using the option -A, or --auth-local and --auth-host, the next time you run initdb. �2026-06-16T22:40:10.521881297Z waiting for server to start....2026-06-16 22:40:10.521 UTC [48] LOG: starting PostgreSQL 16.14 on x8664-pc-linux-musl, compiled by gcc (Alpine 15.2.0) 15.2.0, 64-bit �2026-06-16T22:40:10.526288353Z 2026-06-16 22:40:10.526 UTC [48] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" 2026-06-16T22:40:10.543418441Z 2026-06-16 22:40:10.543 UTC [51] LOG: database system was shut down at 2026-06-16 22:40:08 UTC u2026-06-16T22:40:10.586226470Z 2026-06-16 22:40:10.585 UTC [48] LOG: database system is ready to accept connections %2026-06-16T22:40:10.607421948Z done .2026-06-16T22:40:10.607467209Z server started /2026-06-16T22:40:11.016507956Z CREATE DATABASE 2026-06-16T22:40:11.019094356Z 2026-06-16T22:40:11.019160878Z k2026-06-16T22:40:11.019173415Z /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/ 2026-06-16T22:40:11.019181942Z �2026-06-16T22:40:11.021126437Z waiting for server to shut down....2026-06-16 22:40:11.020 UTC [48] LOG: received fast shutdown request g2026-06-16T22:40:11.024960581Z 2026-06-16 22:40:11.024 UTC [48] LOG: aborting any active transactions �2026-06-16T22:40:11.089341565Z 2026-06-16 22:40:11.089 UTC [48] LOG: background worker "logical replication launcher" (PID 54) exited with exit code 1 T2026-06-16T22:40:11.093426262Z 2026-06-16 22:40:11.093 UTC [49] LOG: shutting down n2026-06-16T22:40:11.096804346Z 2026-06-16 22:40:11.096 UTC [49] LOG: checkpoint starting: shutdown immediate m2026-06-16T22:40:11.734060060Z 2026-06-16 22:40:11.733 UTC [67] FATAL: the database system is shutting down E2026-06-16T22:40:11.853208953Z 2026-06-16 22:40:11.849 UTC [49] LOG: checkpoint complete: wrote 926 buffers (5.7%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.103 s, sync=0.632 s, total=0.757 s; sync files=301, longest=0.048 s, average=0.003 s; distance=4272 kB, estimate=4272 kB; lsn=0/191E928, redo lsn=0/191E928 c2026-06-16T22:40:11.867526895Z 2026-06-16 22:40:11.867 UTC [48] LOG: database system is shut down %2026-06-16T22:40:11.923595019Z done .2026-06-16T22:40:11.923635493Z server stopped 2026-06-16T22:40:11.926447172Z U2026-06-16T22:40:11.926488067Z PostgreSQL init process complete; ready for start up. 2026-06-16T22:40:11.926498713Z �2026-06-16T22:40:11.993668319Z 2026-06-16 22:40:11.993 UTC [1] LOG: starting PostgreSQL 16.14 on x8664-pc-linux-musl, compiled by gcc (Alpine 15.2.0) 15.2.0, 64-bit t2026-06-16T22:40:11.993845597Z 2026-06-16 22:40:11.993 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432 o2026-06-16T22:40:11.993863925Z 2026-06-16 22:40:11.993 UTC [1] LOG: listening on IPv6 address "::", port 5432 �2026-06-16T22:40:12.000968726Z 2026-06-16 22:40:12.000 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" 2026-06-16T22:40:12.013801565Z 2026-06-16 22:40:12.013 UTC [71] LOG: database system was shut down at 2026-06-16 22:40:11 UTC t2026-06-16T22:40:12.029300402Z 2026-06-16 22:40:12.028 UTC [1] LOG: database system is ready to accept connections 2026-06-16T22:45:12.113355729Z 2026-06-16 22:45:12.113 UTC [69] LOG: checkpoint starting: time G2026-06-16T22:45:42.081704546Z 2026-06-16 22:45:42.080 UTC [69] LOG: checkpoint complete: wrote 293 buffers (1.8%); 0 WAL file(s) added, 0 removed, 0 recycled; write=29.119 s, sync=0.821 s, total=29.968 s; sync files=434, longest=0.004 s, average=0.002 s; distance=2379 kB, estimate=2379 kB; lsn=0/1B71630, redo lsn=0/1B715F8
12 replies
Big_Totoro wrote:
additional movement when i get lucky enough for the container to stablize for a moment: Tried using the actual IP address assigned to get to that screen. When i use localhost it just can't find it at all. Some More Logs: ⚙️ n8n Filter (e.g. error) Auto-scroll Download .log Connecting... �2026-06-16T22:58:07.956254987Z 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 N8NENFORCESETTINGSFILEPERMISSIONS=true (recommended), or turn this check off set N8NENFORCESETTINGSFILEPERMISSIONS=false. Q2026-06-16T22:58:07.956921443Z User settings loaded from: /home/node/.n8n/config 82026-06-16T22:58:10.802419799Z Initializing n8n process ?2026-06-16T22:58:11.625644524Z n8n ready on 0.0.0.0, port 5678 /2026-06-16T22:58:17.294342092Z Version: 1.72.1 2026-06-16T22:58:17.446113576Z =2026-06-16T22:58:17.446158169Z Editor is now accessible via: 62026-06-16T22:58:17.446164869Z http://localhost:5678/ B2026-06-16T23:00:40.224169974Z Received SIGTERM. Shutting down... 2026-06-16T23:00:40.231349435Z /2026-06-16T23:00:40.231391019Z Stopping n8n... �2026-06-16T23:00:44.985361898Z 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 N8NENFORCESETTINGSFILEPERMISSIONS=true (recommended), or turn this check off set N8NENFORCESETTINGSFILEPERMISSIONS=false. Q2026-06-16T23:00:44.987804677Z User settings loaded from: /home/node/.n8n/config 82026-06-16T23:00:51.339697444Z Initializing n8n process ?2026-06-16T23:00:53.457599874Z n8n ready on 0.0.0.0, port 5678 /2026-06-16T23:01:03.111228107Z Version: 1.72.1 2026-06-16T23:01:03.461145815Z =2026-06-16T23:01:03.461211750Z Editor is now accessible via: 62026-06-16T23:01:03.461225747Z http://localhost:5678/ B2026-06-16T23:03:40.306807584Z Received SIGTERM. Shutting down... 2026-06-16T23:03:40.317090730Z /2026-06-16T23:03:40.317168640Z Stopping n8n... �2026-06-16T23:03:45.093641944Z 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 N8NENFORCESETTINGSFILEPERMISSIONS=true (recommended), or turn this check off set N8NENFORCESETTINGSFILEPERMISSIONS=false. Q2026-06-16T23:03:45.096167049Z User settings loaded from: /home/node/.n8n/config 82026-06-16T23:03:51.470525851Z Initializing n8n process ?2026-06-16T23:03:53.606344891Z n8n ready on 0.0.0.0, port 5678 /2026-06-16T23:04:02.598596826Z Version: 1.72.1 2026-06-16T23:04:02.965085050Z =2026-06-16T23:04:02.965151079Z Editor is now accessible via: 62026-06-16T23:04:02.965165216Z http://localhost:5678/ As mentioned can't reach via localhost
tomspark wrote:
You didn't break anything. That 'Permissions 0644' line looks scary but it's just a warning — n8n itself says it's ignoring it, so it isn't what's crash-looping you. The real clue is that it loads on the IP address but not on localhost: n8n is actually starting, it's just unhappy about the address it's reached on. Can you grab the very last few lines of the log right before it restarts — the actual error or 'exited' line, not the startup chatter? Paste that here and I'll pin down what's bouncing it. And if you can, tell me whether you're opening n8n by your NAS's IP or a domain name.
Big_Totoro wrote:
Hey Tom, This is all i can get from the log, and I'm using the "NAS" IP address not a domain name. Connecting... Q2026-06-17T05:23:10.152310947Z User settings loaded from: /home/node/.n8n/config �2026-06-17T05:23:10.152316070Z 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 N8NENFORCESETTINGSFILEPERMISSIONS=true (recommended), or turn this check off set N8NENFORCESETTINGSFILEPERMISSIONS=false. 82026-06-17T05:23:13.262053699Z Initializing n8n process ?2026-06-17T05:23:14.092644567Z n8n ready on 0.0.0.0, port 5678 /2026-06-17T05:23:17.709712842Z Version: 1.72.1 2026-06-17T05:23:17.854705704Z =2026-06-17T05:23:17.854740075Z Editor is now accessible via: 62026-06-17T05:23:17.854758447Z http://localhost:5678/ B2026-06-17T05:24:49.169550272Z Received SIGTERM. Shutting down... 2026-06-17T05:24:49.223078663Z /2026-06-17T05:24:49.223131387Z Stopping n8n... �2026-06-17T05:25:41.579265313Z 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 N8NENFORCESETTINGSFILEPERMISSIONS=true (recommended), or turn this check off set N8NENFORCESETTINGSFILEPERMISSIONS=false. Q2026-06-17T05:25:41.583245303Z User settings loaded from: /home/node/.n8n/config 82026-06-17T05:25:52.188931047Z Initializing n8n process ?2026-06-17T05:25:53.873739873Z n8n ready on 0.0.0.0, port 5678 /2026-06-17T05:26:01.941722853Z Version: 1.72.1 2026-06-17T05:26:02.290288557Z =2026-06-17T05:26:02.290748369Z Editor is now accessible via: 62026-06-17T05:26:02.290759131Z http://localhost:5678/ B2026-06-17T05:28:12.557407843Z Received SIGTERM. Shutting down... 2026-06-17T05:28:12.569250174Z /2026-06-17T05:28:12.569294435Z Stopping n8n... �2026-06-17T05:28:17.507862023Z 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 N8NENFORCESETTINGSFILEPERMISSIONS=true (recommended), or turn this check off set N8NENFORCESETTINGSFILEPERMISSIONS=false. Q2026-06-17T05:28:17.509643087Z User settings loaded from: /home/node/.n8n/config 82026-06-17T05:28:23.374507322Z Initializing n8n process ?2026-06-17T05:28:25.042896981Z n8n ready on 0.0.0.0, port 5678 /2026-06-17T05:28:33.719805155Z Version: 1.72.1 2026-06-17T05:28:34.075932894Z =2026-06-17T05:28:34.076088151Z Editor is now accessible via: 62026-06-17T05:28:34.076109832Z http://localhost:5678/
tomspark wrote:
Thanks — that log actually helps. n8n is starting up completely fine (it even says 'Editor is now accessible'), then something stops it a few minutes later, over and over. (Reaching it on your NAS's IP but not 'localhost' is normal too — nothing wrong there.) To find what's stopping it, run this one line and paste what it prints: sudo docker inspect sb-n8n --format '{{.State.OOMKilled}} {{.State.ExitCode}} {{.State.Health.Status}}'. That tells me whether it's running low on memory or being flagged unhealthy — and then I can fix the right thing instead of guessing.
Big_Totoro wrote:
Hey Tom, All I could get from that command you gave me was this:
tomspark wrote:
Thanks for the screenshots. Here's my hunch: this is the same thing your Stirling PDF was doing — your server is running low on memory. n8n plus its database are heavy, and when the system runs out of RAM it kills n8n, which then restarts over and over. Two quick things so I can confirm: how much total RAM does your server have, and can you run this and paste the result? free -h If memory's the squeeze, I'll get you a leaner setup so it stops.
Big_Totoro wrote:
I have 32G ram and 4 cores assigned to the LXC that spark box lives in.
tomspark wrote:
32GB — yeah, memory's not your problem at all, let's rule that out. Going back to your earlier screenshot (the one that printed 'false 0 starting'): the 'false' means it was NOT killed for memory, and 'exit 0' means n8n shut down cleanly, not crashed. So n8n is actually running fine. The real blocker is the OTHER screenshot you sent — the page that says n8n needs a 'secure cookie'. n8n refuses to load over a plain http:// address unless it's literally 'localhost', and you're reaching it by your NAS's IP — so it throws up that wall. Every SparkBox app is reached by IP, so n8n is the odd one out. That's on us and I'm shipping a fix. To unblock it right now, run this exactly as-is (survives updates): sudo mkdir -p /opt/sparkbox/state/overrides sudo tee /opt/sparkbox/state/overrides/n8n.yml /dev/null <<EOF services: n8n: environment: - N8NSECURECOOKIE=false EOF sudo sparkbox up n8n Wait ~30 seconds, reload n8n on your NAS IP, and the page will load so you can set up your login. That secure-cookie wall is the whole thing — not memory, not a crash.
Big_Totoro wrote:
Getting a syntax error on that 2nd command
tomspark wrote:
Ah, that's my fault — that multi-line command doesn't survive being copied off the forum (the bits get split). Here's a version that's just three simple lines, paste them one at a time: sudo mkdir -p /opt/sparkbox/state/overrides printf 'services:\n n8n:\n environment:\n - N8NSECURECOOKIE=false\n' | sudo tee /opt/sparkbox/state/overrides/n8n.yml sudo sparkbox up n8n The middle line builds the little settings file in one go (no copy-paste gotchas this time). After the third line finishes, wait ~30 seconds and reload n8n on your NAS IP — the secure-cookie wall should be gone and you'll get the normal login. To check the file landed right, you can run: cat /opt/sparkbox/state/overrides/n8n.yml — it should show 4 short lines.
Big_Totoro wrote:
Those commands lead to this error: root@sparkbox:~ sparkbox up n8n / | | | | ) \ \| ' \ / | '| |/ / \ / \ \/ / ) | |) | (| | | | <| |) | () < |/| ./ \,|| ||\\/ \//\\ || SparkBox v1.6.312 - Self-Hosted Privacy Stack Created by Tom Spark | youtube.com/@TomSparkReviews Network profile: private [INFO] Starting SparkBox... [INFO] Targeted up: n8n [INFO] .env changed since last up — recreating containers to pick up new values [ERROR] Module 'n8n' has a broken compose file — NOT bringing it up (a YAML error here would crash the stack with a misleading per-service message): [ERROR] /opt/sparkbox/modules/n8n/docker-compose.yml services.environment must be a mapping [ERROR] Recover with 'sudo sparkbox update' (re-renders the compose; your settings in .env are untouched), or fix the YAML above, then retry. root@sparkbox:~ I have already run update / upgrade same issue
tomspark wrote:
Before we chase that one further — n8n actually got a real fix in the latest SparkBox update. Run sparkbox update first to get onto the current version, then sparkbox up n8n. If it still crash-loops after that, paste me just the last 5 lines of n8n's log (the very end, where it stops) and we'll nail it on the current version instead of the old one.