Open veale opened 1 year ago
Same trouble: https://paste.yunohost.org/raw/ixaciwafub
Tested with latest package, same trouble. Tried clearing Yarn cache, same trouble. If chromium is a dependency, why not make it get installed in the upgrade process?
i don't understand why a web browser is needed on a server :thinking:
a good question to ask upstream...
I don't see a live issue about it in the upstream repo. Is there somewhere in their docs or install instructions that describes the dependency? Should we start an issue up there for this? I don't think I have enough of an understanding as to what requires it / why to do that.
there is have a Matrix chanel for support: https://matrix.to/#/#hedgedoc:matrix.org?via=matrix.org&via=kif.rocks&via=tchncs.de
Just to confirm that installing chromium via terminal did allow me to successfully upgrade afterwards.
Hello, I'm one of the HedgeDoc core developers. I encountered this problem as well while working on the ARM Docker Image. The Problem here is that HedgeDoc 1 has a dependency on our CodeMirror fork. Because the dependency is referred by git URL, it must be built on the install system. For this it needs to install the dev dependencies of CodeMirro. One of the dev dependencies is puppeteer, which is a headless chromium which is used for running tests. So far so good, but puppeteer doesn't provide a prebuilt binary for arm64. So if no chromium is installed on the system the whole install process fails.
A hotfix for this problem is to set the env var PUPPETEER_SKIP_DOWNLOAD. The tests aren't executed anyway in the build process so it shouldn't matter. I'll have a talk with the other devs for a permanent solution.
Wait. Something is odd here. If I read the config correctly, then the yunohost app uses the prebuilt release.tar.gz file. Therefore it's not necessary to install the development dependencies because you don't need to build the frontend. CodeMirror is a development dependency.
This error could be prevented by installing the correct dependencies.
Thanks for looking into this issue @mrdrogdrog
I modified the code by removing bin/setup
and added these two lines like:
https://github.com/YunoHost-Apps/hedgedoc_ynh/blob/cc4d70a11a79c64a068ac7523e88bcf9c0335ab5/scripts/install#L136-L137
Actually.. executing /bin/setup
should do it correctly 🤔 I'm still looking for a more permanent solution.
@lightnin @isAAAc @veale Is version 1.9.7~ynh2
fixing this issue?
In order to test, is it sufficient to uninstall chromium via apt, and then try to do the upgrade and see if it works? Or does something else have to be done to get my (production) server into the correct state to test this?
@lightnin @isAAAc @veale Is version
1.9.7~ynh2
fixing this issue?
i upgraded on a vps yesterday without any trouble, but upgrading is offtopic on this issue , right ?
@lightnin @isAAAc @veale Is version
1.9.7~ynh2
fixing this issue?i upgraded on a vps yesterday without any trouble, but upgrading is offtopic on this issue , right ?
For me the failure always happened when I attempted upgrades, as I've had hedgedoc running on my server for a few years now. I never tried an initial install, but assume it would fail the same way in that case. So I don't think upgrades are off topic. I'm assuming you had not installed chromium on the VPS before upgrading, of course.
Hi, I ran into the same issue.
I tried to install HedgeDoc 1.9.7~ynh3 on my Raspberry PI 4 (4Go RAM, 64Go storage) with Yunohost 11.1.19 (stable) through the webadmin, and got an error (https://paste.yunohost.org/raw/okalufevov).
Then I ran apt install chromium
and tried again, but had another error (https://paste.yunohost.org/raw/ubirokukiy).
I tried with PUPPETEER_SKIP_DOWNLOAD env var to true but still can't install it (https://paste.yunohost.org/raw/filowosugi).
(Here is the link to the Yunohost forum post about my issue : https://forum.yunohost.org/t/hedgedoc-install-fails-on-rasp4-chromium-related-issue/24790)
Installing hedgedoc 1.9.6~ynh2 via the YunoHost GUI fails with the following error.
Manually installing chromium with
sudo apt install chromium
fixes the error.