Runtime error after pulling the latest commit

#18
by ggininderla - opened

Hello baoyin2024

I cloned your space and its been running fine till the recent sync with your repo.

I am wondering if this happened to you before?

===== Application Startup at 2025-10-23 03:10:29 =====

Error: EISDIR: illegal operation on a directory, read
    at readFileSync (node:fs:440:20)
    at InstanceSettings.loadOrCreate (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/src/instance-settings/instance-settings.ts:180:32)
    at new InstanceSettings (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/src/instance-settings/instance-settings.ts:67:24)
    at ContainerClass.get (/usr/local/lib/node_modules/n8n/node_modules/@n8n/di/src/di.ts:104:16)
    at CommunityPackagesModule.loadDir (/usr/local/lib/node_modules/n8n/src/modules/community-packages/community-packages.module.ts:37:30)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at ModuleRegistry.loadModules (/usr/local/lib/node_modules/n8n/node_modules/@n8n/backend-common/src/modules/module-registry.ts:93:20)
    at CommandRegistry.execute (/usr/local/lib/node_modules/n8n/src/command-registry.ts:43:3)
    at /usr/local/lib/node_modules/n8n/bin/n8n:63:2
Error: EISDIR: illegal operation on a directory, read
    at readFileSync (node:fs:440:20)
    at InstanceSettings.loadOrCreate (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/src/instance-settings/instance-settings.ts:180:32)
    at new InstanceSettings (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/src/instance-settings/instance-settings.ts:67:24)
    at ContainerClass.get (/usr/local/lib/node_modules/n8n/node_modules/@n8n/di/src/di.ts:104:16)
    at CommunityPackagesModule.loadDir (/usr/local/lib/node_modules/n8n/src/modules/community-packages/community-packages.module.ts:37:30)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at ModuleRegistry.loadModules (/usr/local/lib/node_modules/n8n/node_modules/@n8n/backend-common/src/modules/module-registry.ts:93:20)
    at CommandRegistry.execute (/usr/local/lib/node_modules/n8n/src/command-registry.ts:43:3)
    at /usr/local/lib/node_modules/n8n/bin/n8n:63:2

you need delete the your n8n space. Then, re-Duplicate the n8n space.

+1, same error after re-Duplicate

I ended up fixing the docker image myself. deleted bunch of stuff not being used and using the official n8n image.
Feel free to just clone my repo for a working one. All environment variables stay as is

https://huggingface.co/spaces/ggininderla/n8n/tree/main

ggininderla changed discussion status to closed

try this :
setting > Variables and secrets , add Variables ( name : N8N_USER_FOLDER ,Value: /home/node/.n8n)

Sign up or log in to comment