-
Notifications
You must be signed in to change notification settings - Fork 15
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
ch_report Authentication failed #893
Comments
This is already fixed but I'm not sure if on 1.0.3. Will review on monday |
Hi @CodeWithEmad. This was fixed and tested on dev and k8s environments: 4918d06 Can you leave more information of the environment you are running? |
@bmtcril Have you experienced anything like this? @CodeWithEmad You could try to rerun init jobs and check that the value of |
I haven't seen this, and I think @saraburns1 recently did an environment rebuild from scratch and it worked ok. @CodeWithEmad how are you installing the Aspects plugin? PyPI, GitHhub? Are you running Tutor dev, local, or k8s? I honestly don't know how this could happen unless Tutor was finding the wrong |
Well, I ran aspects for 3 organizations, and in all 3, the
pip install 'tutor-contrib-aspects==1.0.2', in k8s mode. |
I'm working on this now, and am definitely seeing some oddities in a local k8s. The superset init job is throwing a lot of these, which we don't get on local:
Possibly unrelated, but also having a problem with LMS connecting to mysql so I can't even authenticate to try Superset. I'll keep digging tomorrow. |
Thanks, @bmtcril |
Ok, I was able to reproduce it and I think I've got it. We're baking the whole @Ian2012 that make sense to you? |
I don't think it does. We are running more than 4 Aspects installations k8s on different Open edX versions and the users are created with the newly generated values per Rebuilding the image is not necessary as the assets connection string is overridden. The problem should be on the ClickHouse initialization. Can you share the steps you are following to run the initialization jobs? |
Hmm. @CodeWithEmad where did you change the password to make ch_report work? I did this and got into a situation where Superset had the .ci password for the
I can try a couple of other things, but obviously this is a time consuming process :) |
Thank you so much and sorry for the trouble @bmtcril. I executed to the click house pod, and inside the
I forgot how I found out the ci password was set for the ch_report user. I'll be sure to refresh my memory. Update
superset@superset-687f67c876-rmm99:/app/openedx-assets/assets/databases$ cat OpenedX_Clickhouse.yaml
_file_name: OpenedX_Clickhouse.yaml
allow_ctas: false
allow_cvas: false
allow_dml: false
allow_file_upload: false
allow_run_async: false
cache_timeout: null
database_name: OpenedX Clickhouse
expose_in_sqllab: true
extra:
allows_virtual_table_explore: true
engine_params: {}
metadata_params: {}
schemas_allowed_for_file_upload: []
sqlalchemy_uri: 'clickhousedb+connect://ch_report:6lVwUJ4p6SLosW86u0tRKWn8@clickhouse:8123/xapi'
uuid: 21174b6c-4d40-4958-8161-d6c3cf5e77b6 inside superset deployment, I can't see any volume mounted to this path: # superset deployment
volumeMounts:
- name: docker
mountPath: /app/docker
- name: pythonpath
mountPath: /app/pythonpath
- name: security
mountPath: /app/security probably building the superset image will put the new OpenedX_Clickhouse.yaml file in the image. Also, in the older versions, I remember there was a superset assets volume, but it looks like it's been removed in the newer versions. |
Thanks @CodeWithEmad , that helps a lot. We had to move away from using configmaps for the Superset assets because they are too large. I think this supports the idea that we just need to update the install instructions to including building that image, and we should probably start a "troubleshooting" section of the docs to handle some of these errors that are likely to come up. @Ian2012 that all sound right to you? |
#904 should close this |
I set up a new aspect plugin, on one of our orgs. but
ch_report
can't communicate with clickhouse.Aspect version: 1.0.2
Tutor version: 17.0.5
Update
After a bit of digging, I found out that the generated
ASPECTS_CLICKHOUSE_REPORT_PASSWORD
is not used in the init jobs, and changing the password to the value used in.ci/config,yml
done the trick. :)I'll open a PR if no one has done anything about this.
The text was updated successfully, but these errors were encountered: