{"record":{"id":"b04bf65598199643","repo":"hashicorp/vagrant","slug":"failed-to-mount-folders-in-darwin-guest-the-comma","errorCode":null,"errorMessage":"Failed to mount folders in Darwin guest. The command attempted was:\n\n%{command}\n\nThe error output from the last command was:\n\n%{output}","messagePattern":"Failed to mount folders in Darwin guest\\. The command attempted was:\n\n%(.+?)\n\nThe error output from the last command was:\n\n%(.+?)","errorType":"exception","errorClass":"Vagrant::Errors::DarwinMountFailed","httpStatus":null,"severity":"error","filePath":"plugins/guests/darwin/cap/mount_smb_shared_folder.rb","lineNumber":37,"sourceCode":"          else\n            # fallback to assumption that user has permission\n            # to create the specified mountpoint\n            machine.communicate.execute(\"mkdir -p #{expanded_guest_path}\")\n          end\n\n          smb_password = Shellwords.shellescape(options[:smb_password])\n          # Ensure password is scrubbed\n          Vagrant::Util::CredentialScrubber.sensitive(smb_password)\n\n          mount_options = options[:mount_options];\n          mount_command = \"mount -t smbfs \" +\n            (mount_options ? \"-o '#{mount_options.join(\",\")}' \" : \"\") +\n            \"//#{options[:smb_username]}:#{smb_password}@#{options[:smb_host]}/#{name} \" +\n            \"#{expanded_guest_path}\"\n          retryable(on: Vagrant::Errors::DarwinMountFailed, tries: 10, sleep: 2) do\n            result = machine.communicate.execute(mount_command)\n            if result.exit_code != 0\n              raise Vagrant::Errors::DarwinMountFailed,\n                command: mount_command,\n                output: result.stderr\n            end\n          end\n        end\n      end\n    end\n  end\nend\n","sourceCodeStart":19,"sourceCodeEnd":47,"githubUrl":"https://github.com/hashicorp/vagrant/blob/35f3160f4ad6edc3a9f3aa9570adfc1a4d73aaa5/plugins/guests/darwin/cap/mount_smb_shared_folder.rb#L19-L47","documentation":"Error \"Failed to mount folders in Darwin guest. The command attempted was:\n\n%{command}\n\nThe error output from the last command was:\n\n%{output}\" thrown in hashicorp/vagrant.","triggerScenarios":"Thrown at plugins/guests/darwin/cap/mount_smb_shared_folder.rb:37 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"35f3160f4ad6edc3a9f3aa9570adfc1a4d73aaa5","analyzedAt":"2026-08-21T13:34:32.514Z","schemaVersion":2},"datasetVersion":"2026-08-21T18:17:14.833Z"}