Error installing Jellyseerr - Yunohost API responded with error code 502

What type of hardware are you using: VPS bought online
What YunoHost version are you running: 12.0.16
What app is this about: Jellyseerr

Describe your issue

I have been trying to install Jellyseerr for the past few days and it would always hang at “building the app from source” for a few minutes. Then it would crash and displays the error message “The Yunohost API is not responding. Maybe ‘yunohost-api’ is down or got restarted?”

Share relevant logs or error messages

The installation log: https://paste.yunohost.org/raw/herinoraxi
The latest yunohost-api service log: hastebin

Hey! I have found a workaround by using docker and following this guide instead: How to install apps with Docker on Yunohost (how I did it)

But I’m not going to close this thread just yet, because I am still curious as to what I should have done/what I have misconfigured and I still want to install Jellyseerr natively.

So it seems it’s hanging at Creating an optimized production build ...

On our automatic tests, this specific step does take a good 40 seconds but that should still be “not that long”, at least not long enough to trigger a 502 on the yunohost API …

Naively I would say that maybe your VPS has a rather slow CPU, something along those lines, but it’s a rough guess