Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Startup problem without GUI #67

Closed
lettt3t opened this issue May 4, 2023 · 6 comments
Closed

Startup problem without GUI #67

lettt3t opened this issue May 4, 2023 · 6 comments

Comments

@lettt3t
Copy link

lettt3t commented May 4, 2023

I'm trying to run it on a server without a GUI, I've created the profiles beforehand, but even so I get the same errors when using "headless".
#60

@lettt3t
Copy link
Author

lettt3t commented May 8, 2023

Message: unknown error: cannot connect to chrome at 127.0.0.1:43149
from chrome not reachable
Stacktrace:
#0 0x562f40247133
#1 0x562f3ff7b7f0
#2 0x562f3ff69656
#3 0x562f3ffa8f60
#4 0x562f3ffa0932
#5 0x562f3ffe09ad
#6 0x562f3ffe018f
#7 0x562f3ffd79a3
#8 0x562f3ffac46a
#9 0x562f3ffad55e
#10 0x562f40206cae
#11 0x562f4020a8fe
#12 0x562f40213f20
#13 0x562f4020b923
#14 0x562f401dec0e
#15 0x562f4022eb08
#16 0x562f4022ec97
#17 0x562f4023f113
#18 0x7f383825c609 start_thread

Traceback (most recent call last):
File "/home/vps/test1/src/app.py", line 310, in bootstrap
start_chrome(config)
File "/home/vps/test1/src/app.py", line 150, in start_chrome
drivers.append(get_driver(profile, config))
File "/home/vps/test1/src/app.py", line 104, in get_driver
raise e
File "/home/vps/test1/src/app.py", line 59, in get_driver
driver = uc.Chrome(**kwargs)
File "/usr/local/lib/python3.10/site-packages/undetected_chromedriver/init.py", line 441, in init
super(Chrome, self).init(
File "/usr/local/lib/python3.10/site-packages/selenium/webdriver/chrome/webdriver.py", line 84, in init
super().init(
File "/usr/local/lib/python3.10/site-packages/selenium/webdriver/chromium/webdriver.py", line 104, in init
super().init(
File "/usr/local/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 286, in init
self.start_session(capabilities, browser_profile)
File "/usr/local/lib/python3.10/site-packages/undetected_chromedriver/init.py", line 704, in start_session
super(selenium.webdriver.chrome.webdriver.WebDriver, self).start_session(
File "/usr/local/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 378, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/usr/local/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 440, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.10/site-packages/selenium/webdriver/remote/errorhandler.py", line 245, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: cannot connect to chrome at 127.0.0.1:43149
from chrome not reachable
Stacktrace:
#0 0x562f40247133
#1 0x562f3ff7b7f0
#2 0x562f3ff69656
#3 0x562f3ffa8f60
#4 0x562f3ffa0932
#5 0x562f3ffe09ad
#6 0x562f3ffe018f
#7 0x562f3ffd79a3
#8 0x562f3ffac46a
#9 0x562f3ffad55e
#10 0x562f40206cae
#11 0x562f4020a8fe
#12 0x562f40213f20
#13 0x562f4020b923
#14 0x562f401dec0e
#15 0x562f4022eb08
#16 0x562f4022ec97
#17 0x562f4023f113
#18 0x7f383825c609 start_thread

@ucarno
Copy link
Owner

ucarno commented May 8, 2023

Error is too broad, can't really help here. Have you tried adding --headless argument to config.json file: #60 (comment) ?

@Th3Kolbask1n
Copy link

Error is too broad, can't really help here. Have you tried adding --headless argument to config.json file: #60 (comment) ?

i have this problem again. nothing helps anymore

@lettt3t
Copy link
Author

lettt3t commented May 10, 2023

I tried to run differently. In the end, it didn't work. Having installed the xfce and vnc shell for remote access, after authorization in the browser, I already managed to launch it in console form. As I understand it, after the transfer of profiles, everything stops working.


Я пытался по-разному запустить. По итогу, никак не получалось. Поставив оболочку xfce и vnc для удаленного доступа, после авторизации в браузере, у меня получилось запустить в консольном виде. Как понимаю, после переноса профилей, все перестает работать.

@Th3Kolbask1n
Copy link

I tried to run differently. In the end, it didn't work. Having installed the xfce and vnc shell for remote access, after authorization in the browser, I already managed to launch it in console form. As I understand it, after the transfer of profiles, everything stops working.

Я пытался по-разному запустить. По итогу, никак не получалось. Поставив оболочку xfce и vnc для удаленного доступа, после авторизации в браузере, у меня получилось запустить в консольном виде. Как понимаю, после переноса профилей, все перестает работать.

Да, заметил, что первый раз она запускается и даже работает. Но при переносе профилей виснет

@ucarno
Copy link
Owner

ucarno commented May 13, 2023

Current "solution" is to install GUI and VNC into the GUI. Headless on Linux without a GUI will not be supported as it requires some tweaks, but I am willing to support it through Docker.

Contribute to/track this issue here: #63

@ucarno ucarno closed this as not planned Won't fix, can't repro, duplicate, stale May 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants