My_webapp upgrade failure

What app is this about, and its version: my_webapp, 1.0~ynh10
What YunoHost version are you running: 12.1.39 (stable)
What type of hardware are you using: Other ARM board

Describe your issue

i’m trying to update a custom webapp from 1.0~ynh10 to 1.0~ynh21. the update script fails with ./upgrade: line 68: password: unbound variable.

i just run a jekyll website on this one, no database, so i figure no password also?

the app successfully restored from backup after failure.

i just aimed to update to the new packaging format. before proceeding, ynh warned me about a password bug issue, but it referred to database passwords, which my webapp doesn’t have.

any help appreciated

Share relevant logs or error messages

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

Edit /etc/yunohost/apps/my_webapp/settings.yml

And add this at the bottom of the file:

password: ''

Then retry upgrading

perhaps a password for sftp user ? As I see in the script, you can try before the upgrade add a value `password` even empty in the settings of the app…

Try this before upgrading

yunohost app setting my_webapp password -v ""

You can also verify if the value exist in `/etc/yunohost/apps/my_webapp/settings.yml`

grep password /etc/yunohost/apps/my_webapp/settings.yml

thanks for the details, success. i think it’s for sftp yeah (but i never needed it), i rsync.

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