YunoHost-Apps / hedgedoc_ynh

HedgeDoc package for YunoHost
https://hedgedoc.org/
GNU General Public License v3.0
13 stars 8 forks source link

Failed when trying to install Hedgedoc. #14

Closed SimonLefort closed 3 years ago

SimonLefort commented 3 years ago

Hello,

Describe the bug I was trying to install Hedgedoc on a sub-domain. It didn't work and the application wasn't installed.

Versions

To Reproduce I tried from the webadmin but it's the same from the CLI :

    $ sudo yunohost app install hedgedoc
    Choose the domain where this app should be installed [mydomain.be | cloud.mydomain.be | pad.mydomain.be] (default: mydomain.be): pad.mydomain.be
    Choose the path where this app should be installed (default: /hedgedoc): /
    Should this app be exposed to anonymous visitors? [yes | no] (default: yes): yes
    Info: Installing hedgedoc...
    Info: [....................] > Validating installation parameters...
    Info: [....................] > Storing installation settings...
    Info: [+...................] > Finding an available port...
    Info: [#++++++.............] > Installing dependencies...
    Info: Installation of N - Node.js version management
    Info: '/etc/apt/trusted.gpg.d/hedgedoc.asc' wasn't deleted because it doesn't exist.
    Info: [#######+............] > Creating a PostgreSQL database...
    Info: [########+...........] > Setting up source files...
    Info: [#########...........] > Configuring NGINX web server...
    Info: [#########+..........] > Configuring system user...
    Info: [##########++++++....] > Building HedgeDoc... (this will take some time and resources!)
    Warning: error /var/www/hedgedoc/node_modules/sqlite3: Command failed.
    Warning: Exit code: 1
    (...)

Expected behavior I expected Hedgedoc installation.

Logs The logs are there : https://paste.yunohost.org/raw/egofapesoy

kingannoy commented 3 years ago

I figured out what is probably the cause for this issue!

I have tried this installation multiple times over multiple months and it consistently failed for me too, in seemingly exactly the same way: https://paste.yunohost.org/raw/ofayamodoz

I'm on a Debian VPS (1 GB Ram, 1 CPU) I'm on Yunohost version: 4.1.7.4 Installing HedgeDoc version: 1.7.2

I found a clue in the "Diagnosis" page of Yunohost, there I saw the following:

image

So I shut down the machine, assigned more ram, booted and tried again. That solved the issue!

lapineige commented 3 years ago

Yeah it seems that the memory consumption is still too high for 1GB RAM systems… :(

It sounds like 3GB are needed, maybe 2GB could be enough, but I'm unsure… How many free RAM did you have during your test ?

(closing because "solved")

kingannoy commented 3 years ago

I ran the install with 3 GB. Afterwards I scaled back to 2 GB. This seems to work fine.

I didn't try the installation with 2GB sadly...

SimonLefort commented 3 years ago

My server has 4GB of RAM and it doesn't work. Everything is up-to-date.

https://paste.yunohost.org/raw/ahuwalibov

I don't understand these errors. :-/