Re: WARNING: AT2[itegno]: trying to open device with not closed device!!! Please report!!!
Alexander Malysh <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi again, OK, this is now fixed in CVS. You can try CVS head or just ignore this error for now. Thanks, Alex Am 15.04.2009 um 13:36 schrieb Ruth Marya: > I already installed the latest kannel version 1.4.3 > but, I still got the Error: > > 2009-04-15 18:31:18 [9772] [0] INFO: Added logfile `/var/log/kannel/ > kannel.log' with level `0'. > 2009-04-15 18:31:18 [9772] [0] INFO: Started access logfile `/var/ > log/kannel/access.log'. > 2009-04-15 18:31:18 [9772] [0] WARNING: 'store-file' option > deprecated, please use 'store-location' and 'store-type' instead. > 2009-04-15 18:31:18 [9772] [0] INFO: HTTP: Opening server at port > 13000. > 2009-04-15 18:31:18 [9772] [1] DEBUG: Thread 1 (gwlib/ > fdset.c:poller) maps to pid 9772. > 2009-04-15 18:31:18 [9772] [0] DEBUG: Started thread 1 (gwlib/ > fdset.c:poller) > 2009-04-15 18:31:18 [9772] [2] DEBUG: Thread 2 (gwlib/ > http.c:server_thread) maps to pid 9772. > 2009-04-15 18:31:18 [9772] [0] DEBUG: Started thread 2 (gwlib/ > http.c:server_thread) > 2009-04-15 18:31:18 [9772] [3] DEBUG: Thread 3 (gw/ > bb_http.c:httpadmin_run) maps to pid 9772. > 2009-04-15 18:31:18 [9772] [0] DEBUG: Started thread 3 (gw/ > bb_http.c:httpadmin_run) > 2009-04-15 18:31:18 [9772] [0] DEBUG: starting smsbox connection > module > 2009-04-15 18:31:18 [9772] [0] INFO: BOXC: 'smsbox-max-pending' not > set, using default (100). > 2009-04-15 18:31:18 [9772] [4] DEBUG: Thread 4 (gw/ > bb_boxc.c:sms_to_smsboxes) maps to pid 9772. > 2009-04-15 18:31:18 [9772] [0] DEBUG: Started thread 4 (gw/ > bb_boxc.c:sms_to_smsboxes) > 2009-04-15 18:31:18 [9772] [5] DEBUG: Thread 5 (gw/ > bb_boxc.c:smsboxc_run) maps to pid 9772. > 2009-04-15 18:31:18 [9772] [0] DEBUG: Started thread 5 (gw/ > bb_boxc.c:smsboxc_run) > 2009-04-15 18:31:18 [9772] [0] INFO: Set SMS resend frequency to 60 > seconds. > 2009-04-15 18:31:18 [9772] [0] INFO: SMS resend retry set to > unlimited. > 2009-04-15 18:31:18 [9772] [0] DEBUG: smsbox MO concatenated message > handling enabled > 2009-04-15 18:31:18 [9772] [0] INFO: DLR rerouting for smsc id > <itegno> disabled. > 2009-04-15 18:31:18 [9772] [0] INFO: AT2[itegno]: configuration > shows modemtype <wavecom> > 2009-04-15 18:31:18 [9772] [0] DEBUG: AT2[itegno]: Reading modem > definitions from </etc/kannel.conf> > 2009-04-15 18:31:18 [9772] [0] DEBUG: AT2[itegno]: Found <1> modems > in config > 2009-04-15 18:31:18 [9772] [0] INFO: AT2[itegno]: modemtype not > found, revert to autodetect > 2009-04-15 18:31:18 [9772] [0] DEBUG: Started thread 6 (gw/smsc/ > smsc_at.c:at2_device_thread) > 2009-04-15 18:31:18 [9772] [6] DEBUG: Thread 6 (gw/smsc/ > smsc_at.c:at2_device_thread) maps to pid 9772. > 2009-04-15 18:31:18 [9772] [7] DEBUG: Thread 7 (gw/ > bb_smscconn.c:sms_router) maps to pid 9772. > 2009-04-15 18:31:18 [9772] [0] DEBUG: Started thread 7 (gw/ > bb_smscconn.c:sms_router) > 2009-04-15 18:31:18 [9772] [0] INFO: > ---------------------------------------- > 2009-04-15 18:31:18 [9772] [0] INFO: Kannel bearerbox II version > 1.4.3 starting > 2009-04-15 18:31:18 [9772] [6] DEBUG: AT2[itegno]: detecting modem > type > 2009-04-15 18:31:18 [9772] [6] INFO: AT2[itegno]: opening device > 2009-04-15 18:31:18 [9772] [0] INFO: Loading store file `/var/log/ > kannel/kannel.store' > 2009-04-15 18:31:18 [9772] [0] INFO: Store-file size 0, starting to > unpack > 2009-04-15 18:31:18 [9772] [0] INFO: Retrieved 0 messages, non- > acknowledged messages: 0 > 2009-04-15 18:31:18 [9772] [0] DEBUG: Started thread 8 (gw/ > bb_store_file.c:store_dumper) > 2009-04-15 18:31:18 [9772] [8] DEBUG: Thread 8 (gw/ > bb_store_file.c:store_dumper) maps to pid 9772. > 2009-04-15 18:31:18 [9772] [0] INFO: MAIN: Start-up done, entering > mainloop > 2009-04-15 18:31:18 [9772] [8] DEBUG: Dumping 0 messages to store > 2009-04-15 18:31:18 [9772] [0] DEBUG: AT2[itegno]: start called > 2009-04-15 18:31:18 [9772] [6] DEBUG: AT2[itegno]: device opened. > Telnet mode = 0 > 2009-04-15 18:31:19 [9772] [6] DEBUG: AT2[itegno]: device opened > 2009-04-15 18:31:19 [9772] [6] INFO: AT2[itegno]: speed set to 115200 > 2009-04-15 18:31:19 [9772] [6] DEBUG: AT2[itegno]: --> ^M > 2009-04-15 18:31:19 [9772] [6] DEBUG: AT2[itegno]: <-- OK > 2009-04-15 18:31:19 [9772] [6] DEBUG: AT2[itegno]: --> AT^M > 2009-04-15 18:31:19 [9772] [6] DEBUG: AT2[itegno]: <-- OK > 2009-04-15 18:31:19 [9772] [6] DEBUG: AT2[itegno]: --> AT&F^M > 2009-04-15 18:31:19 [9772] [6] DEBUG: AT2[itegno]: <-- OK > 2009-04-15 18:31:19 [9772] [6] DEBUG: AT2[itegno]: --> ATE0^M > 2009-04-15 18:31:23 [9772] [6] ERROR: AT2[itegno]: Couldn't connect > (retrying in 10 seconds). > 2009-04-15 18:31:33 [9772] [6] DEBUG: AT2[itegno]: detecting modem > type > 2009-04-15 18:31:33 [9772] [6] INFO: AT2[itegno]: opening device > 2009-04-15 18:31:33 [9772] [6] WARNING: AT2[itegno]: trying to open > device with not closed device!!! Please report!!! > 2009-04-15 18:31:33 [9772] [6] INFO: AT2[itegno]: Closing device > 2009-04-15 18:31:33 [9772] [6] DEBUG: AT2[itegno]: device opened. > Telnet mode = 0 > 2009-04-15 18:31:34 [9772] [6] DEBUG: AT2[itegno]: device opened > 2009-04-15 18:31:34 [9772] [6] INFO: AT2[itegno]: speed set to 115200 > 2009-04-15 18:31:34 [9772] [6] DEBUG: AT2[itegno]: --> ^M > 2009-04-15 18:31:34 [9772] [6] DEBUG: AT2[itegno]: <-- OK > 2009-04-15 18:31:34 [9772] [6] DEBUG: AT2[itegno]: --> AT^M > 2009-04-15 18:31:34 [9772] [6] DEBUG: AT2[itegno]: <-- OK > 2009-04-15 18:31:34 [9772] [6] DEBUG: AT2[itegno]: --> AT&F^M > 2009-04-15 18:31:34 [9772] [6] DEBUG: AT2[itegno]: <-- OK > 2009-04-15 18:31:34 [9772] [6] DEBUG: AT2[itegno]: --> ATE0^M > 2009-04-15 18:31:37 [9772] [0] WARNING: Killing signal or HTTP admin > command received, shutting down... > 2009-04-15 18:31:37 [9772] [0] DEBUG: Shutting down Kannel... > 2009-04-15 18:31:37 [9772] [0] DEBUG: shutting down smsc > 2009-04-15 18:31:37 [9772] [0] DEBUG: AT2[itegno]: Shutting down > SMSCConn, slow > 2009-04-15 18:31:37 [9772] [0] DEBUG: shutting down udp > 2009-04-15 18:31:38 [9772] [6] INFO: AT2[itegno]: Closing device > 2009-04-15 18:31:38 [9772] [6] DEBUG: Thread 6 (gw/smsc/ > smsc_at.c:at2_device_thread) terminates. > 2009-04-15 18:31:38 [9772] [7] DEBUG: Thread 7 (gw/ > bb_smscconn.c:sms_router) terminates. > 2009-04-15 18:31:38 [9772] [4] DEBUG: Thread 4 (gw/ > bb_boxc.c:sms_to_smsboxes) terminates. > 2009-04-15 18:31:38 [9772] [0] INFO: All flow threads have died, > killing core > 2009-04-15 18:31:38 [9772] [3] DEBUG: HTTP: No clients with > requests, quitting. > 2009-04-15 18:31:38 [9772] [3] DEBUG: Thread 3 (gw/ > bb_http.c:httpadmin_run) terminates. > 2009-04-15 18:31:38 [9772] [2] DEBUG: Thread 2 (gwlib/ > http.c:server_thread) terminates. > 2009-04-15 18:31:38 [9772] [1] DEBUG: Thread 1 (gwlib/ > fdset.c:poller) terminates. > 2009-04-15 18:31:38 [9772] [0] DEBUG: final clean-up for SMSCConn > 2009-04-15 18:31:38 [9772] [0] DEBUG: smsbox MO concatenated message > handling cleaned up > 2009-04-15 18:31:38 [9772] [5] DEBUG: Thread 5 (gw/ > bb_boxc.c:smsboxc_run) terminates. > 2009-04-15 18:31:38 [9772] [8] DEBUG: Dumping 0 messages to store > 2009-04-15 18:31:38 [9772] [8] DEBUG: Thread 8 (gw/ > bb_store_file.c:store_dumper) terminates. > 2009-04-15 18:31:38 [9772] [0] INFO: Total WDP messages: received 0, > sent 0 > 2009-04-15 18:31:38 [9772] [0] INFO: Total SMS messages: received 0, > sent 0 > 2009-04-15 18:31:38 [9772] [0] DEBUG: Immutable octet strings: 225. > > > Here is my /etc/kannel.conf file: > > #CORE > group = core > admin-port = 13000 > smsbox-port = 13001 > admin-password = > status-password = > log-file = "/var/log/kannel/kannel.log" > log-level = 0 > access-log = "/var/log/kannel/access.log" > store-file = "/var/log/kannel/kannel.store" > > # SMSC Fake > #group = smsc > #smsc = fake > #host = localhost > #port = 13013 > > #SMSC modem gsm > group = smsc > smsc = at > host = localhost > port = 13013 > smsc-id = itegno > modemtype = wavecom > device = /dev/ttyUSB0 > speed = 115200 > sms-center = +62818445009 > my-number = +6285959234238 > > group = modems > id = auto > name = auto > detect-string = auto > init-string = "AT+CNMI=2,1,0,0,0;+CMEE=1" > > # SMSBOX SETUP > group = smsbox > bearerbox-host = localhost > sendsms-port = 13013 > sendsms-chars = "0123456789+" > global-sender = +62818445009 > log-level = 0 > log-file = "/var/log/kannel/smsbox.log" > access-log = "/var/log/kannel/access.log" > > # SEND-SMS USERS > group = sendsms-user > username = playsms > password = /ayang/ > > # SMS SERVICE 'Default' > # there should be default always > group = sms-service > keyword = default > accept-x-kannel-headers = true > max-messages = 0 > assume-plain-text = true > catch-all = true > #exec = /usr/local/bin/kannel_incoming %t %q %a > #get-url = "http://localhost/~playsms/plugin/gateway/kannel/geturl.php?t= > %t&q=%q&a=%a" > > > thanks for ur support > > > -- > regards, > ruth