Tough relationships with SITL (Out of ideas)

108 views
Skip to first unread message

copter_pro

unread,
Jul 13, 2016, 7:55:30 PM7/13/16
to drones-discuss
Hi,

I always wanted to try out SITL feature of ArduCopter. I had done exactly as written here: http://ardupilot.org/dev/docs/setting-up-sitl-using-vagrant.html

I managed to do "vagrant up", but I can't launch sim_vehicle.sh:

- if I try

     vagrant ssh
     sudo /vagrant/Tools/autotest/sim_vehicle.sh


I get that this command cannot be found

- if I try

     vagrant ssh -c "sim_vehicle.sh -j 2"

I also get that this command not found

- if I try launch from cmd, my make.exe or readlink.exe "Does not respond" is shown


I honestly read all possible answers online and still do not figure out what is wrong here

Regards









copter_pro

unread,
Jul 13, 2016, 8:33:32 PM7/13/16
to drones-discuss
Vagrant up stacktrace:

Microsoft Windows [Version 6.1.7601]
(c) Корпорация Майкрософт (Microsoft Corp.), 2009. Все права защищены.

C:\Windows\system32>E:

E:\>cd E:\MyProjects\ArduPilot\ardupilot\Tools\vagrant

E:\MyProjects\ArduPilot\ardupilot\Tools\vagrant>vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'ubuntu/trusty32' is up to date...
==> default: A newer version of the box 'ubuntu/trusty32' is available! You curr
ently
==> default: have version '20160708.1.1'. The latest is version '20160708.1.2'.
Run
==> default: `vagrant box update` to update.
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
==> default: Forwarding ports...
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
    default: The guest additions on this VM do not match the installed version o
f
    default: VirtualBox! In most cases this is fine, but in rare cases it can
    default: prevent things such as shared folders from working properly. If you
 see
    default: shared folder errors, please make sure the guest additions within t
he
    default: virtual machine match the version of VirtualBox you have installed
on
    default: your host and reload your VM.
    default:
    default: Guest Additions Version: 4.3.36
    default: VirtualBox Version: 5.0
==> default: Rsyncing folder: /e/MyProjects/ArduPilot/ardupilot/ => /vagrant
There was an error when attempting to rsync a synced folder.
Please inspect the error message below for more info.

Host path: /e/MyProjects/ArduPilot/ardupilot/
Guest path: /vagrant
Command: "rsync" "--verbose" "--archive" "--delete" "-z" "--copy-links" "--chmod
=ugo=rwX" "--no-perms" "--no-owner" "--no-group" "--rsync-path" "sudo rsync" "-e
" "ssh -p 2222 -o ControlMaster=auto -o ControlPath=C:/Users/Shafir/AppData/Loca
l/Temp/ssh.620 -o ControlPersist=10m -o StrictHostKeyChecking=no -o IdentitiesOn
ly=true -o UserKnownHostsFile=/dev/null -i 'E:/MyProjects/ArduPilot/ardupilot/.v
agrant/machines/default/virtualbox/private_key'" "--exclude" ".vagrant/" "/e/MyP
rojects/ArduPilot/ardupilot/" "vag...@127.0.0.1:/vagrant"
Error: command-line: line 0: Bad configuration option: ControlPersist
rsync: read error: Connection reset by peer (104)
rsync error: unexplained error (code 255) at /usr/src/rsync/rsync-3.0.8/io.c(760
) [sender=3.0.8]

E:\MyProjects\ArduPilot\ardupilot\Tools\vagrant>vagrant ssh
Welcome to Ubuntu 14.04.4 LTS (GNU/Linux 3.13.0-91-generic i686)

 * Documentation:  https://help.ubuntu.com/

  System information as of Thu Jul 14 00:25:54 UTC 2016

  System load:  0.73              Processes:           85
  Usage of /:   3.3% of 39.34GB   Users logged in:     0
  Memory usage: 3%                IP address for eth0: 10.0.2.15
  Swap usage:   0%

  Graph this data and manage this system at:
    https://landscape.canonical.com/

  Get cloud support with Ubuntu Advantage Cloud Guest:
    http://www.ubuntu.com/business/services/cloud

0 packages can be updated.
0 updates are security updates.


Last login: Thu Jul 14 00:09:30 2016 from 10.0.2.2
vagrant@vagrant-ubuntu-trusty-32:~$ sudo ls -Ra /vagrant
/vagrant:
.  ..
vagrant@vagrant-ubuntu-trusty-32:~$ exit
logout
Connection to 127.0.0.1 closed.

E:\MyProjects\ArduPilot\ardupilot\Tools\vagrant>


четверг, 14 июля 2016 г., 2:55:30 UTC+3 пользователь copter_pro написал:

Peter Barker

unread,
Jul 13, 2016, 8:53:46 PM7/13/16
to drones-discuss



> " "ssh -p 2222 -o ControlMaster=auto -o
> ControlPath=C:/Users/Shafir/AppData/Loca
> l/Temp/ssh.620 -o ControlPersist=10m -o StrictHostKeyChecking=no -o
> IdentitiesOn
> ly=true -o UserKnownHostsFile=/dev/null -i
> 'E:/MyProjects/ArduPilot/ardupilot/.v
> agrant/machines/default/virtualbox/private_key'" "--exclude" ".vagrant/"
> "/e/MyP
> rojects/ArduPilot/ardupilot/" "vag...@127.0.0.1:/vagrant"
> Error: command-line: line 0: Bad configuration option: ControlPersist
> rsync: read error: Connection reset by peer (104)

Well, that's your problem - your version of ssh doesn't support an option
being passed to it.

You  might try updating the version of ssh you have installed.

Peter

George Farris

unread,
Jul 13, 2016, 9:05:25 PM7/13/16
to drones-...@googlegroups.com
Umm "ssh vagrant" not vagrant ssh

ssh is a secure shell command, vagrant would be the hostname.

The man page for ssh:   http://linux.die.net/man/1/ssh
 

--
You received this message because you are subscribed to the Google Groups "drones-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drones-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hunter McClelland

unread,
Jul 13, 2016, 9:29:45 PM7/13/16
to drones-...@googlegroups.com
George, I'm not so sure... https://www.vagrantup.com/docs/cli/ssh.html

Looks like "vagrant ssh" is a type of vagrant command, perhaps?

George Farris

unread,
Jul 13, 2016, 11:32:40 PM7/13/16
to drones-...@googlegroups.com
Sorry yes I was technically correct about the ssh command but this is different.  I apologise for the false info.  I assumed he was just making a standard ssh connection.

Thanks for correcting me.

Sasha Sh

unread,
Jul 14, 2016, 3:26:49 AM7/14/16
to drones-...@googlegroups.com
Hi,

I found that MinGW ships with version that does not support ControlPersist (v 5.4), so I deleted ssh from MinGW and instead changed PATH to point to Git folder, so that correct ssh is picked (6.6)

However, right now instead of Error I am pointed to dumpfile, which I attached here

You received this message because you are subscribed to a topic in the Google Groups "drones-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/drones-discuss/gKGO7jZxP8k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to drones-discus...@googlegroups.com.
ssh.exe.stackdump

Peter Barker

unread,
Jul 14, 2016, 4:21:35 AM7/14/16
to drones-discuss

On Thursday, July 14, 2016 at 5:26:49 PM UTC+10, copter_pro wrote:
Hi,

I found that MinGW ships with version that does not support ControlPersist (v 5.4), so I deleted ssh from MinGW and instead changed PATH to point to Git folder, so that correct ssh is picked (6.6)

However, right now instead of Error I am pointed to dumpfile, which I attached here

This page says you might want to upgrade "git for windows":https://github.com/msysgit/msysgit/issues/25

Peter


 

copter_pro

unread,
Jul 14, 2016, 6:23:12 AM7/14/16
to drones-discuss
Already upgraded Git, now facing new error

I am sorry to close this issue as it introduces much mess and makes it hard to understand for other people. I opened new one, see http://bit.ly/29S37Zo

четверг, 14 июля 2016 г., 11:21:35 UTC+3 пользователь Peter Barker написал:

Peter Barker

unread,
Jul 15, 2016, 8:01:24 PM7/15/16
to drones-discuss

Sasha Sh

unread,
Jul 16, 2016, 3:14:03 PM7/16/16
to drones-...@googlegroups.com

Hi Peter,

Thanks for your reply!

Already tried that approach, it did not help.

Hunter McClelland advised me to move Arducopter folder to C: drive, where Vagrant is located.

Alongside with it, I opted to shared folders, so I do not know what did the trick, but my SITL started to work!

Thanks again for your time and attention.

Regards,
Alex Shafir


16 июля 2016 г. 3:01 пользователь "Peter Barker" <blar...@gmail.com> написал:

Nitay Megides

unread,
Jul 19, 2016, 12:53:27 AM7/19/16
to drones-discuss
Hi!

Not directly what you meant, but I'm more fond of using SITL with python & dronekit, like in here:
It's basically a one liner for making it work, and it worked for me out of the box on Windows & Ubuntu.

The examples page has full working example:

Good luck!
Nitay
Reply all
Reply to author
Forward
0 new messages