the-djmaze / snappymail

Simple, modern & fast web-based email client
https://snappymail.eu
GNU Affero General Public License v3.0
977 stars 114 forks source link

Updating snappymail on a nextcloud instance with occ command is extremely slow! #1661

Open akhil1508 opened 1 month ago

akhil1508 commented 1 month ago

Describe the bug

To Reproduce Steps to reproduce the behavior:

On a big nextcloud instance

  1. occ app:disable snappymail
  2. occ app:update snappymail
  3. occ app:enable snappymail

Expected behavior

akhil1508 commented 1 month ago

@the-djmaze If you can give some pointers/guidance, would be happy to develop to fix this

the-djmaze commented 1 month ago

I don't know how space your cache is using. But maybe use memcache?

And disable cache could also be an option if imap is fast.

A periodic rm -dfr /cache might be faster.

akhil1508 commented 1 month ago

@the-djmaze

I don't know how space your cache is using.

It's not a lot of space but it's a lot of folders.. and rm is a slow operation on cephfs with thousands of folders with many subfolders each

But maybe use memcache?

This is what I don't understand. I already use APCU as the cache, why is the app still using files to cache?

the-djmaze commented 4 weeks ago

When creating the \MailSo\Cache\DriverInterface fails, it will use the File driver. That's why you have a lot of cache files.

You must check your cache driver settings.

akhil1508 commented 1 week ago

You must check your cache driver settings.

@the-djmaze I am checking this.

In the meantime until I can debug it could you tell me if it is safe to do:

  1. occ app:disable snappymail
  2. mv cache some-other-location/cache
  3. occ app:update snappymail
  4. occ app:enable snappymail

I've actually had to do the mv step in during update before as it was extremely slow and users were complaining about downtime.

the-djmaze commented 1 week ago

Yes, that is safe enough.