Unable to install any apps

My YunoHost server

Hardware: Laptop
YunoHost version: 11.0.9
I have access to my server : direct access via keyboard / screen
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Description of my issue

Hi it’s my first time with yunohost. I just did a fresh install. Now I’m trying to install any applications, but I get the same errors every time. No matter which app, it always ends up with this message, “Unable to install bludit (or any other app): An error occurred inside the app installation script”

Thanks for your help!

2022-09-28 11:30:42,293: INFO - [#############++.....] > Configuring NGINX web server...
2022-09-28 11:30:42,293: DEBUG - + ynh_add_nginx_config
2022-09-28 11:30:42,294: DEBUG - + local finalnginxconf=/etc/nginx/conf.d/maindomain.tld.d/bludit.conf
2022-09-28 11:30:42,294: DEBUG - + ynh_add_config --template=/var/cache/yunohost/app_tmp_work_dirs/app_eoh3h2p9/conf/nginx.conf --destination=/etc/nginx/conf.d/maindomain.tld.d/bludit.conf
2022-09-28 11:30:42,309: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_eoh3h2p9/conf//var/cache/yunohost/app_tmp_work_dirs/app_eoh3h2p9/conf/nginx.conf ']'
2022-09-28 11:30:42,309: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_eoh3h2p9/conf/nginx.conf ']'
2022-09-28 11:30:42,309: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_eoh3h2p9/conf/nginx.conf
2022-09-28 11:30:42,310: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/nginx/conf.d/maindomain.tld.d/bludit.conf
2022-09-28 11:30:42,315: DEBUG - + local checksum_setting_name=checksum__etc_nginx_conf.d_maindomain.tld.d_bludit.conf
2022-09-28 11:30:42,315: DEBUG - ++ ynh_app_setting_get --app=bludit --key=checksum__etc_nginx_conf.d_maindomain.tld.d_bludit.conf
2022-09-28 11:30:42,315: DEBUG - ++ local _globalapp=bludit
2022-09-28 11:30:42,330: DEBUG - ++ app=bludit
2022-09-28 11:30:42,331: DEBUG - ++ [[ checksum__etc_nginx_conf.d_maindomain.tld.d_bludit.conf =~ (unprotected|protected|skipped)_ ]]
2022-09-28 11:30:42,331: DEBUG - ++ ynh_app_setting get bludit checksum__etc_nginx_conf.d_maindomain.tld.d_bludit.conf
2022-09-28 11:30:42,364: DEBUG - + local checksum_value=
2022-09-28 11:30:42,364: DEBUG - + backup_file_checksum=
2022-09-28 11:30:42,365: DEBUG - + '[' -n '' ']'
2022-09-28 11:30:42,365: DEBUG - + touch /etc/nginx/conf.d/maindomain.tld.d/bludit.conf
2022-09-28 11:30:42,365: WARNING - touch: cannot touch '/etc/nginx/conf.d/maindomain.tld.d/bludit.conf': No such file or directory
2022-09-28 11:30:42,366: DEBUG - + ynh_exit_properly
2022-09-28 11:30:42,868: DEBUG - + ynh_clean_setup
2022-09-28 11:30:42,868: DEBUG - + true
2022-09-28 11:30:43,870: ERROR - Unable to install bludit: An error occurred inside the app installation script

Hello,

Seems there is an issue with your nginx :

2022-09-28 11:30:42,365: WARNING - touch: cannot touch '/etc/nginx/conf.d/maindomain.tld.d/bludit.conf': No such file or directory

Do you have any advice on how to fix this error?

No, but can you run a diagnosis ?

sudo yunohost diagnosis run

The issue seems to be that the folder /etc/nginx/conf.d/your.maindomain.tld.d/ does not exists …

Can you share the output of ls -l /etc/nginx/conf.d ?

Also maybe yunohost tools regen-conf nginx can fix the issue, but at the same time there’s no reason that the folder would not have got created when the domain was added, so there’s probably something else to uncover …

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.