As you see in the picture the initial get token in mep-agent fails.
This is the mep-agent instance in the pod of my own user application.
The application is deployed and instantiated successfully via the web interfaces of developer and mecm platforms.
Due to failing of get token no further request through mep-agent works.
What can be the reason for this behaviour?
In case of any errors on the mep/mepauth side there are error logs see here in the code:
But no one of this logs is to read in the mepauth.log file, see picture below. There is no log entry near the timestamp from the get token failure, see picture of mep-auth.log above. So the get token request seems not to be received bei mep/mepauth. The log
`log.Info("Get token request received.")`
in the get token handler in the picture above doesn't appear in the mepauth.log even though three user applications with mep-agent are running and healthy.
Since the request is not sent to mep/mepauth, it's assumed that an error occured within
errGetMepToken := GetMepToken(auth)
in fact before the request execution.
The error can only be occured in the highlighted block in the postTokenRequest function below or in
// doRequest: do request.
func doRequest(req *http.Request) (*http.Response, error) {
var tr = &http.Transport{
TLSClientConfig: TLSConf,
}
client := &http.Client{Transport: tr}
return client.Do(req)
}
before the request is sent.
Edit:
I debugged the startup sequence of mep-agent and found out that the request for mep/token is ended with tcp timeout:
Error code is 10060.
To confirm this behaviour I try to connect to the Nodeport of mep-api-gw and it failed as I expected.
All of other NodePorts response somehow to the curl request but the mep-api-gw service says "network unreachable".
eg-if.cfg is already in /etc/network/interfaces.d/. But the interfaces eg-mp1 and eg-mm5 don't exist though.
I used the offline installation, so the networks should be installed automatically, right?
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
After adding the line
source /etc/network/interfaces.d/eg-if.cfg
to the file
/etc/network/interfaces
manually, the networks eg-mp1 and eg-mm5 are created but get token still doesn't work.
登录 后才可以发表评论