Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      Situation: When I try to create a new BioViz Connect server through the Ansible playbook or manually, I am receiving an error.

      Task: Identify and implement a fix.

        Attachments

          Activity

          nfreese Nowlan Freese created issue -
          nfreese Nowlan Freese made changes -
          Field Original Value New Value
          Epic Link IGBF-2376 [ 18533 ]
          nfreese Nowlan Freese made changes -
          Status To-Do [ 10305 ] In Progress [ 3 ]
          Hide
          nfreese Nowlan Freese added a comment -
          Show
          nfreese Nowlan Freese added a comment - This seems to be the issue: https://github.com/sebleier/django-redis-cache/issues/195
          Hide
          nfreese Nowlan Freese added a comment -

          Uninstalled the django-redis-cache package and reinstalled with option --no-binary. This worked and I was able to access the test site.

          Show
          nfreese Nowlan Freese added a comment - Uninstalled the django-redis-cache package and reinstalled with option --no-binary. This worked and I was able to access the test site.
          nfreese Nowlan Freese made changes -
          Description Situation: When I try to create a new BioViz Connect server through the Ansible playbook or manually, I am receiving an error. This may have to do with the [removal of a library|https://github.com/jazzband/django-redis/issues/388] in Django-redis.

          Task: Identify and implement a fix.

          [Fri Oct 09 18:56:28.876495 2020] [wsgi:error] [pid 11352:tid 139684090808064] [remote 99.69.51.247:55617] self.load_middleware()
          [Fri Oct 09 18:56:28.876501 2020] [wsgi:error] [pid 11352:tid 139684090808064] [remote 99.69.51.247:55617] File "/var/www/vhosts/django_cyversedev/venv/django_cyversedev/lib/python3.6/site-packages/django/core/handlers/base.py", line 58, in load_middleware
          [Fri Oct 09 18:56:28.876505 2020] [wsgi:error] [pid 11352:tid 139684090808064] [remote 99.69.51.247:55617] mw_instance = middleware(handler)
          [Fri Oct 09 18:56:28.876516 2020] [wsgi:error] [pid 11352:tid 139684090808064] [remote 99.69.51.247:55617] File "/var/www/vhosts/django_cyversedev/venv/django_cyversedev/lib/python3.6/site-packages/django/middleware/cache.py", line 72, in __init__
          [Fri Oct 09 18:56:28.876520 2020] [wsgi:error] [pid 11352:tid 139684090808064] [remote 99.69.51.247:55617] self.cache = caches[self.cache_alias]
          [Fri Oct 09 18:56:28.876526 2020] [wsgi:error] [pid 11352:tid 139684090808064] [remote 99.69.51.247:55617] File "/var/www/vhosts/django_cyversedev/venv/django_cyversedev/lib/python3.6/site-packages/django/core/cache/__init__.py", line 79, in __getitem__
          [Fri Oct 09 18:56:28.876530 2020] [wsgi:error] [pid 11352:tid 139684090808064] [remote 99.69.51.247:55617] cache = _create_cache(alias)
          [Fri Oct 09 18:56:28.876536 2020] [wsgi:error] [pid 11352:tid 139684090808064] [remote 99.69.51.247:55617] File "/var/www/vhosts/django_cyversedev/venv/django_cyversedev/lib/python3.6/site-packages/django/core/cache/__init__.py", line 53, in _create_cache
          [Fri Oct 09 18:56:28.876541 2020] [wsgi:error] [pid 11352:tid 139684090808064] [remote 99.69.51.247:55617] "Could not find backend '%s': %s" % (backend, e))
          [Fri Oct 09 18:56:28.876552 2020] [wsgi:error] [pid 11352:tid 139684090808064] [remote 99.69.51.247:55617] django.core.cache.backends.base.InvalidCacheBackendError: Could not find backend 'redis_cache.RedisCache': cannot import name 'six'
          Situation: When I try to create a new BioViz Connect server through the Ansible playbook or manually, I am receiving an error.

          Task: Identify and implement a fix.

          [Fri Oct 09 18:56:28.876495 2020] [wsgi:error] [pid 11352:tid 139684090808064] [remote 99.69.51.247:55617] self.load_middleware()
          [Fri Oct 09 18:56:28.876501 2020] [wsgi:error] [pid 11352:tid 139684090808064] [remote 99.69.51.247:55617] File "/var/www/vhosts/django_cyversedev/venv/django_cyversedev/lib/python3.6/site-packages/django/core/handlers/base.py", line 58, in load_middleware
          [Fri Oct 09 18:56:28.876505 2020] [wsgi:error] [pid 11352:tid 139684090808064] [remote 99.69.51.247:55617] mw_instance = middleware(handler)
          [Fri Oct 09 18:56:28.876516 2020] [wsgi:error] [pid 11352:tid 139684090808064] [remote 99.69.51.247:55617] File "/var/www/vhosts/django_cyversedev/venv/django_cyversedev/lib/python3.6/site-packages/django/middleware/cache.py", line 72, in __init__
          [Fri Oct 09 18:56:28.876520 2020] [wsgi:error] [pid 11352:tid 139684090808064] [remote 99.69.51.247:55617] self.cache = caches[self.cache_alias]
          [Fri Oct 09 18:56:28.876526 2020] [wsgi:error] [pid 11352:tid 139684090808064] [remote 99.69.51.247:55617] File "/var/www/vhosts/django_cyversedev/venv/django_cyversedev/lib/python3.6/site-packages/django/core/cache/__init__.py", line 79, in __getitem__
          [Fri Oct 09 18:56:28.876530 2020] [wsgi:error] [pid 11352:tid 139684090808064] [remote 99.69.51.247:55617] cache = _create_cache(alias)
          [Fri Oct 09 18:56:28.876536 2020] [wsgi:error] [pid 11352:tid 139684090808064] [remote 99.69.51.247:55617] File "/var/www/vhosts/django_cyversedev/venv/django_cyversedev/lib/python3.6/site-packages/django/core/cache/__init__.py", line 53, in _create_cache
          [Fri Oct 09 18:56:28.876541 2020] [wsgi:error] [pid 11352:tid 139684090808064] [remote 99.69.51.247:55617] "Could not find backend '%s': %s" % (backend, e))
          [Fri Oct 09 18:56:28.876552 2020] [wsgi:error] [pid 11352:tid 139684090808064] [remote 99.69.51.247:55617] django.core.cache.backends.base.InvalidCacheBackendError: Could not find backend 'redis_cache.RedisCache': cannot import name 'six'
          nfreese Nowlan Freese made changes -
          Description Situation: When I try to create a new BioViz Connect server through the Ansible playbook or manually, I am receiving an error.

          Task: Identify and implement a fix.

          [Fri Oct 09 18:56:28.876495 2020] [wsgi:error] [pid 11352:tid 139684090808064] [remote 99.69.51.247:55617] self.load_middleware()
          [Fri Oct 09 18:56:28.876501 2020] [wsgi:error] [pid 11352:tid 139684090808064] [remote 99.69.51.247:55617] File "/var/www/vhosts/django_cyversedev/venv/django_cyversedev/lib/python3.6/site-packages/django/core/handlers/base.py", line 58, in load_middleware
          [Fri Oct 09 18:56:28.876505 2020] [wsgi:error] [pid 11352:tid 139684090808064] [remote 99.69.51.247:55617] mw_instance = middleware(handler)
          [Fri Oct 09 18:56:28.876516 2020] [wsgi:error] [pid 11352:tid 139684090808064] [remote 99.69.51.247:55617] File "/var/www/vhosts/django_cyversedev/venv/django_cyversedev/lib/python3.6/site-packages/django/middleware/cache.py", line 72, in __init__
          [Fri Oct 09 18:56:28.876520 2020] [wsgi:error] [pid 11352:tid 139684090808064] [remote 99.69.51.247:55617] self.cache = caches[self.cache_alias]
          [Fri Oct 09 18:56:28.876526 2020] [wsgi:error] [pid 11352:tid 139684090808064] [remote 99.69.51.247:55617] File "/var/www/vhosts/django_cyversedev/venv/django_cyversedev/lib/python3.6/site-packages/django/core/cache/__init__.py", line 79, in __getitem__
          [Fri Oct 09 18:56:28.876530 2020] [wsgi:error] [pid 11352:tid 139684090808064] [remote 99.69.51.247:55617] cache = _create_cache(alias)
          [Fri Oct 09 18:56:28.876536 2020] [wsgi:error] [pid 11352:tid 139684090808064] [remote 99.69.51.247:55617] File "/var/www/vhosts/django_cyversedev/venv/django_cyversedev/lib/python3.6/site-packages/django/core/cache/__init__.py", line 53, in _create_cache
          [Fri Oct 09 18:56:28.876541 2020] [wsgi:error] [pid 11352:tid 139684090808064] [remote 99.69.51.247:55617] "Could not find backend '%s': %s" % (backend, e))
          [Fri Oct 09 18:56:28.876552 2020] [wsgi:error] [pid 11352:tid 139684090808064] [remote 99.69.51.247:55617] django.core.cache.backends.base.InvalidCacheBackendError: Could not find backend 'redis_cache.RedisCache': cannot import name 'six'
          Situation: When I try to create a new BioViz Connect server through the Ansible playbook or manually, I am receiving an error.

          Task: Identify and implement a fix.
          Hide
          nfreese Nowlan Freese added a comment -

          [Tue Oct 13 14:27:11.514122 2020] [wsgi:error] [pid 2831:tid 139703997429504] [remote 99.69.51.247:61628] self.load_middleware()
          [Tue Oct 13 14:27:11.514128 2020] [wsgi:error] [pid 2831:tid 139703997429504] [remote 99.69.51.247:61628] File "/var/www/vhosts/django_cyversedev/venv/django_cyversedev/lib/python3.6/site-packages/django/core/handlers/base.py", line 58, in load_middleware
          [Tue Oct 13 14:27:11.514132 2020] [wsgi:error] [pid 2831:tid 139703997429504] [remote 99.69.51.247:61628] mw_instance = middleware(handler)
          [Tue Oct 13 14:27:11.514142 2020] [wsgi:error] [pid 2831:tid 139703997429504] [remote 99.69.51.247:61628] File "/var/www/vhosts/django_cyversedev/venv/django_cyversedev/lib/python3.6/site-packages/django/middleware/cache.py", line 72, in _init_
          [Tue Oct 13 14:27:11.514147 2020] [wsgi:error] [pid 2831:tid 139703997429504] [remote 99.69.51.247:61628] self.cache = caches[self.cache_alias]
          [Tue Oct 13 14:27:11.514153 2020] [wsgi:error] [pid 2831:tid 139703997429504] [remote 99.69.51.247:61628] File "/var/www/vhosts/django_cyversedev/venv/django_cyversedev/lib/python3.6/site-packages/django/core/cache/_init.py", line 79, in __getitem_
          [Tue Oct 13 14:27:11.514157 2020] [wsgi:error] [pid 2831:tid 139703997429504] [remote 99.69.51.247:61628] cache = _create_cache(alias)
          [Tue Oct 13 14:27:11.514163 2020] [wsgi:error] [pid 2831:tid 139703997429504] [remote 99.69.51.247:61628] File "/var/www/vhosts/django_cyversedev/venv/django_cyversedev/lib/python3.6/site-packages/django/core/cache/_init_.py", line 53, in _create_cache
          [Tue Oct 13 14:27:11.514167 2020] [wsgi:error] [pid 2831:tid 139703997429504] [remote 99.69.51.247:61628] "Could not find backend '%s': %s" % (backend, e))
          [Tue Oct 13 14:27:11.514179 2020] [wsgi:error] [pid 2831:tid 139703997429504] [remote 99.69.51.247:61628] django.core.cache.backends.base.InvalidCacheBackendError: Could not find backend 'redis_cache.RedisCache': cannot import name 'six'

          Show
          nfreese Nowlan Freese added a comment - [Tue Oct 13 14:27:11.514122 2020] [wsgi:error] [pid 2831:tid 139703997429504] [remote 99.69.51.247:61628] self.load_middleware() [Tue Oct 13 14:27:11.514128 2020] [wsgi:error] [pid 2831:tid 139703997429504] [remote 99.69.51.247:61628] File "/var/www/vhosts/django_cyversedev/venv/django_cyversedev/lib/python3.6/site-packages/django/core/handlers/base.py", line 58, in load_middleware [Tue Oct 13 14:27:11.514132 2020] [wsgi:error] [pid 2831:tid 139703997429504] [remote 99.69.51.247:61628] mw_instance = middleware(handler) [Tue Oct 13 14:27:11.514142 2020] [wsgi:error] [pid 2831:tid 139703997429504] [remote 99.69.51.247:61628] File "/var/www/vhosts/django_cyversedev/venv/django_cyversedev/lib/python3.6/site-packages/django/middleware/cache.py", line 72, in _ init _ [Tue Oct 13 14:27:11.514147 2020] [wsgi:error] [pid 2831:tid 139703997429504] [remote 99.69.51.247:61628] self.cache = caches [self.cache_alias] [Tue Oct 13 14:27:11.514153 2020] [wsgi:error] [pid 2831:tid 139703997429504] [remote 99.69.51.247:61628] File "/var/www/vhosts/django_cyversedev/venv/django_cyversedev/lib/python3.6/site-packages/django/core/cache/_ init .py", line 79, in __getitem _ [Tue Oct 13 14:27:11.514157 2020] [wsgi:error] [pid 2831:tid 139703997429504] [remote 99.69.51.247:61628] cache = _create_cache(alias) [Tue Oct 13 14:27:11.514163 2020] [wsgi:error] [pid 2831:tid 139703997429504] [remote 99.69.51.247:61628] File "/var/www/vhosts/django_cyversedev/venv/django_cyversedev/lib/python3.6/site-packages/django/core/cache/_ init _.py", line 53, in _create_cache [Tue Oct 13 14:27:11.514167 2020] [wsgi:error] [pid 2831:tid 139703997429504] [remote 99.69.51.247:61628] "Could not find backend '%s': %s" % (backend, e)) [Tue Oct 13 14:27:11.514179 2020] [wsgi:error] [pid 2831:tid 139703997429504] [remote 99.69.51.247:61628] django.core.cache.backends.base.InvalidCacheBackendError: Could not find backend 'redis_cache.RedisCache': cannot import name 'six'
          Hide
          nfreese Nowlan Freese added a comment -

          From reading the comments on this issue, this issue appears to be from a bad release of django-redis-cache to 2.1.3 that should not have occurred. The --no-binary option can be used as a workaround, but hopefully this issue will be resolved with a new release of django-redis-cache. Chaitanya Kintali and Chester Dias, this raises the question of whether we should be specifying exact versions (that we know that work) for various packages. Thoughts?

          Show
          nfreese Nowlan Freese added a comment - From reading the comments on this issue , this issue appears to be from a bad release of django-redis-cache to 2.1.3 that should not have occurred. The --no-binary option can be used as a workaround, but hopefully this issue will be resolved with a new release of django-redis-cache. Chaitanya Kintali and Chester Dias , this raises the question of whether we should be specifying exact versions (that we know that work) for various packages. Thoughts?
          nfreese Nowlan Freese made changes -
          Status In Progress [ 3 ] Needs 1st Level Review [ 10005 ]
          nfreese Nowlan Freese made changes -
          Assignee Nowlan Freese [ nfreese ] Chester Dias [ cdias1 ]
          Hide
          ann.loraine Ann Loraine added a comment -

          Nowlan Freese - do please specify the version and update the playbook accordingly. Make a comment in the place where the version is specified referring to this ticket.

          Show
          ann.loraine Ann Loraine added a comment - Nowlan Freese - do please specify the version and update the playbook accordingly. Make a comment in the place where the version is specified referring to this ticket.
          nfreese Nowlan Freese made changes -
          Assignee Chester Dias [ cdias1 ] Nowlan Freese [ nfreese ]
          nfreese Nowlan Freese made changes -
          Status Needs 1st Level Review [ 10005 ] First Level Review in Progress [ 10301 ]
          nfreese Nowlan Freese made changes -
          Status First Level Review in Progress [ 10301 ] To-Do [ 10305 ]
          nfreese Nowlan Freese made changes -
          Status To-Do [ 10305 ] In Progress [ 3 ]
          Show
          nfreese Nowlan Freese added a comment - Pull request: https://bitbucket.org/lorainelab/bioviz-connect-playbooks/pull-requests/7/igbf-2562-specify-package-version
          nfreese Nowlan Freese made changes -
          Assignee Nowlan Freese [ nfreese ] Ann Loraine [ aloraine ]
          nfreese Nowlan Freese made changes -
          Status In Progress [ 3 ] Needs 1st Level Review [ 10005 ]
          nfreese Nowlan Freese made changes -
          Status Needs 1st Level Review [ 10005 ] First Level Review in Progress [ 10301 ]
          nfreese Nowlan Freese made changes -
          Status First Level Review in Progress [ 10301 ] Ready for Pull Request [ 10304 ]
          nfreese Nowlan Freese made changes -
          Status Ready for Pull Request [ 10304 ] Pull Request Submitted [ 10101 ]
          Hide
          ann.loraine Ann Loraine added a comment -

          Merged.
          attn: Nowlan Freese

          Show
          ann.loraine Ann Loraine added a comment - Merged. attn: Nowlan Freese
          ann.loraine Ann Loraine made changes -
          Status Pull Request Submitted [ 10101 ] Reviewing Pull Request [ 10303 ]
          ann.loraine Ann Loraine made changes -
          Status Reviewing Pull Request [ 10303 ] Merged Needs Testing [ 10002 ]
          ann.loraine Ann Loraine made changes -
          Assignee Ann Loraine [ aloraine ]
          Hide
          nfreese Nowlan Freese added a comment -

          Closing issue.

          Show
          nfreese Nowlan Freese added a comment - Closing issue.
          nfreese Nowlan Freese made changes -
          Assignee Nowlan Freese [ nfreese ]
          nfreese Nowlan Freese made changes -
          Status Merged Needs Testing [ 10002 ] Post-merge Testing In Progress [ 10003 ]
          nfreese Nowlan Freese made changes -
          Resolution Done [ 10000 ]
          Status Post-merge Testing In Progress [ 10003 ] Closed [ 6 ]

            People

            • Assignee:
              nfreese Nowlan Freese
              Reporter:
              nfreese Nowlan Freese
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: