You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@airavata.apache.org by "Marcus Christie (Jira)" <ji...@apache.org> on 2021/10/15 13:49:00 UTC

[jira] [Comment Edited] (AIRAVATA-3530) Cannot load the default gateway theme

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

Marcus Christie edited comment on AIRAVATA-3530 at 10/15/21, 1:48 PM:
----------------------------------------------------------------------

I was able to get the new embed hash field to be populated by the migration by rolling back to an older version of Wagtail, importing the theme, upgrading Wagtail, running migrations and then re-exporting

{code}
pip install wagtail==2.11.8  # side effect, downgrades Django to 3.1 too
./manage.py migrate
./manage.py load_cms_data new_default_theme
pip install wagtail==2.13.4
pip install Django==3.2.8
python manage.py migrate
python manage.py dumpdata --natural-foreign --exclude auth.permission   --exclude contenttypes --indent 4 > django_airavata/wagtailapps/base/fixtures/new_default_theme.json
{code}




was (Author: marcuschristie):
I was able to get the new embed hash field to be populated by the migration by rolling back to an older version of Wagtail, importing the theme, upgrading Wagtail, running migrations and then re-exporting

```
pip install wagtail==2.11.8  # side effect, downgrades Django to 3.1 too
./manage.py migrate
./manage.py load_cms_data new_default_theme
pip install wagtail==2.13.4
pip install Django==3.2.8
python manage.py migrate
python manage.py dumpdata --natural-foreign --exclude auth.permission   --exclude contenttypes --indent 4 > django_airavata/wagtailapps/base/fixtures/new_default_theme.json
```


> Cannot load the default gateway theme
> -------------------------------------
>
>                 Key: AIRAVATA-3530
>                 URL: https://issues.apache.org/jira/browse/AIRAVATA-3530
>             Project: Airavata
>          Issue Type: Bug
>          Components: Django Portal
>         Environment: https://scigateway.ucmerced.edu/ 
>            Reporter: Eroma
>            Assignee: Marcus Christie
>            Priority: Major
>
> Loading the default gateway theme to a new Django Portal is throwing errors
> Traceback (most recent call last):
>   File “/var/www/portals/django-ucmerced/venv/lib64/python3.6/site-packages/django/db/backends/utils.py”, line 84, in _execute
>     return self.cursor.execute(sql, params)
>   File “/var/www/portals/django-ucmerced/venv/lib64/python3.6/site-packages/django/db/backends/mysql/base.py”, line 73, in execute
>     return self.cursor.execute(query, args)
>   File “/var/www/portals/django-ucmerced/venv/lib64/python3.6/site-packages/MySQLdb/cursors.py”, line 206, in execute
>     res = self._query(query)
>   File “/var/www/portals/django-ucmerced/venv/lib64/python3.6/site-packages/MySQLdb/cursors.py”, line 319, in _query
>     db.query(q)
>   File “/var/www/portals/django-ucmerced/venv/lib64/python3.6/site-packages/MySQLdb/connections.py”, line 259, in query
>     _mysql.connection.query(self, query)
> MySQLdb._exceptions.IntegrityError: (1062, “Duplicate entry ‘’ for key ‘wagtailembeds_embed_hash_c9bd8c9a_uniq’“)
>  
>  
> When tried the gateway domain, getting 
> "Page Not Found We couldn’t find that page."



--
This message was sent by Atlassian Jira
(v8.3.4#803005)