this post was submitted on 22 Jun 2023
7 points (100.0% liked)

Selfhosted

40023 readers
1114 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
 

I'm interested in running Lemmy on an ARM64 host, mostly just for fun and because it's possible.

I've tried a couple of things without getting it right yet:

Building from scratch on Ubuntu 20.04 This went quite well but I was unable to get pict-rs working, so there was no image hosting. I followed this guide: https://join-lemmy.org/docs/administration/from_scratch.html I had to build imagemagick to get the ARM64 binary, however pict-rs did not run. Is it correct that it's included with the lemmy-server binary or am I understanding how it works wrong?

Using Docker images I was able to get Lemmy up and running using 0.17.3 ARM64 docker images (unfortunately 0.17.4 images don't exist yet). I set up an nginx reverse proxy on the host and was able to access the instance OK, however there was no connectivity between my instance and external sites. Looking in the logs I saw timeout errors:

lemmy_1     | LemmyError { message: None, inner: Request error: error sending request for url (https://kbin.social/u/Emptiness): operation timed out
lemmy_1     | 
lemmy_1     | Caused by:
lemmy_1     |     0: error sending request for url (https://kbin.social/u/Emptiness): operation timed out

So I was wondering if anybody had a guide out there to hosting Lemmy (preferably 0.17.4) on an ARM64 host, either by building it from scratch or by using Docker images. Or any other method really.

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

That does sound incredibly good for free.

Did you have any issues with pict-rs? Is it indeed included within the lemmy-server binary?

[–] BitOneZero@lemmy.world 1 points 1 year ago* (last edited 1 year ago) (2 children)

That does sound incredibly good for free.

It's a little too good to be true, they have been known to shut down people without notice... I wouldn't rely on it. And the screens to use it are kind of tricky, but there are lots of instruction videos, blogs and Reddit postings about it.

Did you have any issues with pict-rs? Is it indeed included within the lemmy-server binary?

I skipped that for now. I don't think ARM64 matters, Linux is Linux. I skipped it as I didn't want to take on policing images people upload, but as Lemmy improves I might change my mind.

I see no reason ARM64 should matter for Lemmy vs. x86, this is run of the mill stuff like PostgreSQL, Rust, NodeJS.

[–] ndr@lemmy.world 2 points 1 year ago

Damn, I checked out their website and it’s really tempting. I might try it a for a small hobby project that I won’t rely on long-term. Thanks for sharing!

[–] HorseFD@lemmy.world 0 points 1 year ago (1 children)

I've just started a new instance on Oracle Cloud given how good the free tier is.

I'm maxed out on everything free: 4 CPU cores, 24 GB RAM, 200 GB storage.

Do you have any idea what the implications are of changing the block volume performance up from the default balanced to higher performance or UHP? All I can find on pricing is here: https://www.oracle.com/cloud/storage/pricing/

But it doesn't mention anything about free tier eligibility.

[–] BitOneZero@lemmy.world 0 points 1 year ago (1 children)

No idea, I did find some Lemmy discussions on Oracle Cloud: https://lemmy.world/post/55124

[–] HorseFD@lemmy.world 1 points 1 year ago

I'm gonna jack it up to the highest performance and see if it eats into my first month's free credit.