dinhhuydh opened a new issue #7703: Relation "ab_user_role" does not exist
URL: https://github.com/apache/incubator-superset/issues/7703
 
 
   I've cloned the latest source code from github, When i ran the docker 
command to create admin. ` docker-compose run --rm -e FLASK_APP=superset 
superset flask fab create-admin` . The output looks like:
   ```
   Starting superset_redis_1    ... done
   Starting superset_postgres_1 ... done
   + '[' 3 -ne 0 ']'
   + exec flask fab create-admin
   Username [admin]:
   User first name [admin]:
   User last name [user]:
   Email [[email protected]]:
   Password:
   Repeat for confirmation:
   Loaded your LOCAL configuration at 
[/home/superset/superset/superset_config.py]
   Recognized Database Authentications.
   2019-06-13 06:29:11,340:ERROR:flask_appbuilder.security.sqla.manager:Error 
adding new user to database. (psycopg2.ProgrammingError) relation 
"ab_user_role" does not exist
   LINE 1: INSERT INTO ab_user_role (id, user_id, role_id) VALUES (next...
                       ^
   
   [SQL: INSERT INTO ab_user_role (id, user_id, role_id) VALUES 
(nextval('ab_user_role_id_seq'), %(user_id)s, %(role_id)s) RETURNING 
ab_user_role.id]
   [parameters: {'user_id': 12, 'role_id': 1}]
   (Background on this error at: http://sqlalche.me/e/f405)
   No user created an error occured
   ```
   ### Expected results
   
   I expected that the user admin should be created
   
   ### Actual results
   
   The table `ab_user_role` is missing. It seems that database schema is not 
created properly.
   
   ### Additional context
   The code run on Docker on Ubuntu 18
   

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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to