【问题标题】:Cannot connect to TensorBoard page from Google Cloud VM instance无法从 Google Cloud VM 实例连接到 TensorBoard 页面
【发布时间】:2019-06-11 03:01:17
【问题描述】:

我试图从运行中打开 TensorBoard 页面

tensorboard --logdir=./Train_log/tb_train_log --port=8080 在 Google Cloud Compute Engine 虚拟机实例上。并且输出网页http:<usename>:8080 不可用。我打开页面时的错误是:

Error: Could not connect to Cloud Shell on port 8080.
Ensure your server is listening on port 8080 and try again.

所以我仰望Unable to open Tensorboard in browserCan't open port 8080 on Google Compute Engine running Debian

然后我

1) set up the fire wall with creating a new rule as tcp:8080 and IP ranges 0.0.0.0/0.  
2) changed the port to 8080 and the default output 6006, changed the host to 0.0.0.0 and 127.0.0.1. Copy and paste corresponding address like http:0.0.0.0:8080 to google chrome. 
3) use web preview through google cloud shell to the port I set as above. 

netstat -an | grep "LISTEN " 的输出也是

tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN     
tcp6       0      0 :::22                   :::*                    LISTEN     
tcp6       0      0 ::1:631                 :::*                    LISTEN 

这些都不起作用,我想知道如何解决这个问题?

任何想法都会有所帮助!

【问题讨论】:

  • 在控制台 > 网络 > 防火墙规则 > 编辑你的规则,删除目标标签,然后应用看看会发生什么,或者你可以试试这个链接让我知道如果这不起作用youtube.com/watch?v=JmjqPpQdtW8

标签: tensorflow google-cloud-platform tensorboard


【解决方案1】:

我认为 GCP 中的防火墙配置阻止了 8080 端口,首先在 GCP 中打开 8080 端口,然后执行以下命令:

tensorboard --logdir=./dir/log --port=8080 --bind_all

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-03-26
    • 1970-01-01
    • 2020-08-03
    • 2020-09-16
    • 1970-01-01
    • 2023-03-16
    • 2021-12-25
    相关资源
    最近更新 更多