I hear people say that about Nextcloud often, which is part of why I haven’t bothered setting it up yet.

Is there a technical reason why it’s slow and clunky? Any problematic choices with how it was built?

  • nbailey@lemmy.ca
    link
    fedilink
    English
    arrow-up
    51
    arrow-down
    2
    ·
    9 months ago

    It needs some tweaks to be snappy. The defaults are really bad.

    • change database from SQLite to a proper database like MySQL or Postgres, and configure the database server to use your memory fully
    • increase the PHP memory limit from the default (128M on many distros) to >1G, the more the better
    • install APCu in-memory cache for PHP
    • add Redis as additional cache
    • turn off the antivirus extension, if installed (ClamAV is useless)
    • use http/2 on Apache/nginx to increase performance with multiple connections

    https://docbot.onetwoseven.one/services/nextcloud/

    • nutbutter@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      6
      ·
      9 months ago

      Thank you for these suggestions. But I have a few questions.

      How can I do the 2nd and 3rd point if I am using docker/podman containers?

      Why is ClamAV useless?

      • nbailey@lemmy.ca
        link
        fedilink
        English
        arrow-up
        15
        ·
        9 months ago

        Not sure how to do that in docker, I’ve run mine as a plain old PHP-FPM site for years and years. It might be something that can be tweaked using config files or environment variables, or might require building a custom image.

        ClamAV is slow and doesn’t catch the nastiest of malware. Its entire approach is stuck in 2008. It’s better than nothing for screening emails, but for a private file store it won’t help much considering that you’ll already have the files on your system somewhere. And most importantly, it slows down file uploads 10x and increases CPU load substantially. The only good reason to use ClamAV for nextcloud is if you will be sued if you don’t!

      • Nyanix@lemmy.ca
        link
        fedilink
        English
        arrow-up
        2
        ·
        8 months ago

        This has me curious, not to derail the topic, but I always hear that ClamAV is the best way to go for Linux. Is there a free solution that you would recommend in place of it?

    • TCB13@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      arrow-down
      20
      ·
      9 months ago

      You can do all of that and NC will still be the piece of shirt that is it is fail to sync stuff.

        • TCB13@lemmy.world
          link
          fedilink
          English
          arrow-up
          1
          arrow-down
          3
          ·
          8 months ago

          Or one of the few people who tested the thing and spend time taking screenshots and pointing out issues unlike most others…

        • TCB13@lemmy.world
          link
          fedilink
          English
          arrow-up
          1
          ·
          8 months ago

          Well I only saw problems with about 1TB of small files. I’m not sure if they were actually caused by the volume of the data or because there were multiple using syncing parts of that data as well.

          • Possibly linux@lemmy.zip
            link
            fedilink
            English
            arrow-up
            1
            ·
            8 months ago

            My setup has no where near that much data. Maybe it gets bogged down with lots of IO.

            I will say caching is really important for Nextcloud to be fast