-
Notifications
You must be signed in to change notification settings - Fork 6
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
requests.exceptions.HTTPError: 401 Client Error #51
Comments
@alirizaaribas-ibg
Here it is in the PORI docker-compose file: |
@brayden-bcgsc
IPR_API is always restarting. I think ipr cannot connect to. the command: output:
|
When I changed the order of parameters, ipr is working. I tried many combination, finally the command is fixed. |
I transferred this issue to the main PORI repo since it involves the docker compose setup/install |
ipr report upload gives the error. The command is Error:
|
Can you confirm the IPR API docker container is running? execute |
Here
after 10 minutes
Also copied last 100 lines of ipr_api_logs:
|
Now another error appears in docker logs:
|
The first set of logs above appear to be from the client rather than the API. The second set of logs is quite helpful tho! your API is being connected with a read only user (which is the default for the demo version). To be able to upload reports you will need to change this to use a user with read/write capabilities https://github.com/bcgsc/pori/blob/master/docker-compose.dev.yml#L135 this line would change to IPR_DATABASE_USERNAME: ipr_service to match the non-read only user declared here: https://github.com/bcgsc/pori/blob/master/docker-compose.dev.yml#L98 |
I will add some notes to our documentation to make this clear for future users |
I tried with the customized settings:
but logs are the same:
|
This error is most likely because the database schema is not up-to-date. You can try adding this to your docker-compose file:
Where DB_USER, DB_PASSWORD, and DB_NAME are replaced with your database user, database password, and database name. Also 'database' will need to be replaced by whatever the ipr database container is named in your docker-compose file. The container should exit and be stopped once it is done and you can check the docker logs of the container to see if the migrations were successful. The ipr_api would now also 'depends_on' the 'migration' container. |
I will try with these settings from
All content here: |
Hello, I installed PORI docker stack for local machine. When I tried to upload a demo report, I got the error below. I noticed that even I provided a URL, ipr didn't use it and uses
https://graphkb-api.bcgsc.ca/api/token
not local address. OS is centos 7, RAM 8GB, disk 20gb space, browser firefox 91.7, docker v20. How can I solve this problem?docker images are working fine:
Thanks.
The text was updated successfully, but these errors were encountered: