You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2020/05/06 09:02:13 UTC
[GitHub] [incubator-superset] hc128168 opened a new issue #9748: Unable to add a SQLite DB
hc128168 opened a new issue #9748:
URL: https://github.com/apache/incubator-superset/issues/9748
I tried to add a db located at "/home/hc/superset/db/test.db" to superset via "Sources->Databases->Add a new record". I set "sqlite:////home/hc/superset/db/test.db" as SQLAlchemy URI, and hit "Test Connection". And it says, "ERROR: SQLite database cannot be used as a data source for security reasons."

- superset version: 0.36.0
- python version: 2.7.5 (I have python 3.6 installed as well but not sure which one superset uses)
- node.js version: not installed as it is not listed as required [here](https://superset.apache.org/installation.html) nor as optioal
- npm version: not installed.
Make sure these boxes are checked before submitting your issue - thank you!
- [x] I have checked the superset logs for python stacktraces and included it here as text if there are any.
- [x] I have reproduced the issue with at least the latest released version of superset.
- [x] I have checked the issue tracker for the same issue and I haven't found one similar.
----------------------------------------------------------------
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [incubator-superset] helloklyn commented on issue #9748: Unable to add a SQLite DB
Posted by GitBox <gi...@apache.org>.
helloklyn commented on issue #9748:
URL: https://github.com/apache/incubator-superset/issues/9748#issuecomment-753686336
I installed via docker, any instruction on overwrite `config.py` with docker image?
----------------------------------------------------------------
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [incubator-superset] dpgaspar commented on issue #9748: Unable to add a SQLite DB
Posted by GitBox <gi...@apache.org>.
dpgaspar commented on issue #9748:
URL: https://github.com/apache/incubator-superset/issues/9748#issuecomment-624536810
Superset is going to drop support for SQLLite, for now you can override this by setting `PREVENT_UNSAFE_DB_CONNECTIONS = False` on the config
----------------------------------------------------------------
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [incubator-superset] hc128168 commented on issue #9748: Unable to add a SQLite DB
Posted by GitBox <gi...@apache.org>.
hc128168 commented on issue #9748:
URL: https://github.com/apache/incubator-superset/issues/9748#issuecomment-624641390
@dpgaspar Thanks. It works!
While I looked up the setting, I found the [pull request](https://github.com/apache/incubator-superset/pull/9218). It seems like it doesn't convert the examples to use another database tho.
----------------------------------------------------------------
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [incubator-superset] mistercrunch commented on issue #9748: Unable to add a SQLite DB
Posted by GitBox <gi...@apache.org>.
mistercrunch commented on issue #9748:
URL: https://github.com/apache/incubator-superset/issues/9748#issuecomment-753694737
Happy to clarify some things here, first the project is dropping support for SQLLite as a metadata database, as it's simply not reliable to support a multi-web servers, multi-workers type of setup which is a fairly basic assumption for an application like Superset in production. As soon as you fire off multiple web workers or thread, you're likely to have issues with SQLLite locks. Given that and the fact that we had a fair amount of SQLLite-specific bugs and regressions (namely around database-migrations and DDL in general), we decided that we would not actively support it.
Now OP was asking about SQLLite as an analytics database, which may/could work in some capacity, assuming the file is mounted / visible from all the processes in the application. This can be done by flipping the feature flag that @dpgaspar pointed to, but may introduce security risk, where a user may be able to access some other SQLLite database living on the local filesystem (other applications or systems on the local machine could use a SQLLite database in a deterministic location, and a hacker could obtain access to it and potentially modify it if the OS rules allow the `superset` OS user to do this). There may be other Security-related issues as well that I'm not aware of here as well.
----------------------------------------------------------------
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [incubator-superset] mjsabby commented on issue #9748: Unable to add a SQLite DB
Posted by GitBox <gi...@apache.org>.
mjsabby commented on issue #9748:
URL: https://github.com/apache/incubator-superset/issues/9748#issuecomment-702524685
Is there a reason to drop sqlite?
----------------------------------------------------------------
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org