freamon

joined 1 year ago
MODERATOR OF
 

PieFed - Explore Anything, Discuss Everything.

 

This is probably just me, but I found INSTALL.md to be a bit confusing.

So, for a fresh install of Ubuntu in a Windows Hyper-V VM, this is the list of steps I took to get something that at least looks like it might be the right thing:

remove unattended-upgrades, and clean up after OS install

(nothing to do with PieFed, just some necessary Ubuntu weirdness)

sudo systemctl stop unattended-upgrades
sudo apt-get purge unattended-upgrades
sudo apt autoremove

install postgresql 16

sudo apt install ca-certificates pkg-config
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" >> /etc/apt/sources.list.d/pgdg.list'
sudo apt update
sudo apt install libpq-dev postgresql

install python libs

sudo apt install python3-pip python3-venv python3-dev python3-psycopg2

install redis server

sudo apt install redis-server

install git

sudo apt install git

set up database

sudo -iu postgres psql -c "CREATE USER pyfedi WITH PASSWORD 'pyfedi';"
sudo -iu postgres psql -c "CREATE DATABASE pyfedi WITH OWNER pyfedi;"

clone PieFed

git clone https://codeberg.org/rimu/pyfedi.git

cd into pyfedi, set up and enter virtual environment

cd pyfedi
python3 -m venv ./venv
source venv/bin/activate

use pip to install requirements

pip install wheel
pip install -r requirements.txt

edit .env file

cp env.sample .env
nano .env (change SECRET_KEY to some random sequence of numbers and letters)

initialise database, and set up admin account

flask init-db

run the app

flask run
(open web browser at http://127.0.0.1:5000)
(log in with username and password from admin account)

Maybe this will help someone else (or maybe someone has spotted something that I missed - like I say: it looks right when loaded in a browser, but I'm not 100% sure)

 

From my nginx access log

your.ip.address - - [21/Feb/2024:06:53:19 +0000] "POST /inbox HTTP/1.1" 200 0 "-" "Lemmy/0.19.2; +https://feddit.de"
your.ip.address - - [21/Feb/2024:06:53:21 +0000] "POST /inbox HTTP/1.1" 400 0 "-" "Lemmy/0.19.2; +https://feddit.de"

This was "https://feddit.de/activities/like/19ab3a68-e9ae-4218-8ca2-d8cc885e96f9" being sent twice.

I've reported this problem to other affected servers that I've seen:
the lemmy.ca post suggests the problem was something to do with running multiple containers with the same index number;
the endlesstalk.org post suggests that re-starting the backend containers is a fix
(their answers will likely more sense to you than to me, as I don't run lemmy).

Thanks! (and apologies for this being in English)

 

From my nginx access log:

your.ip.address - - [21/Feb/2024:06:50:09 +0000] "POST /inbox HTTP/1.1" 200 0 "-" "Lemmy/0.19.3; +https://lemmy.sdf.org"
your.ip.address - - [21/Feb/2024:06:50:09 +0000] "POST /inbox HTTP/1.1" 400 0 "-" "Lemmy/0.19.3; +https://lemmy.sdf.org"
your.ip.address - - [21/Feb/2024:06:50:09 +0000] "POST /inbox HTTP/1.1" 200 0 "-" "Lemmy/0.19.3; +https://lemmy.sdf.org"
your.ip.address - - [21/Feb/2024:06:50:09 +0000] "POST /inbox HTTP/1.1" 400 0 "-" "Lemmy/0.19.3; +https://lemmy.sdf.org"

2 of the entries are "https://lemmy.sdf.org/activities/like/88bc5b6d-f11f-4245-90aa-908e43befe97" being sent twice,
the other two are "https://lemmy.sdf.org/activities/like/437327e5-a262-46bc-8ce7-1c2c5bd440b3" being sent twice

I've reported this problem to other affected servers that I've seen:
the lemmy.ca post suggests the problem was something to do with running multiple containers with the same index number;
the endlesstalk.org post suggests that re-starting the backend containers is a fix
(their answers will likely more sense to you than to me, as I don't run lemmy).

Thanks!

 
 

Hi. Just looking at what lemmy.ca sends my server:

From nginx log:

your.ip.address - - [20/Feb/2024:03:48:47 +0000] "POST /inbox HTTP/1.1" 200 0 "-" "Lemmy/0.19.3; +https://lemmy.ca"               
your.ip.address - - [20/Feb/2024:03:48:49 +0000] "POST /inbox HTTP/1.1" 400 0 "-" "Lemmy/0.19.3; +https://lemmy.ca"         
your.ip.address - - [20/Feb/2024:03:48:57 +0000] "POST /inbox HTTP/1.1" 400 0 "-" "Lemmy/0.19.3; +https://lemmy.ca"              

Dumping the JSONs reveals 3 duplicate files, all containing:

"id": "https://lemmy.ca/activities/create/0968bf93-ac05-4178-bf3f-28cdc65fc338"
"actor": "https://lemmy.ca/u/HairyOldCoot"
"object": {
  "id": "https://lemmy.ca/comment/7454502"            
  "content": "That was an episode of Sliders."
  "published": "2024-02-20T03:48:45.810068Z"

These are 3 Creates, not 1 Create and 2 Updates or anything. I've chosen a comment 'cos that's public info, but it's the same for all other activity too (Votes, Deletes, etc).

lemmy.ca isn't alone in this. endlesstalk.org sends everything twice (info posted here), as does lemmy.sdf.org and mander.xyz, but lemmy.ca is the only one I've seen send stuff 3 times. Other instances (e.g. aussie.zone, feddit.nl, lemm.ee, lemmings.world, lemmy.world, programming.dev, reddthat.com, sh.itjust.works, slrpnk.net) don't, but there's nothing obvious like lemmy version numbers to indicate the difference.

Whilst I'd prefer you didn't send me stuff 3 times, I'm mostly mentioning it because I doubt it's good for your own resources to send every activity by every lemmy.ca user out multiple times. Also, the OPs of my community are from Mastodon, so I imagine you're sending them the same message 3 times too ...

 

I just upvoted a comment in a community hosted on my site, and in the nginx log I can see:

ip.address - - [19/Feb/2024:14:33:31 +0000] "POST /inbox HTTP/1.1" 200 0 "-" "Lemmy/0.19.3; +https://endlesstalk.org"
ip.address - - [19/Feb/2024:14:33:43 +0000] "POST /inbox HTTP/1.1" 200 0 "-" "Lemmy/0.19.3; +https://endlesstalk.org"

Dumping out the activity, I can see:

... (single vote from account on another instance) ...                   
{
  "@context": [
    "https://join-lemmy.org/context.json",
    "https://www.w3.org/ns/activitystreams"
  ],
  "id": "https://endlesstalk.org/activities/like/f102d062-dfe9-4ece-96e8-310a09b249ba",
  "actor": "https://endlesstalk.org/u/freamon",
  "object": "https://sh.itjust.works/comment/9061222",
  "type": "Like",
  "audience": "https://lemmon.website/c/tails"
}
... (single vote from account on another instance) ...        
{
  "@context": [
    "https://join-lemmy.org/context.json",
    "https://www.w3.org/ns/activitystreams"
  ],
  "id": "https://endlesstalk.org/activities/like/f102d062-dfe9-4ece-96e8-310a09b249ba",
  "actor": "https://endlesstalk.org/u/freamon",
  "object": "https://sh.itjust.works/comment/9061222",
  "type": "Like",
  "audience": "https://lemmon.website/c/tails"
}
... (single vote from account on another instance) ...        

It's the same for comments too (if I grep the dump for other people's comments, there's only one, but there's two for comments made by me)

EDIT: can also see dupes from lemmy.ca (they actually sent the same Like 3 times).

 
 
 

For Season 1, it took a extra year for the FX ... so maybe this means Season 2 will appear in February next year?

Maybe they were able to get some done during the strikes. Or maybe Andor will get shoved up the priority queue. Either way, it could even be out later this year.

Looking forward to it either way. I'm sure I'll find time to squeeze in an extra rewatch of Season 1 in the meantime ...

[–] freamon@endlesstalk.org 0 points 10 months ago

No, but you have to be careful - enough people buy the merch for the 2-second appearance and they'll end up dedicating an entire TV show to them, and then you're stuck saying "Oh what this? No, you don't understand, I bought this ages ago ..."

[–] freamon@endlesstalk.org 0 points 1 year ago (1 children)

'EU Wednesdays' have gone from something that everyone ignored to a thing that threatens the peace and stability of this entire Community.

[–] freamon@endlesstalk.org 0 points 1 year ago (3 children)

log into lemmy.world, ideally from a browser, not an app or a frontend, click your account in the top-right and choose settings. Then it's this one:

[–] freamon@endlesstalk.org 0 points 1 year ago (5 children)

Unrelated to your question, but you seem to have ticked the option in your settings that indicate that you are a bot, so anyone with a blanket ban on bots won't see anything you write.

[–] freamon@endlesstalk.org 0 points 1 year ago (1 children)

TempleOS. All other operating systems are sinful.

[–] freamon@endlesstalk.org 0 points 1 year ago (1 children)

Especially since, and correct me if I am wrong, but every instance holds all of the data for all of the other instances too? (that they are federated with).

Just the text I think. It's not nothing, but if you upload an image to your instance as part of a post, the text is copied to my instance, but with just a link to the image, so it could be worse.

[–] freamon@endlesstalk.org 0 points 1 year ago (1 children)

I use to play around with a little device called Open Pandora (from when System-On-A-Chip really became a thing; it looked like a bulky Nintendo DS and was mostly used to emulate old games (including Nintendo DS ones, interestingly).

I made an alternative desktop environment for it (so you switch from using XFCE to Openbox).

Anyway, this wallpaper reminds me of that time:

[–] freamon@endlesstalk.org 0 points 1 year ago (1 children)

I'm not sure, tbh. I'm feeling pretty doomy about Lemmy lately.

I've been involved in actively trying to build up an existing Community: I posted stuff, people saw it on All, and subscribed. From that point, growth should be exponential - if you get an extra 100 subscribers, at least 1 of them should be able to overcome their crippling insecurity and post something, but in reality, nothing happened. I kept posting, but repeated mining of my own sense of what's funny just revealed how far adrift my own sense of humour is from a universal sense, and that was that.

You can do what you like to try to grow a Community, but if the people you bring in are the same type of Entitled Toilet Browsers you already have, it won't mean much.

[–] freamon@endlesstalk.org 0 points 1 year ago (1 children)

Well, that's just established canon at this point. I guess I'm just questioning whether any of the participants are really into it ...

[–] freamon@endlesstalk.org 0 points 1 year ago (1 children)

It depends on the bot. That one on lemmit online is as dumb as rocks. The Boycott Reddit Bot is doing a decent-enough job of generating posts that people reply to.

view more: next ›