5

When I tried to open my website, I am getting the error that There has been an error processing your request

Then I checked in system.log.

The error is Disk quota exceeded

enter image description here

The no.of files count make doubled to the original files count when i deploy the content.

Note: I have a single Magento installed website only.

Why that much of files existed in Magento?

2
  • Magento auto generate some of file like in var/cache, generated folder files. May 27, 2019 at 4:14
  • you probably have the smallest shared hosting package...
    – MagenX
    May 27, 2019 at 15:27

3 Answers 3

5
+25

Magento generates files in following directories

  • generated
  • var
  • pub/static
  • pub/media/catalog/products/cache (In most cases this directory takes most of the storage)

The no of files you have uploaded at start would surly increase after Magento generates all other files.

You need to manually check directory sizes in each of the above listed directories by command, something like this:

cd var/
du -sh
2
  • hm, how is If you have other OS like centOs then directory size check command would be different. ?? what are you talking about??
    – MagenX
    May 28, 2019 at 20:16
  • I mostly worked on ubuntu, and I am good with ubuntu commands. I am also familiar with centOs, I have seen different commands for both OS. But after your comment, I have checked du command, it's same on both OS. Thanks for sharing knowledge. Updating my answer :) May 29, 2019 at 4:01
4

When Magento compiles (di compilation and static content deploy) it takes a lot of the already existing files in the app/code/ directory, or vendor directory, and produces a lot of generated and cached content in the generated/ and var/ directories.

File caching will also generate a large number of files, try to cache using Redis instead if you don't already

-2

The above-listed answers are also might be helpful. But, In my case, I got the solution from our hosting provider Godaddy.

The issue is, so many emails have come to our webmails. One email is considered as one file.

That's the reason, The available count of the file storage gets crossed to the given limit as we have one lakh+ emails.

I have removed those all unused emails.

Now the issue is resolved and the website is working fine.

5
  • 1
    Good to hear that you resolved it. +1 :) May 29, 2019 at 6:34
  • hm, the question was about Why that much of files existed in Magento?
    – MagenX
    May 29, 2019 at 7:59
  • @MagenX, Yes, The reason behind which exists. And the answer is explaned why that much much of files existed. Please read the answer and question completely dear. May 29, 2019 at 8:47
  • great tool to check what is taking space on disk is console tool - ncdu , its showing directory and file usage in tabel. Can be very helpful in issues like this one.
    – BartZalas
    May 30, 2019 at 8:46
  • @MagenX, Can you give a more explanation about your comment dear? Jul 6, 2019 at 7:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.