The bash script is giving error while the apps script are ran.
Its a warning rather then error but I have no idea if this can result into error. It would be good if someone can explain about this warning.
WARNING /bin/sh: BASH_XTRACEFD: 7: invalid value for trace file descriptor
maybe we’ll eventually figure out how to get rid of it, but in the meantime it doesnt seem to be causing any issue (apart from the scary technical warnings)
Does someone has some news about this warning that has been here for so long?
I guess it’s linked to Yunohost core, since it happens with almost every app install, update or removal.
I fixed it on my own instance. Do the following at your own risk since I don’t know if some other scripts could break.
I have one instance on which I did this quite some time ago and with no issue so far, but your mileage may vary, especially on different apps scripts.
First of all, check the following:
ls -lh /bin/sh
If the return is dash, then your issue is not the same as mine was.
If the return is bash, run the following:
sudo dpkg-reconfigure dash
When prompted to make it the default shell, answer ‘Yes’.
That should get rid of the warnings. dash is supposed to be the default shell on Debian, but bash can take over it.
Again, run this at your own risks, some packagers may suppose bash is the default shell and they’re not 100% compatible.
Yay, just found your post after years of being bothered by this BASH_XTRACEFD warning. It popped up everywhere, and broke several things (like Yunohost backups generation).
Reconfiguring dash also fixed this issue for me. Thanks for the resolution!