YunoHost-Apps / codimd_ynh

CodiMD package for YunoHost
https://hackmd.io/
GNU General Public License v3.0
11 stars 12 forks source link

Install fails on raspberry pi 4 due to invalid nginx config parameter #73

Closed naos0815 closed 1 year ago

naos0815 commented 2 years ago

Describe the bug

Install via the yunohost webadmin ui fails on a raspberry pi 4 (4 GByte RAM) on buster cause an invalid nginx config parameter. Full log: https://paste.yunohost.org/raw/ewafojehow

Context

Steps to reproduce

codimd is installed

Logs

2022-03-05 16:39:53,681: WARNING - Job for nginx.service failed.
2022-03-05 16:39:53,682: WARNING - See "systemctl status nginx.service" and "journalctl -xe" for details.
2022-03-05 16:39:53,684: DEBUG - + ynh_exec_err journalctl --quiet --no-hostname --no-pager --lines=20 --unit=nginx
2022-03-05 16:39:53,684: DEBUG - + [[ 6 -eq 1 ]]
2022-03-05 16:39:53,685: DEBUG - ++ journalctl --quiet --no-hostname --no-pager --lines=20 --unit=nginx
2022-03-05 16:39:53,706: DEBUG - + ynh_print_err 'Mar 05 16:04:44 systemd[1]: Starting A high performance web server and a reverse proxy server...
2022-03-05 16:39:53,707: DEBUG - Mar 05 16:04:47 systemd[1]: Started A high performance web server and a reverse proxy server.
2022-03-05 16:39:53,707: DEBUG - Mar 05 16:17:40 systemd[1]: Reloading A high performance web server and a reverse proxy server.
[...]
2022-03-05 16:39:53,712: DEBUG - Mar 05 16:39:53 nginx[17309]: nginx: [emerg] "proxy_max_temp_file_size" directive invalid value in /etc/nginx/conf.d/pads.maindomain.tld.d/codimd.conf:17
2022-03-05 16:39:53,712: DEBUG - Mar 05 16:39:53 systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
2022-03-05 16:39:53,713: DEBUG - Mar 05 16:39:53 systemd[1]: Reload failed for A high performance web server and a reverse proxy server.'

Full log: https://paste.yunohost.org/raw/ewafojehow

I can only assume, that on the raspberry the value of 'proxy_max_temp_file_size' of 8192m is too high (it was changed months before from 1024m) - but may be wrong?

ericgaspar commented 2 years ago

Here is the NGINX config sample from upstream: https://hackmd.io/c/codimd-documentation/%2F%40codimd%2Fweb-server-nginx

You can try to install from this branch with proxy_max_temp_file_size value set to 1024m

sudo yunohost app install https://github.com/YunoHost-Apps/codimd_ynh/tree/nginx
naos0815 commented 2 years ago

Thank you for answering that quick and providing a fix!

Unfortunately, now a new problem occurs: it fails to install phantom.js during install: https://paste.yunohost.org/raw/ujecewokak

ericgaspar commented 2 years ago

You may want to try installing Hedgedoc (Codimd fork) instead: https://github.com/YunoHost-Apps/hedgedoc_ynh

naos0815 commented 2 years ago

Thanks, tried hedgedoc and it installs. Thanks for pointing me to at - wasn't aware of the hackmd/codimd/hedgedoc thing.