Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to the latest version #34

Closed
the7thNightmare opened this issue Feb 27, 2023 · 11 comments · Fixed by #50
Closed

Upgrade to the latest version #34

the7thNightmare opened this issue Feb 27, 2023 · 11 comments · Fixed by #50

Comments

@the7thNightmare
Copy link

Describe the bug

Lemmy has released a newer version almost one month ago (announcement)

Context

Lemmy has released v0.17.2, while this YunoHost still in version 0.16.7.

@mdesmedt
Copy link

mdesmedt commented Apr 27, 2023

Upgrading to 17.2 seems to be a bit problematic with the current setup of lemmy_ynh, as lemmy_ynh seems to be using the default system-wide Postgres package (13.9 on Debian11) while Lemmy 17.2 requires Postgresql 15.

I've been looking at fixing the upgrade script, and it seems like perhaps the right approach here is to migrate the database out of the system-wide Postgresql instance and into the Docker-compose postgres:15-alpine instance. This way the database will be isolated from the rest of the system. But I don't have enough experience with YunoHost and containers to be sure this is wise...

Edit: Well that'd require the whole Lemmy installation to use Docker. Which seems to be a thing not commonly done in YunoHost apps for some reason. So yeah I don't know how YunoHost can support Lemmy 17.2

@ericgaspar
Copy link
Member

ericgaspar commented May 26, 2023

IMO it is better to wait for Debian Bookworm support on YunoHost as it will have PostgreSQL 15 as default.

Also I am updating Lemmy to the last commit and moving to YunoHost v2 app package.
https://github.com/YunoHost-Apps/lemmy_ynh/tree/testing

No idear as which version is shipping as I cannot test...

@mdesmedt
Copy link

So Debian Bookworm is here. Would upgrading my server allow me to get the latest version of Lemmy? While running this out of date version I've been encountering quite a few problems, bugs and incompatibilities which are hopefully fixed in the latest upstream.

@Vardorien
Copy link

So Debian Bookworm is here. Would upgrading my server allow me to get the latest version of Lemmy? While running this out of date version I've been encountering quite a few problems, bugs and incompatibilities which are hopefully fixed in the latest upstream.

You won't get the newest version of lemmy until an update is pushed to this repo for the app.

@mdesmedt
Copy link

You won't get the newest version of lemmy until an update is pushed to this repo for the app.

Yeah I understand. I was ready to experiment with Debian 12 and perhaps make a pull request. But what I didn't expect was YunoHost itself is not Debian 12 ready, for understandable reasons, so it's going to take some time.

The more I use YunoHost the more I wish it was container-based, so application dependencies can be managed outside of the package manager of the server running the YunoHost installation. The current model seems a bit difficult to manage, and restricted to specific Debian/Ubuntu versions to ensure compatibility with applications...

@retiolus
Copy link

Maybe this could help: LemmyNet/lemmy-docs#212

@retiolus
Copy link

IMO it is better to wait for Debian Bookworm support on YunoHost as it will have PostgreSQL 15 as default.

Even if Postgresql 15 comes by default on the new version of debian, it's currently possible to install it anyway, isn't it? Maybe with the way YunoHost works, no?

I think YunoHost is / could be a big factor in the massive Lemmy (and even Kbin one day?) server implementation with the big Reddit migration going on right now. It's really a shame we're not the latest version.

@mdesmedt
Copy link

mdesmedt commented Jun 22, 2023

Even if Postgresql 15 comes by default on the new version of debian, it's currently possible to install it anyway, isn't it? Maybe with the way YunoHost works, no?

Yes, you can grab Postgresql 15 for Debian 11 from various places including apt.postgresql.org. However it still seems like a pain, as you would presumably have to set this up specifically for this Lemmy YunoHost installation in order to not introduce conflicts with other potential applications on the server. I can understand why the maintainers of lemmy_ynh might not want to do it...

With Lemmy absolutely exploding in popularity right now it really is unfortunate this version is so far behind. I'm having a lot of problems with incompatibilities between my instance and other more up to date instances, and the mobile apps I've tried don't support this old version either :(

By the way I tried to set up Lemmy manually using their official instructions and those instructions are so totally broken. It made me again appreciate what YunoHost and its app maintainers are doing for us. Even though it may seem like I'm complaining 😛

@jahway603
Copy link

Issue #58 requires this Issue to be resolved.

@jahway603
Copy link

Lemmy.world was recently hacked & defaced by a serious cross-site scripting vulnerability. How many Yunohost instances will be hacked before this module is upgraded to the latest version?

@poVoq
Copy link

poVoq commented Jul 10, 2023

AFAIK this specific hack was done through a vulnerability that was introduced with the custom emojis in 0.18.0.

But in general the JS UI code seems not very well tested, so quick updates are probably good.

@ericgaspar ericgaspar linked a pull request Jul 12, 2023 that will close this issue
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants