[GH-ISSUE #3195] [BUG]: File upload to collector is not working / Link fetch is not working too #2053

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

Originally created by @futurearchitec on GitHub (Feb 13, 2025).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3195

How are you running AnythingLLM?

Local development

What happened?

I set up a local environment of anything-llm according to the documentation (Node.js 18), checked out the git-repo as of February 12th 2025. Everything works nicely, server and collector are running.
Then I set up a workspace and an AI model. Following I tried uploading a PDF document and it failed. The collector is trying to save the file in the hotdir directory, but the path does not exist. Although the code indicates that a relative path is being used, the root directory expected to be is '/home/collector/hotdir'. But the module is located at different place '/home/username/anything-llm/collector/hotdir'. Testwise I created this directory structure and then the file gets uploaded. But then the import fails anyway.

Are there known steps to reproduce?

Set up a local environment according to here. Start server and collector, try to upload a file or try to fetch a web url.

Originally created by @futurearchitec on GitHub (Feb 13, 2025). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3195 ### How are you running AnythingLLM? Local development ### What happened? I set up a local environment of anything-llm according to the documentation (Node.js 18), checked out the git-repo as of February 12th 2025. Everything works nicely, server and collector are running. Then I set up a workspace and an AI model. Following I tried uploading a PDF document and it failed. The collector is trying to save the file in the **hotdir** directory, but the path does not exist. Although the code indicates that a relative path is being used, the root directory expected to be is '/home/collector/hotdir'. But the module is located at different place '/home/username/anything-llm/collector/hotdir'. Testwise I created this directory structure and then the file gets uploaded. But then the import fails anyway. ### Are there known steps to reproduce? Set up a local environment according to [here](https://github.com/Mintplex-Labs/anything-llm/blob/master/BARE_METAL.md). Start server and collector, try to upload a file or try to fetch a web url.
yindo added the possible bug label 2026-02-22 18:27:55 -05:00
yindo closed this issue 2026-02-22 18:27:55 -05:00
Author
Owner

@timothycarambat commented on GitHub (Feb 13, 2025):

Permissions on that folder (chmod -R 777 /abs/path/to/storage) need to be opened + make sure you have STORAGE_DIR defined in the .env.development in your server folder to the absolute path of your storage or just leave it totally commented out

The server expects .env.developement in dev
https://github.com/Mintplex-Labs/anything-llm/blob/0e7fee41ca48f73d664a899cc2bce4808d2707bd/server/index.js#L1-L3

Storage dir is implied to be server/storage in the repo when in development mode - even in collector.
example: https://github.com/Mintplex-Labs/anything-llm/blob/0e7fee41ca48f73d664a899cc2bce4808d2707bd/collector/utils/comKey/index.js#L4-L11

@timothycarambat commented on GitHub (Feb 13, 2025): Permissions on that folder (`chmod -R 777 /abs/path/to/storage`) need to be opened + make sure you have STORAGE_DIR defined in the `.env.development` in your `server` folder to the absolute path of your storage **or just leave it totally commented out** The server expects `.env.developement` in dev https://github.com/Mintplex-Labs/anything-llm/blob/0e7fee41ca48f73d664a899cc2bce4808d2707bd/server/index.js#L1-L3 Storage dir is implied to be `server/storage` in the repo when in development mode - even in collector. example: https://github.com/Mintplex-Labs/anything-llm/blob/0e7fee41ca48f73d664a899cc2bce4808d2707bd/collector/utils/comKey/index.js#L4-L11
yindo changed title from [BUG]: File upload to collector is not working / Link fetch is not working too to [GH-ISSUE #3195] [BUG]: File upload to collector is not working / Link fetch is not working too 2026-06-05 14:44:16 -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#2053