this post was submitted on 03 Mar 2024
107 points (95.7% liked)

Selfhosted

39987 readers
646 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

My Nextcloud has always been sluggish — navigating and interacting isn't snappy/responsive, changing between apps is very slow, loading tasks is horrible, etc. I'm curious what the experience is like for other people. I'd also be curious to know how you have your Nextcloud set up (install method, server hardware, any other relevent special configs, etc.). Mine is essentially just a default install of Nextcloud Snap.

Edit (2024-03-03T09:00Z): I should clarify that I am specifically talking about the web interface and not general file sync capabilites. Specifically, I notice the sluggishness the most when interacting with the calendar, and tasks.

top 50 comments
sorted by: hot top controversial new old
[–] Tiritibambix@lemmy.ml 20 points 8 months ago (5 children)

Nextcloud pleases A LOT 10% of it's users. Those 10% are composed by tech savvy people, coders and developpers that spent countless hours tinkering with their instance.

I'm one of the 90% left. Despite really wanting to use nextcloud and trying to set it up correctly for 2 years, I finally gave up and I feel much happier in my life, in my work, with my family and friends, and they thank me for that.

Now I just recommend Owncloud or seafile. They're both really easy to install and just work out of the box.

Out of habit and convenience, I keep a nextcloud running on oracle free tier just for what it's good at: caldav and contacts.

[–] ShortN0te@lemmy.ml 9 points 8 months ago (15 children)

The out of the box experience of the containerized nextcloud is actually really bad. Had it running bare metal with apache and it was way faster.

But have you tried the official AIO docker compose file? Basically copy the redis stuff from there and you are good to go.

load more comments (15 replies)
[–] Auli@lemmy.ca 5 points 8 months ago

Never had an issue with mine. And running fine. Only thing I have done is use mariadb.

load more comments (3 replies)
[–] NateNate60@lemmy.world 11 points 8 months ago

Mine is... eh. It's alright. I don't use any of the apps. Just the actual sync functionality. Sometimes when I'm moving files around there's a problem where the entire thing just stops responding. My MediaWiki instance still works, just not Nextcloud. Not sure why this happens and not sure if it also happens to other people.

For comparison, it is running on a Contabo VPS M

[–] jeena@jemmy.jeena.net 11 points 8 months ago (2 children)

Mine has always been slow. I started on a raspberry pi but later on a NUC and even on my VPS at Hetzner, it was always like you describe. Because I only used it for calendar, adressbook and sharing a few files I replaced it with Radicale for CalDav and CardDav and Syncthing for sharing files.

[–] halm@leminal.space 6 points 8 months ago

Yeah, me too. Nextcloud is way too unwieldy for basic usage like calendar/contact/even file sync. I tried a couple collaboration tools but they only stuttered and crapped out.

I'm actually fine hosting several smaller, dedicated services for the features I need rather than one lumbering point of failure.

[–] CoopaLoopa@lemmy.dbzer0.com 3 points 8 months ago

Spent a full day setting up Nextcloud so I could file sync my machines and share files externally. It was slow as hell and didn't work half the time.

Spent 10 minutes spinning up Syncthing and FileBrowser containers and have had zero issues with them since.

[–] poVoq@slrpnk.net 9 points 8 months ago* (last edited 8 months ago) (1 children)

Configuring a Redis cache really helps in my experience.

But I also recently noticed something odd: it works quite well on my usual internet connection, but when I traveled abroad it became excruciatingly slow, more so than the admittably worse mobile connection would have let me assume. Something about it seems to require a relatively stable internet connection on the client side it seems.

[–] maiskanzler@feddit.de 4 points 8 months ago

That might be due to your ISP's routing and interconnects. They usually have good routes to big services and might lack good connections between home users in different countries or on different continents.

[–] JASN_DE@lemmy.world 8 points 8 months ago (2 children)

Docker behind a Traefik proxy with crowdsec checking (adds additional lag). Ryzen 2700x 32GB local machine. All storage on SSD.

The web interface is very usable, switching subpages takes maybe half a second max without it being cached by the browser.

Could of course be quicker (as basically everything ever), but as we mostly use it with the Windows sync clients and Android apps we never really have any issues.

[–] Kalcifer@sh.itjust.works 3 points 8 months ago (1 children)

Which docker image do you use? AIO?

[–] JASN_DE@lemmy.world 1 points 8 months ago

No. This installation is so old it precedes the AIO image. "Standard" docker image, redis, mariadb.

[–] MaggiWuerze@feddit.de 1 points 8 months ago* (last edited 8 months ago)

Dito. It's not blazing fast, but always usable and fast enough. Especially with Redis and Postgres

[–] fungos@lemmy.eco.br 7 points 8 months ago* (last edited 8 months ago) (1 children)

mine was really sluggish for a long time, then I saw someone in here explaining their similar issue and their fix. I don't have the post link, but it was related to DNS settings. Basically for some reason using my pihole dns made only nextcloud sluggish, the fix suggestion was to use 1.1.1.1, which worked. Now, it is a pretty fast nextcloud.

[–] czardestructo@lemmy.world 3 points 8 months ago (1 children)

So on your Nextcloud server you use an external DNS and it greatly sped up you nextcloud? Because I noticed a few years back mine got slow and I cannot figure out why. It was about the time I enforced pihole dns with pfsense. I might need to try this.

[–] Synnr@sopuli.xyz 2 points 8 months ago (1 children)

That would make sense if the cause is some looping from hanging DNS lookups. Someone should (and likely has) notified the devs about this.

Another possible solution, from https://help.nextcloud.com/t/server-hangs-and-then-is-fine-for-a-bit-then-hangs-again/153917/16

[–] czardestructo@lemmy.world 2 points 8 months ago

I'm going to have to give this a shot tonight, need to make a pfsense rule to allow the server to get out and then change its DNS. Regarding php, my current config is the following because I have over 64gigs of ram and went through great length to get Nextcloud to cache MORE into ram:

pm.max_requests = 50000 #set higher, the process is recyled after 50k calls to prevent memory leaks
pm.max_children = 1000
pm.start_servers = 60
pm.min_spare_servers = 30
pm.max_spare_servers = 120
[–] zelifcam@lemmy.world 7 points 8 months ago* (last edited 8 months ago)

https://linuxunplugged.com/549

Podcast Description:

Deploying Nextcloud the Nix way promises a paradise of reproducibility and simplicity. But is it just a painful trek through configuration hell? We built the dream Nextcloud using Nix and faced reality.

Edit: The link provides working configurations and instructions for deploying Nextcloud. The audio discusses challenges and talks about some of the things brought up here and how to get around them. They discuss various forms of deployments.

Edit2: I provide an actual discussion about the topic along with solutions and this gets downvoted? They even hit on the sluggish web ui problem.

[–] feinzer@akko.airis.dev 6 points 8 months ago (1 children)

@Kalcifer @selfhosted it's quite slow for me. AIO docker setup

It was way worse when I tried the snap tho

[–] Kalcifer@sh.itjust.works 1 points 8 months ago

As long as it's faster than the snap, it's worth it to me 😜

[–] Father_Redbeard@lemmy.ml 4 points 8 months ago

I've shit-talk NC so much on here and other forums but for some reason kept feeling compelled to try to make it work. I've tried a few of the Community Docker templates available on Unraid "store" as well as AIO. I've had issues with all of them. Then gave NextcloudPi a try on a spare Pi 4 (installed a SSD as boot instead of microSD) and it works much better. It's still much slower than I think it should be, but this version is far and away more responsive than the others.

Seafile is a beast of an app that syncs and performs incredibly fast. Some folks won't use it due to the git-like chunks it parses your data into on the server end (this is what accounts for the speed from what I've read). I understand the concerns in that regard, but I still like it and I have my own way to mitigate that concern.

[–] SGG@lemmy.world 4 points 8 months ago (2 children)

Mine is nice and quick in regards to the web interface and general functions. However I run it on a server at home and my upload speed isn't the best, so if I need to pull a larger file (Files On Demand enabled) then obviously the transfer speed of the file is a bit sluggish.

Hosted on a VM with 16GB RAM, 4 cores. Using the NextcloudAIO docker deployment option, all behind an Apache reverse proxy (I have a bunch of other services on another VM that all have reverse proxy access in place as well).

load more comments (2 replies)
[–] Decronym@lemmy.decronym.xyz 4 points 8 months ago* (last edited 8 months ago)

Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:

Fewer Letters More Letters
DNS Domain Name Service/System
Git Popular version control system, primarily for code
HTTP Hypertext Transfer Protocol, the Web
IP Internet Protocol
LXC Linux Containers
NUC Next Unit of Computing brand of Intel small computers
RPi Raspberry Pi brand of SBC
SBC Single-Board Computer
SSD Solid State Drive mass storage
VPN Virtual Private Network
VPS Virtual Private Server (opposed to shared hosting)
ZFS Solaris/Linux filesystem focusing on data integrity
nginx Popular HTTP server

11 acronyms in this thread; the most compressed thread commented on today has 10 acronyms.

[Thread #566 for this sub, first seen 3rd Mar 2024, 08:45] [FAQ] [Full list] [Contact] [Source code]

[–] TheCorminator@lemmy.ml 3 points 8 months ago (1 children)

What hardware are you running it on? I set mine up originally on a raspberry pi 3b and the web interface was very slow, but upgrading it to a RPi4 with 4GB RAM made a massive difference. Though I suspect some of that was that the data and database were being stored on an external SSD in both cases, the RPi4 had a usb 3 interface and dedicated Ethernet, but the 3b had a single USB 2 bus to share between the Ethernet and SSD.

load more comments (1 replies)
[–] possiblylinux127@lemmy.zip 2 points 8 months ago

I've never experienced slowness and I'm accessing it from behind two proxies and a VPN. Can you share some information about your setup?

[–] rambos@lemm.ee 2 points 8 months ago

I run linuxserver.io docker container, disabled almost all apps and its been running rock solid and quite fast on old celeron. It takes 3-5 sec to open a web page, but I mostly use desktop/android app anyway

[–] bjoern_tantau@swg-empire.de 2 points 8 months ago

Pretty sluggish for me as well. Bare metal install with Apache, PHP 8.3, since a few days PostgreSQL and the whole Redis memcached opcache whatevercache stuff. Next step would be to check if the AIO Docker is the magical thing that makes it fly.

Some 8 core CPU I'm too lazy to look up, 16 GB RAM and two HDDs. SSDs would probably help, I guess.

[–] Clearwater@lemmy.world 2 points 8 months ago* (last edited 8 months ago)

Docker, using the nextcloud:stable image (not-all in-one) with postgres, behind nginx, and finally ZFS with 2x modern HDDs for storage. I run the stock apps plus a small handful, and have carried the same database through many versions over the last 5 years.

It's usable, but definitely not snappy.

The web interface for files is fine. Not instantaneous at all but not a huge problem. I have about 1TB of files (images and videos) in one folder, then varying files everywhere else. I suspect that the number of files (but probably not the size) is causing the slowdown.

Switching to, for example, the notes app is incredibly slow, and the NC Android app is just as bad.

[–] MOUCHE_A_MERDE@jlai.lu 2 points 8 months ago

I use it on cheap vps since ~4yrs and work "well" but I've never had a single major update that didn't have an issue on my LXC/Alpine container 😒 One moment it's the packages name that have changed, one time it's PHP version, another it's a config, another is a addon, last time that was opcache, ... and I'm a bit tired of having to spend hours each time doing maintenance of it.

I really think I'm going to go back to something simpler but more solid like an SSHFS or similar.

[–] n3ur0n@discuss.tchncs.de 1 points 8 months ago (2 children)

Mine runs very smoothly. I set it up on a Raspberry Pi 4 (4GB) with an external 1TB drive. I run it in docker with the official (?) image and can't remember having set any special config. If you have any questions, I'm happy to answer them. :)

load more comments (2 replies)
[–] solrize@lemmy.world 1 points 8 months ago

Mine is not great but is ok. Main special thing I did was put it on a vps very close to home, for short ping time. That was to get lower latency voice chat with nextcloud talk, but I haven't been using that at all.

[–] atzanteol@sh.itjust.works 1 points 8 months ago* (last edited 8 months ago)

You've told us nothing about your hardware.

I've been running nextcloud for some time with this setup:

KVM virtual machine with 4 cores / 8 GiB RAM
docker image: `nextcloud:28.0.2-apache` with db: `mariadb:11.1`

The UI has never been what one would call... "fast". Especially on first load of a page or directory. It's been adequate for me though. Once I click around a bit it caches enough things to feel fairly responsive. I also mount /var/lib/nextcloud off a network share so I'm sure that hits my performance some as well.

Nextcloud leans on the database a lot so be sure to have a local and quick storage for it (no - don't run it on your raspberry pi). There are also cleanup cron jobs and indexes that need to be updated when doing upgrades that help performance as well.

[–] mhzawadi@lemmy.horwood.cloud 1 points 8 months ago (1 children)

My nextcloud was almost instant, then the upgrade to v28 seems to have broke a load of things and now is very slow.

  • nginx LB in LXC
  • qemu vm with PHP and nginx on it
    • as many PHP optimisations as I can find
  • qemu vm with just mysql
    • as many MySQL optimisations as I can find
  • docker notify thing on the docker swarm vms

All on the same host with other things

[–] atzanteol@sh.itjust.works 1 points 8 months ago (2 children)

Have you created any indexes the new release might have needed? Nextcloud doesn't create them by default.

https://help.nextcloud.com/t/some-indices-are-missing-in-the-database-how-to-add-them-manually/37852

load more comments (2 replies)
load more comments
view more: next ›