gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sending unsuccessful. Error: Command timed out


From: Rodrigo Montiel
Subject: Re: Sending unsuccessful. Error: Command timed out
Date: Mon, 28 Oct 2013 12:46:55 -0300

Hi Jan, thanks for your prompt response!

See below the output after restarting gnokii-smsd with debug mode enabled:
--------------------------------------------------------
Event 0 failed with return code 11!

*** glibc detected *** /usr/bin/gnokii-smsd: corrupted double-linked list: 0x09b6d620 ***
======= Backtrace: =========
/lib/libc.so.6[0x97abdd]
/lib/libc.so.6(__libc_calloc+0xba)[0x97c27a]
/usr/lib/libgnokii.so.6(gn_sms_send+0xbd6)[0xcaf416]
/usr/bin/gnokii-smsd[0x804a68e]
/usr/bin/gnokii-smsd[0x804abc1]
/lib/libpthread.so.0[0xaa6912]
/lib/libc.so.6(clone+0x5e)[0x9e57ce]
======= Memory map: ========
00198000-001aa000 r-xp 00000000 fd:00 4944115    /lib/libz.so.1.2.3
001aa000-001ab000 rwxp 00011000 fd:00 4944115    /lib/libz.so.1.2.3
001ab000-001c0000 r-xp 00000000 fd:00 4943340    /lib/libnsl-2.5.so
001c0000-001c1000 r-xp 00014000 fd:00 4943340    /lib/libnsl-2.5.so
001c1000-001c2000 rwxp 00015000 fd:00 4943340    /lib/libnsl-2.5.so
001c2000-001c4000 rwxp 001c2000 00:00 0
001c4000-001eb000 r-xp 00000000 fd:00 4943158    /lib/libm-2.5.so
001eb000-001ec000 r-xp 00026000 fd:00 4943158    /lib/libm-2.5.so
001ec000-001ed000 rwxp 00027000 fd:00 4943158    /lib/libm-2.5.so
001ed000-0021a000 r-xp 00000000 fd:00 6166949    /usr/lib/libgssapi_krb5.so.2.2
0021a000-0021b000 rwxp 0002d000 fd:00 6166949    /usr/lib/libgssapi_krb5.so.2.2
0021b000-0021d000 r-xp 00000000 fd:00 4943276    /lib/libcom_err.so.2.1
0021d000-0021e000 rwxp 00001000 fd:00 4943276    /lib/libcom_err.so.2.1
0021e000-00226000 r-xp 00000000 fd:00 6163996    /usr/lib/libkrb5support.so.0.1
00226000-00227000 rwxp 00007000 fd:00 6163996    /usr/lib/libkrb5support.so.0.1
00228000-00229000 r-xp 00228000 00:00 0          [vdso]
00229000-0023a000 r-xp 00000000 fd:00 4944099    /lib/libresolv-2.5.so
0023a000-0023b000 r-xp 00010000 fd:00 4944099    /lib/libresolv-2.5.so
0023b000-0023c000 rwxp 00011000 fd:00 4944099    /lib/libresolv-2.5.so
0023c000-0023e000 rwxp 0023c000 00:00 0
0023e000-00254000 r-xp 00000000 fd:00 4944102    /lib/libselinux.so.1
00254000-00256000 rwxp 00015000 fd:00 4944102    /lib/libselinux.so.1
00256000-00260000 r-xp 00000000 fd:00 4943355    /lib/libnss_files-2.5.so
00260000-00261000 r-xp 00009000 fd:00 4943355    /lib/libnss_files-2.5.so
00261000-00262000 rwxp 0000a000 fd:00 4943355    /lib/libnss_files-2.5.so
00267000-00366000 r-xp 00000000 fd:00 6163893    /usr/lib/libX11.so.6.2.0
00366000-0036a000 rwxp 000ff000 fd:00 6163893    /usr/lib/libX11.so.6.2.0
0036a000-0048b000 r-xp 00000000 fd:00 6450145    /usr/lib/mysql/libmysqlclient.so.15.0.0
0048b000-004cd000 rwxp 00120000 fd:00 6450145    /usr/lib/mysql/libmysqlclient.so.15.0.0
004cd000-004ce000 rwxp 004cd000 00:00 0
004ce000-005f8000 r-xp 00000000 fd:00 4944122    /lib/libcrypto.so.0.9.8e
005f8000-0060c000 rwxp 00129000 fd:00 4944122    /lib/libcrypto.so.0.9.8e
0060c000-0060f000 rwxp 0060c000 00:00 0
0060f000-006a3000 r-xp 00000000 fd:00 6166948    /usr/lib/libkrb5.so.3.3
006a3000-006a6000 rwxp 00093000 fd:00 6166948    /usr/lib/libkrb5.so.3.3
006a6000-006e1000 r-xp 00000000 fd:00 4944100    /lib/libsepol.so.1
006e1000-006e2000 rwxp 0003b000 fd:00 4944100    /lib/libsepol.so.1
006e2000-006ec000 rwxp 006e2000 00:00 0
006ec000-006f7000 r-xp 00000000 fd:00 4943161    /lib/libgcc_s-4.1.2-20080825.so.1
006f7000-006f8000 rwxp 0000a000 fd:00 4943161    /lib/libgcc_s-4.1.2-20080825.so.1
00859000-0085c000 r-xp 00000000 fd:00 6549299    /usr/lib/smsd/libsmsd_mysql.so
0085c000-0085d000 rwxp 00003000 fd:00 6549299    /usr/lib/smsd/libsmsd_mysql.so
008f1000-0090c000 r-xp 00000000 fd:00 4943141    /lib/ld-2.5.so
0090c000-0090d000 r-xp 0001a000 fd:00 4943141    /lib/ld-2.5.so
0090d000-0090e000 rwxp 0001b000 fd:00 4943141    /lib/ld-2.5.so
00910000-00a67000 r-xp 00000000 fd:00 4943148    /lib/libc-2.5.so
00a67000-00a69000 r-xp 00157000 fd:00 4943148    /lib/libc-2.5.so
00a69000-00a6a000 rwxp 00159000 fd:00 4943148    /lib/libc-2.5.so
00a6a000-00a6d000 rwxp 00a6a000 00:00 0
00a6f000-00a72000 r-xp 00000000 fd:00 4943163    /lib/libdl-2.5.so
00a72000-00a73000 r-xp 00002000 fd:00 4943163    /lib/libdl-2.5.so
00a73000-00a74000 rwxp 00003000 fd:00 4943163    /lib/libdl-2.5.so
00a7b000-00a7d000 r-xp 00000000 fd:00 4944107    /lib/libgmodule-2.0.so.0.1200.3
00a7d000-00a7e000 rwxp 00002000 fd:00 4944107    /lib/libgmodule-2.0.so.0.1200.3
00a80000-00a86000 r-xp 00000000 fd:00 6165377    /usr/lib/libusb-0.1.so.4.4.4
00a86000-00a88000 rwxp 00006000 fd:00 6165377    /usr/lib/libusb-0.1.so.4.4.4
00a8a000-00a9d000 r-xp 00000000 fd:00 6169049    /usr/lib/libbluetooth.so.2.4.1
00a9d000-00a9e000 rwxp 00013000 fd:00 6169049    /usr/lib/libbluetooth.so.2.4.1
00aa1000-00ab7000 r-xp 00000000 fd:00 4943154    /lib/libpthread-2.5.so
00ab7000-00ab8000 r-xp 00015000 fd:00 4943154    /lib/libpthread-2.5.so
00ab8000-00ab9000 rwxp 00016000 fd:00 4943154    /lib/libpthread-2.5.so
00ab9000-00abb000 rwxp 00ab9000 00:00 0
00abd000-00b0c000 r-xp 00000000 fd:00 6162836    /usr/lib/libical.so.0.48.0
00b0c000-00b15000 rwxp 0004e000 fd:00 6162836    /usr/lib/libical.so.0.48.0
00b15000-00b16000 rwxp 00b15000 00:00 0
00b18000-00b21000 r-xp 00000000 fd:00 6164371    /usr/lib/libpcsclite.so.1.0.0
00b21000-00b22000 rwxp 00008000 fd:00 6164371    /usr/lib/libpcsclite.so.1.0.0
00b24000-00b34000 r-xp 00000000 fd:00 6164409    /usr/lib/libXpm.so.4.11.0
00b34000-00b35000 rwxp 00010000 fd:00 6164409    /usr/lib/libXpm.so.4.11.0
00b42000-00b4b000 r-xp 00000000 fd:00 4944108    /lib/libcrypt-2.5.so
00b4b000-00b4c000 r-xp 00008000 fd:00 4944108    /lib/libcrypt-2.5.so
00b4c000-00b4d000 rwxp 00009000 fd:00 4944108    /lib/libcrypt-2.5.so
00b4d000-00b74000 rwxp 00b4d000 00:00 0
00b76000-00c13000 r-xp 00000000 fd:00 4944106    /lib/libglib-2.0.so.0.1200.3
00c13000-00c14000 rwxp 0009c000 fd:00 4944106    /lib/libglib-2.0.so.0.1200.3
00c63000-00c68000 r-xp 00000000 fd:00 6165339    /usr/lib/libXdmcp.so.6.0.0
00c68000-00c69000 rwxp 00004000 fd:00 6165339    /usr/lib/libXdmcp.so.6.0.0
00c6b000-00c6d000 r-xp 00000000 fd:00 6163855    /usr/lib/libXau.so.6.0.0
00c6d000-00c6e000 rwxp 00001000 fd:00 6163855    /usr/lib/libXau.so.6.0.0
00c7e000-00c85000 r-xp 00000000 fd:00 4943164    /lib/librt-2.5.so
00c85000-00c86000 r-xp 00007000 fd:00 4943164    /lib/librt-2.5.so
00c86000-00c87000 rwxp 00008000 fd:00 4943164    /lib/librt-2.5.so
00c89000-00d1a000 r-xp 00000000 fd:00 6162523    /usr/lib/libgnokii.so.6.1.0
00d1a000-00d1f000 rwxp 00091000 fd:00 6162523    /usr/lib/libgnokii.so.6.1.0
00d1f000-00d64000 rwxp 00d1f000 00:00 0
00d79000-00d9f000 r-xp 00000000 fd:00 6166945    /usr/lib/libk5crypto.so.3.1
00d9f000-00da0000 rwxp 00025000 fd:00 6166945    /usr/lib/libk5crypto.so.3.1
00da2000-00da4000 r-xp 00000000 fd:00 4944112    /lib/libkeyutils-1.2.so
00da4000-00da5000 rwxp 00001000 fd:00 4944112    /lib/libkeyutils-1.2.so
00da7000-00ded000 r-xp 00000000 fd:00 4944125    /lib/libssl.so.0.9.8e
00ded000-00df1000 rwxp 00045000 fd:00 4944125    /lib/libssl.so.0.9.8e
08047000-0804d000 r-xp 00000000 fd:00 6162441    /usr/bin/gnokii-smsd
0804d000-0804e000 rw-p 00005000 fd:00 6162441    /usr/bin/gnokii-smsd
0804e000-080d0000 rw-p 0804e000 00:00 0
09b49000-09c35000 rw-p 09b49000 00:00 0          [heap]
b6700000-b6721000 rw-p b6700000 00:00 0
b6721000-b6800000 ---p b6721000 00:00 0
b6864000-b686b000 r--s 00000000 fd:00 6252885    /usr/lib/gconv/gconv-modules.cache
b68ac000-b692f000 rw-p b68ac000 00:00 0
b692f000-b6930000 ---p b692f000 00:00 0
b6930000-b7330000 rw-p b6930000 00:00 0
b7330000-b7331000 ---p b7330000 00:00 0
b7331000-b7d31000 rw-p b7331000 00:00 0
b7d31000-b7f31000 r--p 00000000 fd:00 6159174    /usr/lib/locale/locale-archive
b7f31000-b7f36000 rw-p b7f31000 00:00 0
bfc83000-bfc98000 rw-p bffe9000 00:00 0          [stack]
--------------------------------------------------------

In the meantime, I have downloaded latest gnokii version with smsd binaries (below the output after compilation/installation).
However, I have not tested yet as I am using gnokii-smsd service installed thru yum repositories:

    Host system:        linux-gnu
    Gnokii version:     0.6.31
    Xgnokii version:    1.0
    SMSD version:       1.5.2
    X (GTK+) support:   no
    smsd support:       yes
    Postgres support:   no
    SQLite support:     no
    MySQL support:      yes
    Debug:              yes
    XDebug:             yes
    RLPDebug:           yes
    NLS:                yes
    IrDA:               yes
    ical read support:  no
    Bluetooth:          no
    libusb support:     no
    phonet support:     no
    libpcsclite support:no
    readline support:   no
    Security:           no
    Build Shared Lib:   yes
    Build Static Lib:   yes
    Windows:            no
    Prefix:             /opt/daemon

Rgds,

On Sun, 2013-10-27 at 00:33 +0200, Jan Derfinak wrote:
Hi.

Sounds like problem in libgnokii while sending sms. Can you please send here
the debug output for the drivers and for gnokii?

Jan


On Thu, 24 Oct 2013, Rodrigo Montiel wrote:

> Hi all,
> 
> My environment:
> ------------------------------------------------
> CentOS release 5.9 (Final)
> Kernel: 2.6.18-348.1.1.el5
> address@hidden ~]# rpm -qa | grep gnokii
> gnokii-smsd-0.6.30-1.el5
> gnokii-0.6.30-1.el5
> gnokii-smsd-mysql-0.6.30-1.el5
> gnokii-devel-0.6.30-1.el5
> address@hidden ~]# lsusb
> Bus 001 Device 001: ID 0000:0000 
> Bus 001 Device 002: ID 19d2:0156 ZTE WCDMA Technologies MSM
> 
> gnokiirc configuration:
> [global]
> port = /dev/ttyUSB2
> model = AT
> initlength = default
> connection = serial
> use_locking = no
> serial_baudrate = 19200
> smsc_timeout = 10
> [xgnokii]
> allow_breakage = 0
> [gnokiid]
> bindir = /usr/sbin/
> [logging]
> debug = on
> rlpdebug = off
> xdebug = off
> [fake_driver]
> sms_inbox = /tmp/sms
> 
> gnokii sysconfig configuration:
> SMSD_OPTS="--user smsd --db smsd --host localhost --module mysql --password
> test123"
> 
> ------------------------------------------------
> 
> Im having some issues when trying to send massive SMS messages thru
> gnokii-smsd service.
> Sometimes I realize the gnokii-smsd status is "subsystem locked" (running
> service gnokii-smsd status).
> 
> Logs are pointing to /var/log/gnokii-smsd with the following messages:
> 
> address@hidden ~]# tail -f /var/log/gnokii-smsd
> 24 Oct 2013 10:52:16: Inserting sms from +5492945692192 successful.
> 24 Oct 2013 10:52:27: Sending to 3513262916 unsuccessful. Error: Command
> timed out.
> 24 Oct 2013 10:52:47: Sending to 3513262916 unsuccessful. Error: Unknown
> error - well better than nothing!!
> 24 Oct 2013 10:55:33: Sending to 3513443723 unsuccessful. Error: Command
> timed out.
> 24 Oct 2013 10:56:05: Duplicated sms from +5492945692192.
> 24 Oct 2013 10:56:16: Sending to 3513443723 unsuccessful. Error: Command
> timed out.
> 24 Oct 2013 10:56:27: Sending to 3513443723 unsuccessful. Error: Problem
> occurred internal to model specific code.
> 24 Oct 2013 10:57:19: Sending to 3513443723 unsuccessful. Error: Command
> timed out.
> 24 oct 2013 10:59:47: Sending to 3513443723 unsuccessful. Error: Command
> timed out.
> 24 oct 2013 11:00:20: Sending to 3513443723 unsuccessful. Error: Command
> timed out.
> 
> When this issue occurs, I usually restart the daemon but the same messages
> appear. Reboot of the machine is not a solution.
> The only way to have it working again is to delete the row containing that
> number and restart the service:
> 
> mysql> select
> id,number,processed_date,insertdate,phone,processed,not_before,not_after
> from smsd.outbox where number=3513443723;
> +-----+------------+---------------------+---------------------+-------+---
> --------+------------+-----------+
> | id  | number     | processed_date      | insertdate          | phone |
> processed | not_before | not_after |
> +-----+------------+---------------------+---------------------+-------+---
> --------+------------+-----------+
> | 870 | 3513443723 | 0000-00-00 00:00:00 | 2013-10-24 10:41:52 |  NULL
> |         0 | 10:30:00   | 11:30:00  |
> +-----+------------+---------------------+---------------------+-------+---
> --------+------------+-----------+
> 1 row in set (0.00 sec)
> 
> mysql> delete from outbox where number='3513443723';
> Query OK, 1 row affected (0.00 sec)
> 
> (new logs)
> 24 oct 2013 11:00:20: Sending to 3513443723 unsuccessful. Error: Command
> timed out.
> 24 Oct 2013 11:26:47: Sending to 3513608447 successful.
> 24 Oct 2013 11:27:12: Inserting sms from +5493513443723 successful.
> 24 Oct 2013 11:27:12: Inserting sms from +5493513443723 successful.
> 24 Oct 2013 11:27:12: Duplicated sms from +5492945692192.
> 24 Oct 2013 11:27:20: Sending to 3515170312 successful.
> 24 Oct 2013 11:27:52: Sending to 3515605643 successful.
> 24 Oct 2013 11:28:26: Sending to 3516358156 successful.
> 
> Really appreciate your valuable help on this,
> 
> Thanks,
> 

-- 
_______________________________________________
gnokii-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/gnokii-users

--
Rodrigo Montiel
Ing. en Telecomunicaciones
GNU/Linux & VoIP System Support
Cel: +549 351 2581376

Freetech Solutions
www.freetechsolutions.com.ar
Tel/Fax: +54 351 6387585


reply via email to

[Prev in Thread] Current Thread [Next in Thread]