kyleneideck / BackgroundMusic

Background Music, a macOS audio utility: automatically pause your music, set individual apps' volumes and record system audio.
GNU General Public License v2.0
16.34k stars 677 forks source link

can not install neither in pkg or homebrew. #732

Closed habaohaba closed 7 months ago

habaohaba commented 7 months ago

Description of the bug just can not install at first place

Steps to reproduce both pkg and homebrew install method

Versions

Hardware

Debug logs

installer: The install failed. (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance. An error occurred while running scripts from the package “BackgroundMusic-0.4.0.pkg”.)

JustinUssuri commented 7 months ago

same problem

bigbrightgg commented 7 months ago

Same here

huksley commented 7 months ago

Hey! Nice app. I was able to install brew cask but installer of 0.4.3 hangs. I have MacBook Pro 14 inch 2023 m2pro with MacOS 14.3.1.

kyleneideck commented 7 months ago

@huksley Can you post the logs from /var/log/install.log?

huksley commented 7 months ago

@kyleneideck It is quite big and I believe might contain sensitive information, so I can't post it verbatim. Here is the probably relevant error I found in the log:

2024-04-26 10:01:57+03 Mymachine package_script_service[7816]: PackageKit: Executing script "postinstall" in /tmp/PKInstallSandbox.8ivudY/Scripts/com.bearisdriving.BGM.Hqf7Lf
2024-04-26 10:01:57+03 Mymachine package_script_service[7816]: ./postinstall: Installing BGMXPCHelper to /usr/local/libexec
2024-04-26 10:01:58+03 Mymachine package_script_service[7816]: ./postinstall: Removing com.apple.quarantine attribute from BGMXPCHelper.
2024-04-26 10:01:58+03 Mymachine package_script_service[7816]: ./postinstall: total 0
2024-04-26 10:01:58+03 Mymachine package_script_service[7816]: ./postinstall: drwxr-xr-x@ 3 root  wheel    96B Apr 26 10:01 .
2024-04-26 10:01:58+03 Mymachine package_script_service[7816]: ./postinstall: com.apple.provenance    11B
2024-04-26 10:01:58+03 Mymachine package_script_service[7816]: ./postinstall: drwxr-xr-x  3 root  wheel    96B Apr 26 10:01 ..
2024-04-26 10:01:58+03 Mymachine package_script_service[7816]: ./postinstall: drwxr-xr-x@ 6 root  wheel   192B Apr 26 10:01 Contents
2024-04-26 10:01:58+03 Mymachine package_script_service[7816]: ./postinstall: com.apple.provenance    11B
2024-04-26 10:01:58+03 Mymachine package_script_service[7816]: ./postinstall: Created _BGMXPCHelper user.
2024-04-26 10:01:58+03 Mymachine package_script_service[7816]: ./postinstall: Installed com.bearisdriving.BGM.XPCHelper.plist to /Library/LaunchDaemons.
2024-04-26 10:01:58+03 Mymachine package_script_service[7816]: ./postinstall: Unregistering /Library/LaunchDaemons/com.bearisdriving.BGM.XPCHelper.plist. This will print errors if you don't already have a version of it registered, or your system uses an older version of launchctl. They're safe to ignore.
2024-04-26 10:01:58+03 Mymachine package_script_service[7816]: ./postinstall: ----
2024-04-26 10:01:58+03 Mymachine package_script_service[7816]: ./postinstall: Boot-out failed: 5: Input/output error
2024-04-26 10:01:58+03 Mymachine package_script_service[7816]: ./postinstall: Unrecognized subcommand: unbootstrap
2024-04-26 10:01:58+03 Mymachine package_script_service[7816]: ./postinstall: Usage: launchctl <subcommand> ... | help [subcommand]
2024-04-26 10:01:58+03 Mymachine package_script_service[7816]: ./postinstall: Many subcommands take a target specifier that refers to a domain or service
2024-04-26 10:01:58+03 Mymachine package_script_service[7816]: ./postinstall: within that domain. The available specifier forms are:
2024-04-26 10:01:58+03 Mymachine package_script_service[7816]: ./postinstall: system/[service-name]
2024-04-26 10:01:58+03 Mymachine package_script_service[7816]: ./postinstall: Targets the system-wide domain or service within. Root privileges are required
2024-04-26 10:01:58+03 Mymachine package_script_service[7816]: ./postinstall: to make modifications.
2024-04-26 10:01:58+03 Mymachine package_script_service[7816]: ./postinstall: user/<uid>/[service-name]
2024-04-26 10:01:58+03 Mymachine package_script_service[7816]: ./postinstall: Targets the user domain or service within. A process running as the target user
2024-04-26 10:01:58+03 Mymachine package_script_service[7816]: ./postinstall: may make modifications. Root may modify any user's domain. User domains do not
2024-04-26 10:01:58+03 Mymachine package_script_service[7816]: ./postinstall: exist on iOS.
2024-04-26 10:01:58+03 Mymachine package_script_service[7816]: ./postinstall: gui/<uid>/[service-name]
kyleneideck commented 7 months ago

@huksley Actually, that error is normal. See the line above it:

Unregistering /Library/LaunchDaemons/com.bearisdriving.BGM.XPCHelper.plist. This will print errors if you don't already have a version of it registered, or your system uses an older version of launchctl. They're safe to ignore.

I guess there must not have been a good way to keep launchctl from logging that error.

Was there anything else after that in your logs?

habaohaba commented 7 months ago

I have successfully install in 0.4.3 version pkg, thanks for developer's work.