You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pulsar.apache.org by GitBox <gi...@apache.org> on 2020/07/17 09:53:31 UTC
[GitHub] [pulsar-manager] marcoaureliox opened a new issue #323: JWT_TOKEN - The parameter is not recognized by the docker
marcoaureliox opened a new issue #323:
URL: https://github.com/apache/pulsar-manager/issues/323
Hello,
I have a pulsar cluster installed, and I'm trying to launch the pulsar-manager through the docker with the simple parameter JWT_TOKEN, but when I have to create an environment on the portal it gives the error:
"HTTP/1.1 401 Unauthorized[\r][\n]" and "{"reason":"This operation requires super-user access"}"
The token is correct, but not passed to the http call.
Follow the full error log:
(...)
2020-07-17 09:50:22.567 DEBUG 40 --- [pool-2-thread-1] org.apache.http.headers : http-outgoing-58 >> GET /admin/v2/clusters/PULSAR-CLUSTER-DEV/failureDomains HTTP/1.1
2020-07-17 09:50:22.567 DEBUG 40 --- [pool-2-thread-1] org.apache.http.headers : http-outgoing-58 >> Content-Type: application/json
2020-07-17 09:50:22.567 DEBUG 40 --- [pool-2-thread-1] org.apache.http.headers : http-outgoing-58 >> Host: RHSDTBBW203.corporativo.pt:8080
2020-07-17 09:50:22.567 DEBUG 40 --- [pool-2-thread-1] org.apache.http.headers : http-outgoing-58 >> Connection: Keep-Alive
2020-07-17 09:50:22.567 DEBUG 40 --- [pool-2-thread-1] org.apache.http.headers : http-outgoing-58 >> User-Agent: Apache-HttpClient/4.5.5 (Java/1.8.0_212)
2020-07-17 09:50:22.567 DEBUG 40 --- [pool-2-thread-1] org.apache.http.headers : http-outgoing-58 >> Accept-Encoding: gzip,deflate
2020-07-17 09:50:22.567 DEBUG 40 --- [pool-2-thread-1] org.apache.http.wire : http-outgoing-58 >> "GET /admin/v2/clusters/PULSAR-CLUSTER-DEV/failureDomains HTTP/1.1[\r][\n]"
2020-07-17 09:50:22.567 DEBUG 40 --- [pool-2-thread-1] org.apache.http.wire : http-outgoing-58 >> "Content-Type: application/json[\r][\n]"
2020-07-17 09:50:22.567 DEBUG 40 --- [pool-2-thread-1] org.apache.http.wire : http-outgoing-58 >> "Host: RHSDTBBW203.corporativo.pt:8080[\r][\n]"
2020-07-17 09:50:22.567 DEBUG 40 --- [pool-2-thread-1] org.apache.http.wire : http-outgoing-58 >> "Connection: Keep-Alive[\r][\n]"
2020-07-17 09:50:22.567 DEBUG 40 --- [pool-2-thread-1] org.apache.http.wire : http-outgoing-58 >> "User-Agent: Apache-HttpClient/4.5.5 (Java/1.8.0_212)[\r][\n]"
2020-07-17 09:50:22.567 DEBUG 40 --- [pool-2-thread-1] org.apache.http.wire : http-outgoing-58 >> "Accept-Encoding: gzip,deflate[\r][\n]"
2020-07-17 09:50:22.567 DEBUG 40 --- [pool-2-thread-1] org.apache.http.wire : http-outgoing-58 >> "[\r][\n]"
2020-07-17 09:50:22.567 DEBUG 40 --- [pool-2-thread-1] org.apache.http.wire : http-outgoing-58 << "HTTP/1.1 401 Unauthorized[\r][\n]"
2020-07-17 09:50:22.567 DEBUG 40 --- [pool-2-thread-1] org.apache.http.wire : http-outgoing-58 << "Date: Fri, 17 Jul 2020 09:50:22 GMT[\r][\n]"
2020-07-17 09:50:22.567 DEBUG 40 --- [pool-2-thread-1] org.apache.http.wire : http-outgoing-58 << "Content-Type: application/json[\r][\n]"
2020-07-17 09:50:22.567 DEBUG 40 --- [pool-2-thread-1] org.apache.http.wire : http-outgoing-58 << "Content-Length: 54[\r][\n]"
2020-07-17 09:50:22.567 DEBUG 40 --- [pool-2-thread-1] org.apache.http.wire : http-outgoing-58 << "Server: Jetty(9.4.20.v20190813)[\r][\n]"
2020-07-17 09:50:22.567 DEBUG 40 --- [pool-2-thread-1] org.apache.http.wire : http-outgoing-58 << "[\r][\n]"
2020-07-17 09:50:22.567 DEBUG 40 --- [pool-2-thread-1] org.apache.http.wire : http-outgoing-58 << "{"reason":"This operation requires super-user access"}"
2020-07-17 09:50:22.567 DEBUG 40 --- [pool-2-thread-1] org.apache.http.headers : http-outgoing-58 << HTTP/1.1 401 Unauthorized
2020-07-17 09:50:22.567 DEBUG 40 --- [pool-2-thread-1] org.apache.http.headers : http-outgoing-58 << Date: Fri, 17 Jul 2020 09:50:22 GMT
2020-07-17 09:50:22.567 DEBUG 40 --- [pool-2-thread-1] org.apache.http.headers : http-outgoing-58 << Content-Type: application/json
2020-07-17 09:50:22.567 DEBUG 40 --- [pool-2-thread-1] org.apache.http.headers : http-outgoing-58 << Content-Length: 54
2020-07-17 09:50:22.567 DEBUG 40 --- [pool-2-thread-1] org.apache.http.headers : http-outgoing-58 << Server: Jetty(9.4.20.v20190813)
2020-07-17 09:50:22.568 DEBUG 40 --- [pool-2-thread-1] o.a.http.impl.execchain.MainClientExec : Connection can be kept alive indefinitely
2020-07-17 09:50:22.568 DEBUG 40 --- [pool-2-thread-1] o.a.http.impl.auth.HttpAuthenticator : Authentication required
2020-07-17 09:50:22.568 DEBUG 40 --- [pool-2-thread-1] o.a.http.impl.auth.HttpAuthenticator : RHSDTBBW203.corporativo.pt:8080 requested authentication
2020-07-17 09:50:22.568 DEBUG 40 --- [pool-2-thread-1] o.a.http.impl.auth.HttpAuthenticator : Response contains no authentication challenges
2020-07-17 09:50:22.568 DEBUG 40 --- [pool-2-thread-1] o.a.http.impl.execchain.MainClientExec : Cancelling request execution
2020-07-17 09:50:22.568 DEBUG 40 --- [pool-2-thread-1] h.i.c.DefaultManagedHttpClientConnection : http-outgoing-58: Shutdown connection
2020-07-17 09:50:22.568 DEBUG 40 --- [pool-2-thread-1] o.a.http.impl.execchain.MainClientExec : Connection discarded
(...)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar-manager] marcoaureliox closed issue #323: JWT_TOKEN - The parameter is not recognized by the docker
Posted by GitBox <gi...@apache.org>.
marcoaureliox closed issue #323:
URL: https://github.com/apache/pulsar-manager/issues/323
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar-manager] marcoaureliox commented on issue #323: JWT_TOKEN - The parameter is not recognized by the docker
Posted by GitBox <gi...@apache.org>.
marcoaureliox commented on issue #323:
URL: https://github.com/apache/pulsar-manager/issues/323#issuecomment-661959544
Hi @sijie
OK, I will waiting for the fix.
Thanks for the information,
Regards.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar-manager] marcoaureliox commented on issue #323: JWT_TOKEN - The parameter is not recognized by the docker
Posted by GitBox <gi...@apache.org>.
marcoaureliox commented on issue #323:
URL: https://github.com/apache/pulsar-manager/issues/323#issuecomment-661026437
Yes, I'm using the last version 2.6.
The $JWT_TOKEN it's the access token to the broker.

This token has a super user role:

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar-manager] marcoaureliox edited a comment on issue #323: JWT_TOKEN - The parameter is not recognized by the docker
Posted by GitBox <gi...@apache.org>.
marcoaureliox edited a comment on issue #323:
URL: https://github.com/apache/pulsar-manager/issues/323#issuecomment-661959544
Hi @sijie
OK, I will wait for the fix.
Thanks for the information,
Regards.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar-manager] Omega-Ariston commented on issue #323: JWT_TOKEN - The parameter is not recognized by the docker
Posted by GitBox <gi...@apache.org>.
Omega-Ariston commented on issue #323:
URL: https://github.com/apache/pulsar-manager/issues/323#issuecomment-660785004
Can you directly type this comand:
`echo $JWT_TOKEN`
and check the outcome?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar-manager] tuteng commented on issue #323: JWT_TOKEN - The parameter is not recognized by the docker
Posted by GitBox <gi...@apache.org>.
tuteng commented on issue #323:
URL: https://github.com/apache/pulsar-manager/issues/323#issuecomment-660760522
Are you using pulsar version 2.6? It seems that the pulsar cluster has some limits. @marcoaureliox
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar-manager] sijie commented on issue #323: JWT_TOKEN - The parameter is not recognized by the docker
Posted by GitBox <gi...@apache.org>.
sijie commented on issue #323:
URL: https://github.com/apache/pulsar-manager/issues/323#issuecomment-661939699
@marcoaureliox there is a regression in Pulsar 2.6 (https://github.com/apache/pulsar/pull/7241). It will be fixed in 2.6.1.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar-manager] codelipenghui commented on issue #323: JWT_TOKEN - The parameter is not recognized by the docker
Posted by GitBox <gi...@apache.org>.
codelipenghui commented on issue #323:
URL: https://github.com/apache/pulsar-manager/issues/323#issuecomment-660753083
@tuteng Could you please help take a look at this issue?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org