Size: a a a

Aerokube Support

2020 July 29

BK

Bohdan Kruk in Aerokube Support
Ivan Krutov
разницы в количестве лицензий нет, оно зависит от параллельности
спасибо
источник

IK

Ivan Krutov in Aerokube Support
andrey
добрый день а вы по поводу Selenoid можете подсказать? делаю по статье https://habr.com/ru/post/329256/    

правильно ли я понимаю,что я могу подключится с другого хоста и запустить джобу ?
да, Selenium работает по HTTP, можно и удаленно команды слать
источник

BK

Bohdan Kruk in Aerokube Support
Ivan Krutov
а вот в Docker если хотите, то нужно железо или специальные виртуалки
не совсем понял, специальные виртуалки это докер імеджи
источник

IK

Ivan Krutov in Aerokube Support
нет, это виртуалки, в которых включена вложенная виртуализация и доступен /de/kvm
источник

IK

Ivan Krutov in Aerokube Support
источник

BK

Bohdan Kruk in Aerokube Support
ок
источник

IK

Ivan Krutov in Aerokube Support
в AWS, например, таких нет
источник

a

andrey in Aerokube Support
Ivan Krutov
да, Selenium работает по HTTP, можно и удаленно команды слать
при создании сессии в логе 500 ошибка , есть идеи?
источник

IK

Ivan Krutov in Aerokube Support
andrey
при создании сессии в логе 500 ошибка , есть идеи?
есть идея написать больше подробностей
источник

IK

Ivan Krutov in Aerokube Support
то что вы пишите - это то же самое, что "у меня ничего не работает, помогите"
источник

IK

Ivan Krutov in Aerokube Support
давайте деталей, попробуем помочь
источник

IK

Ivan Krutov in Aerokube Support
хотя бы текст ошибки
источник

a

andrey in Aerokube Support
согласен
источник

a

andrey in Aerokube Support
в логах селеноида такой кусок

020/07/29 17:25:32 [-] [NEW_REQUEST] [unknown] [172.30.238.119]
2020/07/29 17:25:32 [-] [NEW_REQUEST_ACCEPTED] [unknown] [172.30.238.119]
2020/07/29 17:25:32 [18] [LOCATING_SERVICE] [internet explorer] [11]
2020/07/29 17:25:32 [18] [USING_DRIVER] [internet explorer] [11]
2020/07/29 17:25:32 [18] [ALLOCATING_PORT]
2020/07/29 17:25:32 [19] [VIDEO_ERROR] [Failed to list directory : open video: The system cannot find the file specified.]
2020/07/29 17:25:32 [18] [ALLOCATED_PORT] [54454]
2020/07/29 17:25:32 [18] [STARTING_PROCESS] [[C:\selen\headless_ie_selenium.exe --port=54454]]
2020/07/29 17:25:33 [18] [PROCESS_STARTED] [6400] [0.51s]
2020/07/29 17:25:33 [18] [PROXY_TO] [http://127.0.0.1:54454]
2020/07/29 17:25:33 [18] [SESSION_ATTEMPTED] [http://127.0.0.1:54454] [1]
2020/07/29 17:25:37 [20] [VIDEO_ERROR] [Failed to list directory : open video: The system cannot find the file specified.]
2020/07/29 17:25:42 [21] [VIDEO_ERROR] [Failed to list directory : open video: The system cannot find the file specified.]
2020/07/29 17:25:47 [22] [VIDEO_ERROR] [Failed to list directory : open video: The system cannot find the file specified.]
2020/07/29 17:25:52 [23] [VIDEO_ERROR] [Failed to list directory : open video: The system cannot find the file specified.]
2020/07/29 17:25:57 [24] [VIDEO_ERROR] [Failed to list directory : open video: The system cannot find the file specified.]
2020/07/29 17:26:02 [25] [VIDEO_ERROR] [Failed to list directory : open video: The system cannot find the file specified.]
2020/07/29 17:26:03 [18] [SESSION_ATTEMPT_TIMED_OUT] [30s]
2020/07/29 17:26:03 [18] [SESSION_FAILED] [http://127.0.0.1:54454] [New session attempts retry count exceeded]
2020/07/29 17:26:03 [18] [TERMINATING_PROCESS] [6400]
2020/07/29 17:26:03 [18] [TERMINATED_PROCESS] [6400] [0.01s]
2020/07/29 17:26:07 [26] [VIDEO_ERROR] [Failed to list directory : open video: The system cannot find the file specified.]
2020/07/29 17:26:12 [27] [VIDEO_ERROR] [Failed to list directory : open video: The system cannot find the file specified.]
2020/07/29 17:26:17 [-] [NEW_REQUEST] [unknown] [172.30.238.119]
2020/07/29 17:26:17 [-] [NEW_REQUEST_ACCEPTED] [unknown] [172.30.238.119]
2020/07/29 17:26:17 [28] [LOCATING_SERVICE] [internet explorer] [11]
2020/07/29 17:26:17 [28] [USING_DRIVER] [internet explorer] [11]
2020/07/29 17:26:17 [28] [ALLOCATING_PORT]
2020/07/29 17:26:17 [28] [ALLOCATED_PORT] [54459]
2020/07/29 17:26:17 [28] [STARTING_PROCESS] [[C:\selen\headless_ie_selenium.exe --port=54459]]
2020/07/29 17:26:17 [29] [VIDEO_ERROR] [Failed to list directory : open video: The system cannot find the file specified.]
2020/07/29 17:26:18 [28] [PROCESS_STARTED] [2204] [0.51s]
2020/07/29 17:26:18 [28] [PROXY_TO] [http://127.0.0.1:54459]
2020/07/29 17:26:18 [28] [SESSION_ATTEMPTED] [http://127.0.0.1:54459] [1]
2020/07/29 17:26:22 [30] [VIDEO_ERROR] [Failed to list directory : open video: The system cannot find the file specified.]
2020/07/29 17:26:27 [31] [VIDEO_ERROR] [Failed to list directory : open video: The system cannot find the file specified.]
2020/07/29 17:26:32 [32] [VIDEO_ERROR] [Failed to list directory : open video: The system cannot find the file specified.]
2020/07/29 17:26:37 [33] [VIDEO_ERROR] [Failed to list directory : open video: The system cannot find the file specified.]
2020/07/29 17:26:42 [34] [VIDEO_ERROR] [Failed to list directory : open video: The system cannot find the file specified.]
2020/07/29 17:26:47 [35] [VIDEO_ERROR] [Failed to list directory : open video: The system cannot find the file specified.]
2020/07/29 17:26:48 [28] [SESSION_ATTEMPT_TIMED_OUT] [30s]
2020/07/29 17:26:48 [28] [SESSION_FAILED] [http://127.0.0.1:54459] [New session attempts retry count exceeded]
2020/07/29 17:26:48 [28] [TERMINATING_PROCESS] [2204]
2020/07/29 17:26:48 [28] [TERMINATED_PROCESS] [2204] [0.01s]
2020/07/29 17:26:50 [-] [NEW_REQUEST] [unknown] [172.30.238.119]
2020/07/29 17:26:50 [-] [NEW_REQUEST_ACCEPTED] [unknown] [172.30.238.119]
2020/07/29 17:26:50 [36] [LOCATING_SERVICE] [internet explorer] [11]
источник

a

andrey in Aerokube Support
2020/07/29 17:26:50 [36] [USING_DRIVER] [internet explorer] [11]
2020/07/29 17:26:50 [36] [ALLOCATING_PORT]
2020/07/29 17:26:50 [36] [ALLOCATED_PORT] [54464]
2020/07/29 17:26:50 [36] [STARTING_PROCESS] [[C:\selen\headless_ie_selenium.exe --port=54464]]

в выводе питона

~/stableEnv/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py in init(self, command_executor, desired_capabilities, browser_profile, proxy, keep_alive, file_detector, options)
   155             warnings.warn("Please use FirefoxOptions to set browser profile",
   156                           DeprecationWarning, stacklevel=2)
--> 157         self.start_session(capabilities, browser_profile)
   158         self._switch_to = SwitchTo(self)
   159         self._mobile = Mobile(self)

~/stableEnv/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py in start_session(self, capabilities, browser_profile)
   250         parameters = {"capabilities": w3c_caps,
   251                       "desiredCapabilities": capabilities}
--> 252         response = self.execute(Command.NEW_SESSION, parameters)
   253         if 'sessionId' not in response:
   254             response = response['value']

~/stableEnv/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py in execute(self, driver_command, params)
   319         response = self.command_executor.execute(driver_command, params)
   320         if response:
--> 321             self.error_handler.check_response(response)
   322             response['value'] = self._unwrap_value(
   323                 response.get('value', None))

~/stableEnv/lib/python3.8/site-packages/selenium/webdriver/remote/errorhandler.py in check_response(self, response)
   240                 alert_text = value['alert'].get('text')
   241             raise exception_class(message, screen, stacktrace, alert_text)
--> 242         raise exception_class(message, screen, stacktrace)
   243
   244     def _value_or_default(self, obj, key, default):

WebDriverException: Message: New session attempts retry count exceeded
источник

a

andrey in Aerokube Support
это с использование headless_ie_selenium.exe в конфиге
источник

a

andrey in Aerokube Support
если без него ,работает
источник

a

andrey in Aerokube Support
вроде все по статье
источник

a

andrey in Aerokube Support
источник

a

andrey in Aerokube Support
т.е. при рабочем конфигурации я просто заменил IEDriverServer.exe на headless_ie_selenium.exe в конфиге browsers.json и перезапустил
источник