AIX 7.1 NCPA OSError: [Errno 13] Permission denied

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
oslec
Posts: 53
Joined: Mon Jan 14, 2013 5:19 pm

AIX 7.1 NCPA OSError: [Errno 13] Permission denied

Post by oslec »

Hi,
Have problems with NCPA (last version) in AIX 7.2 , have 500 Internal Error, have another AIXs with the same version with no issues.


This is the log.

2023-05-23 12:19:57,121 28639522 INFO Using SSL version TLSv1_2
2023-05-23 12:19:59,757 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:19:59] "GET /gui/ HTTP/1.1" 302 586 0.005081
2023-05-23 12:19:59,827 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:19:59] "GET /login HTTP/1.1" 200 3132 0.027101
2023-05-23 12:19:59,879 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:19:59] "GET /static/css/bootstrap.min.css HTTP/1.1" 200 125525 0.003995
2023-05-23 12:19:59,885 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:19:59] "GET /static/css/font-awesome.min.css HTTP/1.1" 200 31536 0.002748
2023-05-23 12:19:59,934 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:19:59] "GET /static/css/ncpa.css HTTP/1.1" 200 9863 0.002528
2023-05-23 12:19:59,974 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:19:59] "GET /static/js/main.js HTTP/1.1" 200 797 0.002690
2023-05-23 12:19:59,977 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:19:59] "GET /static/js/jquery.2.2.4.min.js HTTP/1.1" 200 86127 0.002513
2023-05-23 12:20:00,011 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:00] "GET /static/js/d3.v4.min.js HTTP/1.1" 200 211671 0.003991
2023-05-23 12:20:00,016 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:00] "GET /static/js/bootstrap.min.js HTTP/1.1" 200 37418 0.002725
2023-05-23 12:20:01,487 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:01] "GET /static/img/footer_lodyas.png HTTP/1.1" 200 34223 0.002900
2023-05-23 12:20:01,540 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:01] "GET /static/img/ncpa.png HTTP/1.1" 200 19138 0.002697
2023-05-23 12:20:01,606 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:01] "GET /static/img/ncpa.png HTTP/1.1" 200 19138 0.002813
2023-05-23 12:20:04,725 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:04] "POST /login HTTP/1.1" 302 632 0.003124
2023-05-23 12:20:04,744 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:04] "GET /gui/ HTTP/1.1" 200 6751 0.012573
2023-05-23 12:20:04,797 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:04] "GET /static/fonts/fontawesome-webfont.woff2?v=4.7.0 HTTP/1.1" 200 77682 0.003220
2023-05-23 12:20:10,059 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:10] "GET /gui/checks HTTP/1.1" 200 9602 0.059348
2023-05-23 12:20:11,472 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:11] "GET /static/css/sumoselect.css HTTP/1.1" 200 9167 0.003137
2023-05-23 12:20:11,477 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:11] "GET /static/js/jquery.ss.3.0.2.min.js HTTP/1.1" 200 12317 0.003066
2023-05-23 12:20:14,499 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:14] "GET /gui/graphs HTTP/1.1" 200 11180 0.011800
2023-05-23 12:20:14,528 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:14] "GET /static/css/ncpa-graph.css HTTP/1.1" 200 1024 0.002880
2023-05-23 12:20:14,531 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:14] "GET /static/js/smoothie.js HTTP/1.1" 200 32555 0.002583
2023-05-23 12:20:14,636 28639522 ERROR Exception on /api/cpu [GET]
Traceback (most recent call last):
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
File "/tmp/test/ncpa/agent/listener/server.py", line 185, in token_auth_decoration
File "/tmp/test/ncpa/agent/listener/server.py", line 931, in api
File "/tmp/test/ncpa/agent/listener/psapi.py", line 279, in getter
File "/tmp/test/ncpa/agent/listener/psapi.py", line 260, in refresh
File "/tmp/test/ncpa/agent/listener/psapi.py", line 230, in get_root_node
File "/tmp/test/ncpa/agent/listener/psapi.py", line 185, in get_disk_node
File "/opt/freeware/lib/python2.7/site-packages/psutil/__init__.py", line 2133, in disk_partitions
File "/opt/freeware/lib/python2.7/site-packages/psutil/_psaix.py", line 186, in disk_partitions
OSError: [Errno 13] Permission denied
2023-05-23 12:20:14,643 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:14] "GET /api/cpu HTTP/1.1" 500 3980 0.039823
2023-05-23 12:20:15,306 28639522 ERROR Exception on /graph/cpu [GET]
Traceback (most recent call last):
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
File "/tmp/test/ncpa/agent/listener/server.py", line 185, in token_auth_decoration
File "/tmp/test/ncpa/agent/listener/server.py", line 810, in graph
File "/tmp/test/ncpa/agent/listener/psapi.py", line 260, in refresh
File "/tmp/test/ncpa/agent/listener/psapi.py", line 230, in get_root_node
File "/tmp/test/ncpa/agent/listener/psapi.py", line 185, in get_disk_node
File "/opt/freeware/lib/python2.7/site-packages/psutil/__init__.py", line 2133, in disk_partitions
File "/opt/freeware/lib/python2.7/site-packages/psutil/_psaix.py", line 186, in disk_partitions
OSError: [Errno 13] Permission denied
2023-05-23 12:20:15,307 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:15] "GET /graph/cpu HTTP/1.1" 500 3980 0.003833
2023-05-23 12:20:17,771 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:17] "GET /gui/checks HTTP/1.1" 200 9602 0.003700
2023-05-23 12:20:26,683 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:26] "GET /gui/graphs HTTP/1.1" 200 11180 0.002738
2023-05-23 12:20:26,775 28639522 ERROR Exception on /api/cpu [GET]
Traceback (most recent call last):
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
File "/tmp/test/ncpa/agent/listener/server.py", line 185, in token_auth_decoration
File "/tmp/test/ncpa/agent/listener/server.py", line 931, in api
File "/tmp/test/ncpa/agent/listener/psapi.py", line 279, in getter
File "/tmp/test/ncpa/agent/listener/psapi.py", line 260, in refresh
File "/tmp/test/ncpa/agent/listener/psapi.py", line 230, in get_root_node
File "/tmp/test/ncpa/agent/listener/psapi.py", line 185, in get_disk_node
File "/opt/freeware/lib/python2.7/site-packages/psutil/__init__.py", line 2133, in disk_partitions
File "/opt/freeware/lib/python2.7/site-packages/psutil/_psaix.py", line 186, in disk_partitions
OSError: [Errno 13] Permission denied
2023-05-23 12:20:26,776 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:26] "GET /api/cpu HTTP/1.1" 500 3980 0.003240
2023-05-23 12:20:30,625 28639522 ERROR Exception on /graph/cpu [GET]
Traceback (most recent call last):
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
File "/tmp/test/ncpa/agent/listener/server.py", line 185, in token_auth_decoration
File "/tmp/test/ncpa/agent/listener/server.py", line 810, in graph
File "/tmp/test/ncpa/agent/listener/psapi.py", line 260, in refresh
File "/tmp/test/ncpa/agent/listener/psapi.py", line 230, in get_root_node
File "/tmp/test/ncpa/agent/listener/psapi.py", line 185, in get_disk_node
File "/opt/freeware/lib/python2.7/site-packages/psutil/__init__.py", line 2133, in disk_partitions
File "/opt/freeware/lib/python2.7/site-packages/psutil/_psaix.py", line 186, in disk_partitions
OSError: [Errno 13] Permission denied
2023-05-23 12:20:30,627 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:30] "GET /graph/cpu HTTP/1.1" 500 3980 0.003107
2023-05-23 12:20:35,762 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:35] "GET /gui/api HTTP/1.1" 200 54330 0.043297
2023-05-23 12:20:35,793 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:35] "GET /static/css/ea.min.css HTTP/1.1" 200 9544 0.003136
2023-05-23 12:20:35,802 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:35] "GET /static/js/jquery.ea.1.3.5.min.js HTTP/1.1" 200 16361 0.002679
2023-05-23 12:20:35,819 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:35] "GET /static/img/warning.png HTTP/1.1" 200 1171 0.003197
2023-05-23 12:20:35,872 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:35] "GET /static/img/critical.png HTTP/1.1" 200 1206 0.003080
2023-05-23 12:20:36,996 28639522 ERROR Exception on /api [GET]
Traceback (most recent call last):
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
File "/tmp/test/ncpa/agent/listener/server.py", line 185, in token_auth_decoration
File "/tmp/test/ncpa/agent/listener/server.py", line 931, in api
File "/tmp/test/ncpa/agent/listener/psapi.py", line 279, in getter
File "/tmp/test/ncpa/agent/listener/psapi.py", line 260, in refresh
File "/tmp/test/ncpa/agent/listener/psapi.py", line 230, in get_root_node
File "/tmp/test/ncpa/agent/listener/psapi.py", line 185, in get_disk_node
File "/opt/freeware/lib/python2.7/site-packages/psutil/__init__.py", line 2133, in disk_partitions
File "/opt/freeware/lib/python2.7/site-packages/psutil/_psaix.py", line 186, in disk_partitions
OSError: [Errno 13] Permission denied
2023-05-23 12:20:36,998 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:36] "GET /api HTTP/1.1" 500 3980 0.003478
2023-05-23 12:20:50,698 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:50] "GET /gui/stats HTTP/1.1" 200 7083 0.010132
2023-05-23 12:20:50,736 28639522 ERROR Exception on /graph/cpu/percent [GET]
Traceback (most recent call last):
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
File "/tmp/test/ncpa/agent/listener/server.py", line 185, in token_auth_decoration
File "/tmp/test/ncpa/agent/listener/server.py", line 810, in graph
File "/tmp/test/ncpa/agent/listener/psapi.py", line 260, in refresh
File "/tmp/test/ncpa/agent/listener/psapi.py", line 230, in get_root_node
File "/tmp/test/ncpa/agent/listener/psapi.py", line 185, in get_disk_node
File "/opt/freeware/lib/python2.7/site-packages/psutil/__init__.py", line 2133, in disk_partitions
File "/opt/freeware/lib/python2.7/site-packages/psutil/_psaix.py", line 186, in disk_partitions
OSError: [Errno 13] Permission denied
2023-05-23 12:20:50,738 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:50] "GET /graph/cpu/percent HTTP/1.1" 500 3980 0.003314
2023-05-23 12:20:50,740 28639522 ERROR Exception on /api/disk/logical [GET]
Traceback (most recent call last):
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
File "/tmp/test/ncpa/agent/listener/server.py", line 185, in token_auth_decoration
File "/tmp/test/ncpa/agent/listener/server.py", line 931, in api
File "/tmp/test/ncpa/agent/listener/psapi.py", line 279, in getter
File "/tmp/test/ncpa/agent/listener/psapi.py", line 260, in refresh
File "/tmp/test/ncpa/agent/listener/psapi.py", line 230, in get_root_node
File "/tmp/test/ncpa/agent/listener/psapi.py", line 185, in get_disk_node
File "/opt/freeware/lib/python2.7/site-packages/psutil/__init__.py", line 2133, in disk_partitions
File "/opt/freeware/lib/python2.7/site-packages/psutil/_psaix.py", line 186, in disk_partitions
OSError: [Errno 13] Permission denied
2023-05-23 12:20:50,741 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:50] "GET /api/disk/logical HTTP/1.1" 500 3980 0.002884
2023-05-23 12:20:50,743 28639522 ERROR Exception on /api/interface/ [GET]
Traceback (most recent call last):
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
File "/tmp/test/ncpa/agent/listener/server.py", line 185, in token_auth_decoration
File "/tmp/test/ncpa/agent/listener/server.py", line 931, in api
File "/tmp/test/ncpa/agent/listener/psapi.py", line 279, in getter
File "/tmp/test/ncpa/agent/listener/psapi.py", line 260, in refresh
File "/tmp/test/ncpa/agent/listener/psapi.py", line 230, in get_root_node
File "/tmp/test/ncpa/agent/listener/psapi.py", line 185, in get_disk_node
File "/opt/freeware/lib/python2.7/site-packages/psutil/__init__.py", line 2133, in disk_partitions
File "/opt/freeware/lib/python2.7/site-packages/psutil/_psaix.py", line 186, in disk_partitions
OSError: [Errno 13] Permission denied
2023-05-23 12:20:50,745 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:50] "GET /api/interface/ HTTP/1.1" 500 3980 0.002609
2023-05-23 12:20:50,747 28639522 ERROR Exception on /graph/memory/virtual/percent [GET]
Traceback (most recent call last):
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
File "/tmp/test/ncpa/agent/listener/server.py", line 185, in token_auth_decoration
File "/tmp/test/ncpa/agent/listener/server.py", line 810, in graph
File "/tmp/test/ncpa/agent/listener/psapi.py", line 260, in refresh
File "/tmp/test/ncpa/agent/listener/psapi.py", line 230, in get_root_node
File "/tmp/test/ncpa/agent/listener/psapi.py", line 185, in get_disk_node
File "/opt/freeware/lib/python2.7/site-packages/psutil/__init__.py", line 2133, in disk_partitions
File "/opt/freeware/lib/python2.7/site-packages/psutil/_psaix.py", line 186, in disk_partitions
OSError: [Errno 13] Permission denied
2023-05-23 12:20:50,749 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:50] "GET /graph/memory/virtual/percent HTTP/1.1" 500 3980 0.003382
2023-05-23 12:20:52,765 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:52] "GET /gui/top HTTP/1.1" 200 4077 0.006094
2023-05-23 12:20:52,817 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:52] "GET /top HTTP/1.1" 200 9278 0.013057
2023-05-23 12:28:16,616 27263296 INFO started
2023-05-23 12:28:16,618 27263296 INFO Using SSL version TLSv1_2
2023-05-23 12:28:22,017 27263296 DEBUG Initializing WebSocket
2023-05-23 12:28:22,017 27263296 DEBUG Validating WebSocket request
2023-05-23 12:28:22,022 27263296 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:28:22] "GET /gui/graphs HTTP/1.1" 302 594 0.005242
2023-05-23 12:28:22,064 27263296 DEBUG Initializing WebSocket
2023-05-23 12:28:22,064 27263296 DEBUG Validating WebSocket request
2023-05-23 12:28:22,091 27263296 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:28:22] "GET /login HTTP/1.1" 200 3146 0.027294
2023-05-23 12:28:27,602 27263296 DEBUG Initializing WebSocket
2023-05-23 12:28:27,602 27263296 DEBUG Validating WebSocket request
2023-05-23 12:28:27,602 27263296 DEBUG Can only upgrade connection if using GET method.
2023-05-23 12:28:27,605 27263296 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:28:27] "POST /login HTTP/1.1" 302 650 0.003572
2023-05-23 12:28:27,613 27263296 DEBUG Initializing WebSocket
2023-05-23 12:28:27,613 27263296 DEBUG Validating WebSocket request
2023-05-23 12:28:27,624 27263296 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:28:27] "GET /gui/graphs HTTP/1.1" 200 11180 0.011222
2023-05-23 12:28:29,083 27263296 DEBUG Initializing WebSocket
2023-05-23 12:28:29,083 27263296 DEBUG Validating WebSocket request
2023-05-23 12:28:29,112 27263296 ERROR Exception on /api/cpu [GET]
Traceback (most recent call last):
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
File "/tmp/test/ncpa/agent/listener/server.py", line 185, in token_auth_decoration
File "/tmp/test/ncpa/agent/listener/server.py", line 931, in api
File "/tmp/test/ncpa/agent/listener/psapi.py", line 279, in getter
File "/tmp/test/ncpa/agent/listener/psapi.py", line 260, in refresh
File "/tmp/test/ncpa/agent/listener/psapi.py", line 230, in get_root_node
File "/tmp/test/ncpa/agent/listener/psapi.py", line 185, in get_disk_node
File "/opt/freeware/lib/python2.7/site-packages/psutil/__init__.py", line 2133, in disk_partitions
File "/opt/freeware/lib/python2.7/site-packages/psutil/_psaix.py", line 186, in disk_partitions
OSError: [Errno 13] Permission denied
2023-05-23 12:28:29,118 27263296 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:28:29] "GET /api/cpu HTTP/1.1" 500 3980 0.035620
2023-05-23 12:28:30,559 27263296 DEBUG Initializing WebSocket
2023-05-23 12:28:30,559 27263296 DEBUG Validating WebSocket request
2023-05-23 12:28:30,561 27263296 ERROR Exception on /graph/cpu [GET]
Traceback (most recent call last):
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
File "/tmp/test/ncpa/agent/listener/server.py", line 185, in token_auth_decoration
File "/tmp/test/ncpa/agent/listener/server.py", line 810, in graph
File "/tmp/test/ncpa/agent/listener/psapi.py", line 260, in refresh
File "/tmp/test/ncpa/agent/listener/psapi.py", line 230, in get_root_node
File "/tmp/test/ncpa/agent/listener/psapi.py", line 185, in get_disk_node
File "/opt/freeware/lib/python2.7/site-packages/psutil/__init__.py", line 2133, in disk_partitions
File "/opt/freeware/lib/python2.7/site-packages/psutil/_psaix.py", line 186, in disk_partitions
OSError: [Errno 13] Permission denied
2023-05-23 12:28:30,563 27263296 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:28:30] "GET /graph/cpu HTTP/1.1" 500 3980 0.003970
bostonmike
Posts: 1
Joined: Thu Aug 03, 2023 3:39 am

Re: AIX 7.1 NCPA OSError: [Errno 13] Permission denied

Post by bostonmike »

Hello , Did you ever got the solution for the pemission denied error?

I have a similar error:

Traceback (most recent call last):
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
File "/tmp/test/ncpa/agent/listener/server.py", line 185, in token_auth_decoration
File "/tmp/test/ncpa/agent/listener/server.py", line 931, in api
File "/tmp/test/ncpa/agent/listener/psapi.py", line 279, in getter
File "/tmp/test/ncpa/agent/listener/psapi.py", line 260, in refresh
File "/tmp/test/ncpa/agent/listener/psapi.py", line 230, in get_root_node
File "/tmp/test/ncpa/agent/listener/psapi.py", line 185, in get_disk_node
File "/opt/freeware/lib/python2.7/site-packages/psutil/__init__.py", line 2133, in disk_partitions
File "/opt/freeware/lib/python2.7/site-packages/psutil/_psaix.py", line 186, in disk_partitions
OSError: [Errno 13] Permission denied
2023-08-03 18:22:54,435 6423012 INFO ::ffff:10.82.246.57 - - [2023-08-03 18:22:54] "GET /api/system/?token=dxctoken HTTP/1.1" 500 2362 0.117506
stlwolunx17#
dariohill
Posts: 1
Joined: Sun Aug 06, 2023 7:04 pm

Re: AIX 7.1 NCPA OSError: [Errno 13] Permission denied

Post by dariohill »

oslec wrote: Tue May 23, 2023 3:37 pm Hi,
Have problems with NCPA (last version) in AIX 7.2 , have 500 Internal Error, have another AIXs with the same version with no issues.


This is the log.

2023-05-23 12:19:57,121 28639522 INFO Using SSL version TLSv1_2
2023-05-23 12:19:59,757 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:19:59] "GET /gui/ HTTP/1.1" 302 586 0.005081
2023-05-23 12:19:59,827 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:19:59] "GET /login HTTP/1.1" 200 3132 0.027101
2023-05-23 12:19:59,879 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:19:59] "GET /static/css/bootstrap.min.css HTTP/1.1" 200 125525 0.003995
2023-05-23 12:19:59,885 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:19:59] "GET /static/css/font-awesome.min.css HTTP/1.1" 200 31536 0.002748
2023-05-23 12:19:59,934 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:19:59] "GET /static/css/ncpa.css HTTP/1.1" 200 9863 0.002528
2023-05-23 12:19:59,974 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:19:59] "GET /static/js/main.js HTTP/1.1" 200 797 0.002690
2023-05-23 12:19:59,977 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:19:59] "GET /static/js/jquery.2.2.4.min.js HTTP/1.1" 200 86127 0.002513
2023-05-23 12:20:00,011 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:00] "GET /static/js/d3.v4.min.js HTTP/1.1" 200 211671 0.003991
2023-05-23 12:20:00,016 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:00] "GET /static/js/bootstrap.min.js HTTP/1.1" 200 37418 0.002725
2023-05-23 12:20:01,487 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:01] "GET /static/img/footer_lodyas.png HTTP/1.1" 200 34223 0.002900
2023-05-23 12:20:01,540 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:01] "GET /static/img/ncpa.png HTTP/1.1" 200 19138 0.002697
2023-05-23 12:20:01,606 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:01] "GET /static/img/ncpa.png HTTP/1.1" 200 19138 0.002813
2023-05-23 12:20:04,725 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:04] "POST /login HTTP/1.1" 302 632 0.003124
2023-05-23 12:20:04,744 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:04] "GET /gui/ HTTP/1.1" 200 6751 0.012573
2023-05-23 12:20:04,797 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:04] "GET /static/fonts/fontawesome-webfont.woff2?v=4.7.0 HTTP/1.1" 200 77682 0.003220
2023-05-23 12:20:10,059 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:10] "GET /gui/checks HTTP/1.1" 200 9602 0.059348
2023-05-23 12:20:11,472 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:11] "GET /static/css/sumoselect.css HTTP/1.1" 200 9167 0.003137
2023-05-23 12:20:11,477 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:11] "GET /static/js/jquery.ss.3.0.2.min.js HTTP/1.1" 200 12317 0.003066
2023-05-23 12:20:14,499 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:14] "GET /gui/graphs HTTP/1.1" 200 11180 0.011800
2023-05-23 12:20:14,528 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:14] "GET /static/css/ncpa-graph.css HTTP/1.1" 200 1024 0.002880
2023-05-23 12:20:14,531 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:14] "GET /static/js/smoothie.js HTTP/1.1" 200 32555 0.002583
2023-05-23 12:20:14,636 28639522 ERROR Exception on /api/cpu [GET]
Traceback (most recent call last):
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
File "/tmp/test/ncpa/agent/listener/server.py", line 185, in token_auth_decoration
File "/tmp/test/ncpa/agent/listener/server.py", line 931, in api
File "/tmp/test/ncpa/agent/listener/psapi.py", line 279, in getter
File "/tmp/test/ncpa/agent/listener/psapi.py", line 260, in refresh
File "/tmp/test/ncpa/agent/listener/psapi.py", line 230, in get_root_node
File "/tmp/test/ncpa/agent/listener/psapi.py", line 185, in get_disk_node
File "/opt/freeware/lib/python2.7/site-packages/psutil/__init__.py", line 2133, in disk_partitions
File "/opt/freeware/lib/python2.7/site-packages/psutil/_psaix.py", line 186, in disk_partitions
OSError: [Errno 13] Permission denied
2023-05-23 12:20:14,643 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:14] "GET /api/cpu HTTP/1.1" 500 3980 0.039823
2023-05-23 12:20:15,306 28639522 ERROR Exception on /graph/cpu [GET]
Traceback (most recent call last):
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
File "/tmp/test/ncpa/agent/listener/server.py", line 185, in token_auth_decoration
File "/tmp/test/ncpa/agent/listener/server.py", line 810, in graph
File "/tmp/test/ncpa/agent/listener/psapi.py", line 260, in refresh
File "/tmp/test/ncpa/agent/listener/psapi.py", line 230, in get_root_node
File "/tmp/test/ncpa/agent/listener/psapi.py", line 185, in get_disk_node
File "/opt/freeware/lib/python2.7/site-packages/psutil/__init__.py", line 2133, in disk_partitions
File "/opt/freeware/lib/python2.7/site-packages/psutil/_psaix.py", line 186, in disk_partitions
OSError: [Errno 13] Permission denied
2023-05-23 12:20:15,307 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:15] "GET /graph/cpu HTTP/1.1" 500 3980 0.003833
2023-05-23 12:20:17,771 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:17] "GET /gui/checks HTTP/1.1" 200 9602 0.003700
2023-05-23 12:20:26,683 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:26] "GET /gui/graphs HTTP/1.1" 200 11180 0.002738
2023-05-23 12:20:26,775 28639522 ERROR Exception on /api/cpu [GET]
Traceback (most recent call last):
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
File "/tmp/test/ncpa/agent/listener/server.py", line 185, in token_auth_decoration
File "/tmp/test/ncpa/agent/listener/server.py", line 931, in api
File "/tmp/test/ncpa/agent/listener/psapi.py", line 279, in getter
File "/tmp/test/ncpa/agent/listener/psapi.py", line 260, in refresh
File "/tmp/test/ncpa/agent/listener/psapi.py", line 230, in get_root_node
File "/tmp/test/ncpa/agent/listener/psapi.py", line 185, in get_disk_node
File "/opt/freeware/lib/python2.7/site-packages/psutil/__init__.py", line 2133, in disk_partitions
File "/opt/freeware/lib/python2.7/site-packages/psutil/_psaix.py", line 186, in disk_partitions
OSError: [Errno 13] Permission denied
2023-05-23 12:20:26,776 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:26] "GET /api/cpu HTTP/1.1" 500 3980 0.003240
2023-05-23 12:20:30,625 28639522 ERROR Exception on /graph/cpu [GET]
Traceback (most recent call last):
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
File "/tmp/test/ncpa/agent/listener/server.py", line 185, in token_auth_decoration
File "/tmp/test/ncpa/agent/listener/server.py", line 810, in graph
File "/tmp/test/ncpa/agent/listener/psapi.py", line 260, in refresh
File "/tmp/test/ncpa/agent/listener/psapi.py", line 230, in get_root_node
File "/tmp/test/ncpa/agent/listener/psapi.py", line 185, in get_disk_node
File "/opt/freeware/lib/python2.7/site-packages/psutil/__init__.py", line 2133, in disk_partitions
File "/opt/freeware/lib/python2.7/site-packages/psutil/_psaix.py", line 186, in disk_partitions
OSError: [Errno 13] Permission denied
2023-05-23 12:20:30,627 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:30] "GET /graph/cpu HTTP/1.1" 500 3980 0.003107
2023-05-23 12:20:35,762 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:35] "GET /gui/api HTTP/1.1" 200 54330 0.043297
2023-05-23 12:20:35,793 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:35] "GET /static/css/ea.min.css HTTP/1.1" 200 9544 0.003136
2023-05-23 12:20:35,802 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:35] "GET /static/js/jquery.ea.1.3.5.min.js HTTP/1.1" 200 16361 0.002679
2023-05-23 12:20:35,819 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:35] "GET /static/img/warning.png HTTP/1.1" 200 1171 0.003197
2023-05-23 12:20:35,872 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:35] "GET /static/img/critical.png HTTP/1.1" 200 1206 0.003080
2023-05-23 12:20:36,996 28639522 ERROR Exception on /api [GET]
Traceback (most recent call last):
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
File "/tmp/test/ncpa/agent/listener/server.py", line 185, in token_auth_decoration
File "/tmp/test/ncpa/agent/listener/server.py", line 931, in api
File "/tmp/test/ncpa/agent/listener/psapi.py", line 279, in getter
File "/tmp/test/ncpa/agent/listener/psapi.py", line 260, in refresh
File "/tmp/test/ncpa/agent/listener/psapi.py", line 230, in get_root_node
File "/tmp/test/ncpa/agent/listener/psapi.py", line 185, in get_disk_node
File "/opt/freeware/lib/python2.7/site-packages/psutil/__init__.py", line 2133, in disk_partitions
File "/opt/freeware/lib/python2.7/site-packages/psutil/_psaix.py", line 186, in disk_partitions
OSError: [Errno 13] Permission denied
2023-05-23 12:20:36,998 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:36] "GET /api HTTP/1.1" 500 3980 0.003478
2023-05-23 12:20:50,698 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:50] "GET /gui/stats HTTP/1.1" 200 7083 0.010132
2023-05-23 12:20:50,736 28639522 ERROR Exception on /graph/cpu/percent [GET]
Traceback (most recent call last):
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
File "/tmp/test/ncpa/agent/listener/server.py", line 185, in token_auth_decoration
File "/tmp/test/ncpa/agent/listener/server.py", line 810, in graph
File "/tmp/test/ncpa/agent/listener/psapi.py", line 260, in refresh
File "/tmp/test/ncpa/agent/listener/psapi.py", line 230, in get_root_node
File "/tmp/test/ncpa/agent/listener/psapi.py", line 185, in get_disk_node
File "/opt/freeware/lib/python2.7/site-packages/psutil/__init__.py", line 2133, in disk_partitions
File "/opt/freeware/lib/python2.7/site-packages/psutil/_psaix.py", line 186, in disk_partitions
OSError: [Errno 13] Permission denied
2023-05-23 12:20:50,738 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:50] "GET /graph/cpu/percent HTTP/1.1" 500 3980 0.003314
2023-05-23 12:20:50,740 28639522 ERROR Exception on /api/disk/logical [GET]
Traceback (most recent call last):
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
File "/tmp/test/ncpa/agent/listener/server.py", line 185, in token_auth_decoration
File "/tmp/test/ncpa/agent/listener/server.py", line 931, in api
File "/tmp/test/ncpa/agent/listener/psapi.py", line 279, in getter
File "/tmp/test/ncpa/agent/listener/psapi.py", line 260, in refresh
File "/tmp/test/ncpa/agent/listener/psapi.py", line 230, in get_root_node
File "/tmp/test/ncpa/agent/listener/psapi.py", line 185, in get_disk_node
File "/opt/freeware/lib/python2.7/site-packages/psutil/__init__.py", line 2133, in disk_partitions
File "/opt/freeware/lib/python2.7/site-packages/psutil/_psaix.py", line 186, in disk_partitions
OSError: [Errno 13] Permission denied. Drift Hunters
2023-05-23 12:20:50,741 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:50] "GET /api/disk/logical HTTP/1.1" 500 3980 0.002884
2023-05-23 12:20:50,743 28639522 ERROR Exception on /api/interface/ [GET]
Traceback (most recent call last):
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
File "/tmp/test/ncpa/agent/listener/server.py", line 185, in token_auth_decoration
File "/tmp/test/ncpa/agent/listener/server.py", line 931, in api
File "/tmp/test/ncpa/agent/listener/psapi.py", line 279, in getter
File "/tmp/test/ncpa/agent/listener/psapi.py", line 260, in refresh
File "/tmp/test/ncpa/agent/listener/psapi.py", line 230, in get_root_node
File "/tmp/test/ncpa/agent/listener/psapi.py", line 185, in get_disk_node
File "/opt/freeware/lib/python2.7/site-packages/psutil/__init__.py", line 2133, in disk_partitions
File "/opt/freeware/lib/python2.7/site-packages/psutil/_psaix.py", line 186, in disk_partitions
OSError: [Errno 13] Permission denied
2023-05-23 12:20:50,745 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:50] "GET /api/interface/ HTTP/1.1" 500 3980 0.002609
2023-05-23 12:20:50,747 28639522 ERROR Exception on /graph/memory/virtual/percent [GET]
Traceback (most recent call last):
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
File "/tmp/test/ncpa/agent/listener/server.py", line 185, in token_auth_decoration
File "/tmp/test/ncpa/agent/listener/server.py", line 810, in graph
File "/tmp/test/ncpa/agent/listener/psapi.py", line 260, in refresh
File "/tmp/test/ncpa/agent/listener/psapi.py", line 230, in get_root_node
File "/tmp/test/ncpa/agent/listener/psapi.py", line 185, in get_disk_node
File "/opt/freeware/lib/python2.7/site-packages/psutil/__init__.py", line 2133, in disk_partitions
File "/opt/freeware/lib/python2.7/site-packages/psutil/_psaix.py", line 186, in disk_partitions
OSError: [Errno 13] Permission denied
2023-05-23 12:20:50,749 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:50] "GET /graph/memory/virtual/percent HTTP/1.1" 500 3980 0.003382
2023-05-23 12:20:52,765 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:52] "GET /gui/top HTTP/1.1" 200 4077 0.006094
2023-05-23 12:20:52,817 28639522 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:20:52] "GET /top HTTP/1.1" 200 9278 0.013057
2023-05-23 12:28:16,616 27263296 INFO started
2023-05-23 12:28:16,618 27263296 INFO Using SSL version TLSv1_2
2023-05-23 12:28:22,017 27263296 DEBUG Initializing WebSocket
2023-05-23 12:28:22,017 27263296 DEBUG Validating WebSocket request
2023-05-23 12:28:22,022 27263296 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:28:22] "GET /gui/graphs HTTP/1.1" 302 594 0.005242
2023-05-23 12:28:22,064 27263296 DEBUG Initializing WebSocket
2023-05-23 12:28:22,064 27263296 DEBUG Validating WebSocket request
2023-05-23 12:28:22,091 27263296 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:28:22] "GET /login HTTP/1.1" 200 3146 0.027294
2023-05-23 12:28:27,602 27263296 DEBUG Initializing WebSocket
2023-05-23 12:28:27,602 27263296 DEBUG Validating WebSocket request
2023-05-23 12:28:27,602 27263296 DEBUG Can only upgrade connection if using GET method.
2023-05-23 12:28:27,605 27263296 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:28:27] "POST /login HTTP/1.1" 302 650 0.003572
2023-05-23 12:28:27,613 27263296 DEBUG Initializing WebSocket
2023-05-23 12:28:27,613 27263296 DEBUG Validating WebSocket request
2023-05-23 12:28:27,624 27263296 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:28:27] "GET /gui/graphs HTTP/1.1" 200 11180 0.011222
2023-05-23 12:28:29,083 27263296 DEBUG Initializing WebSocket
2023-05-23 12:28:29,083 27263296 DEBUG Validating WebSocket request
2023-05-23 12:28:29,112 27263296 ERROR Exception on /api/cpu [GET]
Traceback (most recent call last):
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
File "/tmp/test/ncpa/agent/listener/server.py", line 185, in token_auth_decoration
File "/tmp/test/ncpa/agent/listener/server.py", line 931, in api
File "/tmp/test/ncpa/agent/listener/psapi.py", line 279, in getter
File "/tmp/test/ncpa/agent/listener/psapi.py", line 260, in refresh
File "/tmp/test/ncpa/agent/listener/psapi.py", line 230, in get_root_node
File "/tmp/test/ncpa/agent/listener/psapi.py", line 185, in get_disk_node
File "/opt/freeware/lib/python2.7/site-packages/psutil/__init__.py", line 2133, in disk_partitions
File "/opt/freeware/lib/python2.7/site-packages/psutil/_psaix.py", line 186, in disk_partitions
OSError: [Errno 13] Permission denied
2023-05-23 12:28:29,118 27263296 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:28:29] "GET /api/cpu HTTP/1.1" 500 3980 0.035620
2023-05-23 12:28:30,559 27263296 DEBUG Initializing WebSocket
2023-05-23 12:28:30,559 27263296 DEBUG Validating WebSocket request
2023-05-23 12:28:30,561 27263296 ERROR Exception on /graph/cpu [GET]
Traceback (most recent call last):
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
File "/tmp/test/ncpa/agent/listener/server.py", line 185, in token_auth_decoration
File "/tmp/test/ncpa/agent/listener/server.py", line 810, in graph
File "/tmp/test/ncpa/agent/listener/psapi.py", line 260, in refresh
File "/tmp/test/ncpa/agent/listener/psapi.py", line 230, in get_root_node
File "/tmp/test/ncpa/agent/listener/psapi.py", line 185, in get_disk_node
File "/opt/freeware/lib/python2.7/site-packages/psutil/__init__.py", line 2133, in disk_partitions
File "/opt/freeware/lib/python2.7/site-packages/psutil/_psaix.py", line 186, in disk_partitions
OSError: [Errno 13] Permission denied
2023-05-23 12:28:30,563 27263296 INFO ::ffff:10.81.197.97 - - [2023-05-23 12:28:30] "GET /graph/cpu HTTP/1.1" 500 3980 0.003970
1. Check the file or directory permissions: Make sure you have the appropriate read, write, and execute permissions for the specified file or directory. You can use the `ls -l` command in Unix-based systems to view the permissions. If needed, you can use the `chmod` command to change the permissions.

2. Run the program with elevated privileges: If the file or directory requires root or administrator permissions, try running the program with elevated privileges. In Unix-based systems, you can use the `sudo` command to do this.

3. Verify the file or directory path: Ensure that the specified file or directory path is correct. Double-check if there are any typos or missing directories in the path.

4. Close any open files: If you are trying to modify or delete a file, make sure that it is not currently opened by any other program. Close any open programs or processes that may have locked the file.

5. Temporarily disable security software: In some cases, security software such as antivirus programs or firewalls can restrict access to certain files or directories. Try temporarily disabling such software and check if the issue persists.

6. If you are working on a network or shared drive, contact your system administrator to ensure that you have the necessary permissions for the file or directory.
oslec
Posts: 53
Joined: Mon Jan 14, 2013 5:19 pm

Re: AIX 7.1 NCPA OSError: [Errno 13] Permission denied

Post by oslec »

Thank you!
Post Reply