I noticed that an error in the module script hash bang executable path logs the error as if the module script does not exist, when it is the executable that does not exist.
I don’t know if this is a bug or a limitation of the way scripts are called.
For example, I have an update module called docker-compose where the executable had changed. The error I got was:
Feb 16 16:14:42 linux mender[5648]: time="2022-02-16T16:14:42-05:00" level=error msg="Module could not be executed: fork/exec /usr/share/mender/modules/v3/docker-compose: no such file or directory"
…suggesting the update module is non existent, while it is.