ucarno / ow-league-tokens

Bot that farms Overwatch League tokens by pretending you watch league streams
https://discord.gg/kkq2XY4cJM
193 stars 24 forks source link

Startup problem without GUI #67

Closed lettt3t closed 1 year ago

lettt3t commented 1 year ago

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". https://github.com/ucarno/ow-league-tokens/issues/60

lettt3t commented 1 year ago

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 commented 1 year ago

Error is too broad, can't really help here. Have you tried adding --headless argument to config.json file: https://github.com/ucarno/ow-league-tokens/issues/60#issuecomment-1531449064 ?

Th3Kolbask1n commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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: https://github.com/ucarno/ow-league-tokens/issues/63