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

Spotify endless loop "cannot be verified" #161665

Open
6 tasks done
matkoch opened this issue Dec 5, 2023 · 50 comments · Fixed by #170742
Open
6 tasks done

Spotify endless loop "cannot be verified" #161665

matkoch opened this issue Dec 5, 2023 · 50 comments · Fixed by #170742

Comments

@matkoch
Copy link

matkoch commented Dec 5, 2023

Verification

Description of issue

I've updated Spotify about 2 weeks ago. I'm not sure I restarted my system since then, but once I did today, I'm in an endless loop of this dialog:

2023-12-05-CleanShot-CleanShot-001443

It doesn't matter what option I choose, after 10 seconds, the dialog appears again (and steals focus).

I tried brew uninstall (with force), but it kept happening.

I noticed that after disabling Spotify from login items, it stops happening.

2023-12-05-System Settings-Login Items-001445

Command that failed

brew uninstall --cask spotify --force

Output of command with --verbose --debug

...

Output of brew doctor and brew config

HOMEBREW_VERSION: 4.1.23
ORIGIN: https://github.com/Homebrew/brew
HEAD: fc259153591a309e2b6fee6f971eb61b16a3b6c0
Last commit: 12 hours ago
Core tap JSON: 05 Dec 07:01 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 10
Homebrew Ruby: 3.1.4 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/bin/ruby
CPU: 10-core 64-bit arm_firestorm_icestorm
Clang: 15.0.0 build 1500
Git: 2.40.0 => /opt/homebrew/bin/git
Curl: 8.1.2 => /usr/bin/curl
macOS: 14.0-arm64
CLT: N/A
Xcode: 15.0.1
Rosetta 2: false

Output of brew tap

1password/tap
adoptopenjdk/openjdk
azure/functions
homebrew/bundle
homebrew/cask-drivers
homebrew/cask-fonts
homebrew/cask-versions
iina/mpv-iina
jetbrains/utils
oven-sh/bun
powershell/tap
romkatv/powerlevel10k
sidneys/homebrew
teamookla/speedtest
yt-dlp/taps
@bevanjkay
Copy link
Member

Can you please include the details from brew config as it helps to diagnose the issue knowing which software / hardware your system utilises.

@matkoch
Copy link
Author

matkoch commented Dec 5, 2023

HOMEBREW_VERSION: 4.1.23
ORIGIN: https://github.com/Homebrew/brew
HEAD: fc259153591a309e2b6fee6f971eb61b16a3b6c0
Last commit: 12 hours ago
Core tap JSON: 05 Dec 07:01 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 10
Homebrew Ruby: 3.1.4 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/bin/ruby
CPU: 10-core 64-bit arm_firestorm_icestorm
Clang: 15.0.0 build 1500
Git: 2.40.0 => /opt/homebrew/bin/git
Curl: 8.1.2 => /usr/bin/curl
macOS: 14.0-arm64
CLT: N/A
Xcode: 15.0.1
Rosetta 2: false

@bevanjkay
Copy link
Member

bevanjkay commented Dec 5, 2023

@matkoch I can replicate this issue, I'm not sure of the issue but it seems to be do with Quarantine. I'll look into it further tomorrow.

@krehel
Copy link
Member

krehel commented Dec 6, 2023

Is this issue with the most up to date version of Spotify? Looks like the software was updated on 24-Nov, which is after the date of download in the original screenshot. If not, can you update and see if this is replicated?

I also assume this is the Apple Silicon native version of Spotify, and not the Intel version with Rosetta?

I wasn't able to replicate this, unfortunately. (I know, not helpful.) I don't use Spotify anymore; I installed on a machine that has never had it. But no issues with brew install and launching.

@bevanjkay
Copy link
Member

Interestingly I have seen this issue before, but got around it with a quarantine method that I will not recommend.
But it seems that after uninstalling, and doing a full clean install the issue does not persist.

@krehel
Copy link
Member

krehel commented Dec 6, 2023

Yeah, I wasn't going to post as I didn't think it would be helpful, but thought a data point from never having it installed and being successful might point to something wrong for an upgrade workflow.

@matkoch
Copy link
Author

matkoch commented Dec 6, 2023

@krehel the screenshots are from yesterday. I also did a brew uninstall and brew install right before. Idk why the screenshots still mention Nov 20.

@ringods
Copy link
Contributor

ringods commented Dec 6, 2023

I encounter this today as well with the very latest version on my Intel MBP.

Screenshot 2023-12-06 at 19 56 16

But it is not the first time I have this with Spotify. I have had this with some of the previous version too. In such case, I open System Settings and go to Privacy & Security. After the previous dialog, you should see the following:

Screenshot 2023-12-06 at 19 59 32

After clicking Open Anyway, you get the macOS cannot verify... dialog again. If you click on Open there, Spotify launches.

All in all, Spotify should be verified company. The steps above don't feel safe & shouldn't be needed

@matkoch
Copy link
Author

matkoch commented Dec 6, 2023

FYI, the "Open Anyway" did NOT fix it for me. I should've included that in the OP.

@jarne
Copy link
Contributor

jarne commented Dec 13, 2023

Had the same issue here on an M1 Mac. uninstall and then install again fixed it for me (reinstall didn't).

@tuxpeople
Copy link
Contributor

tuxpeople commented Dec 18, 2023

Had the same issue here on an M1 Mac. uninstall and then install again fixed it for me (reinstall didn't).

Same problem here, but on an Intel Mac. uninstall and install fixed it for me as well:

 tdeutsch at thor in ~
$ brew uninstall spotify
==> Uninstalling Cask spotify
==> Removing launchctl service com.spotify.webhelper
Password:
==> Backing App 'Spotify.app' up to '/usr/local/Caskroom/spotify/1.2.26.1187,36b
==> Removing App '/Applications/Spotify.app'
==> Purging files for version 1.2.26.1187,36b715a1,270 of Cask spotify

 tdeutsch at thor in ~
$ brew install spotify
Running `brew update --auto-update`...
Installing from the API is now the default behaviour!
You can save space and time by running:
  brew untap homebrew/core
  brew untap homebrew/cask
==> Auto-updated Homebrew!
Updated 4 taps (aquasecurity/trivy, homebrew/cask-versions, homebrew/cask-fonts and homebrew/cask).
==> New Casks
font-playwrite-co          font-playwrite-fr-trad     sakura

You have 4 outdated formulae installed.

==> Downloading https://download.scdn.co/Spotify.dmg
###################################################################################################################################################################### 100.0%
Warning: No checksum defined for cask 'spotify', skipping verification.
==> Installing Cask spotify
==> Moving App 'Spotify.app' to '/Applications/Spotify.app'
🍺  spotify was successfully installed!

MacOS only asked if I really want to open this app downloaded by cask from the internet. This was a one time only dialog, next start of Spotify was without any dialogs.

@ringods
Copy link
Contributor

ringods commented Jan 8, 2024

Today, this cannot be verified error started to happen for cask warp on my M1 MacBook Pro also. An uninstall, cleanup and install (not reinstall) worked to resolve it, but it is quite annoying having to do this.

Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@github-actions github-actions bot added the stale Issue which has not received any feedback for some time. label Jan 30, 2024
@ulgens
Copy link
Contributor

ulgens commented Feb 5, 2024

This is definitely not stale. I'm having this issue once in every two weeks.

@github-actions github-actions bot removed the stale Issue which has not received any feedback for some time. label Feb 5, 2024
@p-linnane
Copy link
Member

Apologies for the issue going stale, and we appreciate everyone's patience. We are looking into this and believe we have a lead on why it's happening. More to come.

@ringods
Copy link
Contributor

ringods commented Feb 14, 2024

Looking forward to the direction you are investigating, @p-linnane. Bumped into this problem again today and would really see this fixed. It is so annoying.

@bevanjkay
Copy link
Member

Did you do anything specific before it happened again? Trying to establish how to replicate the issue consistently

@ringods
Copy link
Contributor

ringods commented Feb 14, 2024

From time to time, I upgrade all my casks using brew-cask-upgrade. When I run brew cu --all, I see which ones need an update. A few days ago, I picked up this new release of Spotify.

Current output from brew cu --all for Spotify:

26/33  spotify                     1.2.30.1135                   1.2.30.1135                    Y   [   OK   ]

Since then, my Spotify setup is broken again with the cannot be verified error again. A brew reinstall --cask spotify doesn't help.

@bevanjkay
Copy link
Member

Thanks for the info. You can fix it temporarily by running brew uninstall spotify and then brew install spotify

@ulgens
Copy link
Contributor

ulgens commented Feb 14, 2024

Thanks for the info. You can fix it temporarily by running brew uninstall spotify and then brew install spotify

This doesn't surpass the problem for me. I also had to clean the cache and restart the device to get rid of that error.

@a1rwulf
Copy link

a1rwulf commented Feb 18, 2024

This is a super annoying issue.
I uninstalled the app and ran brew cleanup but that still doesn't get rid of the message loop.
How can you get this message for an app that doesn't even exist on the system!?

@ihor-sviziev
Copy link

ihor-sviziev commented Mar 26, 2024

Same issue with spotify happened to me today. brew uninstall --cask spotify, brew cleanup, and brew install --cask spotify helped, but it's annoying. This definitely should be fixed.
It looks like the issue started happening after upgrading MacOS from 14.4 to 14.4.1. Maybe some system files that were modified by Brew get overridden during the update?

@razvanazamfirei
Copy link
Member

Thanks for your patience, everyone! We're pushing a change that hopefully fixes the issue. If people are still having an issue, please let me know. Please also provide the output of:

launchctl list | grep spotify

as well as any Spotify-related Console logs.

@ihor-sviziev
Copy link

ihor-sviziev commented Apr 8, 2024

@razvanazamfirei, unfortunately, today got a new update, and the same issue happened.
image


➜  ~ launchctl list | grep spotify                                            ✔

26255	0	application.com.spotify.client.138935288.141593500
Logs
default	12:26:10.810897+0300	Spotlight	Requested application com.spotify.client has policy OK, associated categories:DH1003 associated sites:open.spotify.com,www.open.spotify.com,m.open.spotify.com,mobile.open.spotify.com,play.spotify.com,www.play.spotify.com,m.play.spotify.com,mobile.play.spotify.com equivalent bundle identifiers:com.spotify.client,com.spotify.client.watchkitapp
default	12:26:10.953073+0300	lsd	com.spotify.client/Unknown Persona:5:5:1:1:Building bundle record for app
default	12:26:10.953207+0300	lsd	com.spotify.client/Unknown Persona:5:5:2:1:Built bundle record for app
default	12:26:10.963915+0300	lsd	com.spotify.client/Unknown Persona:5:4:2:1:_LSServerRegisterItemInfo result = 0
default	12:26:10.986938+0300	runningboardd	Assertion 420-845-140826 (target:app<application.com.spotify.client.138935288.141593500(501)>) will be created as active
default	12:26:10.987128+0300	runningboardd	Executing launch request for app<application.com.spotify.client.138935288.141593500(501)> (LS launch com.spotify.client)
default	12:26:10.987143+0300	runningboardd	Checking PreventLaunch: global:0 exPath:/Applications/Spotify.app/Contents/MacOS/Spotify predicates:(null) allow:(null)
default	12:26:10.987168+0300	runningboardd	Creating and launching job for: app<application.com.spotify.client.138935288.141593500(501)>
default	12:26:10.987179+0300	runningboardd	_mutateContextIfNeeded called for com.spotify.client
default	12:26:10.987418+0300	runningboardd	app<application.com.spotify.client.138935288.141593500(501)>: -[RBPersonaManager personaForIdentity:context:personaUID:personaUniqueString:] required 0.000000 ms (wallclock); resolved to {4294967295, (null)}
default	12:26:10.988197+0300	runningboardd	'app<application.com.spotify.client.138935288.141593500(501)>' Constructed job description:
<dictionary: 0x14b6ed270> { count = 23, transaction: 0, voucher = 0x0, contents =
	"Platform" => <int64: 0x9eb98a1dc144024f>: 1
	"ProcessType" => <string: 0x14cb23770> { length = 3, contents = "App" }
	"EnableTransactions" => <bool: 0x1fd799c90>: false
	"_ManagedBy" => <string: 0x14b6cd5c0> { length = 22, contents = "com.apple.runningboard" }
	"CFBundleIdentifier" => <string: 0x14cb1d8e0> { length = 18, contents = "com.spotify.client" }
	"_ResourceCoalition" => <string: 0x14cb1e470> { length = 60, contents = "app<application.com.spotify.client.138935288.141593500(501)>" }
	"_DisablePointerAuth" => <bool: 0x1fd799c70>: true
	"ThrottleInterval" => <int64: 0x9eb98a1e3ebbfdbf>: 2147483647
	"MachServices" => <dictionary: 0x14cb26020> { count = 0, transaction: 0, voucher = 0x0, contents =
	}
	"EnablePressuredExit" => <bool: 0x1fd799c90>: false
	"LimitLoadToSessionType" => <array: 0x14cb34f60> { count = 2, capacity = 8, contents =
		0: <string: 0x14cb1e010> { length = 4, contents = "Aqua" }
		1: <string: 0x14cb287f0> { length = 11, contents = "LoginWindow" }
	}
	"InitialTaskRole" => <int64: 0x9eb98a1dc1440257>: 2
	"EnvironmentVariables" => <dictionary: 0x14cb336f0> { count = 12, transaction: 0, voucher = 0x0, contents =
		"__CF_USER_TEXT_ENCODING" => <string: 0x14cb41eb0> { length = 13, contents = "0x1F5:0x0:0x0" }
		"TMPDIR" => <string: 0x14cb246b0> { length = 49, contents = "/var/folders/cs/l3838s9x1gdcktq5p9jlmcpc0000gn/T/" }
		"SHELL" => <string: 0x14cb168d0> { length = 8, contents = "/bin/zsh" }
		"HOME" => <string: 0x14cb1c450> { length = 11, contents = "/Users/ihor" }
		"SSH_AUTH_SOCK" => <string: 0x14cb0d720> { length = 51, contents = "/private/tmp/com.apple.launchd.0f87TKIY8v/Listeners" }
		"LOGNAME" => <string: 0x14cb337e0> { length = 4, contents = "ihor" }
		"PATH" => <string: 0x14cb2d520> { length = 29, contents = "/usr/bin:/bin:/usr/sbin:/sbin" }
		"XPC_SERVICE_NAME" => <string: 0x14cb23fb0> { length = 19, contents = "com.apple.Spotlight" }
		"__CFBundleIdentifier" => <string: 0x14cb27ba0> { length = 18, contents = "com.spotify.client" }
		"COMMAND_MODE" => <string: 0x14cb3dbd0> { length = 8, contents = "unix2003" }
		"USER" => <string: 0x14cb420a0> { length = 4, contents = "ihor" }
		"XPC_FLAGS" => <string: 0x14cb27c40> { length = 3, contents = "0x0" }
	}
	"_AdditionalProperties" => <dictionary: 0x14b644de0> { count = 1, transaction: 0, voucher = 0x0, contents =
		"RunningBoard" => <dictionary: 0x14b6bd1e0> { count = 4, transaction: 0, voucher = 0x0, contents =
			"TMPDIR" => <string: 0x14b6cd560> { length = 49, contents = "/var/folders/cs/l3838s9x1gdcktq5p9jlmcpc0000gn/T/" }
			"HOME" => <string: 0x14b611bd0> { length = 11, contents = "/Users/ihor" }
			"RunningBoardLaunchedIdentity" => <dictionary: 0x14b6ecc70> { count = 5, transaction: 0, voucher = 0x0, contents =
				"AJL" => <string: 0x14b6eccd0> { length = 50, contents = "application.com.spotify.client.138935288.141593500" }
				"TYPE" => <int64: 0x9eb98a1dc144024f>: 1
				"AUID" => <uint64: 0x9e398a1dc1440def>: 501
				"EAI" => <string: 0x14b654170> { length = 18, contents = "com.spotify.client" }
				"PLAT" => <uint64: 0x9e398a1dc144024f>: 1
			}
			"RunningBoardLaunched" => <bool: 0x1fd799c70>: true
		}
	}
	"ExitTimeOut" => <int64: 0x9eb98a1dc144024f>: 1
	"Label" => <string: 0x14b66fa30> { length = 50, contents = "application.com.spotify.client.138935288.141593500" }
	"WaitForDebugger" => <bool: 0x1fd799c70>: true
	"MaterializeDatalessFiles" => <bool: 0x1fd799c70>: true
	"WorkingDirectory" => <string: 0x14cb3cc60> { length = 1, contents = "/" }
	"_LaunchType" => <int64: 0x9eb98a1dc144025f>: 3
	"AbandonProcessGroup" => <bool: 0x1fd799c70>: true
	"ProgramArguments" => <array: 0x14b6711c0> { count = 1, capacity = 8, contents =
		0: <string: 0x14b6ddb20> { length = 48, contents = "/Applications/Spotify.app/Contents/MacOS/Spotify" }
	}
	"Program" => <string: 0x14cb26380> { length = 48, contents = "/Applications/Spotify.app/Contents/MacOS/Spotify" }
}
default	12:26:10.999443+0300	runningboardd	[app<application.com.spotify.client.138935288.141593500(501)>:26622] is not RunningBoard jetsam managed.
default	12:26:10.999460+0300	runningboardd	[app<application.com.spotify.client.138935288.141593500(501)>:26622] This process will not be managed.
default	12:26:10.999479+0300	runningboardd	Now tracking process: [app<application.com.spotify.client.138935288.141593500(501)>:26622]
default	12:26:11.001492+0300	runningboardd	Using default underlying assertion for app: [app<application.com.spotify.client.138935288.141593500(501)>:26622]
default	12:26:11.001923+0300	runningboardd	Acquiring assertion targeting [app<application.com.spotify.client.138935288.141593500(501)>:26622] from originator [app<application.com.spotify.client.138935288.141593500(501)>:26622] with description <RBSAssertionDescriptor| "RB Underlying Assertion" ID:420-420-140827 target:26622 attributes:[
	<RBSDomainAttribute| domain:"com.apple.underlying" name:"defaultUnderlyingAppAssertion" sourceEnvironment:"(null)">,
	<RBSAcquisitionCompletionAttribute| policy:AfterApplication>
	]>
default	12:26:11.002070+0300	runningboardd	Assertion 420-420-140827 (target:[app<application.com.spotify.client.138935288.141593500(501)>:26622]) will be created as active
default	12:26:11.002652+0300	runningboardd	[app<application.com.spotify.client.138935288.141593500(501)>:26622] reported to RB as running
default	12:26:11.002551+0300	runningboardd	Calculated state for app<application.com.spotify.client.138935288.141593500(501)>: running-active (role: UserInteractive) (endowments: <private>)
default	12:26:11.002794+0300	runningboardd	[app<application.com.spotify.client.138935288.141593500(501)>:26622] Ignoring jetsam update because this process is not memory-managed
default	12:26:11.002809+0300	runningboardd	[app<application.com.spotify.client.138935288.141593500(501)>:26622] Ignoring suspend because this process is not lifecycle managed
default	12:26:11.002825+0300	runningboardd	[app<application.com.spotify.client.138935288.141593500(501)>:26622] Set darwin role to: UserInteractive
default	12:26:11.003026+0300	runningboardd	[app<application.com.spotify.client.138935288.141593500(501)>:26622] Ignoring GPU update because this process is not GPU managed
default	12:26:11.003096+0300	runningboardd	[app<application.com.spotify.client.138935288.141593500(501)>:26622] Ignoring memory limit update because this process is not memory-managed
default	12:26:11.005742+0300	runningboardd	Acquiring assertion targeting [app<application.com.spotify.client.138935288.141593500(501)>:26622] from originator [osservice<com.apple.coreservices.launchservicesd>:371] with description <RBSAssertionDescriptor| "foregroundApp:26622" ID:420-371-140828 target:26622 attributes:[
	<RBSDomainAttribute| domain:"com.apple.launchservicesd" name:"RoleUserInteractiveNonFocal" sourceEnvironment:"(null)">
	]>
default	12:26:11.005743+0300	runningboardd	Calculated state for app<application.com.spotify.client.138935288.141593500(501)>: running-active (role: UserInteractive) (endowments: <private>)
default	12:26:11.006145+0300	runningboardd	Assertion 420-371-140828 (target:[app<application.com.spotify.client.138935288.141593500(501)>:26622]) will be created as active
default	12:26:11.007812+0300	runningboardd	Invalidating assertion 420-845-140826 (target:app<application.com.spotify.client.138935288.141593500(501)>) from originator [osservice<com.apple.Spotlight(501)>:845]
default	12:26:11.007867+0300	runningboardd	Calculated state for app<application.com.spotify.client.138935288.141593500(501)>: running-active (role: UserInteractive) (endowments: <private>)
default	12:26:11.009238+0300	runningboardd	[app<application.com.spotify.client.138935288.141593500(501)>:26622] Ignoring jetsam update because this process is not memory-managed
default	12:26:11.009274+0300	runningboardd	[app<application.com.spotify.client.138935288.141593500(501)>:26622] Ignoring suspend because this process is not lifecycle managed
default	12:26:11.009361+0300	runningboardd	[app<application.com.spotify.client.138935288.141593500(501)>:26622] Ignoring GPU update because this process is not GPU managed
default	12:26:11.009493+0300	runningboardd	[app<application.com.spotify.client.138935288.141593500(501)>:26622] Ignoring memory limit update because this process is not memory-managed
default	12:26:11.009546+0300	runningboardd	[app<application.com.spotify.client.138935288.141593500(501)>:26622] Ignoring jetsam update because this process is not memory-managed
default	12:26:11.009596+0300	runningboardd	[app<application.com.spotify.client.138935288.141593500(501)>:26622] Ignoring suspend because this process is not lifecycle managed
default	12:26:11.011085+0300	loginwindow	-[PersistentAppsSupport applicationReady:] | App: Spotify, ready, updating active tracking timer
default	12:26:11.011137+0300	loginwindow	-[ApplicationManager checkInAppContext:eventData:] | ApplicationManager: Checked in app : Spotify
default	12:26:11.035943+0300	gamepolicyd	Hit the server for a process handle 1881bcbe000067fe that resolved to: [app<application.com.spotify.client.138935288.141593500(501)>:26622]
default	12:26:11.035983+0300	gamepolicyd	Received state update for 26622 (app<application.com.spotify.client.138935288.141593500(501)>, running-active-NotVisible
default	12:26:11.062894+0300	dmd	Received xpc stream event (distributed notification matching) with name: com.apple.LaunchServices.applicationRegistered user info: {
    bundleIDs =     (
        "com.spotify.client"
    );
    isPlaceholder = 0;
}
default	12:26:11.063224+0300	dmd	Received xpc stream event (distributed notification matching) with name: com.apple.LaunchServices.applicationRegistered user info: {
    bundleIDs =     (
        "com.spotify.client.startuphelper"
    );
    isPlaceholder = 0;
}
default	12:26:11.108820+0300	gamepolicyd	Received state update for 26622 (app<application.com.spotify.client.138935288.141593500(501)>, running-active-NotVisible
default	12:26:11.112656+0300	runningboardd	[app<application.com.spotify.client.138935288.141593500(501)>:26622] Ignoring jetsam update because this process is not memory-managed
default	12:26:11.112674+0300	runningboardd	Calculated state for app<application.com.spotify.client.138935288.141593500(501)>: running-active (role: UserInteractiveNonFocal) (endowments: <private>)
default	12:26:11.112679+0300	runningboardd	[app<application.com.spotify.client.138935288.141593500(501)>:26622] Ignoring suspend because this process is not lifecycle managed
default	12:26:11.112698+0300	runningboardd	[app<application.com.spotify.client.138935288.141593500(501)>:26622] Set darwin role to: UserInteractiveNonFocal
default	12:26:11.112709+0300	runningboardd	[app<application.com.spotify.client.138935288.141593500(501)>:26622] Ignoring GPU update because this process is not GPU managed
default	12:26:11.112729+0300	runningboardd	[app<application.com.spotify.client.138935288.141593500(501)>:26622] Ignoring memory limit update because this process is not memory-managed
default	12:26:11.112996+0300	gamepolicyd	Received state update for 26622 (app<application.com.spotify.client.138935288.141593500(501)>, running-active-NotVisible
default	12:26:14.037178+0300	tccd	AUTHREQ_ATTRIBUTION: msgID=501.56, attribution={accessing={TCCDProcess: identifier=com.spotify.client, pid=26622, auid=501, euid=501, binary_path=/Applications/Spotify.app/Contents/MacOS/Spotify}, requesting={TCCDProcess: identifier=com.apple.syspolicyd, pid=501, auid=0, euid=0, binary_path=/usr/libexec/syspolicyd}, },
default	12:26:14.055125+0300	tccd	AUTHREQ_SUBJECT: msgID=501.56, subject=com.spotify.client,
default	12:26:14.057121+0300	tccd	-[TCCDAccessIdentity staticCode]: static code for: identifier com.spotify.client, type: 0: 0x122f093d0 at /Applications/Spotify.app
default	12:26:14.065609+0300	kernel	ASP: Security policy would not allow process: 26622, /Applications/Spotify.app/Contents/MacOS/Spotify
default	12:26:14.071047+0300	runningboardd	[app<application.com.spotify.client.138935288.141593500(501)>:26622] termination reported by launchd (9, 8, 9)
default	12:26:14.071130+0300	runningboardd	Removing process: [app<application.com.spotify.client.138935288.141593500(501)>:26622]
default	12:26:14.071620+0300	runningboardd	Removing launch job for: [app<application.com.spotify.client.138935288.141593500(501)>:26622]
default	12:26:14.072063+0300	runningboardd	Removed job for [app<application.com.spotify.client.138935288.141593500(501)>:26622]
default	12:26:14.072107+0300	runningboardd	Removing assertions for terminated process: [app<application.com.spotify.client.138935288.141593500(501)>:26622]
default	12:26:14.080430+0300	runningboardd	Calculated state for app<application.com.spotify.client.138935288.141593500(501)>: none (role: None) (endowments: (null))
default	12:26:14.080734+0300	runningboardd	Calculated state for app<application.com.spotify.client.138935288.141593500(501)>: none (role: None) (endowments: (null))
default	12:26:14.086889+0300	launchservicesd	Hit the server for a process handle 1881bcbe000067fe that resolved to: [app<application.com.spotify.client.138935288.141593500(501)>:26622]
default	12:26:14.088507+0300	gamepolicyd	Received state update for 26622 (app<application.com.spotify.client.138935288.141593500(501)>, none-NotVisible
default	12:26:14.101738+0300	loginwindow	-[PersistentAppsSupport applicationQuit:] | for app:Spotify, _appTrackingState = 2
default	12:26:14.101768+0300	loginwindow	-[PersistentAppsSupport applicationQuit:] | App: Spotify, quit, updating active tracking timer
default	12:26:19.193182+0300	NotificationCenter	Looking up app info for com.spotify.client
default	12:26:19.214807+0300	NotificationCenter	Found info for com.spotify.client at <private>. app name: Spotify activities: ["pv-d66c169b947eca", "NOTIFICATION#2FNC3A47ZF:com.spotify.client"]

@ulgens
Copy link
Contributor

ulgens commented Apr 9, 2024

I also had the issue with the latest update, but the error message appeared less often. I think it was only once, I wasn't exactly watching for it but it was definitely not frustrating as before.

@jeremie-huy
Copy link

Tried a bunch of uninstall/cleanup/update/reinstall but nothing changed.

What did it for me was to disable Spotify in the Login Items -> Allow in the Background list, the app still works so all good I guess?

@ihor-sviziev
Copy link

ihor-sviziev commented Apr 11, 2024

@razvanazamfirei, I've got a new update today, and this time, Spotify was running while I ran brew upgrade --cask.

==> Upgrading 1 outdated package:
spotify 1.2.34.783,923721d9,4676 -> 1.2.35.663,b699649e,5769

After the upgrade, I re-launched my Spotify, and everything worked fine—it just launched. Now, I'm confused.
This behavior may be broken when the Spotify app is not running during upgrade.

Edit: Today, I got another update, and Spotify wasn't running at that time. After the upgrade, I tried to open Spotify, and got this issue again:
image

So it looks like the issue appear only when Stotify app is closed

Details

default	13:56:21.123498+0300	runningboardd	Launch request for app<application.com.spotify.client.141805413.145468815(501)>[0] is using uid 501 (divined from auid 501 euid 501)
default	13:56:21.123559+0300	runningboardd	Acquiring assertion targeting app<application.com.spotify.client.141805413.145468815(501)> from originator [osservice<com.apple.Spotlight(501)>:87001] with description <RBSAssertionDescriptor| "LS launch com.spotify.client" ID:394-87001-1812140 target:app<application.com.spotify.client.141805413.145468815(501)> attributes:[
	<RBSDomainAttribute| domain:"com.apple.launchservicesd" name:"LaunchRoleUserInteractive" sourceEnvironment:"(null)">
	]>
default	13:56:21.123619+0300	runningboardd	Assertion 394-87001-1812140 (target:app<application.com.spotify.client.141805413.145468815(501)>) will be created as active
default	13:56:21.123780+0300	runningboardd	Executing launch request for app<application.com.spotify.client.141805413.145468815(501)> (LS launch com.spotify.client)
default	13:56:21.123805+0300	runningboardd	Checking PreventLaunch: global:0 exPath:/Applications/Spotify.app/Contents/MacOS/Spotify predicates:(null) allow:(null)
default	13:56:21.123837+0300	runningboardd	Creating and launching job for: app<application.com.spotify.client.141805413.145468815(501)>
default	13:56:21.125693+0300	runningboardd	_mutateContextIfNeeded called for com.spotify.client
default	13:56:21.125749+0300	runningboardd	app<application.com.spotify.client.141805413.145468815(501)>: -[RBPersonaManager personaForIdentity:context:personaUID:personaUniqueString:] required 0.000000 ms (wallclock); resolved to {4294967295, (null)}
default	13:56:21.125838+0300	runningboardd	'app<application.com.spotify.client.141805413.145468815(501)>' Constructed job description:
<dictionary: 0x13523a5a0> { count = 23, transaction: 0, voucher = 0x0, contents =
	"Platform" => <int64: 0x8d510ba0ee1f8577>: 1
	"ProcessType" => <string: 0x1352a09b0> { length = 3, contents = "App" }
	"EnableTransactions" => <bool: 0x203a65c90>: false
	"_ManagedBy" => <string: 0x135299720> { length = 22, contents = "com.apple.runningboard" }
	"CFBundleIdentifier" => <string: 0x1352a0b30> { length = 18, contents = "com.spotify.client" }
	"_ResourceCoalition" => <string: 0x1352a0aa0> { length = 60, contents = "app<application.com.spotify.client.141805413.145468815(501)>" }
	"_DisablePointerAuth" => <bool: 0x203a65c70>: true
	"ThrottleInterval" => <int64: 0x8d510ba311e07a87>: 2147483647
	"MachServices" => <dictionary: 0x1352a0ba0> { count = 0, transaction: 0, voucher = 0x0, contents =
	}
	"EnablePressuredExit" => <bool: 0x203a65c90>: false
	"LimitLoadToSessionType" => <array: 0x135292090> { count = 2, capacity = 8, contents =
		0: <string: 0x135292100> { length = 4, contents = "Aqua" }
		1: <string: 0x135292130> { length = 11, contents = "LoginWindow" }
	}
	"InitialTaskRole" => <int64: 0x8d510ba0ee1f856f>: 2
	"EnvironmentVariables" => <dictionary: 0x135289d70> { count = 12, transaction: 0, voucher = 0x0, contents =
		"__CF_USER_TEXT_ENCODING" => <string: 0x135291fe0> { length = 13, contents = "0x1F5:0x0:0x0" }
		"TMPDIR" => <string: 0x13524f420> { length = 49, contents = "/var/folders/cs/l3838s9x1gdcktq5p9jlmcpc0000gn/T/" }
		"SHELL" => <string: 0x135291f80> { length = 8, contents = "/bin/zsh" }
		"HOME" => <string: 0x13524f550> { length = 11, contents = "/Users/ihor" }
		"SSH_AUTH_SOCK" => <string: 0x13524f6c0> { length = 51, contents = "/private/tmp/com.apple.launchd.Km7TVnGzKz/Listeners" }
		"LOGNAME" => <string: 0x13524f480> { length = 4, contents = "ihor" }
		"PATH" => <string: 0x135289df0> { length = 29, contents = "/usr/bin:/bin:/usr/sbin:/sbin" }
		"XPC_SERVICE_NAME" => <string: 0x135291f10> { length = 19, contents = "com.apple.Spotlight" }
		"__CFBundleIdentifier" => <string: 0x13524f4e0> { length = 18, contents = "com.spotify.client" }
		"COMMAND_MODE" => <string: 0x135289e50> { length = 8, contents = "unix2003" }
		"USER" => <string: 0x13524f620> { length = 4, contents = "ihor" }
		"XPC_FLAGS" => <string: 0x13524f5b0> { length = 3, contents = "0x0" }
	}
	"_AdditionalProperties" => <dictionary: 0x1352961c0> { count = 1, transaction: 0, voucher = 0x0, contents =
		"RunningBoard" => <dictionary: 0x135296260> { count = 4, transaction: 0, voucher = 0x0, contents =
			"TMPDIR" => <string: 0x135239640> { length = 49, contents = "/var/folders/cs/l3838s9x1gdcktq5p9jlmcpc0000gn/T/" }
			"HOME" => <string: 0x1352395a0> { length = 11, contents = "/Users/ihor" }
			"RunningBoardLaunchedIdentity" => <dictionary: 0x135296300> { count = 5, transaction: 0, voucher = 0x0, contents =
				"AJL" => <string: 0x1352418f0> { length = 50, contents = "application.com.spotify.client.141805413.145468815" }
				"TYPE" => <int64: 0x8d510ba0ee1f8577>: 1
				"AUID" => <uint64: 0x8dd10ba0ee1f8ad7>: 501
				"EAI" => <string: 0x135241850> { length = 18, contents = "com.spotify.client" }
				"PLAT" => <uint64: 0x8dd10ba0ee1f8577>: 1
			}
			"RunningBoardLaunched" => <bool: 0x203a65c70>: true
		}
	}
	"ExitTimeOut" => <int64: 0x8d510ba0ee1f8577>: 1
	"Label" => <string: 0x1352997d0> { length = 50, contents = "application.com.spotify.client.141805413.145468815" }
	"WaitForDebugger" => <bool: 0x203a65c70>: true
	"MaterializeDatalessFiles" => <bool: 0x203a65c70>: true
	"WorkingDirectory" => <string: 0x1352921e0> { length = 1, contents = "/" }
	"_LaunchType" => <int64: 0x8d510ba0ee1f8567>: 3
	"AbandonProcessGroup" => <bool: 0x203a65c70>: true
	"ProgramArguments" => <array: 0x135299830> { count = 1, capacity = 8, contents =
		0: <string: 0x135289c60> { length = 48, contents = "/Applications/Spotify.app/Contents/MacOS/Spotify" }
	}
	"Program" => <string: 0x135289cd0> { length = 48, contents = "/Applications/Spotify.app/Contents/MacOS/Spotify" }
}
default	13:56:21.146261+0300	runningboardd	[app<application.com.spotify.client.141805413.145468815(501)>:46169] is not RunningBoard jetsam managed.
default	13:56:21.146279+0300	runningboardd	[app<application.com.spotify.client.141805413.145468815(501)>:46169] This process will not be managed.
default	13:56:21.146291+0300	runningboardd	Now tracking process: [app<application.com.spotify.client.141805413.145468815(501)>:46169]
default	13:56:21.146485+0300	runningboardd	Calculated state for app<application.com.spotify.client.141805413.145468815(501)>: running-active (role: UserInteractive) (endowments: <private>)
default	13:56:21.146995+0300	runningboardd	Using default underlying assertion for app: [app<application.com.spotify.client.141805413.145468815(501)>:46169]
default	13:56:21.147090+0300	runningboardd	Acquiring assertion targeting [app<application.com.spotify.client.141805413.145468815(501)>:46169] from originator [app<application.com.spotify.client.141805413.145468815(501)>:46169] with description <RBSAssertionDescriptor| "RB Underlying Assertion" ID:394-394-1812141 target:46169 attributes:[
	<RBSDomainAttribute| domain:"com.apple.underlying" name:"defaultUnderlyingAppAssertion" sourceEnvironment:"(null)">,
	<RBSAcquisitionCompletionAttribute| policy:AfterApplication>
	]>
default	13:56:21.147334+0300	gamepolicyd	Hit the server for a process handle 171d4a890000b459 that resolved to: [app<application.com.spotify.client.141805413.145468815(501)>:46169]
default	13:56:21.147391+0300	gamepolicyd	Received state update for 46169 (app<application.com.spotify.client.141805413.145468815(501)>, running-active-NotVisible
default	13:56:21.147455+0300	runningboardd	Assertion 394-394-1812141 (target:[app<application.com.spotify.client.141805413.145468815(501)>:46169]) will be created as active
default	13:56:21.147644+0300	runningboardd	[app<application.com.spotify.client.141805413.145468815(501)>:46169] Ignoring jetsam update because this process is not memory-managed
default	13:56:21.147780+0300	runningboardd	[app<application.com.spotify.client.141805413.145468815(501)>:46169] reported to RB as running
default	13:56:21.147809+0300	runningboardd	[app<application.com.spotify.client.141805413.145468815(501)>:46169] Ignoring suspend because this process is not lifecycle managed
default	13:56:21.147859+0300	runningboardd	[app<application.com.spotify.client.141805413.145468815(501)>:46169] Set darwin role to: UserInteractive
default	13:56:21.147897+0300	runningboardd	[app<application.com.spotify.client.141805413.145468815(501)>:46169] Ignoring GPU update because this process is not GPU managed
default	13:56:21.147954+0300	runningboardd	[app<application.com.spotify.client.141805413.145468815(501)>:46169] Ignoring memory limit update because this process is not memory-managed
default	13:56:21.149959+0300	runningboardd	Calculated state for app<application.com.spotify.client.141805413.145468815(501)>: running-active (role: UserInteractive) (endowments: <private>)
default	13:56:21.155232+0300	runningboardd	Acquiring assertion targeting [app<application.com.spotify.client.141805413.145468815(501)>:46169] from originator [osservice<com.apple.coreservices.launchservicesd>:362] with description <RBSAssertionDescriptor| "foregroundApp:46169" ID:394-362-1812142 target:46169 attributes:[
	<RBSDomainAttribute| domain:"com.apple.launchservicesd" name:"RoleUserInteractiveNonFocal" sourceEnvironment:"(null)">
	]>
default	13:56:21.155299+0300	runningboardd	Assertion 394-362-1812142 (target:[app<application.com.spotify.client.141805413.145468815(501)>:46169]) will be created as active
default	13:56:21.156681+0300	runningboardd	Invalidating assertion 394-87001-1812140 (target:app<application.com.spotify.client.141805413.145468815(501)>) from originator [osservice<com.apple.Spotlight(501)>:87001]
default	13:56:21.156905+0300	runningboardd	Calculated state for app<application.com.spotify.client.141805413.145468815(501)>: running-active (role: UserInteractive) (endowments: <private>)
default	13:56:21.158581+0300	runningboardd	[app<application.com.spotify.client.141805413.145468815(501)>:46169] Ignoring jetsam update because this process is not memory-managed
default	13:56:21.158624+0300	runningboardd	[app<application.com.spotify.client.141805413.145468815(501)>:46169] Ignoring suspend because this process is not lifecycle managed
default	13:56:21.158643+0300	runningboardd	[app<application.com.spotify.client.141805413.145468815(501)>:46169] Ignoring GPU update because this process is not GPU managed
default	13:56:21.158993+0300	runningboardd	[app<application.com.spotify.client.141805413.145468815(501)>:46169] Ignoring memory limit update because this process is not memory-managed
default	13:56:21.159152+0300	runningboardd	[app<application.com.spotify.client.141805413.145468815(501)>:46169] Ignoring jetsam update because this process is not memory-managed
default	13:56:21.159588+0300	runningboardd	[app<application.com.spotify.client.141805413.145468815(501)>:46169] Ignoring suspend because this process is not lifecycle managed
default	13:56:21.159817+0300	runningboardd	Successfully acquired underlying assertion for [app<application.com.spotify.client.141805413.145468815(501)>:46169]
default	13:56:21.159972+0300	runningboardd	[app<application.com.spotify.client.141805413.145468815(501)>:46169] Ignoring GPU update because this process is not GPU managed
default	13:56:21.160660+0300	runningboardd	[app<application.com.spotify.client.141805413.145468815(501)>:46169] Ignoring memory limit update because this process is not memory-managed
default	13:56:21.163537+0300	distnoted	register name: com.apple.sharedfilelist.change object: com.apple.LSSharedFileList.ApplicationRecentDocuments/com.spotify.client token: 17800000039 pid: 86953
default	13:56:21.171931+0300	loginwindow	-[PersistentAppsSupport applicationReady:] | App: Spotify, ready, updating active tracking timer
default	13:56:21.171998+0300	loginwindow	-[ApplicationManager checkInAppContext:eventData:] | ApplicationManager: Checked in app : Spotify
default	13:56:21.208277+0300	gamepolicyd	Received state update for 46169 (app<application.com.spotify.client.141805413.145468815(501)>, running-active-NotVisible
default	13:56:21.225281+0300	runningboardd	Calculated state for app<application.com.spotify.client.141805413.145468815(501)>: running-active (role: UserInteractiveNonFocal) (endowments: <private>)
default	13:56:21.225528+0300	runningboardd	[app<application.com.spotify.client.141805413.145468815(501)>:46169] Ignoring jetsam update because this process is not memory-managed
default	13:56:21.225563+0300	runningboardd	[app<application.com.spotify.client.141805413.145468815(501)>:46169] Ignoring suspend because this process is not lifecycle managed
default	13:56:21.225608+0300	runningboardd	[app<application.com.spotify.client.141805413.145468815(501)>:46169] Set darwin role to: UserInteractiveNonFocal
default	13:56:21.225642+0300	runningboardd	[app<application.com.spotify.client.141805413.145468815(501)>:46169] Ignoring GPU update because this process is not GPU managed
default	13:56:21.225702+0300	runningboardd	[app<application.com.spotify.client.141805413.145468815(501)>:46169] Ignoring memory limit update because this process is not memory-managed
default	13:56:21.260701+0300	gamepolicyd	Received state update for 46169 (app<application.com.spotify.client.141805413.145468815(501)>, running-active-NotVisible
default	13:56:26.292596+0300	runningboardd	Assertion did invalidate due to timeout: 394-394-1812141 (target:[app<application.com.spotify.client.141805413.145468815(501)>:46169])
default	13:56:26.391503+0300	runningboardd	[app<application.com.spotify.client.141805413.145468815(501)>:46169] Ignoring jetsam update because this process is not memory-managed
default	13:56:26.391551+0300	runningboardd	[app<application.com.spotify.client.141805413.145468815(501)>:46169] Ignoring suspend because this process is not lifecycle managed
default	13:56:26.391596+0300	runningboardd	[app<application.com.spotify.client.141805413.145468815(501)>:46169] Ignoring GPU update because this process is not GPU managed
default	13:56:26.391685+0300	runningboardd	[app<application.com.spotify.client.141805413.145468815(501)>:46169] Ignoring memory limit update because this process is not memory-managed
default	13:56:26.391638+0300	runningboardd	Calculated state for app<application.com.spotify.client.141805413.145468815(501)>: running-active (role: UserInteractiveNonFocal) (endowments: <private>)
default	13:56:26.393142+0300	gamepolicyd	Received state update for 46169 (app<application.com.spotify.client.141805413.145468815(501)>, running-active-NotVisible
default	13:57:20.240510+0300	runningboardd	Periodic Run States <RBProcessState| identity:app<application.com.spotify.client.141805413.145468815(501)> role:UserInteractiveNonFocal gpuRole:None explicitJetsamBand:0 memoryLimit:Inactive(Default) flags:60 guaranteedRunning:NO legacyFinishTaskReason:0 inheritances:<RBMutableInheritanceCollection| inheritancesByEnvironment:{
	
	}> primitiveAssertions:[
	<RBSProcessAssertionInfo| type:2 reason:20248 name:"Domain" domain:"com.apple.launchservicesd:RoleUserInteractiveNonFocal" expl:"foregroundApp:46169">
	] endowments:[
	<RBSProcessEndowmentInfo| namespace:com.apple.launchservices.userfacing env:(null)  0>
	]>

After pressing "cancel" button, I got the following logs:

Details

default	13:58:29.739398+0300	tccd	AUTHREQ_ATTRIBUTION: msgID=515.160, attribution={accessing={TCCDProcess: identifier=com.spotify.client, pid=46169, auid=501, euid=501, binary_path=/Applications/Spotify.app/Contents/MacOS/Spotify}, requesting={TCCDProcess: identifier=com.apple.syspolicyd, pid=515, auid=0, euid=0, binary_path=/usr/libexec/syspolicyd}, },
default	13:58:29.750466+0300	tccd	AUTHREQ_SUBJECT: msgID=515.160, subject=com.spotify.client,
default	13:58:29.751527+0300	tccd	-[TCCDAccessIdentity staticCode]: static code for: identifier com.spotify.client, type: 0: 0x12cb48700 at /Applications/Spotify.app
default	13:58:29.756105+0300	kernel	ASP: Security policy would not allow process: 46169, /Applications/Spotify.app/Contents/MacOS/Spotify
default	13:58:29.758927+0300	runningboardd	[app<application.com.spotify.client.141805413.145468815(501)>:46169] termination reported by launchd (9, 8, 9)
default	13:58:29.759329+0300	runningboardd	Removing process: [app<application.com.spotify.client.141805413.145468815(501)>:46169]
default	13:58:29.759654+0300	runningboardd	Removing launch job for: [app<application.com.spotify.client.141805413.145468815(501)>:46169]
default	13:58:29.760040+0300	runningboardd	Removed job for [app<application.com.spotify.client.141805413.145468815(501)>:46169]
default	13:58:29.760071+0300	runningboardd	Removing assertions for terminated process: [app<application.com.spotify.client.141805413.145468815(501)>:46169]
default	13:58:29.765646+0300	runningboardd	Calculated state for app<application.com.spotify.client.141805413.145468815(501)>: none (role: None) (endowments: (null))
default	13:58:29.765866+0300	runningboardd	Calculated state for app<application.com.spotify.client.141805413.145468815(501)>: none (role: None) (endowments: (null))
default	13:58:29.770226+0300	gamepolicyd	Received state update for 46169 (app<application.com.spotify.client.141805413.145468815(501)>, none-NotVisible
default	13:58:29.770456+0300	launchservicesd	Hit the server for a process handle 171d4a890000b459 that resolved to: [app<application.com.spotify.client.141805413.145468815(501)>:46169]
default	13:58:29.780399+0300	loginwindow	-[PersistentAppsSupport applicationQuit:] | for app:Spotify, _appTrackingState = 2
default	13:58:29.780436+0300	loginwindow	-[PersistentAppsSupport applicationQuit:] | App: Spotify, quit, updating active tracking timer
default	13:58:34.829301+0300	NotificationCenter	Looking up app info for com.spotify.client
default	13:58:34.840157+0300	NotificationCenter	Found info for com.spotify.client at <private>. app name: Spotify activities: ["pv-d66c169b947eca", "NOTIFICATION#2FNC3A47ZF:com.spotify.client"]


@shiftgeist
Copy link

For me a new entry below Settings -> Gatekeeper -> Allow applications downloaded from "App Store and identified developers appears after starting spotify with the same prompt as seen in the issue description. Where I could approve spotify. After that when starting a new option appeared to open spotify anyway.

@ihor-sviziev
Copy link

I got confused... Today got another update (spotify 1.2.36.959,04bf500c,859 -> 1.2.37.701,e66eb7bc,1226), and Spotify was stopped at that moment.
After the upgrade, I tried to open Spotify and... it just works...
Looks like it's not related to the fact that the app is running or no.

@kfkonrad
Copy link

I have the same issue, for me emptying the trash and running brew reinstall spotify does the trick. From what I gather there's a Spotify agent running in the background that's still the old version in the trash

I don't have a screenshot of that anymore (it's been a couple months) but I tracked down the error log in Console and that pointed to an executable in a trashed version of Spotify.app

@emmaLP
Copy link

emmaLP commented Jun 24, 2024

Still experiencing this issue, any updates on the cause please?

image

Brew config:

HOMEBREW_VERSION: 4.3.7
ORIGIN: https://github.com/Homebrew/brew
HEAD: 43eaeca50fe3b6c755f3fc9bc6f43669e0db1039
Last commit: 5 hours ago
Core tap JSON: 24 Jun 13:03 UTC
Core cask tap JSON: 24 Jun 13:03 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 10
Homebrew Ruby: 3.3.3 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.3/bin/ruby
CPU: 10-core 64-bit arm_firestorm_icestorm
Clang: 15.0.0 build 1500
Git: 2.45.2 => /opt/homebrew/bin/git
Curl: 8.6.0 => /usr/bin/curl
macOS: 14.5-arm64
CLT: 15.3.0.0.1.1708646388
Xcode: 15.3 => /Applications/Xcode-15.3.0.app/Contents/Developer
Rosetta 2: false

@rarylson
Copy link

rarylson commented Jul 5, 2024

Workaround

Just like @matkoch mentioned in the description:

[...] after disabling Spotify from login items, it stops happening.

So just:

  1. Open System Settings > Login Items, and toggle off Spotify.

  2. Click on "Cancel" in the "cannot be verified" dialog.

Definitive fix

The root cause is that Homebrew was leaving the old Spotify login item when removing or upgrading the app.

This seem to be fixed by PR #170742, which is already merged.

After this fix, when removing Spotify, you should see the startup service being successfully removed:

$ brew uninstall --cask spotify
[...]
==> Removing launchctl service com.spotify.client.startuphelper
[...]

Now you can just reinstall Spotify.

@andrewbraxton
Copy link

I just hit this again, despite previously running brew uninstall spotify and seeing the startuphelper being removed. Are we sure this is fixed?

@shiftgeist
Copy link

shiftgeist commented Jul 15, 2024

For me a new entry below Settings -> Gatekeeper -> Allow applications downloaded from "App Store and identified developers appears after starting spotify with the same prompt as seen in the issue description. Where I could approve spotify. After that when starting a new option appeared to open spotify anyway.

This still works every time for me

  1. Open spotify
  2. Click on cancel for deletion dialog
    image
  3. Go to settings privacy & security and click on Open Anyway image
  4. Enter password/fingerprint if promted
  5. Click on Open in the unidentified application dialog

@Arro
Copy link

Arro commented Aug 3, 2024

For whatever reason, the Spotify binary that hombrew is getting is not signed as from a legitimate developer. This is confusing to me, because it seems as though people downloading it directly from their browser (and installing it the old fashioned way) aren't also having this issue. Unless they are? I doubt it.

@joh-klein
Copy link
Contributor

Happened again today, this fixed it, but this should not be the permanent solution:

brew uninstall --cask spotify && brew cleanup && brew install --cask spotify

@noizo
Copy link

noizo commented Aug 19, 2024

Just happen to me again.
Only brew uninstall --cask spotify && brew cleanup && brew install --cask spotify helps to run it again.

Workaround

Just like @matkoch mentioned in the description:

[...] after disabling Spotify from login items, it stops happening.

So just:

1. Open System Settings > Login Items, and toggle off Spotify.

2. Click on "Cancel" in the "cannot be verified" dialog.

Definitive fix

The root cause is that Homebrew was leaving the old Spotify login item when removing or upgrading the app.

This seem to be fixed by PR #170742, which is already merged.

After this fix, when removing Spotify, you should see the startup service being successfully removed:

$ brew uninstall --cask spotify
[...]
==> Removing launchctl service com.spotify.client.startuphelper
[...]

Now you can just reinstall Spotify.

Mentioned definitive fix is not definite.

@lantrix
Copy link
Contributor

lantrix commented Aug 25, 2024

Just happen to me again. Only brew uninstall --cask spotify && brew cleanup && brew install --cask spotify helps to run it again.
Mentioned definitive fix is not definite.

Same, I'm still getting it and this is the only workaround.

@artmg
Copy link

artmg commented Aug 30, 2024

I also tried brew uninstall --cask spotify && brew cleanup && brew install --cask spotify to no avail. When I do

  • brew uninstall --cask spotify && brew cleanup
  • restart computer
  • launchctl list | grep spotify
    • 1878 -9 com.spotify.client.startuphelper

so the helper is still there!

My solution was to do BOTH workarounds:

  • brew uninstall --cask spotify && brew cleanup
  • Restart computer
  • Click on "Cancel" in the "cannot be verified" dialog.
  • Open System Settings > Login Items, and toggle off Spotify.
  • brew install --cask spotify

That may be belt and braces but it did seem to work

@noizo
Copy link

noizo commented Sep 7, 2024

3 weeks later.
Screenshot 2024-09-07 at 13 49 04

I literally created an alias alias spor="brew uninstall --cask spotify && brew cleanup && brew install --cask spotify"

@noizo
Copy link

noizo commented Sep 7, 2024

@bevanjkay
So on 5th of September Spotify was running and playing.
I run brew upgrade --greedy && brew cleanup and Spotify has updated. Since that day i had no Mac restarts, only sleep mode, until yesterday i shut it down.
Spotify is in autostart, today i launched my Mac, result is on screenshot.
More over, this window prevents me from manual start of any other application.
Canceling is in constant loop, until i click Move to bin.

@bevanjkay
Copy link
Member

Thanks for the info @noizo
It seems that a computer restart might be key in replicating the issue - but this isn't consistent for me.
The biggest hurdle for me has been not being able to replicate it regularly which has made this difficult to chase down.

I'm trying another launchctl removal, but I'm not convinced it will fix the issue - we will know after the next rounds of updates.

@Arro
Copy link

Arro commented Sep 7, 2024

Not sure if you've tried this, but it happens when I do a brew upgrade . so you could uninstall, install the previous version, then brew upgrade spotify.

@bevanjkay
Copy link
Member

@Arro Definitely seems like the best way to go, I just haven't had access to a previous version of the Spotify application. I have a backup of the current one now, so can do some testing when there's another version bump.

@ihor-sviziev
Copy link

ihor-sviziev commented Sep 20, 2024

Just want to update - I got the same issue today, after upgrading to macOS Sequoia. Before that, I hadn'y any issues for a few months.
Not sure if that's a new issue, but looks the same as previously.

@Arro I don't think that downgrade is possible, the download link is always the same - https://download.scdn.co/SpotifyARM64.dmg

@ulgens
Copy link
Contributor

ulgens commented Sep 20, 2024

I got the same issue today, after upgrading to macOS Sequoia. Before that, I hadn't any issues for a few months.

It's exactly the same case here. Uninstall, clean purge and install solved it this time, but it was still annoying.

@noizo
Copy link

noizo commented Sep 20, 2024

I had no issues with Spotify after upgrading to Sequoia.
But last time i executed:
launchctl remove com.spotify.client.startuphelper after removal.

brew uninstall --cask spotify 
brew cleanup 
launchctl remove com.spotify.client.startuphelper
brew install --cask spotify

seems like it works for now.

@bevanjkay
Copy link
Member

Interesting finding @noizo - this would suggest that the launchctl item is not being successfully removed from the cask.
launchctl remove com.spotify.client.startuphelper - this command is ran during uninstall.

@ihor-sviziev
Copy link

ihor-sviziev commented Oct 29, 2024

Today, I've got the same issue just after the MacOS update to 15.1, no Spotify updates were recently. Maybe that could help somehow to identify the issue.
PS: today, I executed this instruction #161665 (comment), will see if it will help

@noizo
Copy link

noizo commented Nov 25, 2024

After upgrading to 15.1.1 and shutting down mac.
Screenshot 2024-11-25 at 08 49 56

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

Successfully merging a pull request may close this issue.