From notifications@github.com Thu Oct 29 15:59:09 2020 From: iliesh To: sr-dev@lists.kamailio.org Subject: [sr-dev] [kamailio/kamailio] exec_cmd is getting Resource temporarily unavailable error (#2538) Date: Thu, 29 Oct 2020 07:59:03 -0700 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0229443979==" --===============0229443979== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable ### Description ### Troubleshooting By executing an external script using exec_cmd function I'm getting the follo= wing error: ``failed. exit_status=3D13, errno=3D11: Resource temporarily unavailable`` This is happening intermittently, sometimes it's working fine, but sometimes = I see this error in the log file. After looking in the debug log file I found= that for some reason the exit code for the executed command is not 0 (ki_exe= c_cmd(): execution return code: 1), that's why this function is complaining (= I guess). What is weird that this is not happening permanently, it's about 2 cases from= 5, and by running the same command manually - every time I'm getting success= , all the time exit code is 0. (I'm running the same command with the same us= er like kamailio is running) Replacing exec_cmd with exec_avp - I didn't notice this issue. #### Debugging Data ``` 2376cc5b10f549(a)192.168.0.1:5060} exec [exec_mod.c:278]: ki_exec_cmd(): exec= uting [nice -20 /usr/local/bin/cmd arg1 arg2 2376cc5b10f549(a)192.168.0.1:5060} dialog [dlg_hash.c:1069]: dlg_unref_helper= (): unref dlg 0x7fd643b32398 with 1 -> 4 376cc5b10f549(a)192.168.0.1:5060}