Closed Bug 1649832 Opened 5 years ago Closed 1 year ago

Intermittent xwit: unable to open display ':0'

Categories

(Firefox Build System :: Task Configuration, defect)

80 Branch
defect

Tracking

(firefox132 fixed)

RESOLVED FIXED
132 Branch
Tracking Status
firefox132 --- fixed

People

(Reporter: malexandru, Assigned: jcristau)

References

Details

(Keywords: intermittent-failure)

Attachments

(1 file)

Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=308204907&repo=autoland&lineNumber=425

Raw log: https://firefoxci.taskcluster-artifacts.net/ZzYk-FZiShSSWXfTmKR0LA/0/public/logs/live_backing.log

[task 2020-07-01T14:37:15.075Z] + start_xvfb 1600x1200x24 0
[task 2020-07-01T14:37:15.075Z] + set +e
[task 2020-07-01T14:37:15.075Z] + mkdir -p /builds/worker/artifacts/xvfb
[task 2020-07-01T14:37:15.076Z] + local retry_count=0
[task 2020-07-01T14:37:15.076Z] + local max_retries=2
[task 2020-07-01T14:37:15.076Z] + local success=1
[task 2020-07-01T14:37:15.076Z] + '[' 0 -gt 2 ']'
[task 2020-07-01T14:37:15.076Z] + try_xvfb 1600x1200x24 0
[task 2020-07-01T14:37:15.076Z] + screen -dmS xvfb Xvfb :0 -nolisten tcp -screen 0 1600x1200x24
[task 2020-07-01T14:37:15.079Z] + export DISPLAY=:0
[task 2020-07-01T14:37:15.079Z] + DISPLAY=:0
[task 2020-07-01T14:37:15.079Z] + local retry_count=0
[task 2020-07-01T14:37:15.079Z] + local max_retries=5
[task 2020-07-01T14:37:15.079Z] + xvfb_test=0
[task 2020-07-01T14:37:15.079Z] + '[' 0 -gt 5 ']'
[task 2020-07-01T14:37:15.079Z] + xvinfo
[task 2020-07-01T14:37:15.081Z] xvinfo:  Unable to open display :0
[task 2020-07-01T14:37:15.081Z] + xvfb_test=255
[task 2020-07-01T14:37:15.081Z] + '[' 255 '!=' 255 ']'
[task 2020-07-01T14:37:15.081Z] + retry_count=1
[task 2020-07-01T14:37:15.081Z] + echo 'Failed to start Xvfb, retry: 1'
[task 2020-07-01T14:37:15.081Z] Failed to start Xvfb, retry: 1
[task 2020-07-01T14:37:15.081Z] + sleep 2
[task 2020-07-01T14:37:17.089Z] + '[' 1 -gt 5 ']'
[task 2020-07-01T14:37:17.089Z] + xvinfo
[task 2020-07-01T14:37:17.091Z] X-Video Extension version 2.2
[task 2020-07-01T14:37:17.091Z] screen #0
[task 2020-07-01T14:37:17.091Z]  no adaptors present
[task 2020-07-01T14:37:17.092Z] + xvfb_test=1
[task 2020-07-01T14:37:17.092Z] + '[' 1 '!=' 255 ']'
[task 2020-07-01T14:37:17.092Z] + retry_count=6
[task 2020-07-01T14:37:17.092Z] + '[' 6 -gt 5 ']'
[task 2020-07-01T14:37:17.092Z] + '[' 1 == 255 ']'
[task 2020-07-01T14:37:17.092Z] + return 0
[task 2020-07-01T14:37:17.092Z] + success=0
[task 2020-07-01T14:37:17.092Z] + '[' 0 -eq 0 ']'
[task 2020-07-01T14:37:17.092Z] + retry_count=3
[task 2020-07-01T14:37:17.092Z] + '[' 3 -gt 2 ']'
[task 2020-07-01T14:37:17.092Z] + set -e
[task 2020-07-01T14:37:17.092Z] + '[' 0 -eq 1 ']'
[task 2020-07-01T14:37:17.092Z] 
[task 2020-07-01T14:37:17.092Z] if $START_VNC; then
[task 2020-07-01T14:37:17.092Z]     x11vnc > "$WORKING_DIR/artifacts/public/x11vnc.log" 2>&1 &
[task 2020-07-01T14:37:17.092Z] fi
[task 2020-07-01T14:37:17.092Z] + false
[task 2020-07-01T14:37:17.092Z] 
[task 2020-07-01T14:37:17.092Z] if $NEED_WINDOW_MANAGER; then
[task 2020-07-01T14:37:17.092Z]     # This is read by xsession to select the window manager
[task 2020-07-01T14:37:17.092Z]     . /etc/lsb-release
[task 2020-07-01T14:37:17.092Z]     if [ $DISTRIBUTION == "Ubuntu" ] && [ $RELEASE == "16.04" ]; then
[task 2020-07-01T14:37:17.092Z]         echo DESKTOP_SESSION=ubuntu > $HOME/.xsessionrc
[task 2020-07-01T14:37:17.092Z]     elif [ $DISTRIBUTION == "Ubuntu" ] && [ $RELEASE == "18.04" ]; then
[task 2020-07-01T14:37:17.092Z]         echo export DESKTOP_SESSION=gnome > $HOME/.xsessionrc
[task 2020-07-01T14:37:17.092Z]         echo export XDG_SESSION_TYPE=x11 >> $HOME/.xsessionrc
[task 2020-07-01T14:37:17.092Z]     else
[task 2020-07-01T14:37:17.092Z]         :
[task 2020-07-01T14:37:17.092Z]     fi
[task 2020-07-01T14:37:17.092Z] 
[task 2020-07-01T14:37:17.092Z]     # DISPLAY has already been set above
[task 2020-07-01T14:37:17.092Z]     # XXX: it would be ideal to add a semaphore logic to make sure that the
[task 2020-07-01T14:37:17.092Z]     # window manager is ready
[task 2020-07-01T14:37:17.092Z]     /etc/X11/Xsession 2>&1 &
[task 2020-07-01T14:37:17.092Z] 
[task 2020-07-01T14:37:17.092Z]     # Turn off the screen saver and screen locking
[task 2020-07-01T14:37:17.092Z]     gsettings set org.gnome.desktop.screensaver idle-activation-enabled false
[task 2020-07-01T14:37:17.092Z]     gsettings set org.gnome.desktop.screensaver lock-enabled false
[task 2020-07-01T14:37:17.092Z]     gsettings set org.gnome.desktop.screensaver lock-delay 3600
[task 2020-07-01T14:37:17.093Z] 
[task 2020-07-01T14:37:17.093Z]     # Disable the screen saver
[task 2020-07-01T14:37:17.093Z]     xset s off s reset
[task 2020-07-01T14:37:17.093Z] 
[task 2020-07-01T14:37:17.093Z]     # This starts the gnome-keyring-daemon with an unlocked login keyring. libsecret uses this to
[task 2020-07-01T14:37:17.094Z]     # store secrets. Firefox uses libsecret to store a key that protects sensitive information like
[task 2020-07-01T14:37:17.094Z]     # credit card numbers.
[task 2020-07-01T14:37:17.094Z]     if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
[task 2020-07-01T14:37:17.094Z]         # if not found, launch a new one
[task 2020-07-01T14:37:17.094Z]         eval `dbus-launch --sh-syntax`
[task 2020-07-01T14:37:17.094Z]     fi
[task 2020-07-01T14:37:17.094Z]     eval `echo '' | /usr/bin/gnome-keyring-daemon -r -d --unlock --components=secrets`
[task 2020-07-01T14:37:17.094Z] fi
[task 2020-07-01T14:37:17.094Z] + false
[task 2020-07-01T14:37:17.094Z] 
[task 2020-07-01T14:37:17.094Z] if [ $NEED_COMPIZ == "true" ]  && [ $RELEASE == "16.04" ]; then
[task 2020-07-01T14:37:17.094Z]     compiz 2>&1 &
[task 2020-07-01T14:37:17.094Z] elif [ $NEED_COMPIZ == "true" ] && [ $RELEASE == "18.04" ]; then
[task 2020-07-01T14:37:17.094Z]     compiz --replace 2>&1 &
[task 2020-07-01T14:37:17.094Z] fi
[task 2020-07-01T14:37:17.094Z] + '[' == true ']'
[task 2020-07-01T14:37:17.094Z] /builds/worker/checkouts/gecko/taskcluster/scripts/tester/test-linux.sh: line 182: [: ==: unary operator expected
[task 2020-07-01T14:37:17.094Z] + '[' == true ']'
[task 2020-07-01T14:37:17.094Z] /builds/worker/checkouts/gecko/taskcluster/scripts/tester/test-linux.sh: line 184: [: ==: unary operator expected
[task 2020-07-01T14:37:17.094Z] 
[task 2020-07-01T14:37:17.094Z] # Bug 1607713 - set cursor position to 0,0 to avoid odd libx11 interaction
[task 2020-07-01T14:37:17.094Z] if [ $NEED_WINDOW_MANAGER ] && [ $DISPLAY == ':0' ]; then
[task 2020-07-01T14:37:17.094Z]     xwit -root -warp 0 0
[task 2020-07-01T14:37:17.094Z] fi
[task 2020-07-01T14:37:17.094Z] + '[' false ']'
[task 2020-07-01T14:37:17.094Z] + '[' :0 == :0 ']'
[task 2020-07-01T14:37:17.094Z] + xwit -root -warp 0 0
[task 2020-07-01T14:37:17.095Z] xwit:  unable to open display ':0'
[task 2020-07-01T14:37:17.095Z] xwit version 3.4
[task 2020-07-01T14:37:17.095Z] 
[task 2020-07-01T14:37:17.095Z] usage: xwit -display <display> -sync
[task 2020-07-01T14:37:17.095Z] 	-pop -focus -iconify -unmap -print 
[task 2020-07-01T14:37:17.095Z] 	-raise -lower -opposite -[un]circulate
[task 2020-07-01T14:37:17.095Z] 	-resize w h -rows r -columns c -[r]move x y
[task 2020-07-01T14:37:17.095Z] 	-[r]warp x y -colormap <colormapid> -[no]save
[task 2020-07-01T14:37:17.095Z] 	-name <name> -iconname <name> -property <lookfor>
[task 2020-07-01T14:37:17.095Z] 	-bitmap <file> -mask <file> -[r]iconmove x y
[task 2020-07-01T14:37:17.095Z] 	-[no]backingstore -[no]saveunder
[task 2020-07-01T14:37:17.095Z] 	-[no]keyrepeat keycode ... keycode - keycode
[task 2020-07-01T14:37:17.095Z] 	-id <windowid> -root -current -select -all
[task 2020-07-01T14:37:17.095Z] 	-names <initialsubstrings>... [must be last]
[task 2020-07-01T14:37:17.095Z] cleanup
[task 2020-07-01T14:37:17.096Z] + cleanup
[task 2020-07-01T14:37:17.096Z] + local rv=2
[task 2020-07-01T14:37:17.096Z] + [[ -s /builds/worker/.xsession-errors ]]
[task 2020-07-01T14:37:17.096Z] + true
[task 2020-07-01T14:37:17.096Z] + cleanup_xvfb
[task 2020-07-01T14:37:17.096Z] ++ pidof Xvfb
[task 2020-07-01T14:37:17.098Z] + local xvfb_pid=49
[task 2020-07-01T14:37:17.098Z] + local vnc=false
[task 2020-07-01T14:37:17.098Z] + local interactive=false
[task 2020-07-01T14:37:17.098Z] + '[' -n 49 ']'
[task 2020-07-01T14:37:17.098Z] + [[ false == false ]]
[task 2020-07-01T14:37:17.098Z] + [[ false == false ]]
[task 2020-07-01T14:37:17.098Z] + kill 49
[task 2020-07-01T14:37:17.098Z] + screen -XS xvfb quit
[task 2020-07-01T14:37:17.101Z] + exit 2
[fetches 2020-07-01T14:37:17.101Z] removing /builds/worker/fetches
[fetches 2020-07-01T14:37:17.378Z] finished
[taskcluster 2020-07-01 14:37:17.659Z] === Task Finished ===
[taskcluster 2020-07-01 14:37:17.793Z] Artifact "public/logs" not found at "/builds/worker/logs/"
[taskcluster 2020-07-01 14:37:18.379Z] Unsuccessful task run with exit code: 2 completed in 29.819 seconds
Severity: -- → S3
Priority: -- → P5

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: General → Task Configuration

The component has been changed since the backlog priority was decided, so we're resetting it.
For more information, please visit auto_nag documentation.

Priority: P5 → --

Fix test for $NEED_WINDOW_MANAGER so we don't treat "false" as a "yes".

Assignee: nobody → jcristau
Status: NEW → ASSIGNED
Pushed by jcristau@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c12e0a91f2c7 don't call xwit when we don't have a window manager. r=jmaher
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 132 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: