bp88 / JSS-Scripts

Random scripts for use in the Jamf Pro
188 stars 61 forks source link

Multiple issues since script updated #8

Closed rani2001 closed 4 years ago

rani2001 commented 4 years ago

Hello,

Since updating the script a few hours ago, I have the following issues during an upgrade to Mojave:

Thank you for your help

n0brainer commented 4 years ago

+1 on the cert check not working… ` Executable=/Applications/Install macOS Catalina.app/Contents/MacOS/InstallAssistant_springboard Identifier=com.apple.InstallAssistant.Catalina Format=app bundle with Mach-O thin (x86_64) CodeDirectory v=20100 size=276 flags=0x2000(library-validation) hashes=3+3 location=embedded Platform identifier=9 VersionPlatform=1 VersionMin=657664 VersionSDK=659200 Hash type=sha256 size=32 CandidateCDHash sha1=d4f3c389491254c1fb535f45027b5bff2637bfce CandidateCDHash sha256=a464394902324bfcf5fca1901ceed59f5c3207cd Hash choices=sha1,sha256 Page size=4096 CDHash=a464394902324bfcf5fca1901ceed59f5c3207cd Signature size=4628 Authority=Software Signing Authority=Apple Code Signing Certification Authority Authority=Apple Root CA Info.plist entries=33 TeamIdentifier=not set Sealed Resources version=2 rules=13 files=234 Internal requirements count=1 size=84 find: ./private/var/db/ConfigurationProfiles/Store: Operation not permitted find: ./private/var/folders/zz/zyxvpxvq6csfxvn_n00000sm00006d/0: Operation not permitted find: ./private/var/folders/zz/zyxvpxvq6csfxvn_n00000sm00006d/C: Operation not permitted find: ./private/var/folders/zz/zyxvpxvq6csfxvn_n00000y800007k/0/com.apple.nsurlsessiond: Operation not permitted find: ./private/var/folders/zz/zyxvpxvq6csfxvn_n00000z000007r/0/com.apple.nsurlsessiond: Operation not permitted find: ./private/var/folders/zz/zyxvpxvq6csfxvn_n00000z000007r/0/com.apple.routined/dv: Operation not permitted find: ./private/var/folders/mk/126vymkd3cqf024d6kqd3v700000gn/0/com.apple.LaunchServices.dv: Operation not permitted find: ./private/var/folders/mk/126vymkd3cqf024d6kqd3v700000gn/0/com.apple.nsurlsessiond: Operation not permitted find: ./private/var/folders/mk/126vymkd3cqf024d6kqd3v700000gn/0/com.apple.routined/dv: Operation not permitted find: ./private/var/folders/mk/126vymkd3cqf024d6kqd3v700000gn/C/com.apple.WebKit.WebContent.Sandbox: Operation not permitted find: ./private/var/folders/mk/126vymkd3cqf024d6kqd3v700000gn/C/com.apple.QuickLook.thumbnailcache: Operation not permitted find: ./private/var/folders/mk/126vymkd3cqf024d6kqd3v700000gn/C/com.apple.WebKit.Networking.Sandbox: Operation not permitted find: ./dev/fd/39: Not a directory find: ./dev/fd/42: Not a directory unable to load certificate 4475537004:error:0DFFF07B:asn1 encoding routines:CRYPTO_internal:header too long:/BuildRoot/Library/Caches/com.apple.xbs/Sources/libressl/libressl-22.260.1/libressl-2.6/crypto/asn1/asn1_lib.c:152: Failed conversion of expiration_date_string'' using format%b %d %H:%M:%S %Y %Z'' date: illegal time format usage: date [-jnRu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ... [-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format] A certificate for the installer application /Applications/Install macOS Catalina.app has expired. Please download a new macOS installer app with a valid certificate.

Error running script: return code was 23.

`

bp88 commented 4 years ago

@rani2001 I believe I found the source of 2 of the 3 issues you've seen. However, I'm not entirely sure what's causing error code 2 for you.

Can you update the script to the latest version and change the first line from #!/bin/bash to #!/bin/bash -x? Run the script and let me know what output you get when you attempt to do an upgrade from 10.13.6 to 10.14. Once done testing, revert back the change to the first line.

rani2001 commented 4 years ago

Hello @bp88,

Thanks for your help. I tested the modified script and all works perfectly, I have no more errors, even during an update from 10.13 to 10.14.

Thank you very much for your help and your work