我试图使用WSO2 IoT (https://github.com/wso2-attic/docker-iot)在AWS (Ubuntu18.04.1LTS)的实例上安装WSO2 IoT server (version 3.3.0),然后运行change-ip.sh脚本,以更改用于重定向的ip地址。我已经将本地主机更改为自己的静态ip地址。
更改完后,我尝试登录到设备管理控制台。然而,它抛出了这个错误,但是在publisher中我可以访问
ERROR {auth-module} - org.wso2.carbon.apimgt.integration.client.exception.APIMClientOAuthException: failed to retrieve oauth token using jwt我激活了调试日志。在IOT_HOME/conf/log4j.properties文件中
取消对以下log4j.logger.org.apache.synapse.transport.http.wire=DEBUG的注释
log4j.logger.feign=DEBUG
评论如下:
log4j.category.org.apache.synapse=WARN
所附文件中的结果
https://github.com/wso2/product-iots/files/2977974/wso2carbon.log
我的主机文件
127.0.0.1 localhost
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhostsdokcer容器主机
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
172.18.0.4 wso2iot-server它与这个问题有关。
WSO2 IoTS APIMClientOAuthException:未能使用jwt检索oauth令牌
https://github.com/wso2/product-iots/issues/1396
有什么建议吗?
发布于 2019-03-27 22:12:18
该问题与HTTPS网关端口: 8243有关,根据文件docker-compose.yml启动容器时,它只公开端口9443,因此您必须添加端口8243才能从外部访问,这就是为什么它与本地主机一起工作,并且在更改ip地址后生成错误。
因此,在用这个命令更改ip地址之后,我保存了一个新的容器映像。
docker commit a69f82f5eb71 wso2iot-server: 3.3.1我用8243端口启动了映像
docker run -p 8243: 8243 -p 8280: 8280 -p 9443: 9443 wso2iot-server: 3.3.1 谢谢@Geeth Munasinghe的帮助
https://stackoverflow.com/questions/55279455
复制相似问题