You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@superset.apache.org by GitBox <gi...@apache.org> on 2017/11/02 02:34:01 UTC

[GitHub] andromedarabbit opened a new issue #3758: Upgrading 0.20.0 to 0.20.1 failed

andromedarabbit opened a new issue #3758: Upgrading 0.20.0 to 0.20.1 failed
URL: https://github.com/apache/incubator-superset/issues/3758
 
 
   Make sure these boxes are checked before submitting your issue - thank you!
   
   - [/] I have checked the superset logs for python stacktraces and included it here as text if any
   - [/] I have reproduced the issue with at least the latest released version of superset
   - [] I have checked the issue tracker for the same issue and I haven't found one similar
   
   
   ### Superset version
   
   0.20.1
   
   ### Expected results
   
   Upgrade should be done without any errors
   
   ### Actual results
   
   `superset db upgrade` failed with the following messages:
   
   ```
   Loaded your LOCAL configuration at [/home/superset/superset_config.py]
   2017-11-02 11:29:23,393:ERROR:flask_appbuilder.base:'NoneType' object has no attribute 'name'
   Traceback (most recent call last):
     File "/usr/local/lib/python3.5/site-packages/flask_appbuilder/base.py", line 462, in _add_permission
       self.sm.add_permissions_view(baseview.base_permissions, baseview.__class__.__name__)
     File "/usr/local/lib/python3.5/site-packages/flask_appbuilder/security/manager.py", line 804, in add_permissions_view
       if perm_view.permission.name not in base_permissions:
   AttributeError: 'NoneType' object has no attribute 'name'
   2017-11-02 11:29:23,394:ERROR:flask_appbuilder.base:Add Permission on View Error: 'NoneType' object has no attribute 'name'
   2017-11-02 11:29:24,042:ERROR:flask_appbuilder.base:'NoneType' object has no attribute 'name'
   Traceback (most recent call last):
     File "/usr/local/lib/python3.5/site-packages/flask_appbuilder/base.py", line 462, in _add_permission
       self.sm.add_permissions_view(baseview.base_permissions, baseview.__class__.__name__)
     File "/usr/local/lib/python3.5/site-packages/flask_appbuilder/security/manager.py", line 804, in add_permissions_view
       if perm_view.permission.name not in base_permissions:
   AttributeError: 'NoneType' object has no attribute 'name'
   2017-11-02 11:29:24,042:ERROR:flask_appbuilder.base:Add Permission on View Error: 'NoneType' object has no attribute 'name'
   INFO  [alembic.runtime.migration] Context impl MySQLImpl.
   INFO  [alembic.runtime.migration] Will assume transactional DDL.
   INFO  [alembic.runtime.migration] Running upgrade ca69c70ec99b -> ddd6ebdd853b, annotations
   INFO  [alembic.runtime.migration] Running upgrade a9c47e2c1547, ddd6ebdd853b -> d39b1e37131d, empty message
   INFO  [alembic.runtime.migration] Running upgrade ca69c70ec99b -> 19a814813610, Adding metric warning_text
   INFO  [alembic.runtime.migration] Running upgrade 19a814813610, a9c47e2c1547 -> 472d2f73dfd4, empty message
   INFO  [alembic.runtime.migration] Running upgrade 472d2f73dfd4, d39b1e37131d -> f959a6652acd, empty message
   ```
   
   After `superset db upgrade` being failed, I found weird records from the table `ab_permission_view`:
   
   
   <img width="642" alt="_mysql_5_5_5-10_1_19-mariadb__dev-superset_superset_ab_permission_view_and_slack_-_dailyhotel" src="https://user-images.githubusercontent.com/2077947/32307034-b0483de6-bfc1-11e7-914a-a3782569d1f0.png">
   
   
   ### Steps to reproduce

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services