I seems something is wrong with server permissions. The Selenium server stack trace says this:
12:34:10.493 INFO [Distributor.newSession] - Session request received by the distributor:
{
"desiredCapabilities": {
"browserName": "firefox",
"moz:firefoxOptions": {
"args": [
"-headless"
],
"prefs": {
}
},
"marionette": true,
"acceptInsecureCerts": true
},
"capabilities": {
"firstMatch": [
{
"acceptInsecureCerts": true,
"browserName": "firefox",
"moz:firefoxOptions": {
"args": [
"-headless"
],
"prefs": {
}
}
}
]
}
}
1619433251262 mozrunner::runner INFO Running command: "/snap/bin/firefox" "--marionette" "-headless" "-foreground" "-no-re mote" "-profile" "/tmp/rust_mozprofile8aLKtJ"
2021/04/26 12:34:13.167735 cmd_run.go:1003: WARNING: cannot start document portal: dial unix /run/user/0/bus: connect: permission den ied
mkdir: cannot create directory '/run/user/1000': Permission denied
*** You are running in headless mode.
[GFX1-]: glxtest: libpci missing
[GFX1-]: glxtest: libEGL initialize failed
[GFX1-]: glxtest: Unable to open a connection to the X server
[GFX1-]: glxtest: libEGL initialize failed
[GFX1-]: No GPUs detected via PCI
12:35:11.436 WARN [SeleniumSpanExporter$1.lambda$export$0] - {"traceId": "276854ae3527ad1a0d5c4039f0580cec","spanId": "2c522f44eb54f3 0e","spanKind": "INTERNAL","eventTime": 1619433311373994495,"eventName": "exception","attributes": {"driver.url": "http:\u002f\u002fl ocalhost:21294","exception.message": "Error while creating session with the driver service. Stopping driver service: Could not start a new session. Response code 500. Message: Connection refused (os error 111)\nBuild info: version: '4.0.0-beta-2', revision: 'Unknown '\nSystem info: host: '
vmi503579.contaboserver.net', ip: '127.0.1.1',
os.name: 'Linux', os.arch: 'amd64', os.version: '5.4.0-70-gener ic', java.version: '11.0.10'\nDriver info: driver.version: unknown","exception.stacktrace": "org.openqa.selenium.SessionNotCreatedExc eption: Could not start a new session. Response code 500. Message: Connection refused (os error 111)\nBuild info: version: '4.0.0-bet a-2', revision: 'Unknown'\nSystem info: host: '
vmi503579.contaboserver.net', ip: '127.0.1.1',
os.name: 'Linux', os.arch: 'amd64', os. version: '5.4.0-70-generic', java.version: '11.0.10'\nDriver info: driver.version: unknown\n\tat org.openqa.selenium.remote.ProtocolH andshake.createSession(ProtocolHandshake.java:126)\n\tat org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake .java:84)\n\tat org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:62)\n\tat org.openqa.selenium.grid. node.config.DriverServiceSessionFactory.apply(DriverServiceSessionFactory.java:116)\n\tat org.openqa.selenium.grid.node.config.Driver ServiceSessionFactory.apply(DriverServiceSessionFactory.java:60)\n\tat org.openqa.selenium.grid.node.local.SessionSlot.apply(SessionS lot.java:143)\n\tat org.openqa.selenium.grid.node.local.LocalNode.newSession(LocalNode.java:325)\n\tat org.openqa.selenium.grid.distr ibutor.local.LocalDistributor.reserve(LocalDistributor.java:353)\n\tat org.openqa.selenium.grid.distributor.Distributor.newSession(Di stributor.java:227)\n\tat org.openqa.selenium.grid.distributor.local.LocalDistributor$NewSessionRunnable.handleNewSessionRequest(Loca lDistributor.java:423)\n\tat org.openqa.selenium.grid.distributor.local.LocalDistributor$NewSessionRunnable.run(LocalDistributor.java :396)\n\tat java.base\u002fjava.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)\n\tat java.base\u002fjava.util.con current.FutureTask.runAndReset(FutureTask.java:305)\n\tat java.base\u002fjava.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFu tureTask.run(ScheduledThreadPoolExecutor.java:305)\n\tat java.base\u002fjava.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolE xecutor.java:1128)\n\tat java.base\u002fjava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)\n\tat
java.ba se\u002fjava.lang.Thread.run(Thread.java:834)\n","exception.type": "org.openqa.selenium.SessionNotCreatedException","logger": "org.op enqa.selenium.grid.node.config.DriverServiceSessionFactory","session.capabilities": "{\"acceptInsecureCerts\": true,\"browserName\": \"firefox\",\"marionette\": true,\"moz:firefoxOptions\": {\"args\": [ \"-headless\" ], \"prefs\": { } } }\n"}}