Ingeborg Hellemo <Ingeborg.Hellemo@cc.uit.no> writes:
Are your changes saved properly, despite the errors?
Yes, I later found out that everything works, you just have to ignore the large yellow warning signs.
I thought so. We'll be looking at it, but it's not a high priority because of the fact that it still works (remember to wear your protective goggles, though). -- mvh Morten Brekkevold UNINETT
From morten.brekkevold at uninett.no Tue Oct 30 13:12:22 2007 From: morten.brekkevold at uninett.no (Morten Brekkevold) Date: Tue Oct 30 13:13:31 2007 Subject: [Nav-users] smsd is throwing exceptions at me In-Reply-To: <200710301114.l9UBE8ql079279@barnetv.cc.uit.no> (Ingeborg Hellemo's message of "Tue, 30 Oct 2007 12:14:08 +0100") References: <200710301114.l9UBE8ql079279@barnetv.cc.uit.no> Message-ID: <yylhck8vm1l.fsf@voldsminde.uninett.no>
Ingeborg Hellemo <Ingeborg.Hellemo@cc.uit.no> writes:
After this smsd dies. Before i changed smsd.conf the [DEBUG]-line was missing. But nothing from dispatcher.py or gammudispatcher.py
Looks like smsd has an issue with logging; it doesn't log to the log file until after it has forked off a daemon process. Anything before that is logged to stderr, which has been redirected to /dev/null by the nav start command. I assumed this was also on po, so I tried to send a test message by using smsd.py directly (see smsd.py --help for more): % ./smsd.py -t <phoneno> DEBUG Dispatcher retry time not set, using default. DEBUG Init dispatcher 1: GammuDispatcher WARNING Failed to import GammuDispatcher: python-gammu not installed or misconfigured. CRITICAL Sending failed. Exiting. (No dispatchers available. None configured or all dispatchers failed permanently.) The error you caught in your logs was due to the fact that no dispatchers had been loaded (which, in essence, was what the message said). So, first you should install _python-gammu_. Second, I'd say there are two issues with smsd: 1. Logs should always be sent to the log file. 2. smsd should never fork into daemon mode if no dispatchers are loaded, it should fail on startup. Cc to Stein Magnus, I will probably post one or two bugs for him. -- mvh Morten Brekkevold UNINETT
From morten.brekkevold at uninett.no Tue Oct 30 13:25:47 2007 From: morten.brekkevold at uninett.no (Morten Brekkevold) Date: Tue Oct 30 13:25:53 2007 Subject: [Nav-users] snmptrapd with ImportError In-Reply-To: <200710301101.l9UB18tK078731@barnetv.cc.uit.no> (Ingeborg Hellemo's message of "Tue, 30 Oct 2007 12:01:08 +0100") References: <200710301101.l9UB18tK078731@barnetv.cc.uit.no> Message-ID: <yyld4uwvlf8.fsf@voldsminde.uninett.no>
Ingeborg Hellemo <Ingeborg.Hellemo@cc.uit.no> writes:
Now we have a "TypeError": [snip] File "/usr/local/nav/lib/python/nav/snmptrapd/handlers/linkupdown.py", line 110, in handleTrap subid = idres['swportid'] TypeError: unsubscriptable object
Took a look at the code, and I'm throwing this one right in John-Magne's face: http://sourceforge.net/tracker/index.php?func=detail&aid=1822731&group_id=10... -- mvh Morten Brekkevold UNINETT
From Ingeborg.Hellemo at cc.uit.no Tue Oct 30 13:54:13 2007 From: Ingeborg.Hellemo at cc.uit.no (Ingeborg Hellemo) Date: Tue Oct 30 13:54:16 2007 Subject: [Nav-users] smsd is throwing exceptions at me In-Reply-To: Your message of "Tue, 30 Oct 2007 13:12:22 +0100." <yylhck8vm1l.fsf@voldsminde.uninett.no> Message-ID: <200710301254.l9UCsDqp081537@barnetv.cc.uit.no>
morten.brekkevold@uninett.no said:
% ./smsd.py -t <phoneno> DEBUG Dispatcher retry time not set, using default. DEBUG Init dispatcher 1: GammuDispatcher WARNING Failed to import GammuDispatcher: python-gammu not installed or misconfigured.
Thank you! Finally something to work with! (I expected this was the error, but it is difficult to fix things when you are blind...) morten.brekkevold@uninett.no said:
So, first you should install _python-gammu_.
I found the error. I had to jump through some hoops to get gammu to install a shared library. So, finally something is beginning to work today: [2007-10-30 13:48:16,699] [DEBUG] [pid=18417 nav.smsd] Starting loop. [2007-10-30 13:48:16,703] [INFO] [pid=18417 nav.smsd] Found 1 user(s) with unsent messages. [2007-10-30 13:48:16,708] [INFO] [pid=18417 nav.smsd] Found 25 unsent message(s) for 98668305. [2007-10-30 13:48:16,709] [DEBUG] [pid=18417 nav.smsd.dispatcher] Trying GammuDispatcher... [2007-10-30 13:48:26,139] [INFO] [pid=18417 nav.smsd] SMS sent to 98668305. [2007-10-30 13:48:26,485] [INFO] [pid=18417 nav.smsd] 2 messages was sent and 23 ignored. Of course I have left my phone at home so I am not able to read all the wonderful messages... --Ingeborg -- Ingeborg ?strem Hellemo -- ingeborg@cc.uit.no (Univ. of Troms?, Norway)