marceluda / rp_lock-in_pid

Lock-in and PID application for RedPitaya enviroment
https://marceluda.github.io/rp_lock-in_pid/
GNU General Public License v3.0
41 stars 22 forks source link

Cannot resolve hostname when using automatic upload #2

Open vivekh99 opened 5 years ago

vivekh99 commented 5 years ago

when using the automatic upload command, ./upload_app.sh rp-XXXXXX.local

I get the error /usr/bin/ssh-copy-id: ERROR: ssh: Could not resolve hostname rp-f06f76.local: Name or service not known

has anyone else encountered this? My RedPitaya is connected to my computer via ethernet cable

iqjheine commented 5 years ago

Hi vivekh99, just to make sure, you can connect to your redpitaya manually (e.g. ssh)? Maybe try the script with the ip adress of your stemlab instead. As a workaround, you may try to upload the app via scp to your redpitaya as described in the readme file.

Also, you can use your own SSH client and upload the lock-in+pid folder the the RedPiaya folder: /opt/redpitaya/www/apps

More info how to do that here. For a more specific answer I would need to know more abour your network architecture.

vivekh99 commented 5 years ago

Hi iqjheine,

Using the IP address solved the problem. Using the above command but with the IP address instead of rp-XXXXXX.local. I connected the red pitaya ethernet cable to a router instead of the laptop while doing this.

any reason for why this worked and why using the local hostname didnt work?

Thanks for your earlier response