Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

strange lxc crash about sudo. #305

Closed
travka opened this issue Jul 6, 2014 · 4 comments
Closed

strange lxc crash about sudo. #305

travka opened this issue Jul 6, 2014 · 4 comments
Labels
Milestone

Comments

@travka
Copy link

travka commented Jul 6, 2014

% vagrant up --provider lxc --debug                                                                                                 :(
 INFO global: Vagrant version: 1.6.4.dev
 INFO global: Ruby version: 2.0.0
 INFO global: RubyGems version: 2.0.14
 INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/bin/../embedded/gems/gems/vagrant-1.6.4.dev/bin/vagrant"
 INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/bin/../embedded"
 INFO global: VAGRANT_INSTALLER_VERSION="2"
 INFO global: VAGRANT_DETECTED_OS="Linux"
 INFO global: VAGRANT_INSTALLER_ENV="1"
 INFO global: VAGRANT_INTERNAL_BUNDLERIZED="1"
 INFO global: VAGRANT_LOG="debug"
 INFO global: Plugins:
 INFO global:   - bundler = 1.6.3
 INFO global:   - mime-types = 2.3
 INFO global:   - rest-client = 1.6.7
 INFO global:   - vagrant-login = 1.0.1
 INFO global:   - vagrant-lxc = 1.0.0.alpha.2
 INFO global:   - vagrant-share = 1.1.0
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/kernel_v1/plugin.rb
 INFO manager: Registered plugin: kernel
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/synced_folders/rsync/plugin.rb
 INFO manager: Registered plugin: RSync synced folders
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/synced_folders/smb/plugin.rb
 INFO manager: Registered plugin: SMB synced folders
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/synced_folders/nfs/plugin.rb
 INFO manager: Registered plugin: NFS synced folders
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/hosts/gentoo/plugin.rb
 INFO manager: Registered plugin: Gentoo host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/hosts/slackware/plugin.rb
 INFO manager: Registered plugin: Slackware host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/hosts/opensuse/plugin.rb
 INFO manager: Registered plugin: OpenSUSE host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/hosts/null/plugin.rb
 INFO manager: Registered plugin: null host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/hosts/darwin/plugin.rb
 INFO manager: Registered plugin: Mac OS X host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/hosts/arch/plugin.rb
 INFO manager: Registered plugin: Arch host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/hosts/redhat/plugin.rb
 INFO manager: Registered plugin: Red Hat host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/hosts/windows/plugin.rb
 INFO manager: Registered plugin: Windows host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/hosts/linux/plugin.rb
 INFO manager: Registered plugin: Linux host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/hosts/freebsd/plugin.rb
 INFO manager: Registered plugin: FreeBSD host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/hosts/bsd/plugin.rb
 INFO manager: Registered plugin: puppet
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/provisioners/shell/plugin.rb
 INFO manager: Registered plugin: shell
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/provisioners/cfengine/plugin.rb
 INFO manager: Registered plugin: CFEngine Provisioner
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/provisioners/file/plugin.rb
 INFO manager: Registered plugin: file
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/provisioners/salt/plugin.rb
 INFO manager: Registered plugin: salt
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/communicators/winrm/plugin.rb
 INFO manager: Registered plugin: winrm communicator
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/communicators/ssh/plugin.rb
 INFO manager: Registered plugin: ssh communicator
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/kernel_v2/plugin.rb
 INFO manager: Registered plugin: kernel
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/providers/virtualbox/plugin.rb
 INFO manager: Registered plugin: VirtualBox provider
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/providers/hyperv/plugin.rb
 INFO manager: Registered plugin: Hyper-V provider
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/providers/docker/plugin.rb
 INFO manager: Registered plugin: docker-provider
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/guests/ubuntu/plugin.rb
 INFO manager: Registered plugin: Ubuntu guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/guests/debian/plugin.rb
 INFO manager: Registered plugin: Debian guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/guests/fedora/plugin.rb
 INFO manager: Registered plugin: Fedora guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/guests/gentoo/plugin.rb
 INFO manager: Registered plugin: Gentoo guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/guests/openbsd/plugin.rb
 INFO manager: Registered plugin: OpenBSD guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/guests/nixos/plugin.rb
 INFO manager: Registered plugin: NixOS guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/guests/netbsd/plugin.rb
 INFO manager: Registered plugin: NetBSD guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/guests/esxi/plugin.rb
 INFO manager: Registered plugin: ESXi guest.
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/guests/funtoo/plugin.rb
 INFO manager: Registered plugin: Funtoo guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/guests/darwin/plugin.rb
 INFO manager: Registered plugin: Darwin guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/guests/arch/plugin.rb
 INFO manager: Registered plugin: Arch guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/guests/coreos/plugin.rb
 INFO manager: Registered plugin: CoreOS guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/guests/solaris11/plugin.rb
 INFO manager: Registered plugin: Solaris 11 guest.
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/guests/smartos/plugin.rb
 INFO manager: Registered plugin: SmartOS guest.
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/guests/redhat/plugin.rb
 INFO manager: Registered plugin: RedHat guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/guests/mint/plugin.rb
 INFO manager: Registered plugin: Mint guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/guests/tinycore/plugin.rb
 INFO manager: Registered plugin: TinyCore Linux guest.
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/guests/windows/plugin.rb
 INFO manager: Registered plugin: Windows guest.
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/guests/pld/plugin.rb
 INFO manager: Registered plugin: PLD Linux guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/guests/solaris/plugin.rb
 INFO manager: Registered plugin: Solaris guest.
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/guests/linux/plugin.rb
 INFO manager: Registered plugin: Linux guest.
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/guests/omnios/plugin.rb
 INFO manager: Registered plugin: OmniOS guest.
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/guests/freebsd/plugin.rb
 INFO manager: Registered plugin: FreeBSD guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/guests/suse/plugin.rb
 INFO manager: Registered plugin: SUSE guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/commands/plugin/plugin.rb
 INFO manager: Registered plugin: plugin command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/commands/destroy/plugin.rb
 INFO manager: Registered plugin: destroy command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/commands/provision/plugin.rb
 INFO manager: Registered plugin: provision command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/commands/reload/plugin.rb
 INFO manager: Registered plugin: reload command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/commands/version/plugin.rb
 INFO manager: Registered plugin: version command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/commands/global-status/plugin.rb
 INFO manager: Registered plugin: global-status command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/commands/list-commands/plugin.rb
 INFO manager: Registered plugin: list-commands command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/commands/up/plugin.rb
 INFO manager: Registered plugin: up command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/commands/ssh_config/plugin.rb
 INFO manager: Registered plugin: ssh-config command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/commands/resume/plugin.rb
 INFO manager: Registered plugin: resume command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/commands/init/plugin.rb
 INFO manager: Registered plugin: init command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/commands/ssh/plugin.rb
 INFO manager: Registered plugin: ssh command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/commands/package/plugin.rb
 INFO manager: Registered plugin: package command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/commands/status/plugin.rb
 INFO manager: Registered plugin: status command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/commands/help/plugin.rb
 INFO manager: Registered plugin: help command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/commands/halt/plugin.rb
 INFO manager: Registered plugin: halt command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/commands/suspend/plugin.rb
 INFO manager: Registered plugin: suspend command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/commands/rdp/plugin.rb
 INFO manager: Registered plugin: rdp command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/commands/box/plugin.rb
 INFO manager: Registered plugin: box command
 INFO global: Loading plugins!
 INFO manager: Registered plugin: vagrant-login
 INFO manager: Registered plugin: vagrant-share
 INFO manager: Registered plugin: vagrant-lxc
 INFO vagrant: `vagrant` invoked: ["up", "--provider", "lxc", "--debug"]
DEBUG vagrant: Creating Vagrant environment
 INFO environment: Environment initialized (#<Vagrant::Environment:0x0000000190f2f8>)
 INFO environment:   - cwd: /home/tr4ka/vagrant/ubuntu
 INFO environment: Home path: /home/tr4ka/.vagrant.d
 INFO environment: Local data path: /home/tr4ka/vagrant/ubuntu/.vagrant
DEBUG environment: Creating: /home/tr4ka/vagrant/ubuntu/.vagrant
 INFO environment: Running hook: environment_plugins_loaded
 INFO runner: Preparing hooks for middleware sequence...
 INFO runner: 1 hooks defined.
 INFO runner: Running action: #<Vagrant::Action::Builder:0x00000000d74ad8>
 INFO environment: Running hook: environment_load
 INFO runner: Preparing hooks for middleware sequence...
 INFO runner: 1 hooks defined.
 INFO runner: Running action: #<Vagrant::Action::Builder:0x000000012887b8>
 INFO cli: CLI: [] "up" ["--provider", "lxc"]
DEBUG cli: Invoking command class: VagrantPlugins::CommandUp::Command ["--provider", "lxc"]
DEBUG command: 'Up' each target VM...
 INFO loader: Set :root = #<Pathname:/home/tr4ka/vagrant/ubuntu/Vagrantfile>
DEBUG loader: Populating proc cache for #<Pathname:/home/tr4ka/vagrant/ubuntu/Vagrantfile>
DEBUG loader: Load procs for pathname: /home/tr4ka/vagrant/ubuntu/Vagrantfile
 INFO loader: Loading configuration in order: [:home, :root]
DEBUG loader: Loading from: root (evaluating)
DEBUG loader: Configuration loaded successfully, finalizing and returning
DEBUG command: Getting target VMs for command. Arguments:
DEBUG command:  -- names: ["default"]
DEBUG command:  -- options: {:provider=>"lxc"}
DEBUG command: Finding machine that match name: default
 INFO environment: Getting machine: default (lxc)
 INFO environment: Uncached load of machine.
 INFO loader: Set "12576580_machine_default" = []
 INFO loader: Loading configuration in order: [:home, :root, "12576580_machine_default"]
DEBUG loader: Loading from: root (cache)
DEBUG loader: Configuration loaded successfully, finalizing and returning
 INFO box_collection: Box found: fgrehm/trusty64-lxc (lxc)
 INFO environment: Running hook: authenticate_box_url
 INFO host: Autodetecting host type for [#<Vagrant::Environment: /home/tr4ka/vagrant/ubuntu>]
DEBUG host: Trying: gentoo
DEBUG host: Trying: slackware
DEBUG host: Trying: opensuse
DEBUG host: Trying: darwin
DEBUG host: Trying: arch
 INFO host: Detected: arch!
 INFO runner: Preparing hooks for middleware sequence...
 INFO runner: 2 hooks defined.
 INFO runner: Running action: #<Vagrant::Action::Builder:0x000000019cf530>
 INFO warden: Calling IN action: #<VagrantPlugins::Login::ActionAuthenticateBox:0x00000002a60a20>
 INFO warden: Calling OUT action: #<VagrantPlugins::Login::ActionAuthenticateBox:0x00000002a60a20>
 INFO machine: Initializing machine: default
 INFO machine:   - Provider: Vagrant::LXC::Provider
 INFO machine:   - Box: #<Vagrant::Box:0x00000002fee618>
 INFO machine:   - Data dir: /home/tr4ka/vagrant/ubuntu/.vagrant/machines/default/lxc
DEBUG lxc: Found sudo wrapper : /usr/local/bin/vagrant-lxc-wrapper-1.0.0.alpha.2
 INFO command: With machine: default (#<Vagrant::LXC::Provider:0x000000030e8938 @logger=#<Log4r::Logger:0x000000030e88e8 @fullname="vagrant::provider::lxc", @outputters=[], @additive=true, @name="lxc", @path="vagrant::provider", @parent=#<Log4r::Logger:0x00000001b5ea40 @fullname="vagrant", @outputters=[#<Log4r::StderrOutputter:0x00000001b9a3d8 @mon_owner=nil, @mon_count=0, @mon_mutex=#<Mutex:0x00000001b9a360>, @name="stderr", @level=0, @formatter=#<Log4r::DefaultFormatter:0x00000001ba7650 @depth=7>, @out=#<IO:<STDERR>>>], @additive=true, @name="vagrant", @path="", @parent=#<Log4r::RootLogger:0x00000001b5e928 @level=0, @outputters=[]>, @level=1, @trace=false>, @level=1, @trace=false>, @machine=#<Vagrant::Machine: default (Vagrant::LXC::Provider)>, @shell=#<Vagrant::LXC::SudoWrapper:0x0000000311dd90 @wrapper_path="/usr/local/bin/vagrant-lxc-wrapper-1.0.0.alpha.2", @logger=#<Log4r::Logger:0x0000000311dd40 @fullname="vagrant::lxc::sudo_wrapper", @outputters=[], @additive=true, @name="sudo_wrapper", @path="vagrant::lxc", @parent=#<Log4r::Logger:0x00000001b5ea40 @fullname="vagrant", @outputters=[#<Log4r::StderrOutputter:0x00000001b9a3d8 @mon_owner=nil, @mon_count=0, @mon_mutex=#<Mutex:0x00000001b9a360>, @name="stderr", @level=0, @formatter=#<Log4r::DefaultFormatter:0x00000001ba7650 @depth=7>, @out=#<IO:<STDERR>>>], @additive=true, @name="vagrant", @path="", @parent=#<Log4r::RootLogger:0x00000001b5e928 @level=0, @outputters=[]>, @level=1, @trace=false>, @level=1, @trace=false>>, @driver=#<Vagrant::LXC::Driver:0x00000000f755a8 @container_name=nil, @sudo_wrapper=#<Vagrant::LXC::SudoWrapper:0x0000000311dd90 @wrapper_path="/usr/local/bin/vagrant-lxc-wrapper-1.0.0.alpha.2", @logger=#<Log4r::Logger:0x0000000311dd40 @fullname="vagrant::lxc::sudo_wrapper", @outputters=[], @additive=true, @name="sudo_wrapper", @path="vagrant::lxc", @parent=#<Log4r::Logger:0x00000001b5ea40 @fullname="vagrant", @outputters=[#<Log4r::StderrOutputter:0x00000001b9a3d8 @mon_owner=nil, @mon_count=0, @mon_mutex=#<Mutex:0x00000001b9a360>, @name="stderr", @level=0, @formatter=#<Log4r::DefaultFormatter:0x00000001ba7650 @depth=7>, @out=#<IO:<STDERR>>>], @additive=true, @name="vagrant", @path="", @parent=#<Log4r::RootLogger:0x00000001b5e928 @level=0, @outputters=[]>, @level=1, @trace=false>, @level=1, @trace=false>>, @cli=#<Vagrant::LXC::Driver::CLI:0x00000000f75558 @sudo_wrapper=#<Vagrant::LXC::SudoWrapper:0x0000000311dd90 @wrapper_path="/usr/local/bin/vagrant-lxc-wrapper-1.0.0.alpha.2", @logger=#<Log4r::Logger:0x0000000311dd40 @fullname="vagrant::lxc::sudo_wrapper", @outputters=[], @additive=true, @name="sudo_wrapper", @path="vagrant::lxc", @parent=#<Log4r::Logger:0x00000001b5ea40 @fullname="vagrant", @outputters=[#<Log4r::StderrOutputter:0x00000001b9a3d8 @mon_owner=nil, @mon_count=0, @mon_mutex=#<Mutex:0x00000001b9a360>, @name="stderr", @level=0, @formatter=#<Log4r::DefaultFormatter:0x00000001ba7650 @depth=7>, @out=#<IO:<STDERR>>>], @additive=true, @name="vagrant", @path="", @parent=#<Log4r::RootLogger:0x00000001b5e928 @level=0, @outputters=[]>, @level=1, @trace=false>, @level=1, @trace=false>>, @name=nil, @logger=#<Log4r::Logger:0x00000000f754b8 @fullname="vagrant::provider::lxc::container::cli", @outputters=[], @additive=true, @name="cli", @path="vagrant::provider::lxc::container", @parent=#<Log4r::Logger:0x000000030e88e8 @fullname="vagrant::provider::lxc", @outputters=[], @additive=true, @name="lxc", @path="vagrant::provider", @parent=#<Log4r::Logger:0x00000001b5ea40 @fullname="vagrant", @outputters=[#<Log4r::StderrOutputter:0x00000001b9a3d8 @mon_owner=nil, @mon_count=0, @mon_mutex=#<Mutex:0x00000001b9a360>, @name="stderr", @level=0, @formatter=#<Log4r::DefaultFormatter:0x00000001ba7650 @depth=7>, @out=#<IO:<STDERR>>>], @additive=true, @name="vagrant", @path="", @parent=#<Log4r::RootLogger:0x00000001b5e928 @level=0, @outputters=[]>, @level=1, @trace=false>, @level=1, @trace=false>, @level=1, @trace=false>>, @logger=#<Log4r::Logger:0x000000012d6468 @fullname="vagrant::provider::lxc::driver", @outputters=[], @additive=true, @name="driver", @path="vagrant::provider::lxc", @parent=#<Log4r::Logger:0x000000030e88e8 @fullname="vagrant::provider::lxc", @outputters=[], @additive=true, @name="lxc", @path="vagrant::provider", @parent=#<Log4r::Logger:0x00000001b5ea40 @fullname="vagrant", @outputters=[#<Log4r::StderrOutputter:0x00000001b9a3d8 @mon_owner=nil, @mon_count=0, @mon_mutex=#<Mutex:0x00000001b9a360>, @name="stderr", @level=0, @formatter=#<Log4r::DefaultFormatter:0x00000001ba7650 @depth=7>, @out=#<IO:<STDERR>>>], @additive=true, @name="vagrant", @path="", @parent=#<Log4r::RootLogger:0x00000001b5e928 @level=0, @outputters=[]>, @level=1, @trace=false>, @level=1, @trace=false>, @level=1, @trace=false>, @customizations=[]>, @cap_logger=#<Log4r::Logger:0x00000001330350 @fullname="vagrant::capability_host::vagrant::lxc::provider", @outputters=[], @additive=true, @name="provider", @path="vagrant::capability_host::vagrant::lxc", @parent=#<Log4r::Logger:0x00000001b5ea40 @fullname="vagrant", @outputters=[#<Log4r::StderrOutputter:0x00000001b9a3d8 @mon_owner=nil, @mon_count=0, @mon_mutex=#<Mutex:0x00000001b9a360>, @name="stderr", @level=0, @formatter=#<Log4r::DefaultFormatter:0x00000001ba7650 @depth=7>, @out=#<IO:<STDERR>>>], @additive=true, @name="vagrant", @path="", @parent=#<Log4r::RootLogger:0x00000001b5e928 @level=0, @outputters=[]>, @level=1, @trace=false>, @level=1, @trace=false>, @cap_host_chain=[[:lxc, #<#<Class:0x00000001332da8>:0x00000001790a30>]], @cap_args=[#<Vagrant::Machine: default (Vagrant::LXC::Provider)>], @cap_caps={:virtualbox=>#<Vagrant::Registry:0x000000013329c0 @items={:forwarded_ports=>#<Proc:0x000000018076d0@/opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/providers/virtualbox/plugin.rb:27>, :nic_mac_addresses=>#<Proc:0x000000018075e0@/opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/providers/virtualbox/plugin.rb:32>, :public_address=>#<Proc:0x00000000e7db00@/opt/vagrant/embedded/gems/gems/vagrant-share-1.1.0/lib/vagrant-share.rb:39>}, @results_cache={}>, :hyperv=>#<Vagrant::Registry:0x00000001332330 @items={:public_address=>#<Proc:0x00000001809cc8@/opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/providers/hyperv/plugin.rb:25>}, @results_cache={}>, :docker=>#<Vagrant::Registry:0x00000001331e80 @items={:public_address=>#<Proc:0x000000018142b8@/opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/plugins/providers/docker/plugin.rb:54>}, @results_cache={}>, :lxc=>#<Vagrant::Registry:0x00000001330760 @items={:public_address=>#<Proc:0x00000000ed0800@/home/tr4ka/.vagrant.d/gems/gems/vagrant-lxc-1.0.0.alpha.2/lib/vagrant-lxc/plugin.rb:42>}, @results_cache={}>}>)
 INFO interface: info: Bringing machine 'default' up with 'lxc' provider...
Bringing machine 'default' up with 'lxc' provider...
 INFO batch_action: Enabling parallelization by default.
 INFO batch_action: Disabling parallelization because only executing one action
 INFO batch_action: Batch action will parallelize: false
 INFO batch_action: Starting action: #<Vagrant::Machine:0x00000003055930> up {:destroy_on_error=>true, :parallel=>true, :provision_ignore_sentinel=>false, :provision_types=>nil, :provider=>"lxc"}
 INFO machine: Calling action: up on provider LXC (new VM)
DEBUG environment: Attempting to acquire process-lock: machine-action-7b299cc4bd4bbad35769db5f80d32e74
DEBUG environment: Attempting to acquire process-lock: dotlock
 INFO environment: Acquired process lock: dotlock
 INFO environment: Released process lock: dotlock
 INFO environment: Acquired process lock: machine-action-7b299cc4bd4bbad35769db5f80d32e74
 INFO runner: Preparing hooks for middleware sequence...
 INFO runner: 1 hooks defined.
 INFO runner: Running action: #<Vagrant::Action::Builder:0x00000001a85b00>
 INFO warden: Calling IN action: #<Vagrant::Action::Builtin::ConfigValidate:0x00000001abd7d0>
 INFO warden: Calling IN action: #<Vagrant::Action::Builtin::Call:0x00000001abd758>
 INFO runner: Preparing hooks for middleware sequence...
 INFO runner: 1 hooks defined.
 INFO runner: Running action: #<Vagrant::Action::Builder:0x00000001be04a0>
 INFO warden: Calling IN action: #<Vagrant::Action::Builtin::IsState:0x000000026446d0>
DEBUG is_state: Checking if machine state is 'not_created'
 INFO machine: New machine ID: nil
DEBUG lxc: Instantiating the container for: nil
DEBUG is_state: -- Machine state: not_created
 INFO warden: Calling OUT action: #<Vagrant::Action::Builtin::IsState:0x000000026446d0>
 INFO runner: Preparing hooks for middleware sequence...
 INFO runner: 1 hooks defined.
 INFO runner: Running action: #<Vagrant::Action::Warden:0x00000002770680>
 INFO warden: Calling IN action: #<Proc:0x00000002808de0@/opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/lib/vagrant/action/warden.rb:94 (lambda)>
 INFO warden: Calling IN action: #<Vagrant::Action::Builtin::HandleBox:0x00000002770590>
 INFO handle_box: Machine already has box. HandleBox will not run.
 INFO warden: Calling IN action: #<Vagrant::LXC::Action::HandleBoxMetadata:0x00000002791a88>
 INFO interface: info: Importing base box 'fgrehm/trusty64-lxc'...
 INFO interface: info: ==> default: Importing base box 'fgrehm/trusty64-lxc'...
==> default: Importing base box 'fgrehm/trusty64-lxc'...
 INFO handle_box_metadata: Validating box contents
 INFO handle_box_metadata: Setting box options on environment
 INFO warden: Calling IN action: #<Vagrant::LXC::Action::Create:0x000000027c1c38>
 INFO driver: Copying LXC template into place
 INFO subprocess: Starting process: ["/usr/bin/sudo", "/usr/local/bin/vagrant-lxc-wrapper-1.0.0.alpha.2", "cp", "/home/tr4ka/.vagrant.d/gems/gems/vagrant-lxc-1.0.0.alpha.2/scripts/lxc-template", "/usr/share/lxc/templates/lxc-vagrant-tmp-ubuntu_default_1404665316916_80082"]
DEBUG subprocess: Selecting on IO
DEBUG subprocess: stderr: Invalid arguments for command /usr/bin/cp, provided args: ["/home/tr4ka/.vagrant.d/gems/gems/vagrant-lxc-1.0.0.alpha.2/scripts/lxc-template", "/usr/share/lxc/templates/lxc-vagrant-tmp-ubuntu_default_1404665316916_80082"]
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000
DEBUG subprocess: Exit status: 1
 INFO driver: Removing LXC template
 INFO subprocess: Starting process: ["/usr/bin/sudo", "/usr/local/bin/vagrant-lxc-wrapper-1.0.0.alpha.2", "rm", "/usr/share/lxc/templates/lxc-vagrant-tmp-ubuntu_default_1404665316916_80082"]
DEBUG subprocess: Selecting on IO
DEBUG subprocess: stderr: Invalid arguments for command /usr/bin/rm, provided args: ["/usr/share/lxc/templates/lxc-vagrant-tmp-ubuntu_default_1404665316916_80082"]
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 31999
DEBUG subprocess: Exit status: 1
ERROR warden: Error occurred: There was an error executing ["sudo", "/usr/local/bin/vagrant-lxc-wrapper-1.0.0.alpha.2", "rm", "/usr/share/lxc/templates/lxc-vagrant-tmp-ubuntu_default_1404665316916_80082"]

For more information on the failure, enable detailed logging by setting
the environment variable VAGRANT_LOG to DEBUG.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
ERROR warden: Error occurred: There was an error executing ["sudo", "/usr/local/bin/vagrant-lxc-wrapper-1.0.0.alpha.2", "rm", "/usr/share/lxc/templates/lxc-vagrant-tmp-ubuntu_default_1404665316916_80082"]

For more information on the failure, enable detailed logging by setting
the environment variable VAGRANT_LOG to DEBUG.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
ERROR warden: Error occurred: There was an error executing ["sudo", "/usr/local/bin/vagrant-lxc-wrapper-1.0.0.alpha.2", "rm", "/usr/share/lxc/templates/lxc-vagrant-tmp-ubuntu_default_1404665316916_80082"]

For more information on the failure, enable detailed logging by setting
the environment variable VAGRANT_LOG to DEBUG.
 INFO warden: Beginning recovery process...
 INFO warden: Calling recover: #<Vagrant::Action::Builtin::Call:0x00000001abd758>
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Recovery complete.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO environment: Released process lock: machine-action-7b299cc4bd4bbad35769db5f80d32e74
 INFO environment: Running hook: environment_unload
 INFO runner: Preparing hooks for middleware sequence...
 INFO runner: 1 hooks defined.
 INFO runner: Running action: #<Vagrant::Action::Builder:0x000000012e50f8>
ERROR vagrant: Vagrant experienced an error! Details:
ERROR vagrant: #<Vagrant::LXC::Errors::ExecuteError: There was an error executing ["sudo", "/usr/local/bin/vagrant-lxc-wrapper-1.0.0.alpha.2", "rm", "/usr/share/lxc/templates/lxc-vagrant-tmp-ubuntu_default_1404665316916_80082"]

For more information on the failure, enable detailed logging by setting
ERROR vagrant: /home/tr4ka/.vagrant.d/gems/gems/vagrant-lxc-1.0.0.alpha.2/lib/vagrant-lxc/sudo_wrapper.rb:45:in `block in execute'
/opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/lib/vagrant/util/retryable.rb:17:in `retryable'
/home/tr4ka/.vagrant.d/gems/gems/vagrant-lxc-1.0.0.alpha.2/lib/vagrant-lxc/sudo_wrapper.rb:35:in `execute'
/home/tr4ka/.vagrant.d/gems/gems/vagrant-lxc-1.0.0.alpha.2/lib/vagrant-lxc/sudo_wrapper.rb:15:in `run'
/home/tr4ka/.vagrant.d/gems/gems/vagrant-lxc-1.0.0.alpha.2/lib/vagrant-lxc/driver.rb:191:in `ensure in import_template'
/home/tr4ka/.vagrant.d/gems/gems/vagrant-lxc-1.0.0.alpha.2/lib/vagrant-lxc/driver.rb:191:in `import_template'
/home/tr4ka/.vagrant.d/gems/gems/vagrant-lxc-1.0.0.alpha.2/lib/vagrant-lxc/driver.rb:61:in `create'
/home/tr4ka/.vagrant.d/gems/gems/vagrant-lxc-1.0.0.alpha.2/lib/vagrant-lxc/action/create.rb:26:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/lib/vagrant/action/warden.rb:34:in `call'
/home/tr4ka/.vagrant.d/gems/gems/vagrant-lxc-1.0.0.alpha.2/lib/vagrant-lxc/action/handle_box_metadata.rb:41:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/lib/vagrant/action/builtin/handle_box.rb:56:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
/opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/lib/vagrant/action/builder.rb:116:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/lib/vagrant/action/runner.rb:66:in `block in run'
/opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/lib/vagrant/util/busy.rb:19:in `busy'
/opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/lib/vagrant/action/runner.rb:66:in `run'
/opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/lib/vagrant/action/builtin/call.rb:53:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/lib/vagrant/action/builtin/config_validate.rb:25:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/lib/vagrant/action/builder.rb:116:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/lib/vagrant/action/runner.rb:66:in `block in run'
/opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/lib/vagrant/util/busy.rb:19:in `busy'
/opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/lib/vagrant/action/runner.rb:66:in `run'
/opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/lib/vagrant/machine.rb:196:in `action_raw'
/opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/lib/vagrant/machine.rb:173:in `block in action'
/opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/lib/vagrant/environment.rb:434:in `lock'
/opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/lib/vagrant/machine.rb:161:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/lib/vagrant/machine.rb:161:in `action'
/opt/vagrant/embedded/gems/gems/vagrant-1.6.4.dev/lib/vagrant/batch_action.rb:82:in `block (2 levels) in run'
 INFO interface: error: There was an error executing ["sudo", "/usr/local/bin/vagrant-lxc-wrapper-1.0.0.alpha.2", "rm", "/usr/share/lxc/templates/lxc-vagrant-tmp-ubuntu_default_1404665316916_80082"]

For more information on the failure, enable detailed logging by setting
the environment variable VAGRANT_LOG to DEBUG.
There was an error executing ["sudo", "/usr/local/bin/vagrant-lxc-wrapper-1.0.0.alpha.2", "rm", "/usr/share/lxc/templates/lxc-vagrant-tmp-ubuntu_default_1404665316916_80082"]

For more information on the failure, enable detailed logging by setting
the environment variable VAGRANT_LOG to DEBUG.
 INFO interface: Machine: error-exit ["Vagrant::LXC::Errors::ExecuteError", "There was an error executing [\"sudo\", \"/usr/local/bin/vagrant-lxc-wrapper-1.0.0.alpha.2\", \"rm\", \"/usr/share/lxc/templates/lxc-vagrant-tmp-ubuntu_default_1404665316916_80082\"]\n\nFor more information on the failure, enable detailed logging by setting\nthe environment variable VAGRANT_LOG to DEBUG."]
@robsonmwoc
Copy link

+1 The same here, using precise64 or wheezy64. I just couldn't figure out, what is happening.

@fgrehm
Copy link
Owner

fgrehm commented Jul 21, 2014

@travka I see that you are using an unreleased version of vagrant (1.6.4), could you please try downgrading to 1.6.3 and reinstalling the lxc sudo wrapper to check if it works? If it doesn't please try removing the sudo wrapper script and check if it works.

I also noticed you are using archlinux as the host but I haven't figured out how to set things up over there yet. If you have any pointers on setting that up please LMK.

@robsonmwoc what host distro are you using?

@fgrehm fgrehm added the bug label Jul 22, 2014
@fgrehm
Copy link
Owner

fgrehm commented Jul 22, 2014

I was finally able to set up an arch linux machine and tracked down the issue. The problem is that (at least on the arch VM I'm using) /bin is a symlink to /usr/bin and on the sudo wrapper script we have some paths hard coded to /bin so it thinks that it is a wrong command being provided to the script.

I have a fix for it that will hopefully make things more robust. I'll try to update it this week but on the meantime you can just remove the wrapper script from /etc/sudoers.d/vagrant-lxc-1-0-0-alpha-2 and exercise your fingers typing in your password all the time 😜

@fgrehm
Copy link
Owner

fgrehm commented Jul 25, 2014

This was fixed on master, expect a new release by next week at most.

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

No branches or pull requests

3 participants