#Error while uploading files

51 messages · Page 1 of 1 (latest)

modest surge
#

Good morning!
I'm currently running Directus v9 locally with Docker. When I try to upload a large file in the File Library of my project, I'm getting the error on the attached screenshot. Here is the detailed error:

{
  "stack": "AxiosError: Network Error\n    at R.onerror (http://localhost:8055/admin/assets/use-sync-142c55ed.js:29:4380)",
  "message": "Network Error",
  "name": "AxiosError",
  "code": "ERR_NETWORK",
  "config": {}
}

My network is perfectly working and the file I am trying to upload is located on the same computer as the project. I trying to find if there was a setting somewhere to maybe change the size limit or the time limit while uploading but I have not found anything like this and the software doesn't seem to have limitations like that so I really don't know how to fix this issue...

chilly finchBOT
#

Thanks for posting! This is a community powered server, so you may or may not get an answer based on available help and expertise. To increase your chances of somebody being able to help you, please make sure your question includes the following:

  • An explanation of exactly what you're trying to achieve.
  • Any and all related code or previous attempts.
  • The exact issue or error you are facing.
  • Any screenshots if applicable.

When you're done with this thread, please close it.

(If you have a support agreement and need help, please contact the core team via email.)

remote roost
modest surge
#

In the docker-compose.yml?

#

I have added the last line, but I don't know how to reaload my docker app with this modification without creating a new docker image

tough verge
#

also, your missing a tab, it should be aligned with the other env variables

modest surge
#

thanks, I'll try this as soon as I can

modest surge
#

Sadly, it did not worked...

tough verge
#

do you use a reverse proxy or something that could limit the upload?

#

ah your running on localhost, do you have any other logs?
(for example on the Directus side)

modest surge
#

Yes, i'm running on localhost, I'm not sure that this is what you're looking for but here is what I have on Docker/Directus side:

2023-03-29 10:49:47 [08:49:46] GET /files?aggregate[countDistinct]=id 304 25ms
2023-03-29 10:49:47 [08:49:46] GET /files?limit=25&fields[]=id&fields[]=modified_on&fields[]=type&fields[]=title&fields[]=type&fields[]=filesize&sort[]=-uploaded_on&page=1 304 26ms
2023-03-29 10:49:47 [08:49:46] GET /files?aggregate[countDistinct]=id 304 13ms
2023-03-29 10:49:47 [08:49:47] PATCH /users/me/track/page 204 34ms
2023-03-29 10:54:57 [08:54:57] POST /files null 5m 7.2s
2023-03-29 11:00:27 [09:00:27] POST /files null 5m 29.9s
2023-03-29 11:04:02 [09:04:01] PATCH /users/me/track/page 204 44ms
tough verge
#

what does your env look like for storage?

modest surge
#

What do you mean?

tough verge
#

do you have any env variables in place for storage?

modest surge
#

I don't think so. The only configuration I have done is in the docker-compose.yml

tough verge
#

Right but you are able to upload small files right?

modest surge
#

yes I am

tough verge
#

i cant replicate it on my end, when trying to upload a GB (localhost, also Docker) so im not sure what is going on here

modest surge
#

😦 so basically, there is not a limit for the size, nothing I can configure? Like 15GB files should work?

remote roost
remote roost
modest surge
#

I have enough disk space (like 200GB free so 15GB should be fine)
maybe I have done something wrong, just to be sure, all I had to do after editing the docker-compose.yml is run the command "docker compose build"?

remote roost
#

did you fix the indentation for the max_payload setting?

modest surge
#

yes

remote roost
#

ah i see bart already mentioned that too

#

So what i have not seen yet is how is it failing? can you try uploading a file using a request tool like Postman? (or inspect the upload request from the app)

tough verge
modest surge
tough verge
#

did you restart the docker container (might be a silly question)

modest surge
#

Yes I did

modest surge
remote roost
modest surge
#

Ok so with Postman it worked with a 15GB file, it tooked 5 minutes. I'm trying now with a 30GB file just to be sure because via the Directus Interface, the upload usually crash a bit after 5 minutes

remote roost
#

can that be a browser limitation? what browser are you using

modest surge
#

I'm using Chrome

#

With a 30GB file, it failed with a request timeout, I think this is the same issue when I try with the interface:

#

A more complete screenshot:

remote roost
modest surge
#

It is

remote roost
#

not in that screenshot

modest surge
#

even the second empty key needs to be "file"?

#

(the first key only displays "file" if I put my mouse above it)

remote roost
#

ah i think i see the confusion, the key needs to have "file" twice both as name and type

modest surge
#

oh I see... I don't know how it worked with the 15GB file in that case x(

#

I'm trying with this modification (sorry it takes at least 5 min for every try 😦 )

#

timeout again

modest surge
#

With the interface, it also take 5min and ~30 seconds before timeout

tough verge
#

maybe its best to search on GH is there is an issue on this, if not create a new one