superset icon indicating copy to clipboard operation
superset copied to clipboard

541:ERROR:flask_appbuilder.security.sqla.manager:Error adding new user to database. (sqlite3.OperationalError)

Open arshadzohran opened this issue 8 years ago • 4 comments

I am working on Ubuntu after, pip install superset, I am trying to create fabmanager create-admin --app superset, but when I am doing that I am getting an error saying Recognized Database Authentications. 2018-03-02 20:25:45,657:ERROR:flask_appbuilder.security.sqla.manager:Error adding new user to database. (sqlite3.OperationalError) attempt to write a readonly database [SQL: u'INSERT INTO ab_user (first_name, last_name, username, password, active, email, last_login, login_count, fail_login_count, created_on, changed_on, created_by_fk, changed_by_fk) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'] [parameters: (u'admin', u'user', u'admin', 'pbkdf2:sha256:50000$8IvazYQn$7905b215a4d2c5b5093d09a39c5399494a8dbcedfff50e733f7bed07b1343970', 1, u'[email protected]', None, None, None, '2018-03-02 20:25:45.656318', '2018-03-02 20:25:45.656334', None, None)] No user created an error occured.

Please help me on this.

arshadzohran avatar Mar 03 '18 02:03 arshadzohran

That means that some other process has the sqlite database locked

xrmx avatar Mar 03 '18 10:03 xrmx

@arshadzohran same here, you solved it?

hongvvu avatar Feb 24 '19 16:02 hongvvu

sqlite is not suitable beyond small local environments

mistercrunch avatar Feb 25 '19 00:02 mistercrunch

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue .pinned to prevent stale bot from closing the issue.

stale[bot] avatar Apr 26 '19 01:04 stale[bot]