SeleniumHQ / docker-selenium

Provides a simple way to run Selenium Grid with Chrome, Firefox, and Edge using Docker, making it easier to perform browser automation
http://www.selenium.dev/docker-selenium/
Other
7.97k stars 2.51k forks source link

selenium/standalone-chrome-debug:3.4.0-bismuth startup issue (and likely all others that have source selenv) #474

Closed radams-sgy closed 7 years ago

radams-sgy commented 7 years ago

selenium/standalone-chrome-debug:3.4.0-bismuth startup issue -

Upon a docker run of of the container, I get a command not found on the entry point file. The line referenced in the stack trace below (27) is referring to:

sudo -E -i -u seluser \
  source selenv && \
  xvfb-run -n $SERVERNUM --server-args="-screen 0 $GEOMETRY -ac +extension RANDR" \
  java ${JAVA_OPTS} -jar /opt/selenium/selenium-server-standalone.jar \
  ${SE_OPTS} &

Preceding that line we attempt to generate a selenv file within seluser's home dir with:

"$(for E in $(grep -vxFf asseluser asroot); do echo $E="'${!E}'" >> ~seluser/selenv; done)" \
echo "DISPLAY=${DISPLAY}" >> ~seluser/selenv

I believe the error in entry point is referring to source selenv

Stacktrace of run:

/opt/bin/entry_point.sh: line 27: : command not found
Waiting xvfb...
27/04/2017 20:18:48 passing arg to libvncserver: -rfbport
27/04/2017 20:18:48 passing arg to libvncserver: 5900
27/04/2017 20:18:48 -usepw: found /root/.vnc/passwd
27/04/2017 20:18:48 x11vnc version: 0.9.13 lastmod: 2011-08-10  pid: 48
27/04/2017 20:18:48 Using X display :99.0
27/04/2017 20:18:48 rootwin: 0x25c reswin: 0x200001 dpy: 0x2523910
27/04/2017 20:18:48 
27/04/2017 20:18:48 ------------------ USEFUL INFORMATION ------------------
27/04/2017 20:18:48 X DAMAGE available on display, using it for polling hints.
27/04/2017 20:18:48   To disable this behavior use: '-noxdamage'
27/04/2017 20:18:48 
27/04/2017 20:18:48   Most compositing window managers like 'compiz' or 'beryl'
27/04/2017 20:18:48   cause X DAMAGE to fail, and so you may not see any screen
27/04/2017 20:18:48   updates via VNC.  Either disable 'compiz' (recommended) or
27/04/2017 20:18:48   supply the x11vnc '-noxdamage' command line option.
27/04/2017 20:18:48 
27/04/2017 20:18:48 Wireframing: -wireframe mode is in effect for window moves.
27/04/2017 20:18:48   If this yields undesired behavior (poor response, painting
27/04/2017 20:18:48   errors, etc) it may be disabled:
27/04/2017 20:18:48    - use '-nowf' to disable wireframing completely.
27/04/2017 20:18:48    - use '-nowcr' to disable the Copy Rectangle after the
27/04/2017 20:18:48      moved window is released in the new position.
27/04/2017 20:18:48   Also see the -help entry for tuning parameters.
27/04/2017 20:18:48   You can press 3 Alt_L's (Left "Alt" key) in a row to 
27/04/2017 20:18:48   repaint the screen, also see the -fixscreen option for
27/04/2017 20:18:48   periodic repaints.
27/04/2017 20:18:48 
27/04/2017 20:18:48 XFIXES available on display, resetting cursor mode
27/04/2017 20:18:48   to: '-cursor most'.
27/04/2017 20:18:48   to disable this behavior use: '-cursor arrow'
27/04/2017 20:18:48   or '-noxfixes'.
27/04/2017 20:18:48 using XFIXES for cursor drawing.
27/04/2017 20:18:48 GrabServer control via XTEST.
27/04/2017 20:18:48 
27/04/2017 20:18:48 Scroll Detection: -scrollcopyrect mode is in effect to
27/04/2017 20:18:48   use RECORD extension to try to detect scrolling windows
27/04/2017 20:18:48   (induced by either user keystroke or mouse input).
27/04/2017 20:18:48   If this yields undesired behavior (poor response, painting
27/04/2017 20:18:48   errors, etc) it may be disabled via: '-noscr'
27/04/2017 20:18:48   Also see the -help entry for tuning parameters.
27/04/2017 20:18:48   You can press 3 Alt_L's (Left "Alt" key) in a row to 
27/04/2017 20:18:48   repaint the screen, also see the -fixscreen option for
27/04/2017 20:18:48   periodic repaints.
27/04/2017 20:18:48 
27/04/2017 20:18:48 XKEYBOARD: number of keysyms per keycode 7 is greater
27/04/2017 20:18:48   than 4 and 51 keysyms are mapped above 4.
27/04/2017 20:18:48   Automatically switching to -xkb mode.
27/04/2017 20:18:48   If this makes the key mapping worse you can
27/04/2017 20:18:48   disable it with the "-noxkb" option.
27/04/2017 20:18:48   Also, remember "-remap DEAD" for accenting characters.
27/04/2017 20:18:48 
27/04/2017 20:18:48 X FBPM extension not supported.
27/04/2017 20:18:48 X display is not capable of DPMS.
27/04/2017 20:18:48 --------------------------------------------------------
27/04/2017 20:18:48 
27/04/2017 20:18:48 Default visual ID: 0x21
27/04/2017 20:18:48 Read initial data from X display into framebuffer.
27/04/2017 20:18:48 initialize_screen: fb_depth/fb_bpp/fb_Bpl 24/32/5440
27/04/2017 20:18:48 
27/04/2017 20:18:48 X display :99.0 is 32bpp depth=24 true color
27/04/2017 20:18:48 
27/04/2017 20:18:48 Listening for VNC connections on TCP port 5900
27/04/2017 20:18:48 Listening for VNC connections on TCP6 port 5900
27/04/2017 20:18:48 listen6: bind: Address already in use
27/04/2017 20:18:48 Not listening on IPv6 interface.
27/04/2017 20:18:48 
27/04/2017 20:18:48 Xinerama is present and active (e.g. multi-head).
27/04/2017 20:18:48 Xinerama: number of sub-screens: 1
27/04/2017 20:18:48 Xinerama: no blackouts needed (only one sub-screen)
27/04/2017 20:18:48 
27/04/2017 20:18:48 fb read rate: 551 MB/sec
27/04/2017 20:18:48 fast read: reset -wait  ms to: 10
27/04/2017 20:18:48 fast read: reset -defer ms to: 10
27/04/2017 20:18:48 The X server says there are 10 mouse buttons.
27/04/2017 20:18:48 screen setup finished.
27/04/2017 20:18:48 

The VNC desktop is:      73e7265c72af:0
PORT=5900

******************************************************************************
Have you tried the x11vnc '-ncache' VNC client-side pixel caching feature yet?

The scheme stores pixel data offscreen on the VNC viewer side for faster
retrieval.  It should work with any VNC viewer.  Try it by running:

    x11vnc -ncache 10 ...

One can also add -ncache_cr for smooth 'copyrect' window motion.
More info: http://www.karlrunge.com/x11vnc/faq.html#faq-client-caching

Failed to read: session.ignoreBorder
Setting default value
Failed to read: session.forcePseudoTransparency
Setting default value
Failed to read: session.colorsPerChannel
Setting default value
Failed to read: session.doubleClickInterval
Setting default value
Failed to read: session.tabPadding
Setting default value
Failed to read: session.styleOverlay
Setting default value
Failed to read: session.slitlistFile
Setting default value
Failed to read: session.appsFile
Setting default value
Failed to read: session.tabsAttachArea
Setting default value
Failed to read: session.cacheLife
Setting default value
Failed to read: session.cacheMax
Setting default value
Failed to read: session.autoRaiseDelay
Setting default value
Failed to read: session.ignoreBorder
Setting default value
Failed to read: session.forcePseudoTransparency
Setting default value
Failed to read: session.colorsPerChannel
Setting default value
Failed to read: session.doubleClickInterval
Setting default value
Failed to read: session.tabPadding
Setting default value
Failed to read: session.styleOverlay
Setting default value
Failed to read: session.slitlistFile
Setting default value
Failed to read: session.appsFile
Setting default value
Failed to read: session.tabsAttachArea
Setting default value
Failed to read: session.cacheLife
Setting default value
Failed to read: session.cacheMax
Setting default value
Failed to read: session.autoRaiseDelay
Setting default value
20:18:49.448 INFO - Selenium build info: version: '3.4.0', revision: 'unknown'
20:18:49.451 INFO - Launching a standalone Selenium Server
2017-04-27 20:18:49.512:INFO::main: Logging initialized @1046ms to org.seleniumhq.jetty9.util.log.StdErrLog
20:18:49.658 INFO - Driver provider org.openqa.selenium.ie.InternetExplorerDriver registration is skipped:
 registration capabilities Capabilities [{ensureCleanSession=true, browserName=internet explorer, version=, platform=WINDOWS}] does not match the current platform LINUX
20:18:49.658 INFO - Driver provider org.openqa.selenium.edge.EdgeDriver registration is skipped:
 registration capabilities Capabilities [{browserName=MicrosoftEdge, version=, platform=WINDOWS}] does not match the current platform LINUX
20:18:49.659 INFO - Driver class not found: com.opera.core.systems.OperaDriver
20:18:49.659 INFO - Driver provider com.opera.core.systems.OperaDriver registration is skipped:
Unable to create new instances on this machine.
20:18:49.659 INFO - Driver class not found: com.opera.core.systems.OperaDriver
20:18:49.660 INFO - Driver provider com.opera.core.systems.OperaDriver is not registered
20:18:49.661 INFO - Driver provider org.openqa.selenium.safari.SafariDriver registration is skipped:
 registration capabilities Capabilities [{browserName=safari, version=, platform=MAC}] does not match the current platform LINUX
2017-04-27 20:18:49.771:INFO:osjs.Server:main: jetty-9.4.3.v20170317
2017-04-27 20:18:49.919:INFO:osjsh.ContextHandler:main: Started o.s.j.s.ServletContextHandler@14acaea5{/,null,AVAILABLE}
2017-04-27 20:18:49.972:INFO:osjs.AbstractConnector:main: Started ServerConnector@33ce30e4{HTTP/1.1,[http/1.1]}{0.0.0.0:4444}
2017-04-27 20:18:49.974:INFO:osjs.Server:main: Started @1508ms
20:18:49.974 INFO - Selenium Server is up and running
Failed to read: session.screen0.opaqueMove
Setting default value
Failed to read: session.screen0.fullMaximization
Setting default value
Failed to read: session.screen0.maxIgnoreIncrement
Setting default value
Failed to read: session.screen0.maxDisableMove
Setting default value
Failed to read: session.screen0.maxDisableResize
Setting default value
Failed to read: session.screen0.workspacewarping
Setting default value
Failed to read: session.screen0.showwindowposition
Setting default value
Failed to read: session.screen0.autoRaise
Setting default value
Failed to read: session.screen0.clickRaises
Setting default value
Failed to read: session.screen0.defaultDeco
Setting default value
Failed to read: session.screen0.tab.placement
Setting default value
Failed to read: session.screen0.windowMenu
Setting default value
Failed to read: session.screen0.noFocusWhileTypingDelay
Setting default value
Failed to read: session.screen0.workspaces
Setting default value
Failed to read: session.screen0.edgeSnapThreshold
Setting default value
Failed to read: session.screen0.window.focus.alpha
Setting default value
Failed to read: session.screen0.window.unfocus.alpha
Setting default value
Failed to read: session.screen0.menu.alpha
Setting default value
Failed to read: session.screen0.menuDelay
Setting default value
Failed to read: session.screen0.tab.width
Setting default value
Failed to read: session.screen0.tooltipDelay
Setting default value
Failed to read: session.screen0.allowRemoteActions
Setting default value
Failed to read: session.screen0.clientMenu.usePixmap
Setting default value
Failed to read: session.screen0.tabs.usePixmap
Setting default value
Failed to read: session.screen0.tabs.maxOver
Setting default value
Failed to read: session.screen0.tabs.intitlebar
Setting default value
Failed to read: session.screen0.focusModel
Setting default value
Failed to read: session.screen0.tabFocusModel
Setting default value
Failed to read: session.screen0.focusNewWindows
Setting default value
Failed to read: session.screen0.focusSameHead
Setting default value
Failed to read: session.screen0.rowPlacementDirection
Setting default value
Failed to read: session.screen0.colPlacementDirection
Setting default value
Failed to read: session.screen0.windowPlacement
Setting default value
Failed to read: session.ignoreBorder
Setting default value
Failed to read: session.forcePseudoTransparency
Setting default value
Failed to read: session.colorsPerChannel
Setting default value
Failed to read: session.doubleClickInterval
Setting default value
Failed to read: session.tabPadding
Setting default value
Failed to read: session.styleOverlay
Setting default value
Failed to read: session.slitlistFile
Setting default value
Failed to read: session.appsFile
Setting default value
Failed to read: session.tabsAttachArea
Setting default value
Failed to read: session.cacheLife
Setting default value
Failed to read: session.cacheMax
Setting default value
Failed to read: session.autoRaiseDelay
Setting default value
Failed to read: session.screen0.opaqueMove
Setting default value
Failed to read: session.screen0.fullMaximization
Setting default value
Failed to read: session.screen0.maxIgnoreIncrement
Setting default value
Failed to read: session.screen0.maxDisableMove
Setting default value
Failed to read: session.screen0.maxDisableResize
Setting default value
Failed to read: session.screen0.workspacewarping
Setting default value
Failed to read: session.screen0.showwindowposition
Setting default value
Failed to read: session.screen0.autoRaise
Setting default value
Failed to read: session.screen0.clickRaises
Setting default value
Failed to read: session.screen0.defaultDeco
Setting default value
Failed to read: session.screen0.tab.placement
Setting default value
Failed to read: session.screen0.windowMenu
Setting default value
Failed to read: session.screen0.noFocusWhileTypingDelay
Setting default value
Failed to read: session.screen0.workspaces
Setting default value
Failed to read: session.screen0.edgeSnapThreshold
Setting default value
Failed to read: session.screen0.window.focus.alpha
Setting default value
Failed to read: session.screen0.window.unfocus.alpha
Setting default value
Failed to read: session.screen0.menu.alpha
Setting default value
Failed to read: session.screen0.menuDelay
Setting default value
Failed to read: session.screen0.tab.width
Setting default value
Failed to read: session.screen0.tooltipDelay
Setting default value
Failed to read: session.screen0.allowRemoteActions
Setting default value
Failed to read: session.screen0.clientMenu.usePixmap
Setting default value
Failed to read: session.screen0.tabs.usePixmap
Setting default value
Failed to read: session.screen0.tabs.maxOver
Setting default value
Failed to read: session.screen0.tabs.intitlebar
Setting default value
Failed to read: session.screen0.focusModel
Setting default value
Failed to read: session.screen0.tabFocusModel
Setting default value
Failed to read: session.screen0.focusNewWindows
Setting default value
Failed to read: session.screen0.focusSameHead
Setting default value
Failed to read: session.screen0.rowPlacementDirection
Setting default value
Failed to read: session.screen0.colPlacementDirection
Setting default value
Failed to read: session.screen0.windowPlacement
Setting default value
Failed to read: session.screen0.slit.acceptKdeDockapps
Setting default value
Failed to read: session.screen0.slit.autoHide
Setting default value
Failed to read: session.screen0.slit.maxOver
Setting default value
Failed to read: session.screen0.slit.placement
Setting default value
Failed to read: session.screen0.slit.alpha
Setting default value
Failed to read: session.screen0.slit.onhead
Setting default value
Failed to read: session.screen0.slit.layer
Setting default value
Failed to read: session.screen0.toolbar.autoHide
Setting default value
Failed to read: session.screen0.toolbar.maxOver
Setting default value
Failed to read: session.screen0.toolbar.visible
Setting default value
Failed to read: session.screen0.toolbar.alpha
Setting default value
Failed to read: session.screen0.toolbar.layer
Setting default value
Failed to read: session.screen0.toolbar.onhead
Setting default value
Failed to read: session.screen0.toolbar.placement
Setting default value
Failed to read: session.screen0.toolbar.height
Setting default value
Failed to read: session.screen0.iconbar.mode
Setting default value
Failed to read: session.screen0.iconbar.alignment
Setting default value
Failed to read: session.screen0.iconbar.iconWidth
Setting default value
Failed to read: session.screen0.iconbar.iconTextPadding
Setting default value
Failed to read: session.screen0.iconbar.usePixmap
Setting default value
diemol commented 7 years ago

Hi @radams-sgy, I checked it, and if everything goes well, #477 should solve it.

radams-sgy commented 7 years ago

Great thanks @diemol

diemol commented 7 years ago

477 was already merged and released, therefore I'll close this one.