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 2021/11/05 14:31:35 UTC
[GitHub] [superset] JPMoresmau opened a new issue #17355: 500 error while adding connection to ElasticSearch
JPMoresmau opened a new issue #17355:
URL: https://github.com/apache/superset/issues/17355
#### How to reproduce the bug
1. Go to 'Data -> Databases -> +Database'
2. Click on 'Other'
3. Enter SQLAlchemy URL: elasticsearch+http://localhost:9200/
4. get a 500 error in a popup. Action Log shows test_connection_error.ModuleNotFoundError
### Expected results
A connection to ElasticSearch. If I run superset shell in my docker container I can connect to elastic search so elasticsearch-dbapi is installed and the url is correct
### Actual results
An error in the UI. I have no log file I can find to provide more. There is no /app/super_home/superset.log file???
### Environment
(please complete the following information):
- browser type and version: Firefox
- superset version: Superset 0.0.0dev
- python version: Python 3.8.12
- node.js version: node: command not found
- any feature flags active:
### Checklist
Make sure to follow these steps before submitting your issue - thank you!
- [ ] I have checked the superset logs for python stacktraces and included it here as text if there are any. -> where is the log? I can't find it, There is no /app/super_home/superset.log file, and docker logs gives me nothing
- [X] I have reproduced the issue with at least the latest released version of superset. Well I built the docker image as indicated at https://hub.docker.com/r/apache/superset
- [X] I have checked the issue tracker for the same issue and I haven't found one similar.
### Additional context
Running one docker container, this is my dockerfile:
```
FROM apache/superset
USER root
RUN pip install psycopg2-binary
RUN pip install elasticsearch-dbapi
USER superset
RUN superset fab create-admin \
--username admin \
--firstname Superset \
--lastname Admin \
--email admin@superset.com \
--password admin
RUN superset db upgrade
RUN superset init
```
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
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] [superset] JPMoresmau commented on issue #17355: 500 error while adding connection to ElasticSearch
Posted by GitBox <gi...@apache.org>.
JPMoresmau commented on issue #17355:
URL: https://github.com/apache/superset/issues/17355#issuecomment-962959640
OK, by not running upgrade/init in the dockerfile and loading properly the python config file I've managed to get it to work.
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
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] [superset] JPMoresmau closed issue #17355: 500 error while adding connection to ElasticSearch
Posted by GitBox <gi...@apache.org>.
JPMoresmau closed issue #17355:
URL: https://github.com/apache/superset/issues/17355
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
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