What is Lemmy?
Lemmy is a self-hosted social link aggregation and discussion platform. It is completely free and open, and not controlled by any company. This means that there is no advertising, tracking, or secret algorithms. Content is organized into communities, so it is easy to subscribe to topics that you are interested in, and ignore others. Voting is used to bring the most interesting items to the top.
Major Changes
This version brings major optimizations to the database queries, which significantly reduces CPU usage. There is also a change to the way federation activities are stored, which reduces database size by around 80%. Special thanks to @phiresky for their work on DB optimizations.
The federation code now includes a check for dead instances which is used when sending activities. This helps to reduce the amount of outgoing POST requests, and also reduce server load.
In terms of security, Lemmy now performs HTML sanitization on all messages which are submitted through the API or received via federation. Together with the tightened content-security-policy from 0.18.2, cross-site scripting attacks are now much more difficult.
Other than that, there are numerous bug fixes and minor enhancements.
Support development
@dessalines and @nutomic are working full-time on Lemmy to integrate community contributions, fix bugs, optimize performance and much more. This work is funded exclusively through donations.
If you like using Lemmy, and want to make sure that we will always be available to work full time building it, consider donating to support its development. No one likes recurring donations, but they’ve proven to be the only way that open-source software like Lemmy can stay independent and alive.
- Liberapay (preferred option)
- Open Collective
- Patreon
- Cryptocurrency (scroll to bottom of page)
Upgrade instructions
Follow the upgrade instructions for ansible or docker. There are no config or API changes with this release.
This upgrade takes ~5 minutes for the database migrations to complete.
You may need to run sudo chown 1000:1000 lemmy.hjson
if you have any permissions errors.
If you need help with the upgrade, you can ask in our support forum or on the Matrix Chat.
AlexWIWA ( @AlexWIWA@lemmy.ml ) English116•11 months ago80% reduction is crazy! Good job!
wiki_me ( @wiki_me@lemmy.ml ) English64•11 months agoUpdate on lemmy finances (not including cryptocurrencies)
patreon: $1,591/month
liberapay: $374.22 per week (about 1609 per month)
open collective: $2082 (29/6/2023 -> 29/7/2023)
Assuming 63K active users , the per user monetization of 0.08 dollar per user (Reddit’s revenue per monthly user is roughly $1.19).
Estimated developer salary for the two main developers is about 2600$, estimated median salary for developer in the US is about 10K a month.
For comparison firefish made about 1424$ ((29/6/2023 -> 29/7/2023) with an active users count of 11868 (or 8146 if you don’t count calckey, which i think is important because they added a pop up asking for donation, but i don’t know if that is after the name change) so that gives a per user monetization of 0.11 dollar per user ( or 0.17 not counting calckey).
Corrections are welcomed.
Blaze ( @Blaze@sopuli.xyz ) English9•11 months agoThanks for the insight!
Wren ( @wren@sopuli.xyz ) English62•11 months ago80%?? Legend
nutomic ( @nutomic@lemmy.ml ) English54•11 months agoIt was actually easy because a lot of data was stored which was never used at all.
Wren ( @wren@sopuli.xyz ) English43•11 months agoShhh let me compliment youuuu
netburnr ( @netburnr@lemmy.ml ) English10•11 months agoI was saving that data, you never know when it might come in handy.
natanael ( @natanael@lemmy.ml ) English1•11 months agoDo we have a datahoarder forum here yet? Need to bring back forum names as hashtags
YⓄ乙 ( @yoz@aussie.zone ) English27•11 months ago🙏 Thank you Devs.
Kind People, please donate .
JaneDoe ( @JaneDoe@lemmy.ml ) English6•11 months agoAs a donor I had to spend some amount of time finding where to donate, that could be more explicit
nachtigall ( @nachtigall@feddit.de ) English26•11 months agoThank you for your and the contributors’ work!
MarsAgainstVenus ( @MarsAgainstVenus@fedimav.win ) English26•11 months agoUpgraded without issue (other than manually restarting docker after upgrading)! Thanks!
I did it with Lemmy-Easy-Deploy by simply running
sudo ./deploy.sh -y
fitz ( @lemmy@linkopath.com ) English6•11 months agoSame, updated effortlessly.
Die4Ever ( @Die4Ever@programming.dev ) English22•11 months agowell my Lemmy backups did exceed 10MB, but the 0.18.3 database optimizations brought me under 10MB again lol
11M Jul 28 22:35 bak-lemmy-2023-07-28_22.35.52.zip 8.8M Jul 28 22:39 bak-lemmy-2023-07-28_22.38.59.zip
(hosting an instance with communities but no users doesn’t need much hardware at all btw)
maegul ( @maegul@lemmy.ml ) English8•11 months agoWilling to share any numbers? How many communities and how many resources?
Die4Ever ( @Die4Ever@programming.dev ) English10•11 months agothere’s not a lot on there
https://lemmy.mods4ever.com/communities
10 communities, few hundreds of subs, maybe like 30 posts
unzipped storage usage:
# du -h --max-depth=2 . | sort -h 8.0K ./volumes/lemmy-ui 9.5M ./volumes/pictrs 76M ./volumes/postgres 85M . 85M ./volumes
Andreas Fornberg ( @Leatherface@lemmy.helvetet.eu ) English3•11 months ago1,4G jul 29 19:15 lemmy_dump_2023-07-29_19_01_51.sql.gz 262M jul 30 12:58 lemmy_dump_2023-07-30_12_56_35.sql.gz
mvuvi ( @mvuvi@baraza.africa ) English22•11 months agoNeat!
If you can, please keep supporting the devs with some resources.
- Sky Cato ( @skycat@beehaw.org ) English16•11 months ago
Please make Lemmy easily crawable by search engines so people can get useful search results
morrowind ( @morrowind@lemmy.ml ) English21•11 months agoIt is, the problem is search engines aren’t designed to deal with federation. Ty search-lemmy.com for one that is
ohai ( @ohai@subsubd.com ) English16•11 months agodocker compose down && docker compose pull && docker compose up -d
update was flawless. nice! Chris Ely ( @tcely@fosstodon.org ) 11•11 months agoYou can pull new images while the old ones continue running happily. That
docker-compose down
command is completely unnecessary. ohai ( @ohai@subsubd.com ) English8•11 months agothat’s fair, just force of habit, i guess. thanks for the heads up! :)
- RoundSparrow ( @RoundSparrow@lemmy.ml ) English6•11 months ago
docker compose down &&
Looks like the & parsing in code blocks is another bug in 0.18.3 like the post title one. I’ll add your comment to the GitHub issue.
- RoundSparrow ( @RoundSparrow@lemmy.ml ) English14•11 months ago
Heads-up that a new issue on GitHub reporting this problem upgrading from 0.18.2 to 0.18.3:
thread 'main' panicked at 'Couldn't run DB Migrations: Failed to run 2023-07-08-101154_fix_soft_delete_aggregates with: syntax error at or near "trigger"', crates/db_schema/src/utils.rs:221:25 note: run with 'RUST_BACKTRACE=1' environment variable to display a backtrace
https://github.com/LemmyNet/lemmy/issues/3756
If you use “Lemmy from scratch” install,
you may be on an older PostgreSQL that Ubuntu distro provides, not the same as the Docker install method.
katie ( @katie@lemmy.tillicumnet.com ) English10•11 months agoYes, I had to upgrade from Postgres 13 to get this working. I’m not sure if there’s a minimum Postgres version specified anywhere in the docs, I took a quick look but couldn’t find it.
For anyone else running Debian like me, you can add the official Postgres repo and use the pg_upgrade script to migrate to the new version.
- RoundSparrow ( @RoundSparrow@lemmy.ml ) English9•11 months ago
I’m not sure if there’s a minimum Postgres version specified anywhere in the docs, I took a quick look but couldn’t find it.
I do not find it in the “From Scratch Install” documentation. I will work to revise those documents this weekend to warn people that 0.18.3 and later is incompatible. Thank you again for sharing.
anon_water ( @anon_water@lemmy.ml ) English13•11 months agoThank you for all of your hard work devs! I’m a supporter with monthly payments.
Salamander ( @Sal@mander.xyz ) English12•11 months agoUpgraded! No issues.
Again, thank you for your amazing work!! :D
wpuckering ( @wpuckering@lm.williampuckering.com ) English9•11 months agoRan into this issue with database migrations:
Failed to run 2023-07-08-101154_fix_soft_delete_aggregates with: syntax error at or near "trigger"', crates/db_schema/src/utils.rs:221:25
Will open an issue on GitHub.
That has to do with you running a custom install with an older postgres that lemmy doesn’t support.
wpuckering ( @wpuckering@lm.williampuckering.com ) English16•11 months agoI’ll update to a newer Postgres version and report back. It would be nice to know what the minimum supported version is, maybe that should be added to the documentation.
EDIT: Upgrading to Postgres 15 resolved my issue, but not without some pain since the migration scripts had already tried to run on my Postgres 13 database. So after dumping the 13 database, I had to make some modifications after the fact to satisfy the migration scripts. It was a pretty janky process but I seem to be in a good place now.
I would highly advise communicating to people that they should upgrade past Postgres 13 before trying to upgrade Lemmy to 0.18.3 or higher, or you’re gonna have a bad time.
- RoundSparrow ( @RoundSparrow@lemmy.ml ) English6•11 months ago
Thank you for sharing.
Phil ( @phil@l3mmy.com ) English8•11 months agoSuper straightforward upgrade via docker compose, thanks for all the hard work ❤️