Skip to content

NCPA Windows Agent Api Error #114

Closed
Closed
@ravenich

Description

In Windows 2008 SP2 (Russian Language) after opening agent web interface api shows this error:
Internal Server Error
Same error on the Windows Server 2008R2 SP1.
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

Log file from the 2008 :
In 2008R2 og file the same.
In \Nagios\NCPA\var\ncpa_listener.log:
2015-01-05 23:34:51,621:INFO:handler:127.0.0.1 - - [2015-01-05 23:34:51] "GET /api HTTP/1.1" 301 432 0.002000
2015-01-05 23:34:51,622:DEBUG:handler:Initializing WebSocket
2015-01-05 23:34:51,624:DEBUG:handler:Validating WebSocket request
2015-01-05 23:34:51,624:DEBUG:init:Getting accessor:
2015-01-05 23:34:51,694:ERROR:app:Exception on /api/ [GET]
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\flask\app.py", line 1504, in wsgi_app
File "C:\Python27\lib\site-packages\flask\app.py", line 1264, in full_dispatch_request
File "C:\Python27\lib\site-packages\flask\app.py", line 1262, in full_dispatch_request
File "C:\Python27\lib\site-packages\flask\app.py", line 1248, in dispatch_request
File "C:\ncpa\agent\listener\server.py", line 68, in decorated
File "C:\ncpa\agent\listener\server.py", line 420, in api
File "C:\Python27\lib\site-packages\flask\helpers.py", line 120, in jsonify
File "C:\Python27\lib\json__init__.py", line 250, in dumps
File "C:\Python27\lib\json\encoder.py", line 209, in encode
File "C:\Python27\lib\json\encoder.py", line 434, in _iterencode
File "C:\Python27\lib\json\encoder.py", line 408, in _iterencode_dict
File "C:\Python27\lib\json\encoder.py", line 408, in _iterencode_dict
File "C:\Python27\lib\json\encoder.py", line 408, in _iterencode_dict
File "C:\Python27\lib\json\encoder.py", line 408, in _iterencode_dict
File "C:\Python27\lib\json\encoder.py", line 332, in _iterencode_list
File "C:\Python27\lib\json\encoder.py", line 313, in _iterencode_list
UnicodeDecodeError: 'utf8' codec can't decode byte 0xc0 in position 0: invalid start byte
2015-01-05 23:34:51,696:INFO:handler:127.0.0.1 - - [2015-01-05 23:34:51] "GET /api/ HTTP/1.1" 500 412 0.073000
2015-01-05 23:34:51,766:DEBUG:handler:Initializing WebSocket
2015-01-05 23:34:51,766:DEBUG:handler:Validating WebSocket request
2015-01-05 23:34:51,767:INFO:handler:127.0.0.1 - - [2015-01-05 23:34:51] "GET /favicon.ico HTTP/1.1" 404 342 0.002000

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions