One of my stores running 3.0.3.2 (default theme) is taking up more and more disk space. There is still more than enough disk space available in my hosting package, but I really really really wonder what is taking up all that space. It does not seem to be the regular new product or customer that registered him-/herself. I've actually recently removed a lot of disabled and old products that are no longer in use.
Is there any way to figure out what keeps eating disk space in my store?
What extension, what part of the website, any clues?
Thanks in advance!
Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com
Always the sign of a ticking time-bomb that will eventually crash your site.
Check all the log files and database tables for any that seem way too large.
If you can't find it, feel free to get in touch with a developer such as ourselves as this is a problem we solve frequently.
Paul.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Also Disk usage from Cpanel should work just fine.
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
I could not find anything specific yet (using cPanel).
Somebody adviced me to use TreeSize on a local copy of my store.
Might try that for now.
Could you please explain this?paulfeakins wrote: ↑Thu Dec 02, 2021 9:02 pmAlways the sign of a ticking time-bomb that will eventually crash your site.
I wonder what it could be that it would be this harmful...
Or the error.log is fullfilled with error messages.
In both cases the webspace is filled with garbage.
Suggest you inspect all files under system/storage/logs.
And, OC 3.0.3.2 had some issues with the session tables (db).
If your provider is counting that also, better to check that table also.
The "time ticking bomb" is, that when your webspace is full, your Website stopps working.
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
The files don't seem too large. Currently error.log has a size of 996 Kb
Although I am not sure when it becomes too large, the oc_session table contains over 3.4 million records and it appears to be 327 MB in size. It seems quite large to me. If I were to upgrade to a newer OC version, would this solve part of the issue?
Not sure if the session bug is fixed in later versions - maybe one of the other users here can answer this.
But, this table should contain only a few entries at least, or do you have over 3 million visitors the last minutes?
For a first fix, delete all entries in that table and check the space afterwards.
And search the forum here, quite a few messages about that bug to find here.
GitHub has also some posts about that.
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
On my local copy I discovered the image/cache directory, or more specifically the image/cache/catalog directory, is taking up more almost half of the used storage space! That's a bit surprising...
Is it safe to delete all contents, as this appears to be a cache directory?
https://github.com/opencart/opencart/issues/7094
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
That's another story beside your session bug.EMGX wrote: ↑Thu Dec 02, 2021 11:46 pmI think I found the big issue here...
On my local copy I discovered the image/cache directory, or more specifically the image/cache/catalog directory, is taking up more almost half of the used storage space! That's a bit surprising...
Is it safe to delete all contents, as this appears to be a cache directory?
Yes, deleting the items will force OpenCart to generate those files new on demand (when you do not use any extension which does that prior).
But once, you will have also again that sum of cached files.
You should check what cause your troubles.
And what do you mean with "local copy"?
Never mentioned that before!
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
Many thanks for sharing!OSWorX wrote: ↑Thu Dec 02, 2021 11:53 pmFound that old discussion about that bug, maybe it helps:
https://github.com/opencart/opencart/issues/7094
Just a localhost version of my store, so I could check the directory sizes on my PC to see what takes up so much space. That's how I discovered the cache directory being extremely large.
Local is not Live!
Except both have the same environement and configuration.
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
How is the current status - solved or not?
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
Just to clarify (for others):
NOT to be removed!
Only delete the entries.
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
Not just that - for PHP to write to your error log files, it must first open the files, and so your site will get slower and slower until finally PHP requires more RAM than you have available to write to the error logs and your site will crash.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
My bad, post is edited now
The error log was rather small. Image cache seems to stay relatively small this time as well, it brought the used storage space down from almost 5GB to 2.2GB now. Still the session table already has 30.000+ entries from the past < 24 hours. I think this needs a fix so I'll check this out:paulfeakins wrote: ↑Fri Dec 03, 2021 8:15 pmNot just that - for PHP to write to your error log files, it must first open the files, and so your site will get slower and slower until finally PHP requires more RAM than you have available to write to the error logs and your site will crash.
I'm trying this to see if it changes anything.
As mentioned, editing php.ini
Users browsing this forum: Google [Bot], OSWorX and 419 guests