anything-llm icon indicating copy to clipboard operation
anything-llm copied to clipboard

[BUG]: Render upload issue

Open RahSwe opened this issue 1 year ago • 10 comments

How are you running AnythingLLM?

Docker (remote machine)

What happened?

Starting a fresh Render server, some files are not possible to upload, getting the error report below:

image

The "unuploadable" files are however possible to upload to another instance running on Render.

Are there known steps to reproduce?

No response

RahSwe avatar May 22 '24 19:05 RahSwe

To avoid confusion, the "working instance" has not been redeployed the last 48 hrs.

Have tried to delete the new instance, set up another one, verified that all settings are identical as the "working but old instance", increased disk size further, but same problem with the same files on the new instance. Can however keep uploading certain other files, but many files are not possible to upload on the "new instance".

RahSwe avatar May 22 '24 20:05 RahSwe

Edit: It does not seem to be a Render issue. I started a new AWS instance, with the same result, i.e. same files are not possible to upload with the same error message.

RahSwe avatar May 22 '24 20:05 RahSwe

@RahSwe what exactly are these types of files you are trying to upload. Unable to reproduce otherwise

timothycarambat avatar May 22 '24 20:05 timothycarambat

@timothycarambat Trying to attach such a file below

Advokaten och alibivittnet - NJA 2021 s. 576.pdf

RahSwe avatar May 22 '24 21:05 RahSwe

@timothycarambat I downloaded the file which I uploaded here and then tried to upload it to ALLM. It worked. The difference seems to be that punctuations were added in the filename when uploaded to Github. I.e. it seems that it is now not possible to upload files to ALLM with spaces in the document name.

RahSwe avatar May 22 '24 21:05 RahSwe

@RahSwe if you take the file that is failing to upload (not downloaded from github) and rename it to test, does it upload properly?

shatfield4 avatar May 22 '24 22:05 shatfield4

@shatfield4 Yes, it works to upload if it I remove all the spaces in the name (or name the file test), but I get the error for all files with spaces in the document name (compare the file names in the screenshot, the failed ones all have spaces between words)

RahSwe avatar May 22 '24 22:05 RahSwe

Are you able to copy and paste the exact filename here in github? I am thinking there is a hidden character where the spaces are which is causing this error to happen.

shatfield4 avatar May 22 '24 22:05 shatfield4

@shatfield4 This is copy of the file name of an unuploadable file (on Mac): "God Advokatsed (Bentelius, 1998).pdf"

It should be just regular spaces. It works fine to upload the file to previous versions of ALLM.

RahSwe avatar May 22 '24 22:05 RahSwe

@timothycarambat @shatfield4 Further tests: I have managed to upload most files by replacing spaces with underlines. However this file still cannot be uploaded, even without spaces. It however works if I rename it by removing the second part of the document name.

Advokaten_och_alibivittnet_NJA 2021_s._576.pdf

RahSwe avatar May 23 '24 14:05 RahSwe

@timothycarambat That did the trick, TY

RahSwe avatar May 23 '24 20:05 RahSwe