Closed ericgaspar closed 1 year ago
!testme
It seems that several servers that updated to version 0.18 are having problems and have been offline for several hours. It also seems that this is only the case for the frontend and not the backend.
https://beehaw.org/post/726880
Edit: DDOS attack, not an error at 0.18 https://lemmy.ml/comment/909960
!testme
!testme
!testme
I think there are a couple of things going on here.
First, the latest release of Lemmy (0.18.1) requires Postgres 15, this should be satisfied by Debian 12 Bookworm once YunoHost upgrades to add support for it.
Second, the error seen in testing seems to be as a result of the sharp
node package. This could probably be fixed with the following ynh_npm install --global sharp
(not 100% sure if --global
is necessary).
I spun up a VM with a clean install of Debian 12, installed YunoHost using the bookworm install script, added the npm install line to the Lemmy install script and everything seems to be working as expected.
!testme
Just ran the latest set of changes up to https://github.com/YunoHost-Apps/lemmy_ynh/pull/50/commits/808495b43bb9d1b8d1863e3a9210f59b805c5f02 and unfortunately it still breaks, I did some local testing and it looks like it can be fixed quite easily. Simply change these two lines
#=================================================
# INSTALL THE SHARP
#=================================================
- pushd $install_dir
+ pushd $install_dir/lemmy-ui
ynh_use_nodejs
- ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn global add sharp
+ ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn add sharp
popd
This will change our directory to the lemmy-ui
subdirectory which is the part of the install that's failing. lemmy-ui
already comes with sharp
but it is built for the docker container so we will install it ourself over top of the copy of sharp they have (remove global
).
As an added bonus this seems to work on Debian 11!
!testme
@mdeabreu thank you for your help! merging to testing
Problem
Solution
PR Status
Automatic tests
Automatic tests can be triggered on https://ci-apps-dev.yunohost.org/ after creating the PR, by commenting "!testme", "!gogogadgetoci" or "By the power of systemd, I invoke The Great App CI to test this Pull Request!". (N.B. : for this to work you need to be a member of the Yunohost-Apps organization)