[GH-ISSUE #3824] [BUG]: Container fails to start ERR_INVALID_ARG_TYPE - CasaOS #2446

Closed
opened 2026-02-22 18:29:42 -05:00 by yindo · 1 comment
Owner

Originally created by @randomhack-com on GitHub (May 14, 2025).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3824

How are you running AnythingLLM?

Docker (local)

What happened?

I applied the latest version of AnythingLLM this morning and it fails to start with the following error:

Node.js v18.20.8
node:internal/validators:162
throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
^

TypeError [ERR_INVALID_ARG_TYPE]: The "paths[0]" argument must be of type string. Received undefined
at new NodeError (node:internal/errors:405:5)
at validateString (node:internal/validators:162:11)
at Object.resolve (node:path:1115:7)
at Object. (/app/collector/utils/files/index.js:12:12)
at Module._compile (node:internal/modules/cjs/loader:1364:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
at Module.load (node:internal/modules/cjs/loader:1203:32)
at Module._load (node:internal/modules/cjs/loader:1019:12)
at Module.require (node:internal/modules/cjs/loader:1231:19)
at require (node:internal/modules/helpers:177:18) {
code: 'ERR_INVALID_ARG_TYPE'
}

Are there known steps to reproduce?

If I use the latest tag, if I go back to 1.8.1 the problem goes away.

I have tried removing my Env variables except the JWT token and it would still fail to start.

I am running on CasaOS LXC on Proxmox.

Originally created by @randomhack-com on GitHub (May 14, 2025). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3824 ### How are you running AnythingLLM? Docker (local) ### What happened? I applied the latest version of AnythingLLM this morning and it fails to start with the following error: Node.js v18.20.8 node:internal/validators:162 throw new ERR_INVALID_ARG_TYPE(name, 'string', value); ^ TypeError [ERR_INVALID_ARG_TYPE]: The "paths[0]" argument must be of type string. Received undefined at new NodeError (node:internal/errors:405:5) at validateString (node:internal/validators:162:11) at Object.resolve (node:path:1115:7) at Object.<anonymous> (/app/collector/utils/files/index.js:12:12) at Module._compile (node:internal/modules/cjs/loader:1364:14) at Module._extensions..js (node:internal/modules/cjs/loader:1422:10) at Module.load (node:internal/modules/cjs/loader:1203:32) at Module._load (node:internal/modules/cjs/loader:1019:12) at Module.require (node:internal/modules/cjs/loader:1231:19) at require (node:internal/modules/helpers:177:18) { code: 'ERR_INVALID_ARG_TYPE' } ### Are there known steps to reproduce? If I use the latest tag, if I go back to 1.8.1 the problem goes away. I have tried removing my Env variables except the JWT token and it would still fail to start. I am running on CasaOS LXC on Proxmox.
yindo added the possible bug label 2026-02-22 18:29:42 -05:00
yindo closed this issue 2026-02-22 18:29:42 -05:00
Author
Owner

@timothycarambat commented on GitHub (May 14, 2025):

Docker (local)

This error is coming from this line:
https://github.com/Mintplex-Labs/anything-llm/blob/076cb844fc0b13e2797dfd309cdb756bdca6dc66/collector/utils/files/index.js#L9-L12

How are you running the Docker image? https://docs.anythingllm.com/installation-docker/quickstart#start-anythingllm-via-docker

export STORAGE_LOCATION=$HOME/anythingllm && \
mkdir -p $STORAGE_LOCATION && \
touch "$STORAGE_LOCATION/.env" && \
docker run -d -p 3001:3001 \
--cap-add SYS_ADMIN \
-v ${STORAGE_LOCATION}:/app/server/storage \
-v ${STORAGE_LOCATION}/.env:/app/server/.env \
-e STORAGE_DIR="/app/server/storage" \
mintplexlabs/anythingllm:latest

This line -e STORAGE_DIR="/app/server/storage" makes that STORAGE_DIR available and then that path can resolve

@timothycarambat commented on GitHub (May 14, 2025): > Docker (local) This error is coming from this line: https://github.com/Mintplex-Labs/anything-llm/blob/076cb844fc0b13e2797dfd309cdb756bdca6dc66/collector/utils/files/index.js#L9-L12 How are you running the Docker image? https://docs.anythingllm.com/installation-docker/quickstart#start-anythingllm-via-docker ``` export STORAGE_LOCATION=$HOME/anythingllm && \ mkdir -p $STORAGE_LOCATION && \ touch "$STORAGE_LOCATION/.env" && \ docker run -d -p 3001:3001 \ --cap-add SYS_ADMIN \ -v ${STORAGE_LOCATION}:/app/server/storage \ -v ${STORAGE_LOCATION}/.env:/app/server/.env \ -e STORAGE_DIR="/app/server/storage" \ mintplexlabs/anythingllm:latest ``` This line `-e STORAGE_DIR="/app/server/storage"` makes that STORAGE_DIR available and then that path can resolve
yindo changed title from [BUG]: Container fails to start ERR_INVALID_ARG_TYPE - CasaOS to [GH-ISSUE #3824] [BUG]: Container fails to start ERR_INVALID_ARG_TYPE - CasaOS 2026-06-05 14:46:37 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#2446