N_INSTALL_DIR: unbound variable

What type of hardware are you using: VPS bought online
What YunoHost version are you running: 12.1.4
What app is this about: Wekan

Describe your issue

When I tried to upgrade (and then, restore) the Wekan app, it failed with the mention /usr/share/yunohost/helpers.v2.d/nodejs: line 127: N_INSTALL_DIR: unbound variable
I have searched on the forum, there is another topic mentioning this bug but the user had it fixed by upgrading to testing version 12.1.4 (which I’m already using)
Thanks for your help !

Share relevant logs or error messages

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

I am probably saying a stupidity but try to define the N_INSTALL_DIR variable in a shell (as root) then run the restore command. You can check Node.js location using whereis node , it will output /opt/node_n/bin/node .
Then

N_INSTALL_DIR = "/opt/node_n/bin/node"
yunohost backup restore wekan
1 Like

Should be fixed in 12.1.5

2 Likes

That’s great, thanks :folded_hands:

Env is not inherited by yunohost command sadly (or not sadly), sorry!

1 Like

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