I installed the ncpa (ncpa-2.1.4.exe) on a windows server and its log az error related in UnicodeDecodeError.
I tried with ncpa-2.1.1, ncpa-2.1.2 as well.
I can not find solution on the net. If is there any could you please help me.
Thank you very much
Code: Select all
2018-05-31 14:32:11,252:ERROR:app:Exception on /api/processes/ [GET]
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\flask\app.py", line 1817, in wsgi_app
File "C:\Python27\lib\site-packages\flask\app.py", line 1477, in full_dispatch_request
File "C:\Python27\lib\site-packages\flask\app.py", line 1381, in handle_user_exception
File "C:\Python27\lib\site-packages\flask\app.py", line 1475, in full_dispatch_request
File "C:\Python27\lib\site-packages\flask\app.py", line 1461, in dispatch_request
File "C:\ncpa\agent\listener\server.py", line 168, in token_auth_decoration
File "C:\ncpa\agent\listener\server.py", line 926, in api
File "C:\ncpa\agent\listener\processes.py", line 420, in run_check
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc1 in position 584: ordinal not in range(128)
2018-05-31 14:32:11,266:ERROR:ncpacheck:Error with JSON: No JSON object could be decoded. JSON was: <!DOCTYPE html>
<html lang='en'>
<head>
<title>Page Not Found · NCPA</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="NCPA Web Interface">
<meta name="author" content="Nagios Enterprises, LLC">
<link rel="shortcut icon" type="image/png" href="/static/img/ncpa.png" />
<link rel="icon" type="image/png" href="/static/img/ncpa.png" />
<link rel='stylesheet' href='/static/css/bootstrap.min.css'>
<link rel='stylesheet' href='/static/css/font-awesome.min.css'>
<link rel='stylesheet' href='/static/css/ncpa.css'>
<script src='/static/js/jquery.2.2.4.min.js'></script>
<script src='/static/js/bootstrap.min.js'></script>
<script src='/static/js/d3.v4.min.js'></script>
<script src='/static/js/main.js'></script>
</head>
<body style="padding-top: 50px;">
<nav class="navbar navbar-inverse navbar-default navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse-left">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/gui/">NCPA</a>
</div>
<div class="collapse navbar-collapse" id="navbar-collapse-left">
<ul class="nav navbar-nav">
</ul>
</div>
</div>
</nav>
<div id="main-content-container">
<div style="text-align: center;">
<h1 style="font-size: 12rem; padding: 8rem 0 3rem 0; color: #CCC;">500</h1>
<p style="font-size: 1.8rem;">There was a internal server error. Please contact your system administrator.</p>
</div>
</div>
</body>
</html>