Installation fails on Ventura 13.2 / Apple M1

Support for macOS users
Post Reply
dragoshenron
Posts: 3
Joined: 14 Feb 2023, 11:31

Installation fails on Ventura 13.2 / Apple M1

Post by dragoshenron »

Hi rednoah,

I'm on Apple M1 and Ventura 13.2. I've tried to install FileBot with double click on https://get.filebot.net/filebot/FileBot ... _arm64.pkg however I get the same error someone had long time ago (see viewtopic.php?t=6280) at the end of the installation.

I've checked of course that /usr/local/bin exists (it does) and of course no FileBot were present in /Applications (it wasn't there).

So, I've tried to use the https://raw.githubusercontent.com/fileb ... ler/pkg.sh
[BUG: it fails as it can't file the package. I've edited manually URL="https://get.filebot.net/filebot/FileBot ... .6_x64.pkg"]

This is the output

Code: Select all

+ VERSION=4.9.6
+ URL=https://get.filebot.net/filebot/FileBot_4.9.6/FileBot_4.9.6_x64.pkg
+ PKG=/var/folders/zm/bfcqlzds7v53n6pcnmkwnqz80000gn/T/FileBot.pkg
+ APP=/Applications/FileBot.app
+ fetch /var/folders/zm/bfcqlzds7v53n6pcnmkwnqz80000gn/T/FileBot.pkg https://get.filebot.net/filebot/FileBot_4.9.6/FileBot_4.9.6_x64.pkg
+ curl --verbose --fail --location --output /var/folders/zm/bfcqlzds7v53n6pcnmkwnqz80000gn/T/FileBot.pkg --time-cond /var/folders/zm/bfcqlzds7v53n6pcnmkwnqz80000gn/T/FileBot.pkg --retry 5 https://get.filebot.net/filebot/FileBot_4.9.6/FileBot_4.9.6_x64.pkg
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 104.21.79.38:443...
* Connected to get.filebot.net (104.21.79.38) port 443 (#0)
* ALPN: offers h2
* ALPN: offers http/1.1
*  CAfile: /etc/ssl/cert.pem
*  CApath: none
* (304) (OUT), TLS handshake, Client hello (1):
} [320 bytes data]
* (304) (IN), TLS handshake, Server hello (2):
{ [122 bytes data]
* (304) (IN), TLS handshake, Unknown (8):
{ [19 bytes data]
* (304) (IN), TLS handshake, Certificate (11):
{ [2323 bytes data]
* (304) (IN), TLS handshake, CERT verify (15):
{ [79 bytes data]
* (304) (IN), TLS handshake, Finished (20):
{ [36 bytes data]
* (304) (OUT), TLS handshake, Finished (20):
} [36 bytes data]
* SSL connection using TLSv1.3 / AEAD-CHACHA20-POLY1305-SHA256
* ALPN: server accepted h2
* Server certificate:
*  subject: C=US; ST=California; L=San Francisco; O=Cloudflare, Inc.; CN=sni.cloudflaressl.com
*  start date: Jun  7 00:00:00 2022 GMT
*  expire date: Jun  6 23:59:59 2023 GMT
*  subjectAltName: host "get.filebot.net" matched cert's "get.filebot.net"
*  issuer: C=US; O=Cloudflare, Inc.; CN=Cloudflare Inc ECC CA-3
*  SSL certificate verify ok.
* Using HTTP2, server supports multiplexing
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* h2h3 [:method: GET]
* h2h3 [:path: /filebot/FileBot_4.9.6/FileBot_4.9.6_x64.pkg]
* h2h3 [:scheme: https]
* h2h3 [:authority: get.filebot.net]
* h2h3 [user-agent: curl/7.86.0]
* h2h3 [accept: */*]
* h2h3 [if-modified-since: Tue, 14 Feb 2023 11:21:33 GMT]
* Using Stream ID: 1 (easy handle 0x125010a00)
> GET /filebot/FileBot_4.9.6/FileBot_4.9.6_x64.pkg HTTP/2
> Host: get.filebot.net
> user-agent: curl/7.86.0
> accept: */*
> if-modified-since: Tue, 14 Feb 2023 11:21:33 GMT
> 
* Connection state changed (MAX_CONCURRENT_STREAMS == 256)!
< HTTP/2 304 
< date: Tue, 14 Feb 2023 11:23:46 GMT
< last-modified: Fri, 04 Mar 2022 09:00:21 GMT
< etag: "29a5db5-5d960be9f6c00"
< cache-control: max-age=86400
< expires: Sun, 12 Feb 2023 09:57:16 GMT
< vary: User-Agent
< cf-cache-status: HIT
< report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=fqtwFWp4Ko%2F6OJEIPBpoic7krQjV1pyhodYS%2Bv8DlzfAqjYjOPWX%2B1X0ZbLbQOlcOlrwSxqXo8eSkpVrGf7W4urcQqAS6RpX5Wtl7FUSFd7pR%2Balj679L8fANEGBvYE%2BLGo%3D"}],"group":"cf-nel","max_age":604800}
< nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
< server: cloudflare
< cf-ray: 79956efd7af583a6-MXP
< alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400
< 
{ [0 bytes data]
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
* Connection #0 to host get.filebot.net left intact
+ verify /var/folders/zm/bfcqlzds7v53n6pcnmkwnqz80000gn/T/FileBot.pkg
+ pkgutil --check-signature /var/folders/zm/bfcqlzds7v53n6pcnmkwnqz80000gn/T/FileBot.pkg
Package "FileBot.pkg":
   Status: signed by a developer certificate issued by Apple for distribution
   Notarization: trusted by the Apple notary service
   Signed with a trusted timestamp on: 2022-03-04 08:52:49 +0000
   Certificate Chain:
    1. Developer ID Installer: Point Planck Limited (EN9ZYER6WW)
       Expires: 2026-08-31 01:39:36 +0000
       SHA256 Fingerprint:
           A8 4B 41 2F 56 85 85 BD 18 08 FB 85 0F FF EC 70 82 25 3D 51 C8 11 
           9A A8 46 B1 85 01 EA B5 9E 95
       ------------------------------------------------------------------------
    2. Developer ID Certification Authority
       Expires: 2027-02-01 22:12:15 +0000
       SHA256 Fingerprint:
           7A FC 9D 01 A6 2F 03 A2 DE 96 37 93 6D 4A FE 68 09 0D 2D E1 8D 03 
           F2 9C 88 CF B0 B1 BA 63 58 7F
       ------------------------------------------------------------------------
    3. Apple Root CA
       Expires: 2035-02-09 21:40:36 +0000
       SHA256 Fingerprint:
           B0 B1 73 0E CB C7 FF 45 05 14 2C 49 F1 29 5E 6E DA 6B CA ED 7E 2C 
           68 C5 BE 91 B5 A1 10 01 F0 24

+ spctl --assess --verbose --ignore-cache --no-cache --type install /var/folders/zm/bfcqlzds7v53n6pcnmkwnqz80000gn/T/FileBot.pkg
/var/folders/zm/bfcqlzds7v53n6pcnmkwnqz80000gn/T/FileBot.pkg: accepted
source=Notarized Developer ID
+ install /var/folders/zm/bfcqlzds7v53n6pcnmkwnqz80000gn/T/FileBot.pkg
+ sudo rm -vrf '/Applications/FileBot.*' '/Users/dragoshenron/Applications/FileBot.*'
+ sudo installer -verbose -package /var/folders/zm/bfcqlzds7v53n6pcnmkwnqz80000gn/T/FileBot.pkg -target LocalSystem
installer: Package name is FileBot 4.9.6
installer: Upgrading at base path /
installer: Preparing for installation….....
installer: Preparing the disk….....
installer: Preparing FileBot 4.9.6….....
installer: Waiting for other installations to complete….....
installer: Configuring the installation….....
installer: 	
#
installer: Writing files….....
installer: Validating packages….....
#
installer: 	Running installer actions…
installer: 	
installer: Finishing the Installation….....
installer: 	
#
installer: The software was successfully installed......
installer: The upgrade was successful.
+ open --reveal /Applications/FileBot.app
The file /Applications/FileBot.app does not exist.
Super weird. And, in fact, if I run manually the installer from console I get the same output

Code: Select all

installer: Package name is FileBot 4.9.6
installer: Upgrading at base path /
installer: Preparing for installation….....
installer: Preparing the disk….....
installer: Preparing FileBot 4.9.6….....
installer: Waiting for other installations to complete….....
installer: Configuring the installation….....
installer: 	
#
installer: Writing files….....
#
installer: Running package scripts….....
installer: Validating packages….....
#
installer: 	Running installer actions…
installer: 	
installer: Finishing the Installation….....
installer: 	
#
installer: The software was successfully installed......
installer: The upgrade was successful.
but the FileBot.app is not in /Applications nor in ~/Applications :shock:

Any advice?

If useful, if I ran

Code: Select all

sudo installer -verbose -dominfo -package FileBot_4.9.6_arm64.pkg
Domain information:
NoDomainsAvailable
which sound to me not good

Also, if I tried to install the x64 version (which should run with Rosetta2) the outcome is the same
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Installation fails on Ventura 13.2 / Apple M1

Post by rednoah »

:?: Do you have a FileBot.app somewhere anywhere on your system?


:idea: macOS is "smart" enough to find it anywhere and then overwrite the files there. macOS can be annoying and user-hostile that way.




EDIT:

pkg.sh has been updated to use architecture-specific URLs. Good catch. Unfortunately, this is likely unrelated to the OP issue at hand.
:idea: Please read the FAQ and How to Request Help.
dragoshenron
Posts: 3
Joined: 14 Feb 2023, 11:31

Re: Installation fails on Ventura 13.2 / Apple M1

Post by dragoshenron »

I've used EasyFind to look into unusual places: few filebot-related files (a .plist, something in private/var/db) were present in the system. I've removed them all.

I ran the .pkg with the usual failure, however running the script pkg.sh was succesfull.

Code: Select all

+ sudo installer -verbose -package /var/folders/zm/bfcqlzds7v53n6pcnmkwnqz80000gn/T/FileBot.pkg -target LocalSystem
installer: Package name is FileBot 4.9.6
installer: Installing at base path /
installer: Preparing for installation….....
installer: Preparing the disk….....
installer: Preparing FileBot 4.9.6….....
installer: Waiting for other installations to complete….....
installer: Configuring the installation….....
installer: 	
#
installer: Writing files….....
#
installer: Running package scripts….....
#
installer: Running package scripts….....
#
installer: Running package scripts….....
installer: Running package scripts….....
installer: Running package scripts….....
installer: Running package scripts….....
installer: Running package scripts….....
installer: Running package scripts….....
installer: Running package scripts….....
installer: Running package scripts….....
installer: Running package scripts….....
installer: Running package scripts….....
installer: Running package scripts….....
#
installer: Registering updated components….....
installer: Validating packages….....
#
installer: 	Running installer actions…
installer: 	
installer: Finishing the Installation….....
installer: 	
#
installer: The software was successfully installed......
installer: The install was successful.
+ open --reveal /Applications/FileBot.app
Yay!!!!

I've re-run the FileBot_4.9.6_arm64.pkg. Installation failed but I was able to catch the following in Console. I'm not sure that the last error refers to FileBot installation though.

Code: Select all

error	12:26:03.092200+0100	kernel	System Policy: installd(984) deny(1) file-read-data /Users/dragoshenron/Downloads/FileBot_4.9.6_arm64.pkg
error	12:26:03.131484+0100	kernel	4 duplicate reports for System Policy: installd(984) deny(1) file-read-data /Users/dragoshenron/Downloads/FileBot_4.9.6_arm64.pkg
error	12:26:03.131489+0100	kernel	System Policy: installd(984) deny(1) file-read-xattr /Users/dragoshenron/Downloads/FileBot_4.9.6_arm64.pkg
error	12:26:03.131531+0100	kernel	1 duplicate report for System Policy: installd(984) deny(1) file-read-xattr /Users/dragoshenron/Downloads/FileBot_4.9.6_arm64.pkg
error	12:26:03.131532+0100	kernel	System Policy: installd(984) deny(1) file-read-data /Users/dragoshenron/Downloads/FileBot_4.9.6_arm64.pkg
error	12:26:03.137603+0100	tccd	near "client": syntax error in "DELETE FROM access WHERE (service <> ? OR service IS NULL) client = ? AND client_type = ?"
I'm not sure how to debug further though.

Greetings
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Installation fails on Ventura 13.2 / Apple M1

Post by rednoah »

Alternatively, you can always download the *.tar.xz package, extract the .app folder and then move that to /Applications manually. No idea why macOS installer is broken on your machine.

:idea: The error message in the log indicates that the installer cannot read the *.pkg file, which would certainly make things not work. But it's a bit strange that macOS built-in software running as your user cannot access your Downloads folder.
:idea: Please read the FAQ and How to Request Help.
dragoshenron
Posts: 3
Joined: 14 Feb 2023, 11:31

Re: Installation fails on Ventura 13.2 / Apple M1

Post by dragoshenron »

Well, I've tried to move the file .pkg on Desktop and run the installer from there.
It's asking me
Image
which makes sense to me. If you don't allow, the installation (obviously) fails with the same error (access denied). If you allow, the installation runs OK.
However, the installer didn't ask that permission if launched from ~/Downloads folder.

I'm no expert here. Maybe it would be possible to try to read from the installation folder - if fails - you catch the exception?
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Installation fails on Ventura 13.2 / Apple M1

Post by rednoah »

Note that Installer.app is built-in Apple software, and not our software. If Installer.app cannot read our *.pkg file, then making changes to our *.pkg file is unlikely to make a difference.


You may have narrowed down the culprit to the new privacy controls, so you could try to reset those, and then hope that macOS gives you the "Allow" popup again when running the Installer.app to install a new package:

Code: Select all

tccutil reset All 
:arrow: Please read How to reset a user’s privacy permissions on macOS for details.
:idea: Please read the FAQ and How to Request Help.
Post Reply