Behat won't run headless on Ubuntu 20.04+

Bug #1981942 reported by Gold
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Confirmed
Undecided
Unassigned

Bug Description

When pausing execution of the behat script at the point the curl request is being made to fetch the selenium session I get the following:

Message:
Expected to read a START_MAP but instead have: END. Last 0 characters read:
Build info: version: '4.3.0', revision: 'a4995e2c09*'
System info: host: 'ca57762ce390', ip: '172.18.0.3', os.name: 'Linux', os.arch: 'amd64', os.version: '5.13.0-52-generic', java.version: '11.0.15'
Driver info: driver.version: unknown

Stacktrace:
org.openqa.selenium.json.JsonException: Expected to read a START_MAP but instead have: END. Last 0 characters read:
Build info: version: '4.3.0', revision: 'a4995e2c09*'
System info: host: 'ca57762ce390', ip: '172.18.0.3', os.name: 'Linux', os.arch: 'amd64', os.version: '5.13.0-52-generic', java.version: '11.0.15'
Driver info: driver.version: unknown
    at org.openqa.selenium.json.JsonInput.expect(JsonInput.java:307)
    at org.openqa.selenium.json.JsonInput.beginObject(JsonInput.java:229)
    at org.openqa.selenium.remote.NewSessionPayload.getOss(NewSessionPayload.java:306)
    at org.openqa.selenium.remote.NewSessionPayload.\u003cinit>(NewSessionPayload.java:84)
    at org.openqa.selenium.remote.NewSessionPayload.create(NewSessionPayload.java:118)
    at org.openqa.selenium.grid.data.SessionRequest.\u003cinit>(SessionRequest.java:65)
    at org.openqa.selenium.grid.sessionqueue.NewSessionQueue.lambda$new$0(NewSessionQueue.java:66)
    at org.openqa.selenium.remote.http.Route$TemplatizedRoute.handle(Route.java:192)
    at org.openqa.selenium.remote.http.Route.execute(Route.java:68)
    at org.openqa.selenium.remote.http.Route$CombinedRoute.handle(Route.java:336)
    at org.openqa.selenium.remote.http.Route.execute(Route.java:68)
    at org.openqa.selenium.grid.sessionqueue.NewSessionQueue.execute(NewSessionQueue.java:120)
    at org.openqa.selenium.remote.tracing.SpanWrappedHttpHandler.execute(SpanWrappedHttpHandler.java:86)
    at org.openqa.selenium.remote.http.Filter$1.execute(Filter.java:64)
    at org.openqa.selenium.remote.http.Route$CombinedRoute.handle(Route.java:336)
    at org.openqa.selenium.remote.http.Route.execute(Route.java:68)
    at org.openqa.selenium.grid.router.Router.execute(Router.java:91)
    at org.openqa.selenium.grid.web.EnsureSpecCompliantResponseHeaders.lambda$apply$0(EnsureSpecCompliantResponseHeaders.java:34)
    at org.openqa.selenium.remote.http.Filter$1.execute(Filter.java:64)
    at org.openqa.selenium.remote.http.Route$CombinedRoute.handle(Route.java:336)
    at org.openqa.selenium.remote.http.Route.execute(Route.java:68)
    at org.openqa.selenium.remote.http.Route$NestedRoute.handle(Route.java:270)
    at org.openqa.selenium.remote.http.Route.execute(Route.java:68)
    at org.openqa.selenium.remote.http.Route$CombinedRoute.handle(Route.java:336)
    at org.openqa.selenium.remote.http.Route.execute(Route.java:68)
    at org.openqa.selenium.remote.http.Route$CombinedRoute.handle(Route.java:336)
    at org.openqa.selenium.remote.http.Route.execute(Route.java:68)
    at org.openqa.selenium.remote.AddWebDriverSpecHeaders.lambda$apply$0(AddWebDriverSpecHeaders.java:35)
    at org.openqa.selenium.remote.ErrorFilter.lambda$apply$0(ErrorFilter.java:44)
    at org.openqa.selenium.remote.http.Filter$1.execute(Filter.java:64)
    at org.openqa.selenium.remote.ErrorFilter.lambda$apply$0(ErrorFilter.java:44)
    at org.openqa.selenium.remote.http.Filter$1.execute(Filter.java:64)
    at org.openqa.selenium.netty.server.SeleniumHandler.lambda$channelRead0$0(SeleniumHandler.java:44)
    at java.base\u002fjava.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
    at java.base\u002fjava.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.base\u002fjava.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base\u002fjava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base\u002fjava.lang.Thread.run(Thread.java:829)

These errors occur with the current state of invoking selenium as well as when trying to use either of the following:
docker run -d -p 4444:4444 -v /dev/shm:/dev/shm selenium/standalone-chrome
docker run -d -p 4444:4444 -v /dev/shm:/dev/shm selenium/standalone-firefox

Tags: behat-dev
Revision history for this message
Gold (gold.catalyst) wrote :

On the docker side of things, this looks to be a known issue.

https://github.com/SeleniumHQ/docker-selenium/issues/1507

Changed in mahara:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.