this post was submitted on 13 Jun 2023
19 points (91.3% liked)

Selfhosted

40173 readers
650 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 trying to stand up a Lemmy instance, and for some reason I'm just not getting it. I've got a fair bit of experience in Linux and Docker. NPM is new to me, but doesn't seem difficult.

I've looked over several walkthroughs but it seems like they all don't quite work right. Does someone have a clear step-by-step that works, or could take the time to remote in and help me get this up?

I'm running on VMWare ESXi, and I've tried both Debian and Ubuntu to get the server up. Closest I got, the Docker containers would start but seem to be throwing errors internally and don't connect to one another.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 5 points 1 year ago (12 children)

I'm giving it a go at the moment. Have you looked at the ansible playbook available at https://github.com/LemmyNet/lemmy-ansible ?

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

I did. I could never get ansible to work when I was setting up the same machine. If you know how to set the inventory file up for that, I'm all ears.

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

Ansible was a breeze once I got it going.

I could never get ansible to work when I was setting up the same machine.

Could you post your inventory file?

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

So, I'm having what I assume is a very basic issue. Going through the ansible install steps, I've created an /etc/ansible/hosts with

[servers] server1 ansible_host=localhost

[all:vars] ansible_python_interpreter=/usr/bin/python3

My understanding is this should work, but ansible all -m ping is failing.

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

Sorry that these are screenshots and not files, but I'm working through Chrome Remote Desktop so my options are a bit limited. This is what I get when I execute 'ansible-playbook -i inventory/hosts lemmy.yml' regardless of whether I have it set to terry@ or root@, and whether I use --become or not.

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago)

Maybe you've already looked into this, but I checked the playbook and the error above is occuring when Ansible tries to run this command:

test -e /usr/bin/python || (apt -y update && apt install -y python3-minimal python3-setuptools)

If you manually run the part of the command in parentheses above you'll probably get the Release file error also listed above, and from there you might be able to find out what's up. I think that error usually has to do with your repository setup and/or the version of Ubuntu youre running, but Google can hopefully tell you for sure.

load more comments (8 replies)
load more comments (8 replies)