Skip to content
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

Vagrant up issue / Error : SCP did not finish successfully (255): (Net::SCP::Error) #54

Closed
guhanwe opened this issue Jan 22, 2021 · 1 comment

Comments

@guhanwe
Copy link

guhanwe commented Jan 22, 2021

Hello All,

I am facing the below mentioned issue when trying to VAGRANT UP using Git-Bash. Kindly do the needful to resolve this issue.

Operating System : Windows 10 Pro - 20H2 (19042.631)
Vagrant - 2.2.14
Oracle Virtualbox - Version 6.1.14 r140239

Thanks in advance.

$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'vagdebianbox'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: buildtest_default_1611297810775_76100
==> 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: 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:
    default: Vagrant insecure key detected. Vagrant will automatically replace
    default: this with a newly generated keypair for better security.
    default:
    default: Inserting generated public key within guest...
==> default: Attempting graceful shutdown of VM...
==> default: Destroying VM and associated drives...
C:/HashiCorp/Vagrant/embedded/gems/2.2.14/gems/net-scp-1.2.1/lib/net/scp.rb:365:in `block (3 levels) in start_command': SCP did not finish successfully (255):  (Net::SCP::Error)
        from C:/HashiCorp/Vagrant/embedded/gems/2.2.14/gems/net-ssh-6.2.0.rc1/lib/net/ssh/connection/channel.rb:611:in `do_close'
        from C:/HashiCorp/Vagrant/embedded/gems/2.2.14/gems/net-ssh-6.2.0.rc1/lib/net/ssh/connection/session.rb:572:in `channel_closed'
        from C:/HashiCorp/Vagrant/embedded/gems/2.2.14/gems/net-ssh-6.2.0.rc1/lib/net/ssh/connection/session.rb:685:in `channel_close'
        from C:/HashiCorp/Vagrant/embedded/gems/2.2.14/gems/net-ssh-6.2.0.rc1/lib/net/ssh/connection/session.rb:548:in `dispatch_incoming_packets'
        from C:/HashiCorp/Vagrant/embedded/gems/2.2.14/gems/net-ssh-6.2.0.rc1/lib/net/ssh/connection/session.rb:248:in `ev_preprocess'
        from C:/HashiCorp/Vagrant/embedded/gems/2.2.14/gems/net-ssh-6.2.0.rc1/lib/net/ssh/connection/event_loop.rb:100:in `each'
        from C:/HashiCorp/Vagrant/embedded/gems/2.2.14/gems/net-ssh-6.2.0.rc1/lib/net/ssh/connection/event_loop.rb:100:in `ev_preprocess'
        from C:/HashiCorp/Vagrant/embedded/gems/2.2.14/gems/net-ssh-6.2.0.rc1/lib/net/ssh/connection/event_loop.rb:28:in `process'
        from C:/HashiCorp/Vagrant/embedded/gems/2.2.14/gems/net-ssh-6.2.0.rc1/lib/net/ssh/connection/session.rb:227:in `process'
        from C:/HashiCorp/Vagrant/embedded/gems/2.2.14/gems/net-ssh-6.2.0.rc1/lib/net/ssh/connection/session.rb:180:in `block in loop'
        from C:/HashiCorp/Vagrant/embedded/gems/2.2.14/gems/net-ssh-6.2.0.rc1/lib/net/ssh/connection/session.rb:180:in `loop'
        from C:/HashiCorp/Vagrant/embedded/gems/2.2.14/gems/net-ssh-6.2.0.rc1/lib/net/ssh/connection/session.rb:180:in `loop'
        from C:/HashiCorp/Vagrant/embedded/gems/2.2.14/gems/net-ssh-6.2.0.rc1/lib/net/ssh/connection/channel.rb:272:in `wait'
        from C:/HashiCorp/Vagrant/embedded/gems/2.2.14/gems/net-scp-1.2.1/lib/net/scp.rb:284:in `upload!'
        from C:/HashiCorp/Vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/plugins/communicators/ssh/communicator.rb:332:in `block (2 levels) in upload'
        from C:/HashiCorp/Vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/plugins/communicators/ssh/communicator.rb:338:in `block in upload'
        from C:/HashiCorp/Vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/plugins/communicators/ssh/communicator.rb:748:in `block in scp_connect'
        from C:/HashiCorp/Vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/plugins/communicators/ssh/communicator.rb:392:in `connect'
        from C:/HashiCorp/Vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/plugins/communicators/ssh/communicator.rb:746:in `scp_connect'
        from C:/HashiCorp/Vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/plugins/communicators/ssh/communicator.rb:307:in `upload'
        from C:/HashiCorp/Vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/plugins/guests/linux/cap/public_key.rb:19:in `block in insert_public_key'
        from C:/HashiCorp/Vagrant/embedded/mingw64/lib/ruby/2.6.0/tempfile.rb:295:in `open'
        from C:/HashiCorp/Vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/plugins/guests/linux/cap/public_key.rb:14:in `insert_public_key'
        from C:/HashiCorp/Vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/capability_host.rb:111:in `call'
        from C:/HashiCorp/Vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/capability_host.rb:111:in `capability'
        from C:/HashiCorp/Vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/guest.rb:43:in `capability'
        from C:/HashiCorp/Vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/plugins/communicators/ssh/communicator.rb:192:in `ready?'
        from C:/HashiCorp/Vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/plugins/communicators/ssh/communicator.rb:88:in `block in wait_for_ready'
        from C:/HashiCorp/Vagrant/embedded/mingw64/lib/ruby/2.6.0/timeout.rb:93:in `block in timeout'
        from C:/HashiCorp/Vagrant/embedded/mingw64/lib/ruby/2.6.0/timeout.rb:33:in `block in catch'
        from C:/HashiCorp/Vagrant/embedded/mingw64/lib/ruby/2.6.0/timeout.rb:33:in `catch'
        from C:/HashiCorp/Vagrant/embedded/mingw64/lib/ruby/2.6.0/timeout.rb:33:in `catch'
        from C:/HashiCorp/Vagrant/embedded/mingw64/lib/ruby/2.6.0/timeout.rb:108:in `timeout'
        from C:/HashiCorp/Vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/plugins/communicators/ssh/communicator.rb:63:in `wait_for_ready'
        from C:/HashiCorp/Vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/action/builtin/wait_for_communicator.rb:16:in `block in call'
@mfazekas
Copy link
Collaborator

Closing as this might be a server issue, please post a put net-scp reproduction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants