perfsonar-user - RE: [perfsonar-user] Error writing metadata (500) Internal server error
Subject: perfSONAR User Q&A and Other Discussion
List archive
- From: Daniel Manzo <>
- To: Andrew Lake <>, perfsonar-user <>
- Subject: RE: [perfsonar-user] Error writing metadata (500) Internal server error
- Date: Mon, 17 Oct 2016 13:59:55 +0000
- Accept-language: en-US
- Ironport-phdr: 9a23:J8dHpR87uv8kt/9uRHKM819IXTAuvvDOBiVQ1KB90uwcTK2v8tzYMVDF4r011RmSAtWdtqkP0reempujcFJDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBWB6kG1uBcUFg/yKkJRL+f4Utrbicim/+2pvZvef1MMzCKwe71pKxO/t0DMrcQMyd96J7w/0RzPq2ENZv9b30tpI06ehRDx+p328ZJ+pXd+ofUkouJJV6T3e+wdRLpKC3xyP2kz5cDv8xzKSxmIznEVQ2gM1BFPBl6Wv1nBQp7tv36i5aJG0y6AMJiuQA==
Here’s the last day’s entries in /var/log/httpd/error_log (I modified the IPs to ‘xx’): [Sun Oct 16 01:00:41 2016] [error] ImportError: No module named os [Mon Oct 17 09:27:18 2016] [warn] [client 10.83.xx.xx] incomplete redirection target of '/toolkit/' for URI '/' modified to 'http://xx.xx.xx.xx/toolkit/' [Mon Oct 17 09:27:19 2016] [error] [client 127.0.0.1] mod_wsgi (pid=24588): Target WSGI script '/usr/lib/esmond/esmond/wsgi.py' cannot be loaded as Python module. [Mon Oct 17 09:27:19 2016] [error] [client 127.0.0.1] mod_wsgi (pid=24587): Target WSGI script '/usr/lib/esmond/esmond/wsgi.py' cannot be loaded as Python module. [Mon Oct 17 09:27:19 2016] [error] [client 127.0.0.1] mod_wsgi (pid=24588): Exception occurred processing WSGI script '/usr/lib/esmond/esmond/wsgi.py'. [Mon Oct 17 09:27:19 2016] [error] [client 127.0.0.1] mod_wsgi (pid=24587): Exception occurred processing WSGI script '/usr/lib/esmond/esmond/wsgi.py'. [Mon Oct 17 09:27:19 2016] [error] Traceback (most recent call last): [Mon Oct 17 09:27:19 2016] [error] File "/usr/lib/esmond/esmond/wsgi.py", line 4, in <module> [Mon Oct 17 09:27:19 2016] [error] import os [Mon Oct 17 09:27:19 2016] [error] Traceback (most recent call last): [Mon Oct 17 09:27:19 2016] [error] File "/usr/lib/esmond/esmond/wsgi.py", line 4, in <module> [Mon Oct 17 09:27:19 2016] [error] ImportError: No module named os [Mon Oct 17 09:27:19 2016] [error] import os [Mon Oct 17 09:27:19 2016] [error] ImportError: No module named os And here’s the last error from /var/log/esmond/django.log: 2016-10-13 11:09:06,686 [ERROR] /usr/lib/esmond/lib/python2.7/site-packages/django/core/handlers/base.py: Internal Server Error: /esmond/perfsonar/archive/ Traceback (most recent call last): File "/usr/lib/esmond/lib/python2.7/site-packages/django/core/handlers/base.py", line 132, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/lib/esmond/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 58, in wrapped_view return view_func(*args, **kwargs) File "/usr/lib/esmond/lib/python2.7/site-packages/rest_framework/viewsets.py", line 85, in view return self.dispatch(request, *args, **kwargs) File "/usr/lib/esmond/lib/python2.7/site-packages/rest_framework/views.py", line 456, in dispatch response = self.handle_exception(exc) File "/usr/lib/esmond/lib/python2.7/site-packages/rest_framework/views.py", line 444, in dispatch self.initial(request, *args, **kwargs) File "/usr/lib/esmond/lib/python2.7/site-packages/rest_framework/views.py", line 358, in initial self.perform_authentication(request) File "/usr/lib/esmond/lib/python2.7/site-packages/rest_framework/views.py", line 296, in perform_authentication request.user File "/usr/lib/esmond/lib/python2.7/site-packages/rest_framework/request.py", line 489, in __getattribute__ return super(Request, self).__getattribute__(attr) File "/usr/lib/esmond/lib/python2.7/site-packages/rest_framework/request.py", line 264, in user self._authenticate() File "/usr/lib/esmond/lib/python2.7/site-packages/rest_framework/request.py", line 452, in _authenticate user_auth_tuple = authenticator.authenticate(self) File "/usr/lib/esmond/lib/python2.7/site-packages/rest_framework/authentication.py", line 177, in authenticate_credentials token = self.model.objects.select_related('user').get(key=key) File "/usr/lib/esmond/lib/python2.7/site-packages/django/db/models/query.py", line 328, in get num = len(clone) File "/usr/lib/esmond/lib/python2.7/site-packages/django/db/models/query.py", line 144, in __len__ self._fetch_all() File "/usr/lib/esmond/lib/python2.7/site-packages/django/db/models/query.py", line 965, in _fetch_all self._result_cache = list(self.iterator()) File "/usr/lib/esmond/lib/python2.7/site-packages/django/db/models/query.py", line 238, in iterator results = compiler.execute_sql() File "/usr/lib/esmond/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 838, in execute_sql cursor = self.connection.cursor() File "/usr/lib/esmond/lib/python2.7/site-packages/django/db/backends/base/base.py", line 164, in cursor cursor = self.make_cursor(self._cursor()) File "/usr/lib/esmond/lib/python2.7/site-packages/django/db/backends/base/base.py", line 135, in _cursor self.ensure_connection() File "/usr/lib/esmond/lib/python2.7/site-packages/django/db/backends/base/base.py", line 130, in ensure_connection self.connect() File "/usr/lib/esmond/lib/python2.7/site-packages/django/db/utils.py", line 97, in __exit__ six.reraise(dj_exc_type, dj_exc_value, traceback) File "/usr/lib/esmond/lib/python2.7/site-packages/django/db/backends/base/base.py", line 130, in ensure_connection self.connect() File "/usr/lib/esmond/lib/python2.7/site-packages/django/db/backends/base/base.py", line 119, in connect self.connection = self.get_new_connection(conn_params) File "/usr/lib/esmond/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/base.py", line 176, in get_new_connection connection = Database.connect(**conn_params) File "/usr/lib/esmond/lib/python2.7/site-packages/psycopg2/__init__.py", line 164, in connect conn = _connect(dsn, connection_factory=connection_factory, async=async) OperationalError: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"? From: Andrew Lake [mailto:]
Hi, Those errors look completely independent of MaDDash. It looks like an issue on your measurement archive. What is in /var/log/httpd/error_log and /var/log/esmond/django.log
on the host with the problematic archive? Thanks, Andy On October 17, 2016 at 9:40:39 AM, Daniel Manzo () wrote:
|
- [perfsonar-user] Error writing metadata (500) Internal server error, Daniel Manzo, 10/17/2016
- Re: [perfsonar-user] Error writing metadata (500) Internal server error, Andrew Lake, 10/17/2016
- RE: [perfsonar-user] Error writing metadata (500) Internal server error, Daniel Manzo, 10/17/2016
- Re: [perfsonar-user] Error writing metadata (500) Internal server error, Andrew Lake, 10/17/2016
Archive powered by MHonArc 2.6.19.