hashicorp/vagrant · error

vagrant.rsync_auto_new_folders

Error message

vagrant.rsync_auto_new_folders

What it means

Error "vagrant.rsync_auto_new_folders" thrown in hashicorp/vagrant.

Source

Thrown at plugins/synced_folders/rsync/command/rsync_auto.rb:72

            cwd = machine.env.cwd.to_s

            if machine.provider.capability?(:proxy_machine)
              proxy = machine.provider.capability(:proxy_machine)
              if proxy
                machine.ui.warn(I18n.t(
                  "vagrant.rsync_proxy_machine",
                  name: machine.name.to_s,
                  provider: machine.provider_name.to_s))

                machine = proxy
              end
            end

            cached = synced_folders(machine, cached: true)
            fresh  = synced_folders(machine)
            diff   = synced_folders_diff(cached, fresh)
            if !diff[:added].empty?
              machine.ui.warn(I18n.t("vagrant.rsync_auto_new_folders"))
            end

            folders = cached[:rsync]
            next if !folders || folders.empty?

            # NOTE: This check is required with boot2docker since all containers
            # share the same virtual machine. This prevents rsync-auto from
            # syncing all known containers with rsync to the boot2docker vm
            # and only syncs the current working dirs folders.
            sync_folders = {}
            # Still sync existing synced folders from vagrantfile
            config_synced_folders = machine.config.vm.synced_folders.values.map { |x| x[:hostpath] }
            config_synced_folders.map! { |x| File.expand_path(x, machine.env.root_path) }
            folders.each do |id, folder_opts|
              if cwd != folder_opts[:hostpath] &&
                  !config_synced_folders.include?(folder_opts[:hostpath])

                machine.ui.info(I18n.t("vagrant.rsync_auto_remove_folder",

View on GitHub (pinned to 35f3160f4a)

When it happens

Trigger: Thrown at plugins/synced_folders/rsync/command/rsync_auto.rb:72 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of hashicorp/vagrant@35f3160f4a (2026-08-21). Data as JSON: /api/errors/9463d6b8ee137e21. Report an issue: GitHub.