YunoHost-Apps / snserver_ynh

Standard Notes Syncing Server
https://standardnotes.org/
GNU Affero General Public License v3.0
6 stars 4 forks source link

Unknown Error installing snserver #42

Closed bastianvv closed 3 years ago

bastianvv commented 3 years ago

Describe the bug

Unknown error installing Standard Notes Server. The only similar entry found is in this snweb issue. I also tried installing the testing branch from the CLI but it shows the same error.

Context

Steps to reproduce

Expected behavior

Standard Notes server installed correctly.

Logs

Last 20 lines from the log. I've attached the log generated with Yunopaste: yunohost_log.txt

2021-08-26 01:32:51,839: DEBUG - yarn run v1.22.5
2021-08-26 01:32:51,927: DEBUG - $ yarn clean
2021-08-26 01:32:52,259: DEBUG - $ rm -fr dist
2021-08-26 01:32:52,295: DEBUG - $ tsc --rootDir ./
2021-08-26 01:34:22,367: WARNING - Killed
2021-08-26 01:34:22,450: WARNING - error Command failed with exit code 137.
2021-08-26 01:34:22,451: DEBUG - info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
2021-08-26 01:34:22,523: DEBUG - + ynh_exit_properly
2021-08-26 01:34:22,523: DEBUG - + local exit_code=137
2021-08-26 01:34:22,524: DEBUG - + rm -rf /var/cache/yunohost/download/
2021-08-26 01:34:22,535: DEBUG - + '[' 137 -eq 0 ']'
2021-08-26 01:34:22,536: DEBUG - + trap '' EXIT
2021-08-26 01:34:22,536: DEBUG - + set +o errexit
2021-08-26 01:34:22,536: DEBUG - + set +o nounset
2021-08-26 01:34:22,536: DEBUG - + sleep 0.5
2021-08-26 01:34:23,045: DEBUG - + type -t ynh_clean_setup
2021-08-26 01:34:23,045: DEBUG - + ynh_clean_setup
2021-08-26 01:34:23,045: DEBUG - + ynh_clean_check_starting
2021-08-26 01:34:23,045: DEBUG - + '[' -n '' ']'
2021-08-26 01:34:23,046: DEBUG - + '[' -n '' ']'
2021-08-26 01:34:23,046: DEBUG - + exit 1
2021-08-26 01:34:24,050: ERROR - No se pudo instalar snserver: Ha ocurrido un error en el guión de instalación de la aplicación
FabianWilkens commented 3 years ago

Hi,

i had package_check tested snserver_ynh and snweb_ynh. Both were installed without a problem in all conditions. Unfortunately i could not find the fault in the logs.

The master and testing branches are equal at the moment, so there shouldn't be any difference.

I will aks if someone else can take a look at this

FabianWilkens commented 3 years ago

Good news. They could help. It was very esay.

You have not enough memory and your sysem aviable.

You can fix this if you enable swap. Instracution can be found under Memory here: https://forum.yunohost.org/t/yunohost-troubleshooting-guide/577 Or also here: https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-debian-10

bastianvv commented 3 years ago

Thanks, I read something about it being a memory issue but it wasn't the same error message I got, so I didn't try. I will try tonight and the info you gave me and I'll let you know :+1:

bastianvv commented 3 years ago

Ok I actually tried it as soon as I read your answer and followed the instructions from the Memory section of the first link. Worked immediately. Thanks a lot :D