The reason for the error was explained in my answer to your other question about lua arguments; to supply 2 arguments to the same script the "num" element of -X lua_scriptnum:arg1 must refer to the same script. Your 2nd argument of -X lua_script2:arg2 refers to a non-existent 2nd lua script.