Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

issue worker micro service #18

Open
Hessine17 opened this issue Jan 25, 2022 · 3 comments
Open

issue worker micro service #18

Hessine17 opened this issue Jan 25, 2022 · 3 comments

Comments

@Hessine17
Copy link

Hello
When running worker micro-service it shows an exception "Error while looking up admin user"
startworker

@marcosmro
Copy link
Contributor

Hi @Hessine17,

It looks like the admin user is missing, or the environment variables associated with the admin user have not been correctly set. Please, check that you've followed all the steps in the Developer Install guide (https://metadatacenter.readthedocs.io/en/latest/install-developer/intro/).

The 'Starting the services' (https://metadatacenter.readthedocs.io/en/latest/install-developer/microservices-overview/#before-running) and 'Scripts and aliases' (https://metadatacenter.readthedocs.io/en/latest/install-developer/scripts-and-aliases-overview/) sections may be especially relevant to address this issue.

Please, let us know if that works.

@Hessine17
Copy link
Author

Hessine17 commented Jan 29, 2022

Thanks @marcosmro
I tried to create an admin user with the command
"CREATE (n:User {
_id: 'https://metadatacenter.org/users/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee',
lastName: 'Test User',
apiKeys: ['069485f648af13ee16610f8104e445ab835422c3977b85b97dcb94e950127c09'],
permissions: ['permission_category_create','permission_category_delete','permission_category_read','permission_category_update','permission_element_create','permission_element_delete','permission_element_read','permission_element_update','permission_field_create','permission_field_delete','permission_field_read','permission_field_update','permission_folder_create','permission_folder_delete','permission_folder_read','permission_folder_update','permission_group_create','permission_group_delete','permission_group_read','permission_group_update','permission_instance_create','permission_instance_delete','permission_instance_read','permission_instance_update','permission_logged_in_read','permission_not_administered_group_update','permission_template_create','permission_template_delete','permission_template_read','permission_template_update'],
apiKeyMap: '{"069485f648af13ee16610f8104e445ab835422c3977b85b97dcb94e950127c09":{"key":"069485f648af13ee16610f8104e445ab835422c3977b85b97dcb94e950127c09","serviceName":"CEDAR","description":"Auto-generated apiKey for CEDAR Test User","creationDate":"2020-04-29T10:58:05.161403","enabled":true}}',
resourceType: 'user'
}) RETURN id(n)"
noe4j , it works correctly but I find another permission problem when creating the folder
folder

@marcosmro
Copy link
Contributor

Hi @Hessine17,

Creating users directly in Neo4j won't work, since those user profiles need to exist in Keycloak as well. You can try to use CEDAR's cedarat command to regenerate all user profiles (e.g., cedarat system-reset). If that doesn't work, I'd suggest to start again from an empty system and try to follow all the configuration steps again.

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

No branches or pull requests

2 participants