首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >节点-赫胥黎未能启动弹性竹子w/ubuntu。

节点-赫胥黎未能启动弹性竹子w/ubuntu。
EN

Stack Overflow用户
提问于 2014-11-21 23:53:17
回答 1查看 104关注 0票数 0

在OSX的局部,节点-huxley使用色度驱动器工作良好。为了用huxley安装CI,我在一个运行ubuntu的弹性竹实例上安装了铬和色驱动器。我在chromedriver中一遍又一遍地获得DevTools request failed (在下面的完整输出中有所删减)。如何通过此错误?

色度驱动程序日志:

代码语言:javascript
复制
$ cat /tmp/chrome.log
[15.188][INFO]: COMMAND InitSession {
   "desiredCapabilities": {
      "browserName": "chrome",
      "chromeOptions": {
         "args": [ "--test-type" ]
      }
   }
}
[15.188][INFO]: Populating Preferences file: {
   "alternate_error_pages": {
      "enabled": false
   },
   "autofill": {
      "enabled": false
   },
   "browser": {
      "check_default_browser": false
   },
   "distribution": {
      "import_bookmarks": false,
      "import_history": false,
      "import_search_engine": false,
      "make_chrome_default_for_user": false,
      "show_welcome_page": false,
      "skip_first_run_ui": true
   },
   "dns_prefetching": {
      "enabled": false
   },
   "profile": {
      "content_settings": {
         "pattern_pairs": {
            "https://*,*": {
               "media-stream": {
                  "audio": "Default",
                  "video": "Default"
               }
            }
         }
      },
      "default_content_settings": {
         "geolocation": 1,
         "mouselock": 1,
         "notifications": 1,
         "popups": 1,
         "ppapi-broker": 1
      },
      "password_manager_enabled": false
   },
   "safebrowsing": {
      "enabled": false
   },
   "search": {
      "suggest_enabled": false
   },
   "translate": {
      "enabled": false
   }
}
[15.188][INFO]: Populating Local State file: {
   "background_mode": {
      "enabled": false
   },
   "ssl": {
      "rev_checking": {
         "enabled": false
      }
   }
}
[15.189][INFO]: Launching chrome: /opt/google/chrome/google-chrome --disable-background-networking --disable-client-side-phishing-detection --disable-component-update --disable-default-apps --disable-hang-monitor --disable-prompt-on-repost --disable-sync --disable-web-resources --enable-logging --ignore-certificate-errors --load-extension=/tmp/.com.google.Chrome.EUout2/internal --log-level=0 --metrics-recording-only --no-first-run --password-store=basic --remote-debugging-port=12583 --safebrowsing-disable-auto-update --safebrowsing-disable-download-protection --test-type --use-mock-keychain --user-data-dir=/tmp/.com.google.Chrome.d9rGhd data:,
[15.190][DEBUG]: DevTools request: http://127.0.0.1:12583/json/version
[15.193][WARNING]: PAC support disabled because there is no system implementation
[15.323][DEBUG]: DevTools request failed
[15.380][DEBUG]: DevTools request: http://127.0.0.1:12583/json/version
[15.380][DEBUG]: DevTools request failed
[15.430][DEBUG]: DevTools request: http://127.0.0.1:12583/json/version
[15.431][DEBUG]: DevTools request failed
[15.481][DEBUG]: DevTools request: http://127.0.0.1:12583/json/version
[15.482][DEBUG]: DevTools request failed
[3039:3039:1121/232539:ERROR:browser_main_loop.cc(209)] Gtk: cannot open display:
[15.532][DEBUG]: DevTools request: http://127.0.0.1:12583/json/version
[15.533][DEBUG]: DevTools request failed
[15.583][DEBUG]: DevTools request: http://127.0.0.1:12583/json/version
[15.583][DEBUG]: DevTools request failed
[15.634][DEBUG]: DevTools request: http://127.0.0.1:12583/json/version
[15.634][DEBUG]: DevTools request failed

……

[75.099][DEBUG]: DevTools request: http://127.0.0.1:12583/json/version
[75.099][DEBUG]: DevTools request failed
[75.149][DEBUG]: DevTools request: http://127.0.0.1:12583/json/version
[75.149][DEBUG]: DevTools request failed
[75.200][DEBUG]: DevTools request: http://127.0.0.1:12583/json/version
[75.200][DEBUG]: DevTools request failed
[75.201][INFO]: RESPONSE InitSession unknown error: Chrome failed to start: exited abnormally
[75.201][DEBUG]: Log type 'driver' lost 0 entries on destruction
[75.201][DEBUG]: Log type 'browser' lost 0 entries on destruction
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-12-04 23:29:15

我把这个问题发布在Atalassian的答案上,并从亚特兰开发人员那里得到了这一反应

看起来这个工具需要实际的X显示。为了使它在无头Ubuntu上工作,您需要安装xvfb并使用xvfb-run命令来使用虚拟显示运行您的工具。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/27072348

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档