this post was submitted on 02 Aug 2023
132 points (91.2% liked)

Selfhosted

40041 readers
722 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
 

Just had NextCloud denying my credentials (not for the first time). I know they weren't wrong because I'm using a password manager. Logs didn't say much. Was about to reinstall (again, not the first time nextcloud went bonkers on me) before I tried a docker compose down && docker compose up. Lo and behold after a restart the credentials worked again.

This stuff is just way too flaky for something so important.

Is OwnCloud good again? My main usecase is saving photos but I don't want them locked away in a database so SeaFile is out.

Edit: I'm going to take the time to reply to you all, bit busy with work and family suddenly. But a little update - I've quickly setup Immich and fired up the CLI to import my library. AFAIK the files are still stored on disk somewhere but metadata is in a database. I didn't realize this before, knowing that I think my mind is made up and Immich is the best solution. Thanks everyone!

you are viewing a single comment's thread
view the rest of the comments
[–] Nsh@lemmy.ca 14 points 1 year ago (1 children)

I haven't got this kind of issue with nextcloud, I'm pretty sure you can reset your password using occ via cli

[–] midas@ymmel.nl 2 points 1 year ago (1 children)

I'm using the LSIO docker image and I could not locate the occ file to fire off the reset - but even then - I didn't need to reset my password anyway..

[–] u_tamtam@programming.dev -2 points 1 year ago (1 children)

That's your problem, just there: you deployed a one size fits all blackbox of a container that, by definition, on top of pulling all the inefficiencies and redundancies of docker, isn't tuned for your specific hardware and operational needs. I get the appeal of containers, but if you want to self-host responsibly, you've got to be in control of what's running and how.

Sorry if this sounds harsh.

[–] midas@ymmel.nl 1 points 1 year ago (1 children)

I honestly don't see how my issues are related to docker. Sure the occ app was missing (or I just couldn't find it, but the conclusion was that I didn't even need it)

I'm running Linux so there's not really any inefficiencies in regards to resources AFAIK - it's just namespaces and cgroups.

[–] u_tamtam@programming.dev 1 points 1 year ago

I could give you plenty of reasons why you would be worse-off deploying from docker without deep understanding of what's going on, but to only list a few out of the obvious pile:

  • your container ships a bunch of things that you do not need and that take-up significant server resources. Not just nextcloud apps that you will never need but get loaded nonetheless, but also things like redis and a full-fledged collabora server that only make sense in a large-scale instances.

  • your container isn't tuned for your server because whoever made the container had no way to know that in advance. For instance, It might be that your php-fpm forks beyond your multithreading or IO capabilities, that your application cache isn't adequate wrt. your system's RAM memory, etc

  • your containers duplicate functionalities from each other and from the operating system. You don't need more than one http server, database, application process manager, interpreter, … but they add-up nonetheless and reduce the pool of available resources from the rest of the system and containers.