Odoo Configurations - customization
I installed Openerp7 and it worked good
then i put some add-ons then i returned me with handler not found..
Following errors in log file below are mentioned...
2014-09-06 17:43:16,509 3892 INFO openerp openerp.modules.loading: loading 1 modules...
2014-09-06 17:43:17,994 3892 INFO openerp openerp.modules.loading: loading 46 modules...
2014-09-06 17:43:20,868 3892 INFO openerp openerp.modules.loading: Modules loaded.
2014-09-06 17:43:22,322 3892 INFO openerp werkzeug: 127.0.0.1 - - [06/Sep/2014 17:43:22] "GET /web/webclient/css?db=openerp HTTP/1.1" 200 -
2014-09-06 17:43:25,562 3892 INFO openerp werkzeug: 127.0.0.1 - - [06/Sep/2014 17:43:25] "GET /web/webclient/js?db=openerp HTTP/1.1" 200 -
2014-09-06 17:43:27,377 3892 INFO ? werkzeug: 127.0.0.1 - - [06/Sep/2014 17:43:27] "POST /web/session/get_session_info HTTP/1.1" 200 -
2014-09-06 17:43:27,641 3892 INFO ? werkzeug: 127.0.0.1 - - [06/Sep/2014 17:43:27] "POST /web/webclient/qweblist HTTP/1.1" 200 -
2014-09-06 17:43:27,857 3892 INFO ? werkzeug: 127.0.0.1 - - [06/Sep/2014 17:43:27] "POST /web/webclient/bootstrap_translations HTTP/1.1" 200 -
2014-09-06 17:43:28,042 3892 INFO ? werkzeug: 127.0.0.1 - - [06/Sep/2014 17:43:28] "POST /web/proxy/load HTTP/1.1" 200 -
2014-09-06 17:43:28,318 3892 ERROR ? openerp.sql_db: Connection to the database failed
Traceback (most recent call last):
File "C:\Program Files (x86)\OpenERP\Server\server\.\openerp\sql_db.py", line 440, in borrow
File "psycopg2\__init__.pyc", line 178, in connect
OperationalError: server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
2014-09-06 17:43:28,318 3892 ERROR ? openerp.netsvc: server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
Traceback (most recent call last):
File "C:\Program Files (x86)\OpenERP\Server\server\.\openerp\netsvc.py", line 296, in dispatch_rpc
File "C:\Program Files (x86)\OpenERP\Server\server\.\openerp\service\web_services.py", line 122, in dispatch
File "C:\Program Files (x86)\OpenERP\Server\server\.\openerp\service\web_services.py", line 359, in exp_list
File "C:\Program Files (x86)\OpenERP\Server\server\.\openerp\sql_db.py", line 484, in cursor
File "C:\Program Files (x86)\OpenERP\Server\server\.\openerp\sql_db.py", line 182, in __init__
File "C:\Program Files (x86)\OpenERP\Server\server\.\openerp\sql_db.py", line 377, in _locked
File "C:\Program Files (x86)\OpenERP\Server\server\.\openerp\sql_db.py", line 440, in borrow
File "psycopg2\__init__.pyc", line 178, in connect
OperationalError: server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
2014-09-06 17:43:28,325 3892 INFO ? werkzeug: 127.0.0.1 - - [06/Sep/2014 17:43:28] "GET /web/binary/company_logo?session_id=9e63c8cabdc048c7aeb2f46f51a79830 HTTP/1.1" 500 -
2014-09-06 17:43:28,469 3892 INFO ? werkzeug: 127.0.0.1 - - [06/Sep/2014 17:43:28] "GET /web/static/src/img/logo2.png HTTP/1.1" 200 -
2014-09-06 17:43:28,490 3892 INFO ? werkzeug: 127.0.0.1 - - [06/Sep/2014 17:43:28] "POST /web/database/get_list HTTP/1.1" 200 -
2014-09-06 17:43:38,778 3892 INFO openerp openerp.service.web_services: successful login from 'admin' using database 'openerp'
2014-09-06 17:43:38,786 3892 INFO openerp werkzeug: 127.0.0.1 - - [06/Sep/2014 17:43:38] "POST /web/session/authenticate HTTP/1.1" 200 -
2014-09-06 17:43:38,875 3892 INFO openerp werkzeug: 127.0.0.1 - - [06/Sep/2014 17:43:38] "POST /web/session/modules HTTP/1.1" 200 -
2014-09-06 17:43:39,214 3892 INFO openerp werkzeug: 127.0.0.1 - - [06/Sep/2014 17:43:39] "POST /web/webclient/csslist HTTP/1.1" 200 -
2014-09-06 17:43:39,224 3892 INFO openerp werkzeug: 127.0.0.1 - - [06/Sep/2014 17:43:39] "POST /web/webclient/qweblist HTTP/1.1" 200 -
2014-09-06 17:43:39,239 3892 INFO openerp werkzeug: 127.0.0.1 - - [06/Sep/2014 17:43:39] "POST /web/webclient/jslist HTTP/1.1" 200 -
2014-09-06 17:43:39,466 3892 INFO ? werkzeug: 127.0.0.1 - - [06/Sep/2014 17:43:39] "GET /web/webclient/css?mods=web_diagram%2Cbase%2Cbase_setup%2Cmail%2Cboard%2Chr%2Cemail_template%2Cauth_signup%2Cshare%2Cportal%2Cprocess%2Cbase_calendar%2Ccrm%2Cportal_crm%2Cportal_hr_employees%2Chr_attendance%2Cweb_graph%2Cedi%2Caccount%2Caccount_voucher%2Csale%2Cweb_view_editor%2Cweb_calendar%2Chr_timesheet_sheet%2Cpoint_of_sale%2Cweb_gantt%2Caccount_accountant%2Cweb_tests%2Cstock HTTP/1.1" 200 -
2014-09-06 17:43:39,970 3892 INFO openerp werkzeug: 127.0.0.1 - - [06/Sep/2014 17:43:39] "POST /web/webclient/translations HTTP/1.1" 200 -
2014-09-06 17:43:39,979 3892 INFO openerp werkzeug: 127.0.0.1 - - [06/Sep/2014 17:43:39] "POST /web/proxy/load HTTP/1.1" 200 -
2014-09-06 17:43:40,009 3892 INFO ? werkzeug: 127.0.0.1 - - [06/Sep/2014 17:43:40] "GET /web/static/lib/datejs/globalization/en-US.js HTTP/1.1" 200 -
2014-09-06 17:43:40,740 3892 INFO ? werkzeug: 127.0.0.1 - - [06/Sep/2014 17:43:40] "GET /web/webclient/js?mods=web_diagram%2Cbase%2Cbase_setup%2Cmail%2Cboard%2Chr%2Cemail_template%2Cauth_signup%2Cshare%2Cportal%2Cprocess%2Cbase_calendar%2Ccrm%2Cportal_crm%2Cportal_hr_employees%2Chr_attendance%2Cweb_graph%2Cedi%2Caccount%2Caccount_voucher%2Csale%2Cweb_view_editor%2Cweb_calendar%2Chr_timesheet_sheet%2Cpoint_of_sale%2Cweb_gantt%2Caccount_accountant%2Cweb_tests%2Cstock HTTP/1.1" 200 -
2014-09-06 17:43:41,522 3892 INFO ? werkzeug: 127.0.0.1 - - [06/Sep/2014 17:43:41] "GET /web/static/src/img/user_menu_avatar.png HTTP/1.1" 200 -
2014-09-06 17:43:41,829 3892 ERROR openerp openerp.sql_db: Connection to the database failed
Traceback (most recent call last):
File "C:\Program Files (x86)\OpenERP\Server\server\.\openerp\sql_db.py", line 440, in borrow
File "psycopg2\__init__.pyc", line 178, in connect
OperationalError: server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
2014-09-06 17:43:41,854 3892 INFO openerp werkzeug: 127.0.0.1 - - [06/Sep/2014 17:43:41] "POST /web/dataset/call_kw HTTP/1.1" 200 -
2014-09-06 17:43:41,865 3892 INFO openerp werkzeug: 127.0.0.1 - - [06/Sep/2014 17:43:41] "POST /web/dataset/call_kw HTTP/1.1" 200 -
2014-09-06 17:43:42,036 3892 INFO openerp werkzeug: 127.0.0.1 - - [06/Sep/2014 17:43:42] "GET /web/binary/company_logo?session_id=9e63c8cabdc048c7aeb2f46f51a79830 HTTP/1.1" 200 -
2014-09-06 17:43:42,269 3892 INFO ? werkzeug: 127.0.0.1 - - [06/Sep/2014 17:43:42] "GET /web/static/lib/jquery.ui.bootstrap/css/custom-theme/images/ui-icons_222222_256x240.png HTTP/1.1" 200 -
2014-09-06 17:43:42,424 3892 INFO openerp werkzeug: 127.0.0.1 - - [06/Sep/2014 17:43:42] "GET /web/binary/image?model=res.users&field=image_small&id=1&session_id=9e63c8cabdc048c7aeb2f46f51a79830 HTTP/1.1" 200 -
2014-09-06 17:43:42,681 3892 INFO ? werkzeug: 127.0.0.1 - - [06/Sep/2014 17:43:42] "GET /web/static/src/font/entypo-webfont.ttf HTTP/1.1" 200 -
2014-09-06 17:43:43,364 3892 INFO openerp werkzeug: 127.0.0.1 - - [06/Sep/2014 17:43:43] "POST /web/action/load HTTP/1.1" 200 -
2014-09-06 17:43:43,424 3892 INFO openerp werkzeug: 127.0.0.1 - - [06/Sep/2014 17:43:43] "POST /web/dataset/call_kw HTTP/1.1" 200 -
2014-09-06 17:43:43,706 3892 INFO openerp werkzeug: 127.0.0.1 - - [06/Sep/2014 17:43:43] "POST /web/dataset/call_kw HTTP/1.1" 200 -
2014-09-06 17:43:43,736 3892 INFO ? werkzeug: 127.0.0.1 - - [06/Sep/2014 17:43:43] "GET /web/static/src/img/search_reset.gif HTTP/1.1" 200 -
2014-09-06 17:43:43,757 3892 INFO ? werkzeug: 127.0.0.1 - - [06/Sep/2014 17:43:43] "GET /web/static/src/font/mnmliconsv21-webfont.ttf HTTP/1.1" 200 -
2014-09-06 17:43:43,963 3892 INFO openerp werkzeug: 127.0.0.1 - - [06/Sep/2014 17:43:43] "POST /web/menu/load HTTP/1.1" 200 -
2014-09-06 17:43:44,010 3892 INFO ? werkzeug: 127.0.0.1 - - [06/Sep/2014 17:43:44] "GET /web/static/lib/jquery.ui.bootstrap/css/custom-theme/images/ui-bg_glass_75_ffffff_1x400.png HTTP/1.1" 200 -
2014-09-06 17:43:44,029 3892 INFO openerp werkzeug: 127.0.0.1 - - [06/Sep/2014 17:43:44] "POST /web/dataset/call_kw HTTP/1.1" 200 -
2014-09-06 17:43:44,130 3892 INFO ? werkzeug: 127.0.0.1 - - [06/Sep/2014 17:43:44] "GET /hr_attendance/static/src/img/emp-out32.png HTTP/1.1" 200 -
2014-09-06 17:43:44,181 3892 INFO openerp werkzeug: 127.0.0.1 - - [06/Sep/2014 17:43:44] "POST /web/dataset/search_read HTTP/1.1" 200 -
2014-09-06 17:43:44,421 3892 INFO ? werkzeug: 127.0.0.1 - - [06/Sep/2014 17:43:44] "GET /hr_attendance/static/src/img/emp-in32.png HTTP/1.1" 200 -
2014-09-06 17:43:44,427 3892 INFO ? werkzeug: 127.0.0.1 - - [06/Sep/2014 17:43:44] "GET /web/static/src/img/view_empty_arrow.png HTTP/1.1" 200 -
2014-09-06 17:43:44,441 3892 INFO openerp werkzeug: 127.0.0.1 - - [06/Sep/2014 17:43:44] "POST /web/dataset/call_kw HTTP/1.1" 200 -
2014-09-06 17:43:44,765 3892 INFO openerp werkzeug: 127.0.0.1 - - [06/Sep/2014 17:43:44] "POST /web/dataset/call_kw HTTP/1.1" 200 -
2014-09-06 17:43:44,806 3892 INFO ? werkzeug: 127.0.0.1 - - [06/Sep/2014 17:43:44] "GET /web/static/src/img/down-arrow.png HTTP/1.1" 200 -
2014-09-06 17:43:45,035 3892 INFO openerp werkzeug: 127.0.0.1 - - [06/Sep/2014 17:43:45] "POST /web/menu/load_needaction HTTP/1.1" 200 -
2014-09-06 17:44:02,540 3892 INFO ? werkzeug: 127.0.0.1 - - [06/Sep/2014 17:44:02] "GET /web/static/lib/jquery.ui.bootstrap/css/custom-theme/images/ui-icons_f6cf3b_256x240.png HTTP/1.1" 200 -
2014-09-06 18:20:04,079 1636 INFO ? openerp: OpenERP version 7.0-20140622-231040
2014-09-06 18:20:04,079 1636 INFO ? openerp: addons paths: C:\Program Files (x86)\OpenERP\Server\server\openerp\addons
2014-09-06 18:20:04,079 1636 INFO ? openerp: database hostname: localhost
2014-09-06 18:20:04,079 1636 INFO ? openerp: database port: 5432
2014-09-06 18:20:04,079 1636 INFO ? openerp: database user: admin
2014-09-06 18:20:04,084 1636 CRITICAL ? openerp.modules.module: Couldn't load module web
2014-09-06 18:20:04,084 1636 CRITICAL ? openerp.modules.module: No module named http
2014-09-06 18:20:04,084 1636 ERROR ? openerp.service: Failed to load server-wide module `web`.
The `web` module is provided by the addons found in the `openerp-web` project.
Maybe you forgot to add those addons in your addons_path configuration.
Traceback (most recent call last):
File "C:\Program Files (x86)\OpenERP\Server\server\.\openerp\service\__init__.py", line 60, in load_server_wide_modules
File "C:\Program Files (x86)\OpenERP\Server\server\.\openerp\modules\module.py", line 405, in load_openerp_module
File "C:\Program Files (x86)\OpenERP\Server\server\.\openerp\modules\module.py", line 133, in load_module
File "C:\Program Files (x86)\OpenERP\Server\server\openerp\addons\web\__init__.py", line 4, in <module>
ImportError: No module named http
2014-09-06 18:20:04,098 1636 INFO ? openerp: OpenERP server is running, waiting for connections...
2014-09-06 18:20:04,111 1636 INFO ? openerp.service.wsgi_server: HTTP service (werkzeug) running on 0.0.0.0:8069
2014-09-06 18:21:13,732 1636 INFO ? werkzeug: 127.0.0.1 - - [06/Sep/2014 18:21:13] "GET / HTTP/1.1" 404 -
2014-09-06 18:21:13,858 1636 INFO ? werkzeug: 127.0.0.1 - - [06/Sep/2014 18:21:13] "GET /favicon.ico HTTP/1.1" 404 -
2014-09-06 18:21:19,025 1636 INFO ? werkzeug: 127.0.0.1 - - [06/Sep/2014 18:21:19] "GET /?ts=1409765540920 HTTP/1.1" 404 -
2014-09-06 18:21:51,931 1636 INFO ? werkzeug: 127.0.0.1 - - [06/Sep/2014 18:21:51] "GET / HTTP/1.1" 404 -
2014-09-06 18:22:23,240 1636 INFO ? werkzeug: 127.0.0.1 - - [06/Sep/2014 18:22:23] "GET / HTTP/1.1" 404 -
2014-09-06 18:22:45,323 1636 INFO ? werkzeug: 127.0.0.1 - - [06/Sep/2014 18:22:45] "GET / HTTP/1.1" 404 -
2014-09-06 18:29:57,424 3436 INFO ? openerp: OpenERP version 7.0-20140622-231040
2014-09-06 18:29:57,424 3436 INFO ? openerp: addons paths: C:\Program Files (x86)\OpenERP\Server\server\openerp\addons
2014-09-06 18:29:57,424 3436 INFO ? openerp: database hostname: localhost
2014-09-06 18:29:57,424 3436 INFO ? openerp: database port: 5432
2014-09-06 18:29:57,424 3436 INFO ? openerp: database user: admin
2014-09-06 18:29:57,427 3436 CRITICAL ? openerp.modules.module: Couldn't load module web
2014-09-06 18:29:57,427 3436 CRITICAL ? openerp.modules.module: No module named http
2014-09-06 18:29:57,427 3436 ERROR ? openerp.service: Failed to load server-wide module `web`.
The `web` module is provided by the addons found in the `openerp-web` project.
Maybe you forgot to add those addons in your addons_path configuration.
Traceback (most recent call last):
File "C:\Program Files (x86)\OpenERP\Server\server\.\openerp\service\__init__.py", line 60, in load_server_wide_modules
File "C:\Program Files (x86)\OpenERP\Server\server\.\openerp\modules\module.py", line 405, in load_openerp_module
File "C:\Program Files (x86)\OpenERP\Server\server\.\openerp\modules\module.py", line 133, in load_module
File "C:\Program Files (x86)\OpenERP\Server\server\openerp\addons\web\__init__.py", line 4, in <module>
ImportError: No module named http
2014-09-06 18:29:57,434 3436 INFO ? openerp: OpenERP server is running, waiting for connections...
2014-09-06 18:29:57,450 3436 INFO ? openerp.service.wsgi_server: HTTP service (werkzeug) running on 0.0.0.0:8069
2014-09-06 18:31:16,878 1636 INFO ? werkzeug: 127.0.0.1 - - [06/Sep/2014 18:31:16] "GET / HTTP/1.1" 404 -
2014-09-06 18:31:19,743 1636 INFO ? werkzeug: 127.0.0.1 - - [06/Sep/2014 18:31:19] "GET / HTTP/1.1" 404 -
2014-09-06 18:34:27,763 1636 INFO ? werkzeug: 127.0.0.1 - - [06/Sep/2014 18:34:27] "GET / HTTP/1.1" 404 -
2014-09-06 18:37:56,982 1636 INFO ? werkzeug: 127.0.0.1 - - [06/Sep/2014 18:37:56] "GET / HTTP/1.1" 404 -
2014-09-06 18:55:50,635 1636 INFO ? werkzeug: 127.0.0.1 - - [06/Sep/2014 18:55:50] "GET / HTTP/1.1" 404 -
2014-09-06 18:58:14,315 1636 INFO ? werkzeug: 127.0.0.1 - - [06/Sep/2014 18:58:14] "GET / HTTP/1.1" 404 -
2014-09-06 18:58:15,607 1636 INFO ? werkzeug: 127.0.0.1 - - [06/Sep/2014 18:58:15] "GET / HTTP/1.1" 404 -
2014-09-06 18:58:16,848 1636 INFO ? werkzeug: 127.0.0.1 - - [06/Sep/2014 18:58:16] "GET / HTTP/1.1" 404 -
2014-09-06 18:58:52,470 1636 INFO ? werkzeug: 127.0.0.1 - - [06/Sep/2014 18:58:52] "GET / HTTP/1.1" 404 -
2014-09-06 18:59:48,960 2368 INFO ? openerp: OpenERP version 7.0-20140622-231040
2014-09-06 18:59:48,960 2368 INFO ? openerp: addons paths: C:\Program Files (x86)\OpenERP\Server\server\openerp\addons
2014-09-06 18:59:48,960 2368 INFO ? openerp: database hostname: localhost
2014-09-06 18:59:48,961 2368 INFO ? openerp: database port: 5432
2014-09-06 18:59:48,961 2368 INFO ? openerp: database user: admin
2014-09-06 18:59:48,964 2368 CRITICAL ? openerp.modules.module: Couldn't load module web
2014-09-06 18:59:48,964 2368 CRITICAL ? openerp.modules.module: No module named http
2014-09-06 18:59:48,964 2368 ERROR ? openerp.service: Failed to load server-wide module `web`.
The `web` module is provided by the addons found in the `openerp-web` project.
Maybe you forgot to add those addons in your addons_path configuration.
Traceback (most recent call last):
File "C:\Program Files (x86)\OpenERP\Server\server\.\openerp\service\__init__.py", line 60, in load_server_wide_modules
File "C:\Program Files (x86)\OpenERP\Server\server\.\openerp\modules\module.py", line 405, in load_openerp_module
File "C:\Program Files (x86)\OpenERP\Server\server\.\openerp\modules\module.py", line 133, in load_module
File "C:\Program Files (x86)\OpenERP\Server\server\openerp\addons\web\__init__.py", line 4, in <module>
ImportError: No module named http
2014-09-06 18:59:48,971 2368 INFO ? openerp: OpenERP server is running, waiting for connections...
2014-09-06 18:59:49,016 2368 INFO ? openerp.service.wsgi_server: HTTP service (werkzeug) running on 0.0.0.0:8069
2014-09-06 19:00:02,701 2368 INFO ? werkzeug: 127.0.0.1 - - [06/Sep/2014 19:00:02] "GET / HTTP/1.1" 404 -
2014-09-06 19:10:50,871 2368 INFO ? werkzeug: 127.0.0.1 - - [06/Sep/2014 19:10:50] "GET / HTTP/1.1" 404 -
2014-09-06 19:30:41,278 2368 INFO ? werkzeug: 127.0.0.1 - - [06/Sep/2014 19:30:41] "GET / HTTP/1.1" 404 -
2014-09-06 19:30:43,556 2368 INFO ? werkzeug: 127.0.0.1 - - [06/Sep/2014 19:30:43] "GET / HTTP/1.1" 404 -
2014-09-06 19:30:44,753 2368 INFO ? werkzeug: 127.0.0.1 - - [06/Sep/2014 19:30:44] "GET / HTTP/1.1" 404 -
2014-09-06 19:31:43,252 2368 INFO ? werkzeug: 127.0.0.1 - - [06/Sep/2014 19:31:43] "GET / HTTP/1.1" 404 -
2014-09-06 19:31:58,799 2368 INFO ? werkzeug: 127.0.0.1 - - [06/Sep/2014 19:31:58] "GET / HTTP/1.1" 404 -
2014-09-06 19:32:11,859 2368 INFO ? werkzeug: 127.0.0.1 - - [06/Sep/2014 19:32:11] "GET / HTTP/1.1" 404 -
Please tell me about problems
Thanks
The error that you have start with "Connection to the database failed", check your connection to the database.
Normally when I get the error "handler not found" is a problem with dependencies.
with the few information that you give is this what I can tell you.
The error "Connection to the database failed" is because the database connection is failing.
You could try:
/etc/init.d/postgresd restart
Or try connection:
sudo su postgres
psql
\l ; (For list databases)
Did you manually killed a "db process" (not the openerp-server process) from the command line where it is showing the name of the database. If yes, then due to this you faced this issue.
You can do it restarting the openerp-server service and restarting the postgressql service.
Hope this helps!!.
Related
How i filter fluentD logs on kubernetes?
My kubernetes have liveness enable, and it log on application, like this: kubectl logs -n example-namespace example-app node-app ::ffff:127.0.0.1 - - [17/Sep/2020:14:12:19 +0000] "GET /docs HTTP/1.1" 301 175 ::ffff:127.0.0.1 - - [17/Sep/2020:14:13:19 +0000] "GET /docs/ HTTP/1.1" 200 3104 ::192.168.0.1 - - [17/Sep/2020:14:13:19 +0000] "GET /home-page HTTP/1.1" 200 3104 ::ffff:127.0.0.1 - - [17/Sep/2020:14:13:19 +0000] "GET /docs HTTP/1.1" 301 175 ::ffff:127.0.0.1 - - [17/Sep/2020:14:13:22 +0000] "GET /docs/ HTTP/1.1" 200 3104 I Use fluentD to send logs to ClowdWatch. My fluentD configuration: https://raw.githubusercontent.com/aws-samples/amazon-cloudwatch-container-insights/latest/k8s-deployment-manifest-templates/deployment-mode/daemonset/container-insights-monitoring/quickstart/cwagent-fluentd-quickstart.yaml How can i filter, to fluentD only matches ::192.168.0.1 - - [17/Sep/2020:14:13:19 +0000] "GET /home-page HTTP/1.1" 200 3104 And ignore ::ffff:127.0.0.1 - - [17/Sep/2020:14:13:19 +0000] "GET /docs HTTP/1.1" 301 175 Thanks!
After some research, i found this solution: <match kubernetes.var.log.containers.**_kube-system_**> #type null </match> and this <filter **> #type grep exclude1 log docs </filter> The reference: https://github.com/fabric8io/fluent-plugin-kubernetes_metadata_filter/issues/91 https://docs.fluentd.org/filter/grep EDIT or add: exclude_path ["/var/log/containers/cloudwatch-agent*", "/var/log/containers/fluentd*", "/var/log/containers/*istio*"] this config ignore the source files with pattern istio.
Django admin page. When i run the server everything will be fine, but when i try log into the admin page i will lose my connection
Am getting back the last line after i navigate to the 127.0.0.1:8000/admin the browser message This site can’t be reached127.0.0.1 refused to connect. Try: Checking the connection Checking the proxy and the firewall ERR_CONNECTION_REFUSED my terminal message "C:\Program Files\JetBrains\PyCharm 2019.2\bin\runnerw64.exe" C:\Users\UCHE\PycharmProjects\blog\venv\Scripts\python.exe C:/Users/UCHE/PycharmProjects/blog/manage.py runserver 8000 Performing system checks... Watching for file changes with StatReloader System check identified no issues (0 silenced). March 16, 2020 - 22:15:50 Django version 3.0.4, using settings 'blog.settings' Starting development server at http://127.0.0.1:8000/ Quit the server with CTRL-BREAK. [16/Mar/2020 22:16:26] "GET / HTTP/1.1" 200 19 Not Found: /favicon.ico [16/Mar/2020 22:16:28] "GET /favicon.ico HTTP/1.1" 404 2136 [16/Mar/2020 22:16:34] "GET /admin/ HTTP/1.1" 302 0 [16/Mar/2020 22:16:34] "GET /admin/login/?next=/admin/ HTTP/1.1" 200 1913 [16/Mar/2020 22:16:35] "GET /static/admin/css/base.css HTTP/1.1" 304 0 [16/Mar/2020 22:16:35] "GET /static/admin/css/login.css HTTP/1.1" 304 0 [16/Mar/2020 22:16:35] "GET /static/admin/css/responsive.css HTTP/1.1" 304 0 [16/Mar/2020 22:16:35] "GET /static/admin/css/fonts.css HTTP/1.1" 304 0 [16/Mar/2020 22:16:36] "GET /static/admin/fonts/Roboto-Regular-webfont.woff HTTP/1.1" 304 0 [16/Mar/2020 22:16:36] "GET /static/admin/fonts/Roboto-Light-webfont.woff HTTP/1.1" 304 0 [16/Mar/2020 22:16:49] "POST /admin/login/?next=/admin/ HTTP/1.1" 302 0 Process finished with exit code -1
Have you created a super user, ? If you haven't created a super user create one and login to admin of django project. Use following comand to create a super user python manage.py createsuperuser
Suddenly I am getting 502 on an End point, rest are working fine
I am serving django project with gunicorn, It running fine but after some time on one specific endpoint start giving 502. Other api end point still okay and giving proper response. I already tried with gunicorn service settings Current setting ExecStart=/var/virtualenv/d/bin/gunicorn --workers 5 proj.wsgi:application -b :9008 --threads 8 -k gthread --timeout 120 47.247.243.245 - - [14/Jun/2019:15:02:11 +0000] "GET /api/user/1263/league/81/ HTTP/1.1" 200 291 "-" "okhttp/3.12.1" 157.32.16.35 - - [14/Jun/2019:15:02:11 +0000] "GET /api/v1/xyc-leaderboard/?contest=4973 HTTP/1.1" 200 43714 "-" "okhttp/3.12.1"" 157.32.16.35 - - [14/Jun/2019:15:02:16 +0000] "GET /api/v1/xy/xy-team/15543 HTTP/1.1" 301 5 "-" "okhttp/3.12.1" 157.32.16.35 - - [14/Jun/2019:15:02:16 +0000] "GET /api/v1/xy/xy-team/15543/ HTTP/1.1" 502 5517 "-" "okhttp/3.12.1" 171.76.167.124 - - [14/Jun/2019:14:39:56 +0000] "GET /api/v1/xy/xy-team/15343/ HTTP/1.1" 502 182 "-" "okhttp/3.12.1"
What is causing this IcecastV2 "Bad or missing password on admin command request" warning?
I'm running IcecastV2, and although everything appears to be working - the log file shows this message. INFO admin/admin_handle_request Bad or missing password on admin command request (command: stats.xml) I cannot find a reason that could be causing this? Edit: Icecast V2.4.4 compiled on Mac. EDIT: This is from the error.log file, Followed matched by same time period from access.log [2019-01-01 13:08:31] INFO admin/admin_handle_request Bad or missing password on admin command request (command: stats.xml) [2019-01-01 13:08:31] INFO admin/admin_handle_request Bad or missing password on admin command request (command: stats.xml) [2019-01-01 13:08:31] INFO admin/admin_handle_request Bad or missing password on admin command request (command: stats.xml) [2019-01-01 13:08:44] INFO format-vorbis/initial_vorbis_page seen initial vorbis header [2019-01-01 13:08:44] INFO admin/admin_handle_request Received admin command metadata on mount "/live.aac" [2019-01-01 13:08:44] INFO admin/command_metadata Metadata on mountpoint /live.aac changed to "Kostas Pavlidis - Fake Life" [2019-01-01 13:08:44] INFO admin/admin_handle_request Received admin command metadata on mount "/live.mp3" [2019-01-01 13:08:44] INFO admin/command_metadata Metadata on mountpoint /live.mp3 changed to "Kostas Pavlidis - Fake Life" [2019-01-01 13:09:31] INFO admin/admin_handle_request Bad or missing password on admin command request (command: stats.xml) [2019-01-01 13:09:31] INFO admin/admin_handle_request Bad or missing password on admin command request (command: stats.xml) [2019-01-01 13:09:31] INFO admin/admin_handle_request Bad or missing password on admin command request (command: stats.xml) [2019-01-01 13:10:32] INFO admin/admin_handle_request Bad or missing password on admin command request (command: stats.xml) [2019-01-01 13:10:32] INFO admin/admin_handle_request Bad or missing password on admin command request (command: stats.xml) [2019-01-01 13:10:32] INFO admin/admin_handle_request Bad or missing password on admin command request (command: stats.xml) access.log 192.168.0.7 - - [01/Jan/2019:13:08:31 +0000] "GET /admin/stats.xml HTTP/1.1" 401 360 "-" "sambc/2018.10" 0 192.168.0.7 - - [01/Jan/2019:13:08:31 +0000] "GET /admin/stats.xml HTTP/1.1" 401 360 "-" "sambc/2018.10" 0 192.168.0.7 - - [01/Jan/2019:13:08:31 +0000] "GET /admin/stats.xml HTTP/1.1" 401 360 "-" "sambc/2018.10" 0 192.168.0.7 - - [01/Jan/2019:13:08:31 +0000] "GET /admin/stats.xml HTTP/1.0" 200 4439 "-" "sambc/2018.10" 0 192.168.0.7 - - [01/Jan/2019:13:08:31 +0000] "GET /admin/stats.xml HTTP/1.0" 200 4439 "-" "sambc/2018.10" 0 192.168.0.7 - - [01/Jan/2019:13:08:31 +0000] "GET /admin/stats.xml HTTP/1.0" 200 4439 "-" "sambc/2018.10" 0 192.168.0.7 - - [01/Jan/2019:13:08:44 +0000] "GET /admin/metadata HTTP/1.0" 200 396 "-" "sambc/2018.10" 0 192.168.0.7 - - [01/Jan/2019:13:08:44 +0000] "GET /admin/metadata HTTP/1.0" 200 396 "-" "sambc/2018.10" 0 192.168.0.7 - - [01/Jan/2019:13:09:31 +0000] "GET /admin/stats.xml HTTP/1.1" 401 360 "-" "sambc/2018.10" 0 192.168.0.7 - - [01/Jan/2019:13:09:31 +0000] "GET /admin/stats.xml HTTP/1.1" 401 360 "-" "sambc/2018.10" 0 192.168.0.7 - - [01/Jan/2019:13:09:31 +0000] "GET /admin/stats.xml HTTP/1.1" 401 360 "-" "sambc/2018.10" 0 192.168.0.7 - - [01/Jan/2019:13:09:32 +0000] "GET /admin/stats.xml HTTP/1.0" 200 4415 "-" "sambc/2018.10" 1 192.168.0.7 - - [01/Jan/2019:13:09:32 +0000] "GET /admin/stats.xml HTTP/1.0" 200 4415 "-" "sambc/2018.10" 1 192.168.0.7 - - [01/Jan/2019:13:09:32 +0000] "GET /admin/stats.xml HTTP/1.0" 200 4415 "-" "sambc/2018.10" 1 192.168.0.7 - - [01/Jan/2019:13:10:32 +0000] "GET /admin/stats.xml HTTP/1.1" 401 360 "-" "sambc/2018.10" 0 192.168.0.7 - - [01/Jan/2019:13:10:32 +0000] "GET /admin/stats.xml HTTP/1.1" 401 360 "-" "sambc/2018.10" 0 192.168.0.7 - - [01/Jan/2019:13:10:32 +0000] "GET /admin/stats.xml HTTP/1.1" 401 360 "-" "sambc/2018.10" 0 192.168.0.7 - - [01/Jan/2019:13:10:32 +0000] "GET /admin/stats.xml HTTP/1.0" 200 4415 "-" "sambc/2018.10" 0 192.168.0.7 - - [01/Jan/2019:13:10:32 +0000] "GET /admin/stats.xml HTTP/1.0" 200 4415 "-" "sambc/2018.10" 0 192.168.0.7 - - [01/Jan/2019:13:10:32 +0000] "GET /admin/stats.xml HTTP/1.0" 200 4415 "-" "sambc/2018.10" 0 192.168.0.7 - - [01/Jan/2019:13:11:32 +0000] "GET /admin/stats.xml HTTP/1.1" 401 360 "-" "sambc/2018.10" 0 192.168.0.7 - - [01/Jan/2019:13:11:32 +0000] "GET /admin/stats.xml HTTP/1.1" 401 360 "-" "sambc/2018.10" 0
From the combined logs it's pretty obvious what's happening here: You are running at least 3 source clients into mountpoints The source client each time seems to be sambc/2018.10 (Possibly SAM Broadcaster?) These source clients are making stream metadata update requests via /admin/metadata For Ogg that's actually a bug and likely the metadata is broken for listeners. It should embed the metadata inside the stream that it sends to the server instead! These source clients are each polling statistics via /admin/stats.xml For some reason the source client doesn't cache the fact that authentication is necessary for this URL and follows the 'from zero' HTTP request procedure every time where first it doesn't send credentials It gets refused with a HTTP 401 status It sends the same request again, but including credentials Summarizing: The behaviour you are concerned about is perfectly within what's defined by the HTTP standards. Icecast is just a bit wordy on that particular event.
AWS elastic beanstalk cannot return custom response code using resteasy?
I'm working on a web service using RESTEASY to set the response status code when get some exception. First I tried resteasy exception mapper which works fine locally. The mapper code attached below. However, when I upload that WS into elastic beanstalk, that always return 500 (internal server error). #Provider public class LoadGridTileFailedExceptionMapper extends BaseExceptionMapper implements ExceptionMapper<LoadGridTileFailedException> { #Override public Response toResponse(LoadGridTileFailedException e) { log(e.getMessage(), e); return printMsg(e.getMessage(), DtmWebServiceReturnStatus.LOAD_GRID_TILE_FAILED_EXCEPTION_CODE); } } Then I try just throw exception WebApplicationException(ex, DtmWebServiceReturnStatus.LOAD_GRID_TILE_FAILED_EXCEPTION_CODE) to get around exception mapping. The result is that I got a response status 498(LOAD_GRID_TILE_FAILED_EXCEPTION_CODE) wrapped in status code 500. Apache Tomcat/7.0.27 - Error report HTTP Status 498 - type Status reportmessage description http.498Apache Tomcat/7.0.27 It seems that elastic beanstalk wrapped all exceptions throw out in the server side with status code 500?The question is how can I get around that feature and return the status code I set in response? Thank you. UPDATE Try more requests this morning and find something interesting: Get the right return status in elastic beanstalk log snapshot /var/log/tomcat7/localhost_access_log.txt 127.0.0.1 - - [09/Jan/2013:15:06:28 +0000] "GET /published/tile/003331330031 HTTP/1.1" 498 22 127.0.0.1 - - [09/Jan/2013:15:06:31 +0000] "GET /published/tile/003331330031 HTTP/1.1" 498 22 127.0.0.1 - - [09/Jan/2013:15:06:34 +0000] "GET /published/tile/003331330031 HTTP/1.1" 498 22 127.0.0.1 - - [09/Jan/2013:15:06:37 +0000] "GET /published/tile/003331330031 HTTP/1.1" 498 22 127.0.0.1 - - [09/Jan/2013:15:06:39 +0000] "GET /published/tile/003331330031 HTTP/1.1" 498 22 127.0.0.1 - - [09/Jan/2013:15:06:41 +0000] "GET /published/tile/003331330031 HTTP/1.1" 498 22 127.0.0.1 - - [09/Jan/2013:15:06:44 +0000] "GET /published/tile/003331330031 HTTP/1.1" 498 22 127.0.0.1 - - [09/Jan/2013:15:06:48 +0000] "GET /published/tile/003331330031 HTTP/1.1" 498 22 127.0.0.1 - - [09/Jan/2013:15:06:51 +0000] "GET /published/tile/003331330031 HTTP/1.1" 498 22 127.0.0.1 - - [09/Jan/2013:15:06:54 +0000] "GET /published/tile/003331330031 HTTP/1.1" 498 22 127.0.0.1 - - [09/Jan/2013:15:06:57 +0000] "GET /published/tile/003331330031 HTTP/1.1" 498 22 /var/log/httpd/elasticbeanstalk-access_log 10.28.215.233 (65.167.11.254, 10.28.215.233) - - [09/Jan/2013:15:06:28 +0000] "GET /published/tile/003331330031 HTTP/1.1" 498 22 "-" "-" 10.28.215.233 (65.167.11.254, 10.28.215.233) - - [09/Jan/2013:15:06:31 +0000] "GET /published/tile/003331330031 HTTP/1.1" 498 22 "-" "-" 10.28.215.233 (65.167.11.254, 10.28.215.233) - - [09/Jan/2013:15:06:34 +0000] "GET /published/tile/003331330031 HTTP/1.1" 498 22 "-" "-" 10.28.215.233 (65.167.11.254, 10.28.215.233) - - [09/Jan/2013:15:06:37 +0000] "GET /published/tile/003331330031 HTTP/1.1" 498 22 "-" "-" 10.28.215.233 (65.167.11.254, 10.28.215.233) - - [09/Jan/2013:15:06:39 +0000] "GET /published/tile/003331330031 HTTP/1.1" 498 22 "-" "-" 10.28.215.233 (65.167.11.254, 10.28.215.233) - - [09/Jan/2013:15:06:41 +0000] "GET /published/tile/003331330031 HTTP/1.1" 498 22 "-" "-" 10.28.215.233 (65.167.11.254, 10.28.215.233) - - [09/Jan/2013:15:06:44 +0000] "GET /published/tile/003331330031 HTTP/1.1" 498 22 "-" "-" 10.28.215.233 (65.167.11.254, 10.28.215.233) - - [09/Jan/2013:15:06:48 +0000] "GET /published/tile/003331330031 HTTP/1.1" 498 22 "-" "-" 10.28.215.233 (65.167.11.254, 10.28.215.233) - - [09/Jan/2013:15:06:51 +0000] "GET /published/tile/003331330031 HTTP/1.1" 498 22 "-" "-" 10.28.215.233 (65.167.11.254, 10.28.215.233) - - [09/Jan/2013:15:06:54 +0000] "GET /published/tile/003331330031 HTTP/1.1" 498 22 "-" "-" 10.28.215.233 (65.167.11.254, 10.28.215.233) - - [09/Jan/2013:15:06:57 +0000] "GET /published/tile/003331330031 HTTP/1.1" 498 22 "-" "-" However in client side, still got 500 :-( printMsg method: protected Response printMsg(String msg, int intStatus) { // Need this due to the Resteasy bug ServiceDataCollector.processRequest(true); ResponseBuilder builder = Response.status(intStatus); builder.type("text/plain"); builder.entity("ERROR: " + msg); Response rep = builder.build(); LOG.error(rep.getStatus() + ":" + rep.toString()); return rep; }
Some one help me to work the problem out. I had the httpd deployed in my AMI before tomcat server at 80. So the load balancer will interact with httpd server, which change the status code from tomcat to 500. Disable that httpd server will solve the problem. Thx for everyone's help.