[sr-dev] [kamailio/kamailio] kamcmd app_ruby.reload returns error: 500 - command app_ruby.reload not found (#1764)

Fatih Orhan notifications at github.com
Thu Dec 13 13:37:35 CET 2018


### Description
Hello,

When I try to reload ruby scripts with (in linux CLI) :
`kamcmd app_ruby.reload`

This message is returned:
`error: 500 - command app_ruby.reload not found`

I double checked the command name, module status, and debug logs.
I can run other kamcmd commands and can use ruby scripts.
### Troubleshooting

#### Reproduction
in linux CLI:
`yum install kamailio-ruby`

in kamailio.cfg
`loadmodule "app_ruby.so"`
`modparam("app_ruby", "load", "/etc/kamailio/ruby/myscript.rb")`

in linux CLI:
`kamcmd app_ruby.reload`

#### Log Messages

When I execute kamcmd, these debug lines appear:
```
Dec 13 14:57:30 servername /usr/sbin/kamailio[4479]: DEBUG: ctl [../../core/io_wait.h:380]: io_watch_add(): DBG: io_watch_add(0x7fc7ee451320, 19, 3, 0x2b70310), fd_no=1
Dec 13 14:57:30 servername /usr/sbin/kamailio[4479]: DEBUG: ctl [io_listener.c:442]: handle_new_connect(): handle_stream read: new connection (1) on /var/run/kamailio//kamailio_ctl
Dec 13 14:57:30 servername /usr/sbin/kamailio[4479]: DEBUG: ctl [io_listener.c:495]: handle_stream_read(): handle_stream read: eof on /var/run/kamailio//kamailio_ctl
Dec 13 14:57:30 servername /usr/sbin/kamailio[4479]: DEBUG: ctl [../../core/io_wait.h:602]: io_watch_del(): DBG: io_watch_del (0x7fc7ee451320, 19, -1, 0x10) fd_no=2 called
```



### Possible Solutions
I tried to read kamcmd and app_ruby source code but quickly got lost, so no leads there :)

Tried other combinations to no avail:
`kamcmd ruby.reload`
`kamcmd app_ruby_jsdt.reload`

### Additional Information

  * **Kamailio Version** - output of `kamailio -v`

```
version: kamailio 5.2.0 (x86_64/linux) 535e13
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144 MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: 535e13
compiled on 10:26:34 Nov 28 2018 with gcc 4.8.5
```

* **Operating System**:
Centos 7.2 64bit

```
Linux servername 3.10.0-327.28.2.el7.x86_64 #1 SMP Wed Aug 3 11:11:39 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
```


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1764
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20181213/0e81d58f/attachment.html>


More information about the sr-dev mailing list