this post was submitted on 02 Aug 2023
156 points (92.4% liked)

Selfhosted

40040 readers
565 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
[–] [email protected] 43 points 1 year ago (2 children)

I'm not done but I'm so tired of just stupid error messages that don't help from developers. I love the open source community but for gods sake devs, handle your errors in a format that makes sense.

Nextcloud or others, it's always the same. I either get a 200 line stacktrace that means absolutely nothing to me because the dev didn't bother to handle the exception (like you submit a form and get a null reference back. It sure would be nice to know what field was null) or of course the infamous "Exception occurred" and nothing else.

My favorite was I tried to submit to Jellyfin a fix for one of their very opaque exceptions, keep the stack trace but rewrite the error message like "x exception occurred, do you have permissions to do that?" Or something and the PR was rejected. I just can't even with that

[–] [email protected] 6 points 1 year ago (2 children)

My favorite was I tried to submit to Jellyfin a fix for one of their very opaque exceptions, keep the stack trace but rewrite the error message like "x exception occurred, do you have permissions to do that?" Or something and the PR was rejected. I just can't even with that

Out of interest, which PR was that?

It's uncommon to rewrite exception messages to be user friendly, they are for developers. The exception shouldn't be thrown in the first place if it's a common issue or the error message should be more generic for unhandled problems.

[–] [email protected] 28 points 1 year ago (1 children)

I strongly disagree with this, any error message shown to the user should be helpful to the user

[–] [email protected] 10 points 1 year ago (1 children)

I think you misunderstood, this is about exceptions, which shouldn't be shown to users unless they ask for it.

Exceptions are not helpful to users most of the time, as shown above. They need instructions on how to report issues instead since they most likely can't fix an unhandled exception by themselves.

[–] [email protected] 8 points 1 year ago

Underrated comment.

To put it into user perspective:

Exception X with error code xxx means Y. Y should be shown via a modal dialog to the user. The state of the application has to be reverted to a valid state as error handling.

The exception/error gets logged, the user doesn't receive a exception but the interpretation of the error is shown to him via the UI.

[–] [email protected] 7 points 1 year ago

ehh I try to keep me here and my real github separate. I'm all for exception messages being for developers especially in logs, but things also shouldn't error silently either. This was a case where there was something different with my OS I was running and I wanted to show an error that there was a common reason for that exception being thrown. This was years ago though, so I don't remember details

[–] [email protected] 6 points 1 year ago

I'm also a develop and my philosophy is that stack traces are for the developers but they should be translated to informative error messages for the user. Otherwise you're doing security through obscurity.