perfsonar-user - Re: [perfsonar-user] Django error after a fresh install
Subject: perfSONAR User Q&A and Other Discussion
List archive
- From: Shkelzen Rugovac <>
- To: Doug Wussler <>
- Cc: Andrew Lake <>, "" <>
- Subject: Re: [perfsonar-user] Django error after a fresh install
- Date: Thu, 14 Dec 2017 00:18:47 +0100
- Ironport-phdr: 9a23:4+A6Rh02b0sjFpzxsmDT+DRfVm0co7zxezQtwd8ZsesSLPrxwZ3uMQTl6Ol3ixeRBMOHs6sC07KempujcFRI2YyGvnEGfc4EfD4+ouJSoTYdBtWYA1bwNv/gYn9yNs1DUFh44yPzahANS47xaFLIv3K98yMZFAnhOgppPOT1HZPZg9iq2+yo9JDffxhEiCChbb9uMR67sRjfus4KjIV4N60/0AHJonxGe+RXwWNnO1eelAvi68mz4ZBu7T1et+ou+MBcX6r6eb84TaFDAzQ9L281/szrugLdQgaJ+3ART38ZkhtMAwjC8RH6QpL8uTb0u+ZhxCWXO9D9QKsqUjq+8ahkVB7oiD8GNzEn9mHXltdwh79frB64uhBz35LYbISTOfFjfK3SYMkaSHJDUcZfVyJPDICyYZYRAeUdJutXtZXxqkEUoBeiGQWhBuXiwSJIiH/s2q061vwsHxzG3AwjAd0OtHXVo8vzNKwPTe610abIzTLdb/xMxTj29Y/FcgshofGPQ71wdcvQxlcpFw/flFWQtIPlPzSL1usXr2eW9OVgVee1hG4mrwF9uCSgxsApioTQgI8e117K9SJ8wIkvJN24TlZ2Yd+lEJtQqS6WLZF5Td84T25zpik20rwGuZigfCgW0psnwxrfZ+WHfoiG/h3jU+CRITl5hHJqYb6yhxiy8Uahyu3mTcm0zE9GoypLktnQt3AN0gLc5tKHSvth+0eh3S6D1w7J5eFdO0w0lbbbK5slwrIpiJYev13DEjbolErrjK+WcUsl9vG25+v6frrpvJmcO5Zqhg7jM6Qig9KzDvk3MgcQQ2iX4Pqw26D/8kLjW7VKlec5kq/Ev5DAP8sXv7C1DBJJ0oYk8hqzESqp0M4FnXkBNV5JZg+Ij4/vO13XPv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9kjVvpa2ain+di9/+fQYKbzYYDFJpik3hdM3t14gX
Making progress…. I also rebooted. /var/log/messages looks clean now. But the “pscheduler task” command still returns this error:
Unable to read archive file: [Errno 2] No such file or directory: '/usr/share/pscheduler/psc-
archiver-esmond.json'
And when I log in as root I see this (which was there earlier too, this is not new):
ABRT has detected 1 problem(s). For more info run: abrt-cli list --since 1513186024
id dbfb005bb360b44b7061efdc82ae2c
09130ba258 reason: pidfile.py:48:__exit__:
OSError: [Errno 13] Permission denied: '/var/run/pscheduler- scheduler.pid' time: Wed 13 Dec 2017 12:18:57 PM EST
cmdline: /usr/bin/python /usr/libexec/pscheduler/
daemons/scheduler --daemon --pid-file /var/run/pscheduler-scheduler. pid --dsn @/etc/pscheduler/database/ database-dsn package: pscheduler-server-1.0.2-1.el7.
centos uid: 1000 (pscheduler)
count: 6
Directory: /var/spool/abrt/Python-2017-
12-13-12:18:57-1926
Doug
From: Andrew Lake <>
Date: Wednesday, December 13, 2017 at 1:38 PM
To: Doug Wussler <>, Shkelzen Rugovac <>
Cc: "" <>
Subject: Re: [perfsonar-user] Django error after a fresh install
Hi,
That file that’s missing is really just for convenience, but the fact that it is missing is probably an artifact of the failed setup. Try running "/usr/lib/perfsonar/scripts/
system_environment/configure_ esmond —force”. It should create the file. Not sure how your setup got that broken, must have had some issue getting to postgres as well at one point.
You can ignore those powstream errors about the diretcory missing, those are harmless.
Thanks,
Andy
On December 13, 2017 at 1:06:22 PM, Doug Wussler () wrote:
Andy –
I executed the restarts but when I then executed the “pscheduler task” command I got this error:
Unable to read archive file: [Errno 2] No such file or directory: '/usr/share/pscheduler/psc-
archiver-esmond.json'
Just to repeat, we are IPv4 only, we don’t use IPv6.
Don’t see any errors in the /var/log/Esmond logs anymore but my /var/log/messages contains this:
journal: tool-powstream/run ERROR powstream exited with error, will attempt restart: Nothing on stderr, may have been killed by external command (e.g. something ran 'kill')
journal: tool-powstream/run ERROR powstream exited with error, will attempt restart: Nothing on stderr, may have been killed by external command (e.g. something ran 'kill')
journal: tool-powstream/run ERROR powstream failed to complete execution: <type 'exceptions.IOError'>
journal: tool-powstream/run ERROR powstream failed to complete execution: <type 'exceptions.IOError'>
journal: safe_run/runner ERROR Restarting: ['/usr/libexec/pscheduler/
daemons/runner', '--daemon', '--pid-file', '/var/run/pscheduler-runner. pid', '--dsn', '@/etc/pscheduler/database/ database-dsn'] journal: runner INFO Started
journal: safe_run/runner ERROR Program threw an exception after 0:00:00.521575
journal: safe_run/runner ERROR Exception: DatabaseError: server closed the connection unexpectedly#012#011This probably means the server terminated abnormally#012#011before or while processing the request.#012#012Traceback (most recent call last):#012 File "/usr/lib/python2.7/site-
packages/pscheduler/saferun. py", line 72, in safe_run#012 function()#012 File "/usr/libexec/pscheduler/ daemons/runner", line 932, in <lambda>#012 pscheduler.safe_run(lambda: main_program())#012 File "/usr/libexec/pscheduler/ daemons/runner", line 842, in main_program#012 """, [refresh]);#012DatabaseError: server closed the connection unexpectedly#012#011This probably means the server terminated abnormally#012#011before or while processing the request. Dec 13 12:53:46 psonar-ca journal: safe_run/runner ERROR Waiting 22.5 seconds before restarting
And the command “systemctl status –l pscheduler-runner” reports:
run[13589]: tool-powstream/run WARNING Unable to remove powstream temporary directory /var/lib/pscheduler/tool/
powstream/e664a834-4e5c-468b- 901d-f8e552502dd9- 2017Dec13T175432202983 due to error reported by OS: 2: No such file or directory (filename: /var/lib/pscheduler/tool/ powstream/e664a834-4e5c-468b- 901d-f8e552502dd9- 2017Dec13T175432202983) python[1924]: detected unhandled Python exception in '/usr/libexec/pscheduler/
daemons/runner' systemd[1]: pscheduler-runner.service: main process exited, code=exited, status=1/FAILURE
systemd[1]: Stopped pScheduler server - runner.
systemd[1]: Unit pscheduler-runner.service entered failed state.
systemd[1]: pscheduler-runner.service failed.
run[13762]: tool-powstream/run WARNING Unable to remove powstream temporary directory /var/lib/pscheduler/tool/
powstream/e664a834-4e5c-468b- 901d-f8e552502dd9- 2017Dec13T175456196516 due to error reported by OS: 2: No such file or directory (filename: /var/lib/pscheduler/tool/ powstream/e664a834-4e5c-468b- 901d-f8e552502dd9- 2017Dec13T175456196516) run[13901]: tool-powstream/run WARNING Unable to remove powstream temporary directory /var/lib/pscheduler/tool/
powstream/e664a834-4e5c-468b- 901d-f8e552502dd9- 2017Dec13T175520196554 due to error reported by OS: 2: No such file or directory (filename: /var/lib/pscheduler/tool/ powstream/e664a834-4e5c-468b- 901d-f8e552502dd9- 2017Dec13T175520196554) run[13762]: tool-powstream/run WARNING Unable to remove powstream temporary directory /var/lib/pscheduler/tool/
powstream/e664a834-4e5c-468b- 901d-f8e552502dd9- 2017Dec13T175456196516 due to error reported by OS: 2: No such file or directory (filename: /var/lib/pscheduler/tool/ powstream/e664a834-4e5c-468b- 901d-f8e552502dd9- 2017Dec13T175456196516) run[13901]: tool-powstream/run WARNING Unable to remove powstream temporary directory /var/lib/pscheduler/tool/
powstream/e664a834-4e5c-468b- 901d-f8e552502dd9- 2017Dec13T175520196554 due to error reported by OS: 2: No such file or directory (filename: /var/lib/pscheduler/tool/ powstream/e664a834-4e5c-468b- 901d-f8e552502dd9- 2017Dec13T175520196554)
Doug
From: Andrew Lake <>
Date: Tuesday, December 12, 2017 at 10:20 AM
To: Doug Wussler <>, Shkelzen Rugovac <>
Cc: "" <>
Subject: Re: [perfsonar-user] Django error after a fresh install
Hi,
Ok, I’m actually able to recreate these exact exceptions if my host boots with only an IPv6 address. Even after I assign it an IPv4 address things don’t work until I restart some of the daemons. Do your hosts have just an IPv6 address? I see the hostname Shkelzen shared is dual-stack so in theory it should have both and be fine, but maybe there is some race condition with when addresses get assigned vs when the daemons come up? Try the following if you host has an IPv4 address as well, since the commands below seemed to fix things for me after assigning an IPv4 address:
systemctl restart cassandra
systemctl restart httpd
systemctl restart pscheduler-scheduler
systemctl restart pscheduler-archiver
systemctl restart pscheduler-ticker
systemctl restart pscheduler-runner
If you want a quick command to add something to your archive run:
pscheduler task --archive @/usr/share/pscheduler/psc-
archiver-esmond.json idle —duration PT5S
The second command should return a non-empty list if things are back to working.
If you host is indeed IPv6 only then the above is likely not enough. Cassandra not working properly on a host with IPv6 only by default is a known issue and the fix for that is documented in an FAQ: http://docs.perfsonar.
net/FAQ.html#q-how-can-i-get- . Unfortunately that one is mostly out of our control so best we can do is provide the FAQ with the fix. The Django error is new, so we can dig closer at that.cassandra-to-run-on-a-host- that-only-has-an-ipv6-address
Thanks,
Andy
On December 12, 2017 at 3:36:50 AM, Shkelzen Rugovac () wrote:
Hi all,
Indeed, after applying "yum reinstall esmond" the "internal Server Error" disappeared but not the error in the django.log.
Not knowing what possible service to restart, I just rebooted the whole server and now django logs the following error:
2017-12-12 09:16:43,508 [ERROR] /usr/lib/esmond/lib/python2.7/
site-packages/django/core/ handlers/exception.py: Internal Server Error: /esmond/perfsonar/archive Traceback (most recent call last):
File "/usr/lib/esmond/lib/python2.
7/site-packages/django/core/ handlers/exception.py", line 42, in inner response = get_response(request)
File "/usr/lib/esmond/lib/python2.
7/site-packages/django/core/ handlers/base.py", line 244, in _legacy_get_response response = middleware_method(request)
File "/usr/lib/esmond/lib/python2.
7/site-packages/django/ middleware/common.py", line 62, in process_request if self.should_redirect_with_
slash(request): File "/usr/lib/esmond/lib/python2.
7/site-packages/django/ middleware/common.py", line 80, in should_redirect_with_slash not is_valid_path(request.path_
info, urlconf) and File "/usr/lib/esmond/lib/python2.
7/site-packages/django/urls/ base.py", line 157, in is_valid_path resolve(path, urlconf)
File "/usr/lib/esmond/lib/python2.
7/site-packages/django/urls/ base.py", line 27, in resolve return get_resolver(urlconf).resolve(
path) File "/usr/lib/esmond/lib/python2.
7/site-packages/django/urls/ resolvers.py", line 270, in resolve for pattern in self.url_patterns:
File "/usr/lib/esmond/lib/python2.
7/site-packages/django/utils/ functional.py", line 35, in __get__ res = instance.__dict__[self.name] = self.func(instance)
File "/usr/lib/esmond/lib/python2.
7/site-packages/django/urls/ resolvers.py", line 313, in url_patterns patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "/usr/lib/esmond/lib/python2.
7/site-packages/django/utils/ functional.py", line 35, in __get__ res = instance.__dict__[self.name] = self.func(instance)
File "/usr/lib/esmond/lib/python2.
7/site-packages/django/urls/ resolvers.py", line 306, in urlconf_module return import_module(self.urlconf_
name) File "/usr/lib64/python2.7/
importlib/__init__.py", line 37, in import_module __import__(name)
File "/usr/lib/esmond/esmond/urls.
py", line 10, in <module> from esmond.api.api_v2 import (
File "/usr/lib/esmond/esmond/api/
api_v2.py", line 52, in <module> raise ConnectionException(str(e))
ConnectionException: '"System Manager can\'t connect to Cassandra at localhost:9160 - Could not connect to localhost:9160"'
And http://ps02.iihe.ac.be/
esmond/perfsonar/archive/ shows an empty list.
Any hint?
Cheers,
Shkelzen
2017-12-11 17:45 GMT+01:00 Doug Wussler <>:
Andrew –
That was me. The “yum reinstall esmond” cleared up the “Internal Server Error” I was getting in the “Test Results” section when I visited the toolkit page. But it did not clear up the issue Shkelzen is reporting, I have the same error even after reinstalling Esmond and rebooting. We both did a full install of the 4.02 ISO and our /var/log/esmond/django.log is showing the same failure. The reinstall has not fixed this problem.
Doug Wussler
Florida State University
From: <> on behalf of Andrew Lake <>
Date: Monday, December 11, 2017 at 9:07 AM
To: "" <>, Shkelzen Rugovac <>
Subject: Re: [perfsonar-user] Django error after a fresh install
Hi,
Someone else reported a similar issue last week and they were able to correct it by doing a “yum reinstall esmond”. The dev team is investigating closer as it doesn't appear to happen in our test builds, so must be some condition or inconsistent package ordering that is triggering it.
Thanks,
Andy
On December 11, 2017 at 3:27:21 AM, Shkelzen Rugovac () wrote:
Hi,
After a fresh installation via the FULL 4.0.2 ISO + yum update [1],[2] and [3], I have the following error in /var/log/esmond/django.log :
2017-12-11 09:18:31,761 [ERROR] /usr/lib/esmond/lib/python2.7/
site-packages/django/core/ handlers/exception.py: Internal Server Error: /esmond/perfsonar/archive/ Traceback (most recent call last):
File "/usr/lib/esmond/lib/python2.
7/site-packages/django/core/ handlers/exception.py", line 42, in inner response = get_response(request)
File "/usr/lib/esmond/lib/python2.
7/site-packages/django/core/ handlers/base.py", line 249, in _legacy_get_response response = self._get_response(request)
File "/usr/lib/esmond/lib/python2.
7/site-packages/django/core/ handlers/base.py", line 187, in _get_response response = self.process_exception_by_
middleware(e, request) File "/usr/lib/esmond/lib/python2.
7/site-packages/django/core/ handlers/base.py", line 185, 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 90, in view return self.dispatch(request, *args, **kwargs)
File "/usr/lib/esmond/lib/python2.
7/site-packages/rest_ framework/views.py", line 489, in dispatch response = self.handle_exception(exc)
File "/usr/lib/esmond/lib/python2.
7/site-packages/rest_ framework/views.py", line 449, in handle_exception self.raise_uncaught_exception(
exc) File "/usr/lib/esmond/lib/python2.
7/site-packages/rest_ framework/views.py", line 486, in dispatch response = handler(request, *args, **kwargs)
File "/usr/lib/esmond/esmond/api/
perfsonar/api_v2.py", line 838, in list return super(ArchiveViewset, self).list(request)
File "/usr/lib/esmond/lib/python2.
7/site-packages/rest_ framework/mixins.py", line 42, in list page = self.paginate_queryset(
queryset) File "/usr/lib/esmond/lib/python2.
7/site-packages/rest_ framework/generics.py", line 173, in paginate_queryset return self.paginator.paginate_
queryset(queryset, self.request, view=self) File "/usr/lib/esmond/lib/python2.
7/site-packages/rest_ framework/pagination.py", line 335, in paginate_queryset self.count = _get_count(queryset)
File "/usr/lib/esmond/lib/python2.
7/site-packages/rest_ framework/pagination.py", line 53, in _get_count return queryset.count()
File "/usr/lib/esmond/lib/python2.
7/site-packages/django/db/ models/query.py", line 369, in count return self.query.get_count(using=
self.db) File "/usr/lib/esmond/lib/python2.
7/site-packages/django/db/ models/sql/query.py", line 476, in get_count number = obj.get_aggregation(using, ['__count'])['__count']
File "/usr/lib/esmond/lib/python2.
7/site-packages/django/db/ models/sql/query.py", line 457, in get_aggregation result = compiler.execute_sql(SINGLE)
File "/usr/lib/esmond/lib/python2.
7/site-packages/django/db/ models/sql/compiler.py", line 835, in execute_sql cursor.execute(sql, params)
File "/usr/lib/esmond/lib/python2.
7/site-packages/django/db/ backends/utils.py", line 64, in execute return self.cursor.execute(sql, params)
File "/usr/lib/esmond/lib/python2.
7/site-packages/django/db/ utils.py", line 94, in __exit__ six.reraise(dj_exc_type, dj_exc_value, traceback)
File "/usr/lib/esmond/lib/python2.
7/site-packages/django/db/ backends/utils.py", line 64, in execute return self.cursor.execute(sql, params)
ProgrammingError: relation "ps_metadata" does not exist
LINE 1: ...e" AS Col3, "ps_metadata"."checksum" AS Col4 FROM "ps_metada...
Why ps_metadata not (yet) present?
Cheers,
Shkelzen
--
Shkelzen RUGOVAC
Université Libre de Bruxelles
Bd du Triomphe, CP230
1050 Bruxelles - Belgium
Office at VUB:
Building G - Level 0 - Room 147
Tel: (+32) 2 629 33 26
--
Shkelzen RUGOVAC
Université Libre de Bruxelles
Bd du Triomphe, CP230
1050 Bruxelles - Belgium
Office at VUB:
Building G - Level 0 - Room 147
Tel: (+32) 2 629 33 26
Université Libre de Bruxelles
Bd du Triomphe, CP230
1050 Bruxelles - Belgium
Office at VUB:
Building G - Level 0 - Room 147
Tel: (+32) 2 629 33 26
- Re: [perfsonar-user] Django error after a fresh install, (continued)
- Re: [perfsonar-user] Django error after a fresh install, Andrew Lake, 12/11/2017
- Re: [perfsonar-user] Django error after a fresh install, Doug Wussler, 12/11/2017
- Re: [perfsonar-user] Django error after a fresh install, Shkelzen Rugovac, 12/12/2017
- Re: [perfsonar-user] Django error after a fresh install, Andrew Lake, 12/12/2017
- Re: [perfsonar-user] Django error after a fresh install, Andrew Lake, 12/12/2017
- Re: [perfsonar-user] Django error after a fresh install, Doug Wussler, 12/12/2017
- Re: [perfsonar-user] Django error after a fresh install, Shkelzen Rugovac, 12/12/2017
- Re: [perfsonar-user] Django error after a fresh install, Doug Wussler, 12/12/2017
- Re: [perfsonar-user] Django error after a fresh install, Doug Wussler, 12/13/2017
- Re: [perfsonar-user] Django error after a fresh install, Andrew Lake, 12/13/2017
- Re: [perfsonar-user] Django error after a fresh install, Doug Wussler, 12/13/2017
- Re: [perfsonar-user] Django error after a fresh install, Shkelzen Rugovac, 12/13/2017
- Re: [perfsonar-user] Django error after a fresh install, Andrew Lake, 12/14/2017
- Re: [perfsonar-user] Django error after a fresh install, Shkelzen Rugovac, 12/14/2017
- Re: [perfsonar-user] Django error after a fresh install, Doug Wussler, 12/14/2017
- Re: [perfsonar-user] Django error after a fresh install, Andrew Lake, 12/14/2017
- Re: [perfsonar-user] Django error after a fresh install, Doug Wussler, 12/14/2017
- RE: [perfsonar-user] Django error after a fresh install, SCHAER Frederic, 12/20/2017
- Re: [perfsonar-user] Django error after a fresh install, Doug Wussler, 12/20/2017
- Re: [perfsonar-user] Django error after a fresh install, Andrew Lake, 12/13/2017
- Re: [perfsonar-user] Django error after a fresh install, Andrew Lake, 12/12/2017
- Re: [perfsonar-user] Django error after a fresh install, Andrew Lake, 12/12/2017
- Re: [perfsonar-user] Django error after a fresh install, Shkelzen Rugovac, 12/12/2017
- Re: [perfsonar-user] Django error after a fresh install, Doug Wussler, 12/11/2017
- Re: [perfsonar-user] Django error after a fresh install, Andrew Lake, 12/11/2017
Archive powered by MHonArc 2.6.19.