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-2581) Manually deploy Django version of dev seagrid
Date Tue, 07 Nov 2017 17:43:00 GMT

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

Marcus Christie commented on AIRAVATA-2581:
-------------------------------------------


h2. Update code

Updated code to version without the apache.airavata package name for the
generated code.


h2. Invalid HTTP_HOST header: ‘django.seagrid.org’. You may need to add ‘django.seagrid.org’
to ALLOWED_HOSTS.

Add this to settings_local.py

{noformat}
    ALLOWED_HOSTS = ['django.seagrid.org']
{noformat}

Restarting mod_wsgi by touch wsgi.py file.

{noformat}
    [pga@pga-scigap-develop django-airavata-gateway]$ touch django_airavata/wsgi.py 
{noformat}


h2. OperationalError at /auth/handle_login: attempt to write a readonly database

Making database and directory writeable

{noformat}
    $ pwd
    /home/pga/portals/django-seagrid/django-airavata-gateway
    $ chmod a+w db.sqlite3 
    $ chmod a+w .
{noformat}

The same with SELinux

{noformat}
    # semanage fcontext -a -t httpd_sys_rw_content_t /var/www/portals/django-seagrid/django-airavata-gateway/db.sqlite3

    # restorecon /var/www/portals/django-seagrid/django-airavata-gateway/db.sqlite3
    # semanage fcontext -a -t httpd_sys_rw_content_t "/var/www/portals/django-seagrid/django-airavata-gateway(/.*)?"
    # restorecon -R /var/www/portals/django-seagrid/django-airavata-gateway/
{noformat}


h2. Fixing logout

Added the following VALID REDIRECT URIS to the PGA client at
https://iamdev.scigap.org/auth/admin/master/console/#/realms/seagrid/clients/956882ed-edfe-4957-b1f8-b1f875ac7187

-   https://django.seagrid.org/
-   https://django.seagrid.org/callback-url

> Manually deploy Django version of dev seagrid
> ---------------------------------------------
>
>                 Key: AIRAVATA-2581
>                 URL: https://issues.apache.org/jira/browse/AIRAVATA-2581
>             Project: Airavata
>          Issue Type: Sub-task
>            Reporter: Marcus Christie
>            Assignee: Marcus Christie
>




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message