Please help - Could not install my_webapp: An error occurred inside the app installation script

2020-07-23 00:43:42,466: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/systemd ']'
2020-07-23 00:43:42,466: DEBUG - ++ . /usr/share/yunohost/helpers.d/systemd
2020-07-23 00:43:42,467: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-07-23 00:43:42,467: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/user ']'
2020-07-23 00:43:42,467: DEBUG - ++ . /usr/share/yunohost/helpers.d/user
2020-07-23 00:43:42,467: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-07-23 00:43:42,467: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
2020-07-23 00:43:42,467: DEBUG - ++ . /usr/share/yunohost/helpers.d/utils
2020-07-23 00:43:42,467: DEBUG - + ynh_abort_if_errors
2020-07-23 00:43:42,467: DEBUG - + set -o errexit
2020-07-23 00:43:42,467: DEBUG - + set -o nounset
2020-07-23 00:43:42,467: DEBUG - + trap ynh_exit_properly EXIT
2020-07-23 00:43:42,467: DEBUG - + domain=sftp.badutmedia.com
2020-07-23 00:43:42,468: DEBUG - + path_url=/
2020-07-23 00:43:42,468: DEBUG - + with_sftp=1
2020-07-23 00:43:42,468: DEBUG - + password=**********
2020-07-23 00:43:42,468: DEBUG - + is_public=1
2020-07-23 00:43:42,468: DEBUG - + with_mysql=1
2020-07-23 00:43:42,468: DEBUG - + app=my_webapp
2020-07-23 00:43:42,468: DEBUG - + app_nb=1
2020-07-23 00:43:42,469: DEBUG - + echo '[++..................] > Validating installation parameters...'
2020-07-23 00:43:42,469: DEBUG - + final_path=/var/www/my_webapp
2020-07-23 00:43:42,469: DEBUG - + test '!' -e /var/www/my_webapp
2020-07-23 00:43:42,469: DEBUG - + ynh_die '--message=This path already contains a folder'
2020-07-23 00:43:42,470: DEBUG - + ret_code=1
2020-07-23 00:43:42,470: DEBUG - + echo 'This path already contains a folder'
2020-07-23 00:43:42,470: DEBUG - + exit 1
2020-07-23 00:43:42,470: DEBUG - + ynh_exit_properly
2020-07-23 00:43:42,470: DEBUG - + local exit_code=1
2020-07-23 00:43:42,470: DEBUG - + '[' 1 -eq 0 ']'
2020-07-23 00:43:42,470: DEBUG - + trap '' EXIT
2020-07-23 00:43:42,470: DEBUG - + set +o errexit
2020-07-23 00:43:42,470: DEBUG - + set +o nounset
2020-07-23 00:43:42,470: DEBUG - + sleep 0.5
2020-07-23 00:43:42,972: DEBUG - + type -t ynh_clean_setup
2020-07-23 00:43:42,972: DEBUG - + exit 1
2020-07-23 00:43:43,015: ERROR - Could not install my_webapp: An error occurred inside the app installation script

It looks like you already have a folder /var/www/my_webapp on your server … maybe a residue from a previous failed install (though that shouldn’t happen…)

If you’re pretty sure this folder shouldnt exist yet, you can get “rid” of it with something like :

sudo mv /var/www/my_webapp /var/www/my_webapp_bkp

Thanks

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