mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #66821
[Bug 1981942] Re: Behat won't run headless on Ubuntu 20.04+
On the docker side of things, this looks to be a known issue.
https://github.com/SeleniumHQ/docker-selenium/issues/1507
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: mahara-contributors
https://bugs.launchpad.net/bugs/1981942
Title:
Behat won't run headless on Ubuntu 20.04+
Status in Mahara:
New
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
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1981942/+subscriptions
References