Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker Installation - Error: EISDIR: illegal operation on a directory, read #303

Closed
AAAdamKK opened this issue May 10, 2023 · 3 comments
Closed

Comments

@AAAdamKK
Copy link

AAAdamKK commented May 10, 2023

Receiving this error when installing the docker image regardless of version tag. Config file is already created. Experiencing this on multiple hosts.

node:fs:723
handleErrorFromBinding(ctx);
^
Error: EISDIR: illegal operation on a directory, read
at Object.readSync (node:fs:723:3)
at tryReadSync (node:fs:433:20)
at Object.readFileSync (node:fs:479:19)
at loadConfig (/usr/src/app/node_modules/@codex-team/config-loader/dist/cjs/loadConfig.js:54:39)
at file:///usr/src/app/dist/backend/utils/appConfig.js:140:22
at ModuleJob.run (node:internal/modules/esm/module_job:195:25)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:337:24)
at async loadESM (node:internal/process/esm_loader:88:5)
at async handleMainPromise (node:internal/modules/run_main:61:12) {
errno: -21,
syscall: 'read',
code: 'EISDIR'
}

@Arya-Sourav
Copy link

Hi @AAAdamKK !
Can you tell me what was the issue for this error? Have been trying to get the container running but can't due to this error.

@vencolab
Copy link

vencolab commented Sep 1, 2023

Hi @AAAdamKK ! Can you tell me what was the issue for this error? Have been trying to get the container running but can't due to this error.

What worked for me is to replace the volume mapping from docs-config.local.yaml to docs-config.yaml in the docker compose file. I think the docs-config.local.yaml is being read as a folder rather than a file.
image

So the fix is basically in docker-compose.yml.

replace
- ./docs-config.local.yaml:/usr/src/app/docs-config.yaml

with
- ./docs-config.yaml:/usr/src/app/docs-config.yaml

@Arya-Sourav
Copy link

Hi @AAAdamKK ! Can you tell me what was the issue for this error? Have been trying to get the container running but can't due to this error.

What worked for me is to replace the volume mapping from docs-config.local.yaml to docs-config.yaml in the docker compose file. I think the docs-config.local.yaml is being read as a folder rather than a file. image

So the fix is basically in docker-compose.yml.

replace - ./docs-config.local.yaml:/usr/src/app/docs-config.yaml

with - ./docs-config.yaml:/usr/src/app/docs-config.yaml

Yeup! This worked. Thanx man!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants