-
Notifications
You must be signed in to change notification settings - Fork 119
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
Could not connect to RPi #29
Comments
I have the same problem |
Hi, as per the documents initialize command is for checking and updating scan.py. Use start command to start the cluster. |
I found the problem. The program is trying to run the command "ssh-copy-id {'address': '[email protected]', 'notes': '83', 'wlan': 'wlan1'}" but ssh-copy-id can't take {...} as an argument. I'm not sure what happened there but if you remove that part of the code, it will work. |
let me try this |
When execute the cluster.py start this same raspberry don't run the scan.py program but the others yes. That it's normal? Best Regards |
This is a mistake in the script Line 375 in f17ca7e
is feeding a JSON object to To fix it simply change the code like here and it should work again. |
As explained here: schollz#29 (comment)
I get the same error. I also change the address to pi and another error occur, name address is not define. Please help. |
Make sure that you changed both lines 377 and 379 in the original cluster.py correctly (as described here). Otherwise I'm afraid your error is of a different nature as originally described in this thread. |
Thank you for replying. Below is the changes that I have done
Below is the error message I got when running the code Traceback (most recent call last): |
As explained here: schollz#29 (comment) schollz#29 (comment)
Ah, I forgot to change the print(...) argument to About your error though: |
I think so too. Thanks for the tips. |
This is a great project, that being said, there are a few quirks (not really quirks but just normal config things) that need a bit of explaining, if you get the could not connect error, read these tips... Idea: The "master" connects to the "slaves" via ssh and executes a python script (scan.py), for this to work there needs to be a passwordless connection with ssh and in addition the user connecting needs to be able to sudo without a password. Issue: Could not connect. For me this happened because I didn't have SSH setup right to allow logins without a password. Could not start also occurs when there is no scan.py file or no privileges. You can circumvent the initialization script and just manually prepare each raspberry pi, I had to do this running "Kali Pi" because the premade scripts didn't work. In my case I was using a non-pi master and two pi zero w's as slaves. Here is how I got it to work:
Note: This is insecure if these devices have potential remote access. You may consider adding your own group instead. In my case this was fine ....
You should see each slave pi respond and either start the service or say it's already running! |
Two more things to add, on my setup even though it responded well it did not actually get any scan results, I logged into the slave pi's and manually ran the wireshark command that scan.py runs to debug and saw the issue is permissions. I had to do the following on each slave pi: sudo dpkg-reconfigure wireshark-common When prompted to allow non-superusers select YES/ALLOW then run: sudo chmod +x /usr/bin/dumpcap Reboot the slave pis and restart the scan on the cluster. |
When I try running python3 cluster.py initialize, I get "Could not connect to {'address': 'pi@..., 'notes': 'Test', 'wlan': 'wlan0'}"
Any way to debug this? Thank you.
The text was updated successfully, but these errors were encountered: