Random Developments And Random Toys

Why I *love* Linux

One tool fails with message about failed child process. No further details. No verbose mode / no debug logs. strace to the rescue:

strace -ostrace.txt -f -e trace=process grunt test:e2e

Result? One of many lines in strace output:

9713 execve("/usr/local/bin/java", ["java", "-jar", "/vagrant/node_modules/protractor"..., "-port", "4444", "-Dwebdriver.chrome.driver=/vagra"...], [/* 30 vars */]) = -1 ENOENT (No such file or directory)

9713 execve("/bin/java", ["java", "-jar", "/vagrant/node_modules/protractor"..., "-port", "4444", "-Dwebdriver.chrome.driver=/vagra"...], [/* 30 vars */]) = -1 ENOENT (No such file or directory)

9713 execve("/usr/bin/java", ["java", "-jar", "/vagrant/node_modules/protractor"..., "-port", "4444", "-Dwebdriver.chrome.driver=/vagra"...], [/* 30 vars */]) = -1 ENOENT (No such file or directory)

9713 execve("/usr/local/sbin/java", ["java", "-jar", "/vagrant/node_modules/protractor"..., "-port", "4444", "-Dwebdriver.chrome.driver=/vagra"...], [/* 30 vars */]) = -1 ENOENT (No such file or directory)

Oh yeah, I don’t have Java isntalled on this machine!

Comments

Want to read / submit comments? Click the button below to enable. Do note that site is using Disqus comments.