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

CKG unauthorized login #71

Closed
KR-15 opened this issue Feb 10, 2022 · 6 comments
Closed

CKG unauthorized login #71

KR-15 opened this issue Feb 10, 2022 · 6 comments

Comments

@KR-15
Copy link

KR-15 commented Feb 10, 2022

Hi,

First of all, congratulation for the CKG paper release. We have set up the docker image of the CKG app in our lab but we encounter a issue at the step where we want to create our personnal account in the Admin tab of the web browser access CKG app.

We have filled all the requested field for new account creation and a new user ID was created. However, when we want to log in our account, we use the same new user ID for ID and password because I have read that for our first log the ID/PW are identical but it says that one or the other is invalid and therefore prevent us to connect in our new account.

Can you help me with this point?

Thanks for your help.

Best regards

KR

@albsantosdel
Copy link
Collaborator

Hi,

I could not reproduce the error. It would be great if you could detail a bit more the steps you followed and also if you could access the log files in the docker image:

$ docker exec -it ckgapp bash

Then navigate to /CKG/log and check the report_manager.log and graphdb_builder.log files to see if there was an error. You could provide the files if you need help.

Check #70 first to make sure the graph structure is correct.

@KR-15
Copy link
Author

KR-15 commented Feb 15, 2022

Hi @albsantosdel,

For the user creation, I have followed the step here :
https://ckg.readthedocs.io/en/latest/intro/getting-started-with-docker.html#ckg-docker-container

After logged in with the user/PW provide in the previous link (test_user), I went to the admin page and followed steps of this link: https://ckg.readthedocs.io/en/latest/intro/create-new-user.html ("From an CKG’s app:" part).

Then, a message told me that a new user was successfully created and I used the username provided to log in again using the same name for ID and PW and told me that username or password was invalid.

In docker desktop, in the Image tab, it is written that the image is already in use and the container is running.

When a try the following command in a windows prompt:
docker exec -it ckgapp bash

It opens a bash session root@...., then I went to cd CKG/log and perform ls on this path and I see 4 log files:

analytics_factory.log
graphdb_builder.log
graphdb_connector.log
report.manager.log

Sorry I am a little bit new with bash, now how can I have access to the log ?

Thanks for your help.

Best.

KR

@albsantosdel
Copy link
Collaborator

Can you check the content of report_manager.log, and graphdb_builder.log? If there was an error when creating the user, it may be in there.

@KR-15
Copy link
Author

KR-15 commented Feb 16, 2022

How can I do that in the Bash session ? Because I only see the log files in the Bash session when I do ls after cd CKG/log. I don't even have a folder named "log" in CKG/log path in the clone repository. Are those different things ? What I see in the Bash session and what I see in the github cloned repository ?

Thanks for tour help

@albsantosdel
Copy link
Collaborator

Hi,
With docker exec -it ckgapp bash you open a command line session in the container. You can then navigate to CKG/log with cd CKG/log and read the content of the log files using for instance cat:
cat report_manager.log
cat graphdb_builder.log

You can then look at the last entries in those files to see if there is any error when creating the user. It may be that we are not capturing the error properly and that's why we don't see it in the interface.

@KR-15
Copy link
Author

KR-15 commented Mar 1, 2022

Hi @albsantosdel ,

Thanks for your reply. I just did what you say in your reply and here is what I get:

image

I check the same log files with cat during a new creation of a user profile but the log never get updated, they always show some info about matplotlib dependency.

I have also try to create again a new profile using the exact same info that I used in the first time and I get this message:

– Error creating new user: Email already registered –

So the profile already exists. As a remainder, in order to log in for the first time I used the same user ID that is display after creating a new profile and same for password but I have the following message:

Invalid user name or password

Do you think that it might be possible to have a issue with the minimal update ?

I have also read #72 and I was wondering if I had every dependencies in the requirements.txt file so I have attached this file also.

requirements.txt

Thanks again for your help.

@KR-15 KR-15 closed this as completed May 11, 2022
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