Phoenix1

joined 2 months ago
 

As suggested by the title, I've noticed in the most recent version of PieFed that the "bring it on" option for Trump and Musk news doesn't quite work...if you select that option, then you are asked on every login whether or not you would like to filter out Trump/Musk news, it only actually stops asking you if you select an option that applies a filter. If you apply no filter at all, you're asked if you'd like to apply one on every login. This is different behaviour from previous versions so I just assumed that it was an unintentional change!

 

As suggested by the title, I've noticed in the most recent version of PieFed that the "bring it on" option for Trump and Musk news doesn't quite work...if you select that option, then you are asked on every login whether or not you would like to filter out Trump/Musk news, it only actually stops asking you if you select an option that applies a filter. If you apply no filter at all, you're asked if you'd like to apply one on every login. This is different behaviour from previous versions so I just assumed that it was an unintentional change!

[โ€“] Phoenix1@piefed.social 1 points 2 months ago

MAIL_USE_TLS=True in my current configuration...that's what's really strange about it. The exact same configuration in Docker doesn't work for the bare metal install. I've yet to figure out why that is, I'm just glad that it works in the Docker version!

[โ€“] Phoenix1@piefed.social 1 points 2 months ago

Ah, my configuration looks very similar, the only difference is that I'm using Mailgun ๐Ÿ˜ I am self-hosting and our IP does allow HTTP/HTTPS, but not SMTP for obvious reasons!

[โ€“] Phoenix1@piefed.social 1 points 2 months ago

Thanks very much for the list of files that need to be modified, that makes it much more simple at least. It's possible to write out a text file with cat, in the event that an editor is not available, but it's not the most convenient thing. It works though!

If it would be possible for the developers to edit the scripts so that manually applying the fix is no longer possible in the future, that would be wonderful, but for now the error is gone at least!

[โ€“] Phoenix1@piefed.social 3 points 2 months ago (2 children)

From what I can tell, inside the Docker image, there is no Python virtual environment, so the script generates an error when it tries to activate one. Unfortunately there are several scripts that try to activate a virtual environment inside Docker, so there are a ton of these e-mails being generated. I guess it would be necessary to patch the line out of each script somehow, but how would one do that without access to a text editor?

 

I've successfully gotten PieFed up and running in its docker iteration and with help from folks here, I'm now backing things up as they should be! I noticed that cron is reporting an error in one of the scripts that is being called though, here is an example of the e-mail that I am receiving:

Subject: Cron phoenix@phoenix docker exec piefed_app1 bash -c "cd /app && ./send_queue.sh"

./send_queue.sh: line 3: venv/bin/activate: No such file or directory
[2026-01-26 03:25:03,595] INFO in init: Started!

I've checked the contents of the script and the line in question appears to be trying to activate a Python virtual environment inside the /app directory, but it appears that this is failing? I'm not sure if that means the entire script is failing as well, but it's certainly generating a lot of e-mails! Unfortunately the Docker image doesn't include an editor of any kind, so I was unable to change the contents of the script, or to install an editor or virtualenv. I'm not sure how to proceed!

[โ€“] Phoenix1@piefed.social 1 points 2 months ago (2 children)

Thank you, I tried this from my Docker version of the instance, mail seems to be sent as normal through that...I just need to figure out why it's happening with the non-Docker version, so I'll have to test that and check the logs once I get a chance. It's probably something in the "hard way" configuration that I didn't get right along the way!

[โ€“] Phoenix1@piefed.social 2 points 2 months ago (1 children)

Goodness, how do you handle password resets and the like? Unfortunately I won't be able to operate a PieFed server without SMTP support, but I haven't been able to figure out what the issue is like yourself.

[โ€“] Phoenix1@piefed.social 1 points 2 months ago

I'd like to thank you very much for this, it's easy to follow and it explains each of the steps well! I will go about turning this into a script for cron!

 

As the topic would suggest I've run into another problem with PieFed...I have Mailgun set up as my SMTP host for password resets and the like, the password to my knowledge is correct as I've tested the configuration out in a separate Python script and it logged into smtp.mailgun.org successfully on port 587.

Has anyone else set up Mailgun or similar external SMTP hosting that may be able to help debug the issue?

[โ€“] Phoenix1@piefed.social 2 points 2 months ago (2 children)

I appreciate all of the advice, it's really just my inexperience that's a problem here. It sounds as if it would be a simple matter of dumping the database from the Docker image and backing up the appropriate directories, but I'm having a heck of a time figuring out how to do that exactly. I'll keep trying though, but if any system admin out there could provide some concrete examples, I'd really appreciate it!

[โ€“] Phoenix1@piefed.social 2 points 2 months ago (1 children)

Unfortunately I haven't been able to figure this out, I was able to write a script for Mastodon that automated the process of dumping the database, copying the system folder and so on, I was able to restore a test backup I made successfully as well. I only say that to indicate that I have at least some familiarity with the shell, but not much ๐Ÿ˜ In the case of Mastodon it's running on "bare metal" so to speak rather than Docker, so this is probably much easier for someone who is familiar with Docker!

[โ€“] Phoenix1@piefed.social 2 points 2 months ago (3 children)

Thanks, that should be simple to figure out if it's just one step, although I've never dumped a database from a Docker image before...I'll have to do some searching and see if I can figure it out!

 

Hello! I've recently been testing out PieFed (I followed the Docker install instructions), it's actually working quite well... However, I'm a bit of a newbie system administrator, I was wondering if there was a guide or documentation available on how to back up/restore a PieFed instance installed this way? Being able to back up and restore the instance is the one stumbling block I need to get past in order to self host PieFed, so I would certainly appreciate any help that people can provide ๐Ÿ˜€ Thanks!