Closed realies closed 1 year ago
ciao @realies it works for me but make sure you read the "Usage with Docker" part of the README.md, you need to pass base64 encoded password, not your password directly.
thanks for the reply; it crashes like this:
docker run --rm --network host moebiuss/noip-renew asdf@mail.com c2VjcmV0 2
[2023/04/19 19:21:28] - Debug level: 2
[2023/04/19 19:21:28] - Opening https://www.noip.com/login...
[2023/04/19 19:21:31] - Logging in...
[2023/04/19 19:21:34] - Message: unknown error: session deleted because of page crash
from unknown error: cannot determine loading status
from tab crashed
(Session info: headless chrome=99.0.4844.84)
Stacktrace:
#0 0x556cb3a8bc43 <unknown>
#1 0x556cb37a28b1 <unknown>
#2 0x556cb378d9a7 <unknown>
#3 0x556cb378d2b3 <unknown>
#4 0x556cb378c73b <unknown>
#5 0x556cb378b649 <unknown>
#6 0x556cb378bc69 <unknown>
#7 0x556cb378bba5 <unknown>
#8 0x556cb3792e04 <unknown>
#9 0x556cb3792ff6 <unknown>
#10 0x556cb378cfc9 <unknown>
#11 0x556cb378d6c2 <unknown>
#12 0x556cb378d2b3 <unknown>
#13 0x556cb378c73b <unknown>
#14 0x556cb378b649 <unknown>
#15 0x556cb378bc69 <unknown>
#16 0x556cb379f928 <unknown>
#17 0x556cb37a01c2 <unknown>
#18 0x556cb37aa6cf <unknown>
#19 0x556cb37adbba <unknown>
#20 0x556cb378bfc6 <unknown>
#21 0x556cb37aa36b <unknown>
#22 0x556cb3811875 <unknown>
#23 0x556cb37fed43 <unknown>
#24 0x556cb37ce06b <unknown>
#25 0x556cb37cf89e <unknown>
#26 0x556cb3ab760d <unknown>
#27 0x556cb3ac95a8 <unknown>
#28 0x556cb3ac9306 <unknown>
#29 0x556cb3ac9b12 <unknown>
#30 0x556cb3ab8b2b <unknown>
#31 0x556cb3ac9d91 <unknown>
#32 0x556cb3aad629 <unknown>
#33 0x556cb3ae0975 <unknown>
#34 0x556cb3ae0b13 <unknown>
#35 0x556cb3afaa51 <unknown>
#36 0x14a0413aaea7 <unknown>
Traceback (most recent call last):
File "/home/loblab/noip-renew.py", line 195, in run
self.login()
File "/home/loblab/noip-renew.py", line 90, in login
ele_pwd.send_keys(Keys.ENTER)
File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/remote/webelement.py", line 540, in send_keys
self._execute(Command.SEND_KEYS_TO_ELEMENT,
File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/remote/webelement.py", line 710, in _execute
return self._parent.execute(command, params)
File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/remote/webdriver.py", line 425, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/remote/errorhandler.py", line 247, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: session deleted because of page crash
from unknown error: cannot determine loading status
from tab crashed
(Session info: headless chrome=99.0.4844.84)
Stacktrace:
#0 0x556cb3a8bc43 <unknown>
#1 0x556cb37a28b1 <unknown>
#2 0x556cb378d9a7 <unknown>
#3 0x556cb378d2b3 <unknown>
#4 0x556cb378c73b <unknown>
#5 0x556cb378b649 <unknown>
#6 0x556cb378bc69 <unknown>
#7 0x556cb378bba5 <unknown>
#8 0x556cb3792e04 <unknown>
#9 0x556cb3792ff6 <unknown>
#10 0x556cb378cfc9 <unknown>
#11 0x556cb378d6c2 <unknown>
#12 0x556cb378d2b3 <unknown>
#13 0x556cb378c73b <unknown>
#14 0x556cb378b649 <unknown>
#15 0x556cb378bc69 <unknown>
#16 0x556cb379f928 <unknown>
#17 0x556cb37a01c2 <unknown>
#18 0x556cb37aa6cf <unknown>
#19 0x556cb37adbba <unknown>
#20 0x556cb378bfc6 <unknown>
#21 0x556cb37aa36b <unknown>
#22 0x556cb3811875 <unknown>
#23 0x556cb37fed43 <unknown>
#24 0x556cb37ce06b <unknown>
#25 0x556cb37cf89e <unknown>
#26 0x556cb3ab760d <unknown>
#27 0x556cb3ac95a8 <unknown>
#28 0x556cb3ac9306 <unknown>
#29 0x556cb3ac9b12 <unknown>
#30 0x556cb3ab8b2b <unknown>
#31 0x556cb3ac9d91 <unknown>
#32 0x556cb3aad629 <unknown>
#33 0x556cb3ae0975 <unknown>
#34 0x556cb3ae0b13 <unknown>
#35 0x556cb3afaa51 <unknown>
#36 0x14a0413aaea7 <unknown>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/loblab/noip-renew.py", line 232, in <module>
sys.exit(main())
File "/home/loblab/noip-renew.py", line 213, in main
return (Robot(noip_username, noip_password, debug)).run()
File "/home/loblab/noip-renew.py", line 200, in run
self.browser.save_screenshot("exception.png")
File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/remote/webdriver.py", line 1346, in save_screenshot
return self.get_screenshot_as_file(filename)
File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/remote/webdriver.py", line 1321, in get_screenshot_as_file
png = self.get_screenshot_as_png()
File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/remote/webdriver.py", line 1357, in get_screenshot_as_png
return b64decode(self.get_screenshot_as_base64().encode('ascii'))
File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/remote/webdriver.py", line 1369, in get_screenshot_as_base64
return self.execute(Command.SCREENSHOT)['value']
File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/remote/webdriver.py", line 425, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/remote/errorhandler.py", line 247, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.InvalidSessionIdException: Message: invalid session id
Stacktrace:
#0 0x556cb3a8bc43 <unknown>
#1 0x556cb37a28b1 <unknown>
#2 0x556cb37cdaeb <unknown>
#3 0x556cb37cf89e <unknown>
#4 0x556cb3ab760d <unknown>
#5 0x556cb3ac95a8 <unknown>
#6 0x556cb3ac9306 <unknown>
#7 0x556cb3ac9b12 <unknown>
#8 0x556cb3ab8b2b <unknown>
#9 0x556cb3ac9d91 <unknown>
#10 0x556cb3aad629 <unknown>
#11 0x556cb3ae0975 <unknown>
#12 0x556cb3ae0b13 <unknown>
#13 0x556cb3afaa51 <unknown>
#14 0x14a0413aaea7 <unknown>
sorry, missed the --shm-size=512m
part; all works now, thanks!