【问题标题】:fnproject ui unable to load appsfnproject ui 无法加载应用程序
【发布时间】:2017-10-18 05:38:59
【问题描述】:

正在尝试启动 fnproject ui 并检查部署的应用程序。但是在浏览器中它不会加载应用程序并且卡在加载....消息。在命令行中,我看到类似下面的内容。知道是什么原因造成的。

命令行日志如下:

$ docker run --rm -it --link functions:api -p 4000:4000 --name fnui -e "API_URL=http://api:8080" fnproject/ui
Unable to find image 'fnproject/ui:latest' locally
latest: Pulling from fnproject/ui
e110a4a17941: Pull complete 
3c5dcb228286: Pull complete 
19c9e79b9f16: Pull complete 
78d32a0bd7e8: Pull complete 
a2337500ed47: Pull complete 
12f394f0e817: Pull complete 
64e0f96a7b8c: Pull complete 
f977f532237b: Pull complete 
Digest: sha256:6d82707c6462e99d46c33ab6f7a502548f802f2d8f0ed830f568e7eda4a64f81
Status: Downloaded newer image for fnproject/ui:latest

FunctionsUI@0.0.16 start /app 节点服务器

使用 API 网址:api:8080 服务器在 4000 端口上运行 获取http://api:8080/v1/apps,参数:{} …… ....

【问题讨论】:

    标签: fn


    【解决方案1】:

    UI 图像的 16 版似乎存在问题。请使用下拉新图像 docker pull fnproject/ui然后再试一次。

    如果您使用的是较新版本,在启动时应该会看到以下内容

    > FunctionsUI@0.0.17 start /app
    > node server
    

    【讨论】:

    • 拉取最新图片> FunctionsUI@0.0.17 start /app > node server 但错误依旧... 错误。 Api 响应 502 Can not parse api response
    • 502 听起来像是代理问题。 Docker 是否配置为使用代理服务器?如果是这样api需要在排除列表中以允许ui服务器连接到Fn服务器。
    猜你喜欢
    • 2015-04-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-05-17
    • 1970-01-01
    • 2017-04-15
    • 1970-01-01
    • 2016-10-28
    相关资源
    最近更新 更多