# RangeError \[ERR\_FS\_FILE\_TOO\_LARGE\]: File size (3680875979) is greater than possible Buffer: 2147483647 bytes

**URL:** <https://forum.serverless.com/t/rangeerror-err-fs-file-too-large-file-size-3680875979-is-greater-than-possible-buffer-2147483647-bytes/13121>\
**Category:** Serverless Framework\
**Tags:** aws\
**Created:** [November 16, 2020, 1:18pm UTC](https://forum.serverless.com/t/rangeerror-err-fs-file-too-large-file-size-3680875979-is-greater-than-possible-buffer-2147483647-bytes/13121 "2020-11-16T13:18:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![IvanLjubicic](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/ivanljubicic/32/4716_2.png) [@IvanLjubicic](https://forum.serverless.com/u/IvanLjubicic)\
**Post date:** [November 16, 2020, 1:18pm UTC](https://forum.serverless.com/t/rangeerror-err-fs-file-too-large-file-size-3680875979-is-greater-than-possible-buffer-2147483647-bytes/13121/1 "2020-11-16T13:18:00Z")

</div>

Hi guys,

I have a problem with deploying to AWS.  
After “sls deploy”, I got this log:

Serverless: Invoke deploy  
Serverless: Invoke package  
Serverless: Invoke aws:common:validate  
Serverless: Invoke aws:common:cleanupTempDir  
Serverless: Generated requirements from /home/ivan/PycharmProjects/s-core/requirements.txt in /home/ivan/PycharmProjects/s-audio-core/.serverless/requirements.txt…  
Serverless: Using static cache of requirements found at /home/ivan/.cache/serverless-python-requirements/8f8737973cf0962c31d9017364d9545e56e9b8837b983c89c60926c762432be7\_slspyc …  
Serverless: Using Python specified in “runtime”: python3.7  
Serverless: Packaging Python WSGI handler…  
Serverless: Packaging service…  
Serverless: Excluding development dependencies…  
Serverless: Injecting required Python packages to package…

Range Error [E R R\_ F S\_ F I L E\_ T O O\_ L A R G E] —

RangeError [ERR\_FS\_FILE\_TOO\_LARGE]: File size (3680875979) is greater than possible Buffer: 2147483647 bytes  
at FSReqWrap.readFileAfterStat [as oncomplete] (fs.js:264:11)  
From previous event:

**ENVIRONMENT**  
Operating System: linux  
Node Version: 10.19.0  
Framework Version: 2.7.0  
Plugin Version: 4.1.0  
SDK Version: 2.3.2  
Components Version: 3.2.2

My project is pretty big: 7.4GB. I dont know if that is causing this issue. I am running few other services on AWS with no issues but this one is causing problems.

Tnx for any help! And great job btw!
