Skip to content

Spotify No such file or directory @ rb_file_s_rename #213685

Open
@jamesbraza

Description

@jamesbraza

Verification

Description of issue

Running brew install --cask spotify I get:

==> Purging files for version 1.2.64.408 of Cask spotify
Error: spotify: No such file or directory @ rb_file_s_rename - (/opt/homebrew/Caskroom/spotify/.metadata/1.2.32.997,4c6498b6,1686, /opt/homebrew/Caskroom/spotify/.metadata/1.2.32.997,4c6498b6,1686.upgrading)

I cannot get around this.

Command that failed

brew install --cask spotify

Output of command with --verbose --debug

/opt/homebrew/Library/Homebrew/brew.rb (Cask::CaskLoader::FromAPILoader): loading spotify
==> Upgrading 1 outdated package:
/opt/homebrew/Library/Homebrew/brew.rb (Cask::CaskLoader::FromPathLoader): loading /opt/homebrew/Caskroom/spotify/.metadata/1.2.32.997,4c6498b6,1708/20240311172713.261/Casks/spotify.json
spotify 1.2.32.997,4c6498b6,1686 -> 1.2.64.408
==> Started upgrade process for Cask spotify
==> Upgrading spotify
==> Printing caveats
==> Cask::Installer#fetch
==> Downloading https://download.scdn.co/SpotifyARM64.dmg
/usr/bin/env /opt/homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Homebrew/4.5.2\ \(Macintosh\;\ arm64\ Mac\ OS\ X\ 15.5\)\ curl/8.7.1 --header Accept-Language:\ en --retry 3 -V
/usr/bin/env /opt/homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Homebrew/4.5.2\ \(Macintosh\;\ arm64\ Mac\ OS\ X\ 15.5\)\ curl/8.7.1 --header Accept-Language:\ en --retry 3 --fail --location --silent --head https://download.scdn.co/SpotifyARM64.dmg
/usr/bin/env /opt/homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Homebrew/4.5.2\ \(Macintosh\;\ arm64\ Mac\ OS\ X\ 15.5\)\ curl/8.7.1 --header Accept-Language:\ en --retry 3 --fail --location --silent --head --request GET --http1.1 https://download.scdn.co/SpotifyARM64.dmg
Already downloaded: /Users/jamesbraza/Library/Caches/Homebrew/downloads/915eb8fa6fa922ff37440641ed6b36ecd469438db13b36fa4228c68e044886eb--SpotifyARM64.dmg
==> Checking quarantine support
/usr/bin/env /usr/bin/xattr -h
/usr/bin/env /Library/Developer/CommandLineTools/usr/bin/swift -target arm64-apple-macosx15 /opt/homebrew/Library/Homebrew/cask/utils/quarantine.swift
==> Quarantine is available.
==> Verifying Gatekeeper status of /Users/jamesbraza/Library/Caches/Homebrew/downloads/915eb8fa6fa922ff37440641ed6b36ecd469438db13b36fa4228c68e044886eb--SpotifyARM64.dmg
/usr/bin/env /usr/bin/xattr -p com.apple.quarantine /Users/jamesbraza/Library/Caches/Homebrew/downloads/915eb8fa6fa922ff37440641ed6b36ecd469438db13b36fa4228c68e044886eb--SpotifyARM64.dmg
==> /Users/jamesbraza/Library/Caches/Homebrew/downloads/915eb8fa6fa922ff37440641ed6b36ecd469438db13b36fa4228c68e044886eb--SpotifyARM64.dmg is quarantined
==> Verifying checksum for '915eb8fa6fa922ff37440641ed6b36ecd469438db13b36fa4228c68e044886eb--SpotifyARM64.dmg'
/usr/bin/env tar --list --file /Users/jamesbraza/Library/Caches/Homebrew/downloads/915eb8fa6fa922ff37440641ed6b36ecd469438db13b36fa4228c68e044886eb--SpotifyARM64.dmg
/usr/bin/env hdiutil imageinfo -format /Users/jamesbraza/Library/Caches/Homebrew/downloads/915eb8fa6fa922ff37440641ed6b36ecd469438db13b36fa4228c68e044886eb--SpotifyARM64.dmg
==> Uninstalling artifacts
==> 3 artifacts defined
#<Cask::ArtifactSet: {#<Cask::Artifact::Uninstall:0x000000012c7f0e90 @cask=#<Cask spotify /opt/homebrew/Caskroom/spotify/.metadata/1.2.32.997,4c6498b6,1708/20240311172713.261/Casks/spotify.json>, @dsl_args=[{launchctl: "com.spotify.webhelper", quit: "com.spotify.client"}], @directives={launchctl: "com.spotify.webhelper", quit: "com.spotify.client", signal: []}>, #<Cask::Artifact::App:0x000000012a70feb0 @cask=#<Cask spotify /opt/homebrew/Caskroom/spotify/.metadata/1.2.32.997,4c6498b6,1708/20240311172713.261/Casks/spotify.json>, @dsl_args=["Spotify.app"], @source_string="Spotify.app", @target_string="">, #<Cask::Artifact::Zap:0x000000012c71f980 @cask=#<Cask spotify /opt/homebrew/Caskroom/spotify/.metadata/1.2.32.997,4c6498b6,1708/20240311172713.261/Casks/spotify.json>, @dsl_args=[{trash: ["~/Library/Application Support/Spotify", "~/Library/Caches/com.spotify.client", "~/Library/Caches/com.spotify.client.helper", "~/Library/Cookies/com.spotify.client.binarycookies", "~/Library/HTTPStorages/com.spotify.client", "~/Library/Logs/Spotify", "~/Library/Preferences/com.spotify.client.helper.plist", "~/Library/Preferences/com.spotify.client.plist", "~/Library/Saved Application State/com.spotify.client.savedState"]}], @directives={trash: ["~/Library/Application Support/Spotify", "~/Library/Caches/com.spotify.client", "~/Library/Caches/com.spotify.client.helper", "~/Library/Cookies/com.spotify.client.binarycookies", "~/Library/HTTPStorages/com.spotify.client", "~/Library/Logs/Spotify", "~/Library/Preferences/com.spotify.client.helper.plist", "~/Library/Preferences/com.spotify.client.plist", "~/Library/Saved Application State/com.spotify.client.savedState"], signal: []}>}>
==> Uninstalling artifact of class Cask::Artifact::Uninstall
==> Removing launchctl service com.spotify.webhelper
/usr/bin/env /bin/launchctl list com.spotify.webhelper
/usr/bin/sudo -u root -E -- /bin/launchctl list com.spotify.webhelper
Password:
==> Post-uninstalling artifact of class Cask::Artifact::Uninstall
==> Uninstalling artifact of class Cask::Artifact::App
==> Purging files for version 1.2.64.408 of Cask spotify
Error: spotify: It seems there is already an App at '/opt/homebrew/Caskroom/spotify/1.2.32.997,4c6498b6,1686/Spotify.app'.
/opt/homebrew/Library/Homebrew/cask/artifact/moved.rb:151:in 'Cask::Artifact::Moved#move_back'
/opt/homebrew/Library/Homebrew/cask/artifact/moved.rb:21:in 'Cask::Artifact::Moved#uninstall_phase'
/opt/homebrew/Library/Homebrew/cask/installer.rb:554:in 'block in Cask::Installer#uninstall_artifacts'
/opt/homebrew/Library/Homebrew/cask/artifact_set.rb:10:in 'Array#each'
/opt/homebrew/Library/Homebrew/cask/artifact_set.rb:10:in 'Cask::ArtifactSet#each'
/opt/homebrew/Library/Homebrew/cask/installer.rb:551:in 'Cask::Installer#uninstall_artifacts'
/opt/homebrew/Library/Homebrew/cask/installer.rb:512:in 'Cask::Installer#start_upgrade'
/opt/homebrew/Library/Homebrew/cask/upgrade.rb:205:in 'Cask::Upgrade.upgrade_cask'
/opt/homebrew/Library/Homebrew/cask/upgrade.rb:123:in 'block in Cask::Upgrade.upgrade_casks'
/opt/homebrew/Library/Homebrew/cask/upgrade.rb:122:in 'Array#each'
/opt/homebrew/Library/Homebrew/cask/upgrade.rb:122:in 'Cask::Upgrade.upgrade_casks'
/opt/homebrew/Library/Homebrew/cmd/install.rb:262:in 'Homebrew::Cmd::InstallCmd#run'
/opt/homebrew/Library/Homebrew/brew.rb:95:in '<main>'

Output of brew doctor and brew config

Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: Some installed formulae are deprecated or disabled.
You should find replacements for the following formulae:
  icu4c@76

Warning: The following formulae have the same name as core formulae:
  hashicorp/tap/consul-template
  hashicorp/tap/levant
  hashicorp/tap/nomad
  hashicorp/tap/packer
  hashicorp/tap/terraform
  hashicorp/tap/terraform-ls
  hashicorp/tap/vault
  hashicorp/tap/waypoint
Their taps are in use, so you must use these full names throughout Homebrew.

Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae and may need to be deleted.

Unexpected dylibs:
  /usr/local/lib/libcrc32c.1.1.0.dylib

Warning: Unbrewed header files were found in /usr/local/include.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae and may need to be deleted.

Unexpected header files:
  /usr/local/include/crc32c/*

HOMEBREW_VERSION: 4.5.2
ORIGIN: https://github.com/Homebrew/brew
HEAD: 6f39076b3c2251994419215279d0525ef667fc31
Last commit: 2 weeks ago
Branch: stable
Core tap JSON: 25 May 17:30 UTC
Core cask tap JSON: 25 May 17:30 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 11
Homebrew Ruby: 3.4.3 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.4.3/bin/ruby
CPU: 11-core 64-bit arm_lobos
Clang: 17.0.0 build 1700
Git: 2.49.0 => /opt/homebrew/bin/git
Curl: 8.7.1 => /usr/bin/curl
macOS: 15.5-arm64
CLT: 16.3.0.0.1.1742442376
Xcode: N/A
Rosetta 2: false

Output of brew tap

hashicorp/tap

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleIssue which has not received any feedback for some time.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions