-
Notifications
You must be signed in to change notification settings - Fork 13.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed testing Docker image #5987
Comments
This is an issue related to click==6.7 To fix, I installed click==6.7 by editing the Docker file: RUN pip install -e . --no-cache-dir && pip install -r requirements-dev.txt --no-cache-dir
#add this too
RUN pip install click==6.7 of course, The permanent solution is to edit requirements.txt and setup.py to add this dependency. |
Unfortunately not: I added the click part within Dockerfile:
and re-ran the following commands:
The results were (just the relevant parts):
and
Login is still not possible edit: I had a deeper look into Dockerfile. One line is: chown -R work:work $HOME , but the user and group of assets (as an example) is not as expected. Therefore, user work cannot create the sub-directory dist .
|
@xentity I think we misunderstood each other. In the PR I linked to, the command you are referring to does not exist. |
@abshammeri Thanks! You are awesome! In addition to |
similar issue when installing locally following: https://superset.incubator.apache.org/installation.html#python-s-setup-tools-and-pip afaik, the issue would remain with this later method anyway as requirement.txt is not taken into account anyway (e.g: #4856) |
but keep in mind that this was not the main point of my issue (I only listed the Click issue for the sake of completeness and found already a solution), but there is still the problem that /home/work/incubator-superset/superset/assets/dist cannot be created, but is necessary to finish the docker-init.sh . |
Make sure these boxes are checked before submitting your issue - thank you!
Superset version
latest, followed https://superset.incubator.apache.org/installation.html
Expected results
running docker instance and able to login
Actual results
work@735b8b78ea54:~/incubator-superset$ bash docker-init.sh failes:
pkg_resources.ContextualVersionConflict: (Click 7.0 (/usr/local/lib/python3.6/site-packages), Requirement.parse('click==6.7'), {'Flask-AppBuilder'})
Solution for me:
$ pip3.6 install click==6.7 --user
permissions denied (1st):
clean-webpack-plugin: /home/work/incubator-superset/superset/assets/dist has been removed. 95% emitting OptimizeCssAssetsWebpackPluginError: EACCES: permission denied, mkdir '/home/work/incubator-superset/superset/assets/dist'
permission denied (2nd):
2018-09-27 07:13:29,300:ERROR:flask_appbuilder.security.sqla.manager:Creation of Permission View Error: (sqlite3.IntegrityError) UNIQUE constraint failed: ab_permission_view.permission_id, ab_permission_view.view_menu_id [SQL: 'INSERT INTO ab_permission_view (permission_id, view_menu_id) VALUES (?, ?)'] [parameters: (2, 5)] (Background on this error at: http://sqlalche.me/e/gkpj) 2018-09-27 07:13:29,311:ERROR:flask_appbuilder.security.sqla.manager:Add Permission to Role Error: Can't flush None value found in collection Role.permissions
connection refused to amqp://
[2018-09-27 07:13:54,796: ERROR/MainProcess] consumer: Cannot connect to amqp://guest:**@127.0.0.1:5672//: [Errno 111] Connection refused. Trying again in 2.00 seconds...
#5919 and #5916 do not help, I'm not able to change the permissions within the container:
$ chmod 777 /home/work/incubator-superset/superset/assets chmod: changing permissions of '/home/work/incubator-superset/superset/assets': Operation not permitted $ mkdir dist mkdir: cannot create directory ‘dist’: Permission denied
Consequences: login form is available, but login is not possible.
Steps to reproduce
follow https://superset.incubator.apache.org/installation.html:
Docker host is Ubuntu 18.04.1 LTS, Kernel 4.15.0-34-generic
The text was updated successfully, but these errors were encountered: