this post was submitted on 27 Jul 2023
10 points (100.0% liked)

Lemmy Support

4650 readers
4 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 5 years ago
MODERATORS
 

It's been a rough day. First I tried the lemmy-easy-deploy script because, hey, I'm lazy. That failed, so I then tried the ansible playbook and had some success with it. At first, Let's Encrypt was not working, and I had to sort out my dynamic dns provider.

Once that was sorted the playbook was running well, encryption was working properly, then I got an error that the docker didn't support arm v7 architecture. I then updated to Bullseye, Raspbian 11 and got a similar error that docker didn't support arm v8 architecture.

So what os do I need to be running on this pi to install an instance on it?

top 12 comments
sorted by: hot top controversial new old
[–] mrcarrot@lemmy.calebmharper.com 4 points 1 year ago (1 children)

Have you tried the 64-bit(arm64) Raspberry Pi OS? The Pi can't run 64-bit apps on a 32-bit OS, but the CPU is capable.

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

That was a problem that I had at one point and then I then reflashed the 64-bit Raspnberry Pi OS (no longer called raspnbian which I didn't know). When I run uname -a I get aarch64...

The specific error I'm getting is this:

FAILED! => {"changed": false, "errors": [], "module_stderr": "", "module_stdout": "0.18.2: Pulling from dessalines/lemmy\n", "msg": "Error: pull failed with no matching manifest for linux/arm64/v8 in the manifest list entries"}
[–] jlh@lemmy.jlh.name 3 points 1 year ago (2 children)

Lemmy doesn't run on arm atm due to cross-compile issues.

See the PR: https://github.com/LemmyNet/lemmy/pull/2806

[–] phoenix591@lemmy.phoenix591.com 2 points 1 year ago* (last edited 1 year ago)

it runs fine if you don't cross-compile and build it on the pi itself ( or emulate an arm system using qemu or similar)

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

I was able to install lemmy just now on the rpi. I used ubergeek77's stuff.

[–] housepanther@lemmy.goblackcat.com 1 points 1 year ago (1 children)

The documentation is kind of a dog's breakfast but you could try building it from source. Note that this is not easy and will require a lot of time and patience. I managed to do it on FreeBSD but never could get it working properly. Lemmy would federate but pictures wouldn't work and I eventually gave up.

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

I'm going to see if I can get it working on ubuntu 22 first.

[–] hitagi@ani.social 1 points 1 year ago (1 children)

Use ubergeek77's multiarch docker images instead of the official ones. Official ARM support for Lemmy stopped in version 0.17.3.

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

I saw it but I don't know how to use it.

[–] hitagi@ani.social 2 points 1 year ago (2 children)

Replace dessalines/lemmy:0.18.2 with ghcr.io/ubergeek77/lemmy:0.18.2 in your docker-compose.yml file. Do the same for lemmy-ui.

[–] BuckRowdy@lemmy.world 3 points 1 year ago

This got me working, but, for anyone who comes across this, the file to edit is lemmy.yml, and you drop in ghcr.io/ubergeek77 for dessalines. The only hurdle once I did that was installing docker-compose on the pi. Unfortunately you can't just install docker-compose with pip3 install docker-compose. Follow these instructions to install docker-compose. https://dev.to/elalemanyo/how-to-install-docker-and-docker-compose-on-raspberry-pi-1mo

Then just run the ansible playbook.

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

Wow, okay let me try that. I wish you had been around earlier! Thank you so much.

load more comments
view more: next ›