08-08-2016 12:15 PM
My 24/7 cRIO app is running the attached code once per second. This morning, after 5 days of operation, we saw a burst of errors in our log where the syscall to "touch /c/app/started.txt" returned error 127, which normally means sh couldn't find the binary. This happened on 15 or so sequential calls and then stopped happening. Any idea why?
08-08-2016 12:33 PM
Did you log the stderr output from the System Exec call? Can you see if the issue reproduces with a full path to the touch executable (there may be something weird going on with the PATH environment variable)
08-08-2016 12:39 PM
Full log output (content of error wire from the example given):
Error 5000 occurred at Handle System Call Return Value.vi:3230001 Possible reason(s): Syscall "touch /c/app/started.txt" returned code 127 STDERR message "" Complete call chain: Handle System Call Return Value.vi:3230001 Touch Canary File.vi Bootstrap RT Application.vi
I can schedule the suggested code change on our next deployment in a few weeks. I'm not allowed to stop the application before then.
08-08-2016 03:07 PM
That's odd that the STDERR output is an empty string, if it's the traditional "No such file or directory" error it will send that string to STDERR. Do the files attached to the OP reproduce the issue separated from the rest of your application?
08-08-2016 04:18 PM
I don't have another cRIO to run it for days on. (It's being used for other development.) Again, this happened once, just for a few seconds, and sporadically.
Maybe the command was found but some dependency it carries wasn't? https://stackoverflow.com/questions/1763156/127-return-code-from (2nd answer). Looks like `touch` is built-in with Busybox, though, so that doesn't make sense.
08-10-2016 11:17 AM
Which CompactRIO are you running this on?
08-10-2016 12:07 PM
9066