Skip to content
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

Unable to update the dynamic configuration #9100

Closed
akshataashok opened this issue May 13, 2021 · 2 comments
Closed

Unable to update the dynamic configuration #9100

akshataashok opened this issue May 13, 2021 · 2 comments

Comments

@akshataashok
Copy link

akshataashok commented May 13, 2021

Need Help!!!

Hi Team,

I am unable to update the dynamic configuration. Getting the below error. And also I cannot save the configuration when I click on save dynamic configuration. Nothing happens and after sometime I get the below error.

Oops! There was a problem.
There was an error processing your request: Could not connect to the endpoint URL: "http://CONSOLEME-DYNAMODB:8005/"

@castrapel
Copy link
Contributor

Hi, I'm going to remove the screenshot here because your ConsoleMe instance is set up for development mode. It bypasses authentication and allows users to become an administrator. The cause of this problem is the same as #9101 . I'll close this issue and let's use #9101 to address it.

@akshataashok
Copy link
Author

Hi,
Thank you for the details. I have updated the docker networking so that now I am able to update the dynamic configuration. Also the DynamoDB tables were empty and I have created all the necessary tables. We are able to view the roles and policies in the ConsoleMe dashboard, however after couple of minutes the page will be empty and we get the below from docker logs. We suspect that this information is not able to get cached but is available in the DB.

Kindly request you to suggest for this.
{"asctime": "2021-05-18T07:38:37Z+0000", "name": "consoleme", "processName": "MainProcess", "filename": "exceptions.py", "funcName": "init", "levelname": "ERROR", "lineno": 14, "module": "exceptions", "threadName": "MainThread", "message": "Unable to retrieve expected data.", "eventTime": "2021-05-17T23:52:33.987081-07:00", "hostname": "e19b737030d4", "timestamp": "2021-05-18T07:38:37Z+0000"}
{"asctime": "2021-05-18T07:38:37Z+0000", "name": "consoleme", "processName": "MainProcess", "filename": "init.py", "funcName": "retrieve_credential_authorization_mapping", "levelname": "ERROR", "lineno": 60, "module": "init", "threadName": "MainThread", "message": null, "function": "CredentialAuthorizationMapping.retrieve_credential_authorization_mapping", "error": "Error loading cloud credential mapping. Returning empty mapping: Unable to retrieve expected data.", "exc_info": "Traceback (most recent call last):\n File "/apps/consoleme/consoleme/lib/cloud_credential_authorization_mapping/init.py", line 50, in retrieve_credential_authorization_mapping\n self.authorization_mapping = await retrieve_json_data_from_redis_or_s3(\n File "/apps/consoleme/consoleme/lib/cache.py", line 169, in retrieve_json_data_from_redis_or_s3\n raise DataNotRetrievable("Unable to retrieve expected data.")\nconsoleme.exceptions.exceptions.DataNotRetrievable: Unable to retrieve expected data.", "eventTime": "2021-05-17T23:52:33.987081-07:00", "hostname": "e19b737030d4", "timestamp": "2021-05-18T07:38:37Z+0000"}
{"asctime": "2021-05-18T07:38:37Z+0000", "name": "consoleme", "processName": "MainProcess", "filename": "base.py", "funcName": "authorization_flow", "levelname": "ERROR", "lineno": 447, "module": "base", "threadName": "MainThread", "message": "No eligible roles detected for user. But letting them continue", "function": "Basehandler.authorization_flow", "ip": "127.0.0.1", "request_path": "/api/v2/user_profile", "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36", "request_id": "e2131767-14d4-4c0f-8c72-b3dd8e090f94", "eventTime": "2021-05-17T23:52:33.987081-07:00", "hostname": "e19b737030d4", "timestamp": "2021-05-18T07:38:37Z+0000"}
{"asctime": "2021-05-18T07:38:37Z+0000", "name": "consoleme", "processName": "MainProcess", "filename": "base.py", "funcName": "authorization_flow", "levelname": "DEBUG", "lineno": 457, "module": "base", "threadName": "MainThread", "message": "Successfully authorized user.", "function": "Basehandler.authorization_flow", "ip": "127.0.0.1", "request_path": "/api/v2/user_profile", "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36", "request_id": "e2131767-14d4-4c0f-8c72-b3dd8e090f94", "eligible_roles": 0, "eligible_accounts": 0, "eventTime": "2021-05-17T23:52:33.987081-07:00", "hostname": "e19b737030d4", "timestamp": "2021-05-18T07:38:37Z+0000"}
2021-05-18 07:38:37,793 - INFO - tornado.access - [web.py:2239 - log_request() ] - 200 GET /api/v2/user_profile (127.0.0.1) 4.81ms

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants