On Ubuntu Natty, the configuration order is important. Hence in folder /etc/rsyslogd.conf, file 20-ufw.conf takes precedence over 50-default.conf. Hence if one would like to have its configuration take precedence, the filename must be like 30-voip-router.conf.
Following content would suffice:
root@delbuntu:/etc/rsyslog.d# cat 30-voip-router.conf
$ModLoad imudp
$UDPServerRun 514
#$ModLoad imtcp
#$InputTCPServerRun 514
$template DynFile,"/var/log/router-log/%HOSTNAME%/%timegenerated:1:10:date-rfc3339%"
:HOSTNAME, !isequal, "localhost" ?DynFile
& ~
Tuesday, May 10, 2011
Setting up rsyslogd to get logs from Cisco SPA3102.
Posted by linuxtechie at 10:49 PM 0 comments
Monday, April 25, 2011
Moin Moin Migration
- When moving from one version to another, make sure that the old Cache directories are deleted, else they would cause problem by loading wrong modules.
- For e.g an error as following might be observed:
[Mon Apr 18 12:50:33 2011] [error] 2011-04-18 12:50:33,371 INFO MoinMoin.config.multiconfig:127 using wiki config: D:\\xampp\\moinconfig\\wikiconfig.py
[Mon Apr 18 12:50:43 2011] [error] 2011-04-18 12:50:43,276 ERROR MoinMoin.wsgiapp:293 An exception has occurred [https://gjm6n1s-706/mm/MyStartingPage].
[Mon Apr 18 12:50:43 2011] [error] Traceback (most recent call last):
[Mon Apr 18 12:50:43 2011] [error] File "D:/xampp/moincode\\MoinMoin\\wsgiapp.py", line 282, in __call__
[Mon Apr 18 12:50:43 2011] [error] response = run(context)
[Mon Apr 18 12:50:43 2011] [error] File "D:/xampp/moincode\\MoinMoin\\wsgiapp.py", line 88, in run
[Mon Apr 18 12:50:43 2011] [error] response = dispatch(request, context, action_name)
[Mon Apr 18 12:50:43 2011] [error] File "D:/xampp/moincode\\MoinMoin\\wsgiapp.py", line 136, in dispatch
[Mon Apr 18 12:50:43 2011] [error] response = handle_action(context, pagename, action_name)
[Mon Apr 18 12:50:43 2011] [error] File "D:/xampp/moincode\\MoinMoin\\wsgiapp.py", line 195, in handle_action
[Mon Apr 18 12:50:43 2011] [error] handler(context.page.page_name, context)
[Mon Apr 18 12:50:43 2011] [error] File "D:/xampp/moincode\\MoinMoin\\action\\login.py", line 18, in execute
[Mon Apr 18 12:50:43 2011] [error] return LoginHandler(pagename, request).handle()
[Mon Apr 18 12:50:43 2011] [error] File "D:/xampp/moincode\\MoinMoin\\action\\login.py", line 70, in handle
[Mon Apr 18 12:50:43 2011] [error] return self.page.send_page()
[Mon Apr 18 12:50:43 2011] [error] File "D:/xampp/moincode\\MoinMoin\\Page.py", line 1199, in send_page
[Mon Apr 18 12:50:43 2011] [error] start_line=pi['lines'])
[Mon Apr 18 12:50:43 2011] [error] File "D:/xampp/moincode\\MoinMoin\\Page.py", line 1287, in send_page_content
[Mon Apr 18 12:50:43 2011] [error] self.execute(request, parser, code)
[Mon Apr 18 12:50:43 2011] [error] File "D:/xampp/moincode\\MoinMoin\\Page.py", line 1318, in execute
[Mon Apr 18 12:50:43 2011] [error] exec code
[Mon Apr 18 12:50:43 2011] [error] File "MyStartingPage", line 2, in
[Mon Apr 18 12:50:43 2011] [error] TypeError: 'dict' object is not callable
[Mon Apr 18 12:50:43 2011] [error] [client 137.72.255.193] mod_wsgi (pid=1072): Exception occurred processing WSGI script 'D:/xampp/moinconfig/wiki.wsgi'., referer: https://gjm6n1s-706/mm/MyStartingPage?action=login
[Mon Apr 18 12:50:43 2011] [error] [client 137.72.255.193] Traceback (most recent call last):, referer: https://gjm6n1s-706/mm/MyStartingPage?action=login
[Mon Apr 18 12:50:43 2011] [error] [client 137.72.255.193] File "D:\\xampp\\moincode\\MoinMoin\\support\\werkzeug\\utils.py", line 248, in __call__, referer: https://gjm6n1s-706/mm/MyStartingPage?action=login
[Mon Apr 18 12:50:43 2011] [error] [client 137.72.255.193] return self.app(environ, start_response), referer: https://gjm6n1s-706/mm/MyStartingPage?action=login
[Mon Apr 18 12:50:43 2011] [error] [client 137.72.255.193] File "D:/xampp/moincode\\MoinMoin\\wsgiapp.py", line 282, in __call__, referer: https://gjm6n1s-706/mm/MyStartingPage?action=login
[Mon Apr 18 12:50:43 2011] [error] [client 137.72.255.193] response = run(context), referer: https://gjm6n1s-706/mm/MyStartingPage?action=login
[Mon Apr 18 12:50:43 2011] [error] [client 137.72.255.193] File "D:/xampp/moincode\\MoinMoin\\wsgiapp.py", line 88, in run, referer: https://gjm6n1s-706/mm/MyStartingPage?action=login
[Mon Apr 18 12:50:43 2011] [error] [client 137.72.255.193] response = dispatch(request, context, action_name), referer: https://gjm6n1s-706/mm/MyStartingPage?action=login
[Mon Apr 18 12:50:43 2011] [error] [client 137.72.255.193] File "D:/xampp/moincode\\MoinMoin\\wsgiapp.py", line 136, in dispatch, referer: https://gjm6n1s-706/mm/MyStartingPage?action=login
[Mon Apr 18 12:50:43 2011] [error] [client 137.72.255.193] response = handle_action(context, pagename, action_name), referer: https://gjm6n1s-706/mm/MyStartingPage?action=login
[Mon Apr 18 12:50:43 2011] [error] [client 137.72.255.193] File "D:/xampp/moincode\\MoinMoin\\wsgiapp.py", line 195, in handle_action, referer: https://gjm6n1s-706/mm/MyStartingPage?action=login
[Mon Apr 18 12:50:43 2011] [error] [client 137.72.255.193] handler(context.page.page_name, context), referer: https://gjm6n1s-706/mm/MyStartingPage?action=login
[Mon Apr 18 12:50:43 2011] [error] [client 137.72.255.193] File "D:/xampp/moincode\\MoinMoin\\action\\login.py", line 18, in execute, referer: https://gjm6n1s-706/mm/MyStartingPage?action=login
[Mon Apr 18 12:50:43 2011] [error] [client 137.72.255.193] return LoginHandler(pagename, request).handle(), referer: https://gjm6n1s-706/mm/MyStartingPage?action=login
[Mon Apr 18 12:50:43 2011] [error] [client 137.72.255.193] File "D:/xampp/moincode\\MoinMoin\\action\\login.py", line 70, in handle, referer: https://gjm6n1s-706/mm/MyStartingPage?action=login
[Mon Apr 18 12:50:43 2011] [error] [client 137.72.255.193] return self.page.send_page(), referer: https://gjm6n1s-706/mm/MyStartingPage?action=login
[Mon Apr 18 12:50:43 2011] [error] [client 137.72.255.193] File "D:/xampp/moincode\\MoinMoin\\Page.py", line 1199, in send_page, referer: https://gjm6n1s-706/mm/MyStartingPage?action=login
[Mon Apr 18 12:50:43 2011] [error] [client 137.72.255.193] start_line=pi['lines']), referer: https://gjm6n1s-706/mm/MyStartingPage?action=login
[Mon Apr 18 12:50:43 2011] [error] [client 137.72.255.193] File "D:/xampp/moincode\\MoinMoin\\Page.py", line 1287, in send_page_content, referer: https://gjm6n1s-706/mm/MyStartingPage?action=login
[Mon Apr 18 12:50:43 2011] [error] [client 137.72.255.193] self.execute(request, parser, code), referer: https://gjm6n1s-706/mm/MyStartingPage?action=login
[Mon Apr 18 12:50:43 2011] [error] [client 137.72.255.193] File "D:/xampp/moincode\\MoinMoin\\Page.py", line 1318, in execute, referer: https://gjm6n1s-706/mm/MyStartingPage?action=login
[Mon Apr 18 12:50:43 2011] [error] [client 137.72.255.193] exec code, referer: https://gjm6n1s-706/mm/MyStartingPage?action=login
[Mon Apr 18 12:50:43 2011] [error] [client 137.72.255.193] File "MyStartingPage", line 2, in
[Mon Apr 18 12:50:43 2011] [error] [client 137.72.255.193] TypeError: 'dict' object is not callable, referer: https://gjm6n1s-706/mm/MyStartingPage?action=login
Posted by linuxtechie at 12:46 PM 0 comments
Subscribe to:
Posts (Atom)