[GH-ISSUE #1038] [BUG]: #642

Closed
opened 2026-02-22 18:20:36 -05:00 by yindo · 3 comments
Owner

Originally created by @ghost on GitHub (Apr 4, 2024).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/1038

How are you running AnythingLLM?

Docker (local)

What happened?

Since the new version i get the error below in the logs.

2024-04-04T08:52:05.449945882Z node:internal/validators:162
2024-04-04T08:52:05.449969093Z throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
2024-04-04T08:52:05.449973423Z ^
2024-04-04T08:52:05.449976913Z
2024-04-04T08:52:05.449980523Z TypeError [ERR_INVALID_ARG_TYPE]: The "paths[0]" argument must be of type string. Received undefined
2024-04-04T08:52:05.449984173Z at new NodeError (node:internal/errors:405:5)
2024-04-04T08:52:05.449987494Z at validateString (node:internal/validators:162:11)
2024-04-04T08:52:05.449990984Z at Object.resolve (node:path:1097:7)
2024-04-04T08:52:05.449994254Z at Object. (/app/collector/utils/comKey/index.js:8:12)
2024-04-04T08:52:05.449997924Z at Module._compile (node:internal/modules/cjs/loader:1356:14)
2024-04-04T08:52:05.450001264Z at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
2024-04-04T08:52:05.450004554Z at Module.load (node:internal/modules/cjs/loader:1197:32)
2024-04-04T08:52:05.450007844Z at Module._load (node:internal/modules/cjs/loader:1013:12)
2024-04-04T08:52:05.450011134Z at Module.require (node:internal/modules/cjs/loader:1225:19)
2024-04-04T08:52:05.450014434Z at require (node:internal/modules/helpers:177:18) {
2024-04-04T08:52:05.450017774Z code: 'ERR_INVALID_ARG_TYPE'
2024-04-04T08:52:05.450021064Z }
2024-04-04T08:52:05.450024274Z
2024-04-04T08:52:05.450027505Z Node.js v18.19.1

Are there known steps to reproduce?

This is my docker compose file (which worked fine with the previous version).

version: '3.8'

networks:
ai-network:
external: true

services:
anything-llm:
container_name: anything-llm
image: mintplexlabs/anythingllm
environment:
- TZ=Europe/Amsterdam
volumes:
- /var/lib/docker/volumes/ollama/_anythingllm/.env:/app/server/.env
- /var/lib/docker/volumes/ollama/_anythingllm/storage:/app/server/storage
cap_add:
- SYS_ADMIN
ports:
- "3001:3001"
networks:
ai-network:
ipv4_address: 172.18.0.5
restart: unless-stopped

Originally created by @ghost on GitHub (Apr 4, 2024). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/1038 ### How are you running AnythingLLM? Docker (local) ### What happened? Since the new version i get the error below in the logs. 2024-04-04T08:52:05.449945882Z node:internal/validators:162 2024-04-04T08:52:05.449969093Z throw new ERR_INVALID_ARG_TYPE(name, 'string', value); 2024-04-04T08:52:05.449973423Z ^ 2024-04-04T08:52:05.449976913Z 2024-04-04T08:52:05.449980523Z TypeError [ERR_INVALID_ARG_TYPE]: The "paths[0]" argument must be of type string. Received undefined 2024-04-04T08:52:05.449984173Z at new NodeError (node:internal/errors:405:5) 2024-04-04T08:52:05.449987494Z at validateString (node:internal/validators:162:11) 2024-04-04T08:52:05.449990984Z at Object.resolve (node:path:1097:7) 2024-04-04T08:52:05.449994254Z at Object.<anonymous> (/app/collector/utils/comKey/index.js:8:12) 2024-04-04T08:52:05.449997924Z at Module._compile (node:internal/modules/cjs/loader:1356:14) 2024-04-04T08:52:05.450001264Z at Module._extensions..js (node:internal/modules/cjs/loader:1414:10) 2024-04-04T08:52:05.450004554Z at Module.load (node:internal/modules/cjs/loader:1197:32) 2024-04-04T08:52:05.450007844Z at Module._load (node:internal/modules/cjs/loader:1013:12) 2024-04-04T08:52:05.450011134Z at Module.require (node:internal/modules/cjs/loader:1225:19) 2024-04-04T08:52:05.450014434Z at require (node:internal/modules/helpers:177:18) { 2024-04-04T08:52:05.450017774Z code: 'ERR_INVALID_ARG_TYPE' 2024-04-04T08:52:05.450021064Z } 2024-04-04T08:52:05.450024274Z 2024-04-04T08:52:05.450027505Z Node.js v18.19.1 ### Are there known steps to reproduce? This is my docker compose file (which worked fine with the previous version). ----------------------------------------------- version: '3.8' networks: ai-network: external: true services: anything-llm: container_name: anything-llm image: mintplexlabs/anythingllm environment: - TZ=Europe/Amsterdam volumes: - /var/lib/docker/volumes/ollama/_anythingllm/.env:/app/server/.env - /var/lib/docker/volumes/ollama/_anythingllm/storage:/app/server/storage cap_add: - SYS_ADMIN ports: - "3001:3001" networks: ai-network: ipv4_address: 172.18.0.5 restart: unless-stopped
yindo added the possible bug label 2026-02-22 18:20:36 -05:00
yindo closed this issue 2026-02-22 18:20:36 -05:00
Author
Owner

@maharanasarkar commented on GitHub (Apr 4, 2024):

hey @baarsnet I got the same error, for me the problem was I didn't change the name of the container to latest in below command

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:master

make sure to run above command before running the docker image
above command uses master image instead use latest, if the latest docker image is pulled from mintplexlabs/anythingllm

@maharanasarkar commented on GitHub (Apr 4, 2024): hey @baarsnet I got the same error, for me the problem was I didn't change the name of the container to latest in below command `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:master` make sure to run above command before running the docker image above command uses master image instead use latest, if the latest docker image is pulled from mintplexlabs/anythingllm
Author
Owner

@ghost commented on GitHub (Apr 4, 2024):

The :master or :latest tag did not help, but for some reason the STORAGE_DIR="/app/server/storage" was now required.
Since i put this in my docker compose file it works again.
ThanX @maharanasarkar !

@ghost commented on GitHub (Apr 4, 2024): The :master or :latest tag did not help, but for some reason the STORAGE_DIR="/app/server/storage" was now required. Since i put this in my docker compose file it works again. ThanX @maharanasarkar !
Author
Owner

@CatInCloud commented on GitHub (Apr 7, 2024):

there is no node on your machine

@CatInCloud commented on GitHub (Apr 7, 2024): there is no node on your machine
yindo changed title from [BUG]: to [GH-ISSUE #1038] [BUG]: 2026-06-05 14:36:26 -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#642