Size: a a a

Aerokube Support

2021 March 24

DV

Danil Vagapov in Aerokube Support
Если не вдаваться в вопрос зачем, теоретически возможно ли установить такой аргумент? Или нужно создавать кастомный образ?
источник

A

Anton in Aerokube Support
Ivan Krutov
может быть oom
отбой тревоги =) нашли косяк в тесте. А oom наверное был как раз потому, что сессии не закрывались и машинка не справилась
источник

IK

Ivan Krutov in Aerokube Support
Danil Vagapov
Если не вдаваться в вопрос зачем, теоретически возможно ли установить такой аргумент? Или нужно создавать кастомный образ?
firefoxOptions > args
источник

DV

Danil Vagapov in Aerokube Support
Ivan Krutov
firefoxOptions > args
А разве эти аргументы не для самого firefox? Насколько я знаю у geckodriver свои аргументы, и --marionette-port принадлежит именно geckodriver
источник

IK

Ivan Krutov in Aerokube Support
Danil Vagapov
А разве эти аргументы не для самого firefox? Насколько я знаю у geckodriver свои аргументы, и --marionette-port принадлежит именно geckodriver
источник

DV

Danil Vagapov in Aerokube Support
Спасибо
источник

E

Evets in Aerokube Support
hello, i got a problem with selenoid under centos. i deployed selenoid and selenoid-ui according to documentation with docker-compose. selenoid:4444/status seems to give a valid json.
now i got the problem, that i cannot connect selenoid-ui to selenoid and also cannot run tests against selenoid.
источник

АА

Александр Андряшин... in Aerokube Support
Evets
hello, i got a problem with selenoid under centos. i deployed selenoid and selenoid-ui according to documentation with docker-compose. selenoid:4444/status seems to give a valid json.
now i got the problem, that i cannot connect selenoid-ui to selenoid and also cannot run tests against selenoid.
Most probably selinux or firewall issues.
источник

E

Evets in Aerokube Support
firewall is off, selenoid and selenoid-ui run on same host in same compose-file-context.
dont think it can be a firewall issue
источник

E

Evets in Aerokube Support
selenoid-hub]# cat docker-compose.yaml
version: "3"
services:
 selenoid:
   image: aerokube/selenoid
   volumes:
     - "/var/selenoid/selenoid:/etc/selenoid" # reads browsers.json
     - "/var/run/docker.sock:/var/run/docker.sock"
     - "/var/selenoid/selenoid_opt:/opt/selenoid"
   environment:
     - "OVERRIDE_VIDEO_OUTPUT_DIR=/var/selenoid_opt/video"
     - "TZ=Europe/Berlin"
   container_name: selenoid
   command:
     [
       "-conf",
       "/etc/selenoid/browsers.json",
       "-video-output-dir",
       "/var/selenoid/video",
       "-limit",
       "2",
       "-cpu",
       "2.0",
     ]
   ports:
     - 4444:4444
   network_mode: bridge
   restart: always
 selenoid-ui:
     image: aerokube/selenoid-ui
     network_mode: bridge
     links:
       - selenoid
     ports:
       - 83:8080
     command: ["--selenoid-uri", "http://myURL:4444"]
источник

E

Evets in Aerokube Support
curl localhost:4444/status
{"total":2,"used":0,"queued":0,"pending":0,"browsers":{"chrome":{"85":{},"86":{},"87":{}},"firefox":{"82":{},"83":{}}}}
источник

E

Evets in Aerokube Support
Hello. Thats what my compose file does i think
источник

IK

Ivan Krutov in Aerokube Support
command: ["--selenoid-uri", "http://myURL:4444"]
should be http://selenoid:4444
источник

IK

Ivan Krutov in Aerokube Support
regarding running tests need to check whether port 4444 is accessible from outside
источник

E

Evets in Aerokube Support
true. with url-change ui can enter it.
thank you so far.

now i see the start of chrome 87 in ui and in logs.
session gets terminated very fast and i dont know what happens there.


selenoid       | 2021/03/24 11:56:55 [21] [SESSION_ATTEMPTED] [http://172.17.0.5:4444/] [1]
selenoid       | 2021/03/24 11:56:55 [21] [SESSION_CREATED] [5a98fa8cb7ba4c92a412e8e32e8be0e5] [1] [1.00s]
selenoid       | 2021/03/24 11:57:56 [26] [SESSION_TIMED_OUT] [5a98fa8cb7ba4c92a412e8e32e8be0e5]
selenoid       | 2021/03/24 11:57:56 [39] [SESSION_DELETED] [5a98fa8cb7ba4c92a412e8e32e8be0e5]
selenoid       | 2021/03/24 11:58:26 [26] [DELETE_FAILED] [5a98fa8cb7ba4c92a412e8e32e8be0e5] [Delete "http://127.0.0.1:4444/wd/hub/session/5a98fa8cb7ba4c92a412e8e32e8be0e5": context deadline exceeded]


do i need to set some timeout or something?
источник

E

Evets in Aerokube Support
test gives me


org.openqa.selenium.json.JsonException: Expected to read a START_MAP but instead have: END. Last 0 characters read:
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: 'W4DEUMSY9001199', ip: '192.168.136.68', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '12.0.2'
Driver info: driver.version: RemoteWebDriver
       at org.openqa.selenium.json.JsonInput.expect(JsonInput.java:290)
       at org.openqa.selenium.json.JsonInput.beginObject(JsonInput.java:220)
       at org.openqa.selenium.json.MapCoercer.lambda$apply$1(MapCoercer.java:64)
       at org.openqa.selenium.json.JsonTypeCoercer.lambda$null$6(JsonTypeCoercer.java:145)

so i get a connection but run in some kind of problem there.
источник

IK

Ivan Krutov in Aerokube Support
try to run curl -vvv http://<ip>:4444/status from the same machine where you run the test
источник

E

Evets in Aerokube Support
Ivan Krutov
try to run curl -vvv http://<ip>:4444/status from the same machine where you run the test
cannot access the status from my machine. only possible at the moment via ssh.

on docker-host it gives
curl localhost:4444/status
{"total":2,"used":0,"queued":0,"pending":0,"browsers":{"chrome":{"85":{},"86":{},"87":{}},"firefox":{"82":{},"83":{}}}}
источник

IK

Ivan Krutov in Aerokube Support
Evets
cannot access the status from my machine. only possible at the moment via ssh.

on docker-host it gives
curl localhost:4444/status
{"total":2,"used":0,"queued":0,"pending":0,"browsers":{"chrome":{"85":{},"86":{},"87":{}},"firefox":{"82":{},"83":{}}}}
that's the reason
источник

IK

Ivan Krutov in Aerokube Support
Selenium is doing very similar HTTP request
источник