not uploading file more than 3 mb while using server

i am using my flask script for upload the file , while using server i am not able to upload the file more than 3 mb but in local server it work. Is there any limitations of server . Please help somebdy.

Hi there

Could you upload a file larger than 3mb again and share the logs for your app here?

2023-06-07T05:10:44Z proxy[5683921ad6348e] lax [error]could not make HTTP request to instance: connection error: Connection reset by peer (os error 104)
2023-06-07T05:10:45Z app[5683921ad6348e] lax [info]Starting clean up.
2023-06-07T05:10:45Z app[5683921ad6348e] lax [info]Process appears to have been OOM killed!
2023-06-07T05:10:45Z app[5683921ad6348e] lax [info]hallpass exited, pid: 514, status: signal: 15
2023-06-07T05:10:45Z app[5683921ad6348e] lax [info]2023/06/07 05:10:45 listening on [fdaa:2:4ff1:a7b:a593:c39b:b231:2]:22 (DNS: [fdaa::3]:53)
2023-06-07T05:10:46Z app[5683921ad6348e] lax [info][ 1654.459093] reboot: Restarting system
2023-06-07T05:10:46Z app[5683921ad6348e] lax [info]Out of memory: Killed process
2023-06-07T05:10:46Z runner[5683921ad6348e] lax [info]machine did not have a restart policy, defaulting to restart
2023-06-07T05:10:46Z app[5683921ad6348e] lax [info]Starting init (commit: 8af0ddf)…
2023-06-07T05:10:46Z app[5683921ad6348e] lax [info]Preparing to run: python as root
2023-06-07T05:10:46Z app[5683921ad6348e] lax [info]2023/06/07 05:10:46 listening on [fdaa:2:4ff1:a7b:a593:c39b:b231:2]:22 (DNS: [fdaa::3]:53)
2023-06-07T05:10:48Z app[5683921ad6348e] lax [info]None of PyTorch, TensorFlow >= 2.0, or Flax have been found. Models won’t be available and only tokenizers, configuration and file/data utilities can be used.
2023-06-07T05:10:49Z app[5683921ad6348e] lax [info]WARNING:llama_index.llm_predictor.base:Unknown max input size for gpt-3.5-turbo, using defaults.

this is the first line of my error logs=

2023-06-07T05:10:44Z app[5683921ad6348e] lax [info][ 1652.787318] Out of memory: Killed process 513 (python) total-vm:735860kB, anon-rss:186956kB, file-rss:0kB, shmem-rss:4kB, UID:0 pgtables:672kB oom_score_adj:0

It seems your app is running out of memory(RAM memory). Adding more memory to your app might be a good starting point. Check Scale Machine CPU and RAM · Fly Docs for instructions.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.