{"action":"created","issue":{"url":"https://api.github.com/repos/SeleniumHQ/docker-selenium/issues/26","labels_url":"https://api.github.com/repos/SeleniumHQ/docker-selenium/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/SeleniumHQ/docker-selenium/issues/26/comments","events_url":"https://api.github.com/repos/SeleniumHQ/docker-selenium/issues/26/events","html_url":"https://github.com/SeleniumHQ/docker-selenium/pull/26","id":52648898,"number":26,"title":"Fix x11vnc sometimes fails","user":{"login":"miyajan","id":945853,"avatar_url":"https://avatars.githubusercontent.com/u/945853?v=3","gravatar_id":"","url":"https://api.github.com/users/miyajan","html_url":"https://github.com/miyajan","followers_url":"https://api.github.com/users/miyajan/followers","following_url":"https://api.github.com/users/miyajan/following{/other_user}","gists_url":"https://api.github.com/users/miyajan/gists{/gist_id}","starred_url":"https://api.github.com/users/miyajan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miyajan/subscriptions","organizations_url":"https://api.github.com/users/miyajan/orgs","repos_url":"https://api.github.com/users/miyajan/repos","events_url":"https://api.github.com/users/miyajan/events{/privacy}","received_events_url":"https://api.github.com/users/miyajan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"elgalu","id":111569,"avatar_url":"https://avatars.githubusercontent.com/u/111569?v=3","gravatar_id":"","url":"https://api.github.com/users/elgalu","html_url":"https://github.com/elgalu","followers_url":"https://api.github.com/users/elgalu/followers","following_url":"https://api.github.com/users/elgalu/following{/other_user}","gists_url":"https://api.github.com/users/elgalu/gists{/gist_id}","starred_url":"https://api.github.com/users/elgalu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elgalu/subscriptions","organizations_url":"https://api.github.com/users/elgalu/orgs","repos_url":"https://api.github.com/users/elgalu/repos","events_url":"https://api.github.com/users/elgalu/events{/privacy}","received_events_url":"https://api.github.com/users/elgalu/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2014-12-22T13:21:15Z","updated_at":"2015-01-14T02:06:04Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/SeleniumHQ/docker-selenium/pulls/26","html_url":"https://github.com/SeleniumHQ/docker-selenium/pull/26","diff_url":"https://github.com/SeleniumHQ/docker-selenium/pull/26.diff","patch_url":"https://github.com/SeleniumHQ/docker-selenium/pull/26.patch"},"body":"In my environment, x11vnc sometimes fails with the following logs. It seems that an X server is not running. After changing the sleep time from 0.5 seconds to 2 seconds, it becomes stable.\r\n\r\n```\r\n22/12/2014 12:45:04 x11vnc version: 0.9.13 lastmod: 2011-08-10  pid: 10\r\n22/12/2014 12:45:04 XOpenDisplay(\":99.0\") failed.\r\n22/12/2014 12:45:04 Trying again with XAUTHLOCALHOSTNAME=localhost ...\r\n\r\n22/12/2014 12:45:04 ***************************************\r\n22/12/2014 12:45:04 *** XOpenDisplay failed (:99.0)\r\n\r\n*** x11vnc was unable to open the X DISPLAY: \":99.0\", it cannot continue.\r\n*** There may be \"Xlib:\" error messages above with details about the failure.\r\n\r\nSome tips and guidelines:\r\n\r\n** An X server (the one you wish to view) must be running before x11vnc is\r\n   started: x11vnc does not start the X server.  (however, see the -create\r\n   option if that is what you really want).\r\n\r\n** You must use -display <disp>, -OR- set and export your $DISPLAY\r\n   environment variable to refer to the display of the desired X server.\r\n - Usually the display is simply \":0\" (in fact x11vnc uses this if you forget\r\n   to specify it), but in some multi-user situations it could be \":1\", \":2\",\r\n   or even \":137\".  Ask your administrator or a guru if you are having\r\n   difficulty determining what your X DISPLAY is.\r\n\r\n** Next, you need to have sufficient permissions (Xauthority) \r\n   to connect to the X DISPLAY.   Here are some Tips:\r\n\r\n - Often, you just need to run x11vnc as the user logged into the X session.\r\n   So make sure to be that user when you type x11vnc.\r\n - Being root is usually not enough because the incorrect MIT-MAGIC-COOKIE\r\n   file may be accessed.  The cookie file contains the secret key that\r\n   allows x11vnc to connect to the desired X DISPLAY.\r\n - You can explicitly indicate which MIT-MAGIC-COOKIE file should be used\r\n   by the -auth option, e.g.:\r\n       x11vnc -auth /home/someuser/.Xauthority -display :0\r\n       x11vnc -auth /tmp/.gdmzndVlR -display :0\r\n   you must have read permission for the auth file.\r\n   See also '-auth guess' and '-findauth' discussed below.\r\n\r\n** If NO ONE is logged into an X session yet, but there is a greeter login\r\n   program like \"gdm\", \"kdm\", \"xdm\", or \"dtlogin\" running, you will need\r\n   to find and use the raw display manager MIT-MAGIC-COOKIE file.\r\n   Some examples for various display managers:\r\n\r\n     gdm:     -auth /var/gdm/:0.Xauth\r\n              -auth /var/lib/gdm/:0.Xauth\r\n     kdm:     -auth /var/lib/kdm/A:0-crWk72\r\n              -auth /var/run/xauth/A:0-crWk72\r\n     xdm:     -auth /var/lib/xdm/authdir/authfiles/A:0-XQvaJk\r\n     dtlogin: -auth /var/dt/A:0-UgaaXa\r\n\r\n   Sometimes the command \"ps wwwwaux | grep auth\" can reveal the file location.\r\n\r\n   Starting with x11vnc 0.9.9 you can have it try to guess by using:\r\n\r\n              -auth guess\r\n\r\n   (see also the x11vnc -findauth option.)\r\n\r\n   Only root will have read permission for the file, and so x11vnc must be run\r\n   as root (or copy it).  The random characters in the filenames will of course\r\n   change and the directory the cookie file resides in is system dependent.\r\n```"},"comment":{"url":"https://api.github.com/repos/SeleniumHQ/docker-selenium/issues/comments/69857920","html_url":"https://github.com/SeleniumHQ/docker-selenium/pull/26#issuecomment-69857920","issue_url":"https://api.github.com/repos/SeleniumHQ/docker-selenium/issues/26","id":69857920,"user":{"login":"miyajan","id":945853,"avatar_url":"https://avatars.githubusercontent.com/u/945853?v=3","gravatar_id":"","url":"https://api.github.com/users/miyajan","html_url":"https://github.com/miyajan","followers_url":"https://api.github.com/users/miyajan/followers","following_url":"https://api.github.com/users/miyajan/following{/other_user}","gists_url":"https://api.github.com/users/miyajan/gists{/gist_id}","starred_url":"https://api.github.com/users/miyajan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miyajan/subscriptions","organizations_url":"https://api.github.com/users/miyajan/orgs","repos_url":"https://api.github.com/users/miyajan/repos","events_url":"https://api.github.com/users/miyajan/events{/privacy}","received_events_url":"https://api.github.com/users/miyajan/received_events","type":"User","site_admin":false},"created_at":"2015-01-14T02:06:04Z","updated_at":"2015-01-14T02:06:04Z","body":"@elgalu Yes, of course."}}