Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

failed to fetch logs after use https #5377

Closed
HaoLiuHust opened this issue Mar 15, 2021 · 9 comments
Closed

failed to fetch logs after use https #5377

HaoLiuHust opened this issue Mar 15, 2021 · 9 comments
Assignees

Comments

@HaoLiuHust
Copy link

HaoLiuHust commented Mar 15, 2021

version 1.4.0
before set up https according to https://openpai.readthedocs.io/en/pai-1.4.y/manual/cluster-admin/basic-management-operations.html , I can get stdout logs in job page, after set it up, I can only get "failed to fetch "

@Binyang2014
Copy link
Contributor

@HaoLiuHust Can you using F12 to track log request url? Need to known which url web-portal trying to access

@HaoLiuHust
Copy link
Author

HaoLiuHust commented Mar 15, 2021

@Binyang2014

Request URL: http://10.1.9.53/log-manager/10.1.9.55:9103/api/v1/logs/user-stdout?username=admin&framework-name=d13e798d0e7b976906851d2719f349b1&pod-uid=be2955b8-80f7-4704-a217-0c3222d288d3&taskrole=taskrole&token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2MTU3NzgyNzgsInN1YiI6ImxvZy1tYW5hZ2VyLXVmYWNlLWdwdS1zZXJ2ZXIiLCJpYXQiOjE2MTU3NzgxNTh9.Qv0uda56AGXec6ana3TJyt8H7STceE5vSl1Zq0X5z0Y&tail-mode=true

@Binyang2014
Copy link
Contributor

Please try to access http://10.1.9.53/log-manager/10.1.9.55:9103/api/v1/logs/user-stdout?username=admin&framework-name=d13e798d0e7b976906851d2719f349b1&pod-uid=be2955b8-80f7-4704-a217-0c3222d288d3&taskrole=taskrole&token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2MTU3NzgyNzgsInN1YiI6ImxvZy1tYW5hZ2VyLXVmYWNlLWdwdS1zZXJ2ZXIiLCJpYXQiOjE2MTU3NzgxNTh9.Qv0uda56AGXec6ana3TJyt8H7STceE5vSl1Zq0X5z0Y&tail-mode=true in your browser, and ignore the security warning.

Then try to access log from the webportal.

If still not fix this issue, I recommend you upgrade PAI to the latest version. We have refactored the log collection pipeline

@HaoLiuHust
Copy link
Author

Access to 10.1.9.53 was deniedYou don't have authorization to view this page.
HTTP ERROR 403

I was using 1.5.0...but can not set it up successfully, that's why I use v1.4.0 instead

@HaoLiuHust
Copy link
Author

is there a way to roll back to http instead of https?

@Binyang2014
Copy link
Contributor

@HaoLiuHust I recommend you using https. Please try to redeploy rest-server and see if this issue is fixed.
You can run:
./paictl.py service stop -n rest-server
./paictl.py service start -n rest-server

To redeploy rest server

@Binyang2014
Copy link
Contributor

@HaoLiuHust BTW, I wonder why 1.5 is failed to deploy. If there is some bugs for the 1.5 version, feel free to open an issue

@HaoLiuHust
Copy link
Author

HaoLiuHust commented Mar 15, 2021

@HaoLiuHust BTW, I wonder why 1.5 is failed to deploy. If there is some bugs for the 1.5 version, feel free to open an issue

#5306
#5317
I have already opened 2 issues about it, from other's comment, he also set up v1.3.0 successfully but failed to upgrade, so I decided to use v1.4.0...

@Binyang2014
Copy link
Contributor

This issue should be fixed in latest version, if still has problem, feel free to reopen it

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