loblab / noip-renew

Auto renew (confirm) noip.com free hosts
Apache License 2.0
435 stars 138 forks source link

Docker : No hosts or host table rows not found #65

Open giorgis1987 opened 3 years ago

giorgis1987 commented 3 years ago

What am i doing wrong here guys??? This is the output:

sudo docker run --network host loblab/selenium:debian XXXXXXX ZZZZZZZZZZZZZZ(base64) 2 [2021/03/27 17:00:40] - Debug level: 2 [2021/03/27 17:00:40] - Opening https://www.noip.com/login... [2021/03/27 17:00:44] - Logging in... [2021/03/27 17:00:48] - Opening https://my.noip.com/#!/dynamic-dns... [2021/03/27 17:00:51] - No hosts or host table rows not found Traceback (most recent call last): File "/home/loblab/noip-renew.py", line 167, in run if not self.update_hosts(): File "/home/loblab/noip-renew.py", line 90, in update_hosts hosts = self.get_hosts() File "/home/loblab/noip-renew.py", line 159, in get_hosts raise Exception("No hosts or host table rows not found") Exception: No hosts or host table rows not found

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/loblab/noip-renew.py", line 200, in sys.exit(main()) File "/home/loblab/noip-renew.py", line 181, in main return (Robot(noip_username, noip_password, debug)).run() File "/home/loblab/noip-renew.py", line 172, in run subprocess.call(['/usr/local/bin/noip-renew-skd.sh', "", "", "False"]) File "/usr/lib/python3.7/subprocess.py", line 323, in call with Popen(*popenargs, **kwargs) as p: File "/usr/lib/python3.7/subprocess.py", line 775, in init restore_signals, start_new_session) File "/usr/lib/python3.7/subprocess.py", line 1522, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/bin/noip-renew-skd.sh': '/usr/local/bin/noip-renew-skd.sh'

hugoKs3 commented 3 years ago

Same problem from my side... It seems the no-ip website is long to respond and the "sleep" of 1sec between login and get hosts is not enough. I increased the sleep to 5 seconds and it worked.

giorgis1987 commented 3 years ago

I assume that you mean the "sleep" lines (3 of them) in noip-renew.py file. I did changed them to (5) but it didnt wotk for me... Any other ideas?

hugoKs3 commented 3 years ago

Sorry, no other idea... it worked for me...

sohaoo commented 3 years ago

You should use setup.sh to install, and finally use /usr/local/bin/noip-renew-xxx.sh to execute the program

FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/bin/noip-renew-skd.sh': '/usr/local/bin/noip-renew-skd.sh'

giorgis1987 commented 3 years ago

i had the same issue once using ubuntu server with lxqt de on top. The problem was solved when i manually created the local/bin folder that was missing. Then i run the setup.sh again and everything went smoothly while executing the binary. Another, but more complexing thing would be to change the install directory from within the script to something else, lets say "sbin" but i dont recommend it.

philippemiron commented 3 years ago

I'm also getting this error, if you look at the debug png, it shows:

reCAPTCHA failed, you will need to successfully complete reCAPTCHA before loggin in.

peterchs commented 3 years ago

Haven't seen reCAPTCHA here, either at runtime of script or manually.

Although I had seen evidence of possible reCAPTCHA when I was looking at #68.

Probably game over if they've turned on reCAPTCHA :(

philippemiron commented 3 years ago

See my debug2.png following this debug messages:

[2021/05/14 16:28:36] - Debug level: 2
[2021/05/14 16:28:36] - Opening https://www.noip.com/login...
[2021/05/14 16:28:43] - Logging in...
[2021/05/14 16:28:52] - Opening https://my.noip.com/#!/dynamic-dns...
[2021/05/14 16:28:56] - No hosts or host table rows not found

For some reasons when I login manually I never get this reCAPTCHA..

debug2

arooni commented 3 years ago

same here. evil capcha. stupid linksys for only giving me noip :(

peterchs commented 3 years ago

Yup noip-renew failed now for me too, script can’t login due to reCAPCHA. That’s that then :(

sohaoo commented 3 years ago

my temporary solution to the reCAPCHA problem is to use the server IP to log in to noip normally. After the reCAPCHA is verified, the verification will not be issued for a period of time. You can try it.

philippemiron commented 3 years ago

It didn't work for me but I don't have physical access to the machine and use it through a VPN so that might cause an issue.

my temporary solution to the reCAPCHA problem is to use the server IP to log in to noip normally. After the reCAPCHA is verified, the verification will not be issued for a period of time. You can try it.