airavata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcus Christie (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AIRAVATA-2856) Customize the header icon and title that is displayed when user is logged in
Date Thu, 19 Jul 2018 16:24:00 GMT

    [ https://issues.apache.org/jira/browse/AIRAVATA-2856?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16549486#comment-16549486
] 

Marcus Christie commented on AIRAVATA-2856:
-------------------------------------------

Ran into an SELinux problem when deploying this to test on django.seagrid.org:

{noformat}
[Thu Jul 19 16:05:29.504664 2018] [wsgi:error] [pid 5438] [remote 149.160.182.19:59572]  
File "/var/www/portals/django-seagrid/venv/lib64/python3.4/site-packages/wagtail/admin/urls/__init__.py",
line 95, in wrapper
[Thu Jul 19 16:05:29.504667 2018] [wsgi:error] [pid 5438] [remote 149.160.182.19:59572]  
  return view_func(request, *args, **kwargs)
[Thu Jul 19 16:05:29.504670 2018] [wsgi:error] [pid 5438] [remote 149.160.182.19:59572]  
File "/var/www/portals/django-seagrid/venv/lib64/python3.4/site-packages/wagtail/admin/decorators.py",
line 28, in decorated_view
[Thu Jul 19 16:05:29.504673 2018] [wsgi:error] [pid 5438] [remote 149.160.182.19:59572]  
  return view_func(request, *args, **kwargs)
[Thu Jul 19 16:05:29.504676 2018] [wsgi:error] [pid 5438] [remote 149.160.182.19:59572]  
File "/var/www/portals/django-seagrid/venv/lib64/python3.4/site-packages/wagtail/admin/utils.py",
line 139, in wrapped_view_func
[Thu Jul 19 16:05:29.504680 2018] [wsgi:error] [pid 5438] [remote 149.160.182.19:59572]  
  return view_func(request, *args, **kwargs)
[Thu Jul 19 16:05:29.504683 2018] [wsgi:error] [pid 5438] [remote 149.160.182.19:59572]  
File "/var/www/portals/django-seagrid/venv/lib64/python3.4/site-packages/django/views/decorators/vary.py",
line 21, in inner_func
[Thu Jul 19 16:05:29.504686 2018] [wsgi:error] [pid 5438] [remote 149.160.182.19:59572]  
  response = func(*args, **kwargs)
[Thu Jul 19 16:05:29.504689 2018] [wsgi:error] [pid 5438] [remote 149.160.182.19:59572]  
File "/var/www/portals/django-seagrid/venv/lib64/python3.4/site-packages/wagtail/images/views/multiple.py",
line 65, in add
[Thu Jul 19 16:05:29.504692 2018] [wsgi:error] [pid 5438] [remote 149.160.182.19:59572]  
  if form.is_valid():
[Thu Jul 19 16:05:29.504695 2018] [wsgi:error] [pid 5438] [remote 149.160.182.19:59572]  
File "/var/www/portals/django-seagrid/venv/lib64/python3.4/site-packages/django/forms/forms.py",
line 183, in is_valid
[Thu Jul 19 16:05:29.504698 2018] [wsgi:error] [pid 5438] [remote 149.160.182.19:59572]  
  return self.is_bound and not self.errors
[Thu Jul 19 16:05:29.504709 2018] [wsgi:error] [pid 5438] [remote 149.160.182.19:59572]  
File "/var/www/portals/django-seagrid/venv/lib64/python3.4/site-packages/django/forms/forms.py",
line 175, in errors
[Thu Jul 19 16:05:29.504712 2018] [wsgi:error] [pid 5438] [remote 149.160.182.19:59572]  
  self.full_clean()
[Thu Jul 19 16:05:29.504715 2018] [wsgi:error] [pid 5438] [remote 149.160.182.19:59572]  
File "/var/www/portals/django-seagrid/venv/lib64/python3.4/site-packages/django/forms/forms.py",
line 384, in full_clean
[Thu Jul 19 16:05:29.504718 2018] [wsgi:error] [pid 5438] [remote 149.160.182.19:59572]  
  self._clean_fields()
[Thu Jul 19 16:05:29.504721 2018] [wsgi:error] [pid 5438] [remote 149.160.182.19:59572]  
File "/var/www/portals/django-seagrid/venv/lib64/python3.4/site-packages/django/forms/forms.py",
line 400, in _clean_fields
[Thu Jul 19 16:05:29.504724 2018] [wsgi:error] [pid 5438] [remote 149.160.182.19:59572]  
  value = field.clean(value, initial)
[Thu Jul 19 16:05:29.504727 2018] [wsgi:error] [pid 5438] [remote 149.160.182.19:59572]  
File "/var/www/portals/django-seagrid/venv/lib64/python3.4/site-packages/django/forms/fields.py",
line 599, in clean
[Thu Jul 19 16:05:29.504730 2018] [wsgi:error] [pid 5438] [remote 149.160.182.19:59572]  
  return super(FileField, self).clean(data)
[Thu Jul 19 16:05:29.504733 2018] [wsgi:error] [pid 5438] [remote 149.160.182.19:59572]  
File "/var/www/portals/django-seagrid/venv/lib64/python3.4/site-packages/django/forms/fields.py",
line 160, in clean
[Thu Jul 19 16:05:29.504736 2018] [wsgi:error] [pid 5438] [remote 149.160.182.19:59572]  
  value = self.to_python(value)
[Thu Jul 19 16:05:29.504739 2018] [wsgi:error] [pid 5438] [remote 149.160.182.19:59572]  
File "/var/www/portals/django-seagrid/venv/lib64/python3.4/site-packages/wagtail/images/fields.py",
line 87, in to_python
[Thu Jul 19 16:05:29.504742 2018] [wsgi:error] [pid 5438] [remote 149.160.182.19:59572]  
  f = super().to_python(data)
[Thu Jul 19 16:05:29.504745 2018] [wsgi:error] [pid 5438] [remote 149.160.182.19:59572]  
File "/var/www/portals/django-seagrid/venv/lib64/python3.4/site-packages/django/forms/fields.py",
line 630, in to_python
[Thu Jul 19 16:05:29.504748 2018] [wsgi:error] [pid 5438] [remote 149.160.182.19:59572]  
  from PIL import Image
[Thu Jul 19 16:05:29.504751 2018] [wsgi:error] [pid 5438] [remote 149.160.182.19:59572]  
File "/var/www/portals/django-seagrid/venv/lib64/python3.4/site-packages/PIL/Image.py", line
56, in <module>
[Thu Jul 19 16:05:29.504754 2018] [wsgi:error] [pid 5438] [remote 149.160.182.19:59572]  
  from . import _imaging as core
[Thu Jul 19 16:05:29.504760 2018] [wsgi:error] [pid 5438] [remote 149.160.182.19:59572] ImportError:
/var/www/portals/django-seagrid/venv/lib64/python3.4/site-packages/PIL/_imaging.cpython-34m.so:
failed to map segment from shared object: Permission denied
{noformat}

This line in /etc/selinux/targeted/contexts/files/file_contexts.local fixed that error:
{noformat}
/var/www/portals/django-seagrid/venv(/.*)?    system_u:object_r:httpd_sys_script_exec_t:s0
{noformat}

See https://serverfault.com/a/659175


> Customize the header icon and title that is displayed when user is logged in
> ----------------------------------------------------------------------------
>
>                 Key: AIRAVATA-2856
>                 URL: https://issues.apache.org/jira/browse/AIRAVATA-2856
>             Project: Airavata
>          Issue Type: Story
>            Reporter: Marcus Christie
>            Assignee: Marcus Christie
>            Priority: Major
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message