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

0.18.1 #50

Merged
merged 40 commits into from
Jul 12, 2023
Merged

0.18.1 #50

merged 40 commits into from
Jul 12, 2023

Conversation

ericgaspar
Copy link
Member

Problem

  • Description of why you made this PR

Solution

  • And how do you fix that problem

PR Status

  • Code finished and ready to be reviewed/tested
  • The fix/enhancement were manually tested (if applicable)

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)

@ericgaspar
Copy link
Member Author

!testme

@yunohost-bot
Copy link
Contributor

😜
Test Badge

@retiolus
Copy link

retiolus commented Jun 23, 2023

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

@ericgaspar
Copy link
Member Author

!testme

@yunohost-bot
Copy link
Contributor

🌻
Test Badge

@ericgaspar
Copy link
Member Author

!testme

@yunohost-bot
Copy link
Contributor

😜
Test Badge

@ericgaspar
Copy link
Member Author

!testme

@yunohost-bot
Copy link
Contributor

May the CI gods be with you!
Test Badge

@mdeabreu
Copy link
Contributor

mdeabreu commented Jul 10, 2023

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.

@ericgaspar
Copy link
Member Author

!testme

@yunohost-bot
Copy link
Contributor

Meow 🐈
Test Badge

@mdeabreu
Copy link
Contributor

mdeabreu commented Jul 11, 2023

Just ran the latest set of changes up to 808495b 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!

scripts/install Outdated Show resolved Hide resolved
Co-authored-by: Matthew DeAbreu <Matthew.DeAbreu@gmail.com>
@ericgaspar
Copy link
Member Author

!testme

@yunohost-bot
Copy link
Contributor

Alrighty!
Test Badge

@ericgaspar
Copy link
Member Author

@mdeabreu thank you for your help! merging to testing

@ericgaspar ericgaspar merged commit e39d256 into testing Jul 12, 2023
@ericgaspar ericgaspar deleted the 0.18.0 branch July 12, 2023 06:37
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 this pull request may close these issues.

Release 0.18.1 fixes a cross-site scripting vulnerability Upgrade to the latest version
4 participants