Skip to content

openvpnconnectV3: add curlOptions to fix download errors#846

Closed
asri-tm wants to merge 1 commit intoInstallomator:mainfrom
asri-tm:openvpnconnectv3
Closed

openvpnconnectV3: add curlOptions to fix download errors#846
asri-tm wants to merge 1 commit intoInstallomator:mainfrom
asri-tm:openvpnconnectv3

Conversation

@asri-tm
Copy link
Contributor

@asri-tm asri-tm commented Jan 11, 2023

as per #845, script stopped downloading the openvpnconnectv3 packages
downloads just fine over browser with same URL
added curlOptions to label and script starts downloading packages again

2023-01-11 12:10:00 : REQ   : openvpnconnectv3 : ################## Start Installomator v. 10.3beta, date 2023-01-11
2023-01-11 12:10:00 : INFO  : openvpnconnectv3 : ################## Version: 10.3beta
2023-01-11 12:10:00 : INFO  : openvpnconnectv3 : ################## Date: 2023-01-11
2023-01-11 12:10:00 : INFO  : openvpnconnectv3 : ################## openvpnconnectv3
2023-01-11 12:10:00 : DEBUG : openvpnconnectv3 : DEBUG mode 1 enabled.
2023-01-11 12:10:02 : DEBUG : openvpnconnectv3 : name=OpenVPN Connect
2023-01-11 12:10:02 : DEBUG : openvpnconnectv3 : appName=
2023-01-11 12:10:02 : DEBUG : openvpnconnectv3 : type=pkgInDmg
2023-01-11 12:10:02 : DEBUG : openvpnconnectv3 : archiveName=
2023-01-11 12:10:02 : DEBUG : openvpnconnectv3 : downloadURL=https://openvpn.net/downloads/openvpn-connect-v3-macos.dmg
2023-01-11 12:10:02 : DEBUG : openvpnconnectv3 : curlOptions=-H User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15
2023-01-11 12:10:02 : DEBUG : openvpnconnectv3 : appNewVersion=3.4.1
2023-01-11 12:10:02 : DEBUG : openvpnconnectv3 : appCustomVersion function: Not defined
2023-01-11 12:10:02 : DEBUG : openvpnconnectv3 : versionKey=CFBundleShortVersionString
2023-01-11 12:10:02 : DEBUG : openvpnconnectv3 : packageID=
2023-01-11 12:10:02 : DEBUG : openvpnconnectv3 : pkgName=OpenVPN_Connect_[0-9_()]*_x86_64_Installer_signed.pkg
2023-01-11 12:10:02 : DEBUG : openvpnconnectv3 : choiceChangesXML=
2023-01-11 12:10:02 : DEBUG : openvpnconnectv3 : expectedTeamID=ACV7L3WCD8
2023-01-11 12:10:02 : DEBUG : openvpnconnectv3 : blockingProcesses=
2023-01-11 12:10:02 : DEBUG : openvpnconnectv3 : installerTool=
2023-01-11 12:10:02 : DEBUG : openvpnconnectv3 : CLIInstaller=
2023-01-11 12:10:02 : DEBUG : openvpnconnectv3 : CLIArguments=
2023-01-11 12:10:02 : DEBUG : openvpnconnectv3 : updateTool=
2023-01-11 12:10:02 : DEBUG : openvpnconnectv3 : updateToolArguments=
2023-01-11 12:10:02 : DEBUG : openvpnconnectv3 : updateToolRunAsCurrentUser=
2023-01-11 12:10:02 : INFO  : openvpnconnectv3 : BLOCKING_PROCESS_ACTION=tell_user
2023-01-11 12:10:02 : INFO  : openvpnconnectv3 : NOTIFY=success
2023-01-11 12:10:02 : INFO  : openvpnconnectv3 : LOGGING=DEBUG
2023-01-11 12:10:02 : INFO  : openvpnconnectv3 : LOGO=/System/Applications/App Store.app/Contents/Resources/AppIcon.icns
2023-01-11 12:10:02 : INFO  : openvpnconnectv3 : Label type: pkgInDmg
2023-01-11 12:10:02 : INFO  : openvpnconnectv3 : archiveName: OpenVPN Connect.dmg
2023-01-11 12:10:02 : INFO  : openvpnconnectv3 : no blocking processes defined, using OpenVPN Connect as default
2023-01-11 12:10:02 : DEBUG : openvpnconnectv3 : Changing directory to /Users/asri/Documents/dev/Installomator/build
2023-01-11 12:10:02 : INFO  : openvpnconnectv3 : App(s) found: /Applications/OpenVPN Connect.app
2023-01-11 12:10:03 : INFO  : openvpnconnectv3 : found app at /Applications/OpenVPN Connect.app, version 3.4.1, on versionKey CFBundleShortVersionString
2023-01-11 12:10:03 : INFO  : openvpnconnectv3 : appversion: 3.4.1
2023-01-11 12:10:03 : INFO  : openvpnconnectv3 : Latest version of OpenVPN Connect is 3.4.1
2023-01-11 12:10:03 : WARN  : openvpnconnectv3 : DEBUG mode 1 enabled, not exiting, but there is no new version of app.
2023-01-11 12:10:03 : REQ   : openvpnconnectv3 : Downloading https://openvpn.net/downloads/openvpn-connect-v3-macos.dmg to OpenVPN Connect.dmg
2023-01-11 12:10:03 : DEBUG : openvpnconnectv3 : No Dialog connection, just download
2023-01-11 12:10:10 : DEBUG : openvpnconnectv3 : File list: -rw-r--r--  1 asri  staff   184M 11 Jan 12:10 OpenVPN Connect.dmg
2023-01-11 12:10:10 : DEBUG : openvpnconnectv3 : File type: OpenVPN Connect.dmg: DOS/MBR boot sector; partition 1 : ID=0xee, start-CHS (0x3ff,254,63), end-CHS (0x3ff,254,63), startsector 1, 381706 sectors, extended partition table (last)
2023-01-11 12:10:10 : DEBUG : openvpnconnectv3 : curl output was:
*   Trying 104.18.110.96:443...
* Connected to openvpn.net (104.18.110.96) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*  CAfile: /etc/ssl/cert.pem
*  CApath: none
* (304) (OUT), TLS handshake, Client hello (1):
} [316 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):
{ [4752 bytes data]
* (304) (IN), TLS handshake, CERT verify (15):
{ [264 bytes data]
* (304) (IN), TLS handshake, Finished (20):
{ [52 bytes data]
* (304) (OUT), TLS handshake, Finished (20):
} [52 bytes data]
* SSL connection using TLSv1.3 / AEAD-AES256-GCM-SHA384
* ALPN, server accepted to use h2
* Server certificate:
*  subject: C=US; ST=California; O=OpenVPN Inc.; CN=*.openvpn.net
*  start date: Mar 21 00:00:00 2022 GMT
*  expire date: Apr 20 23:59:59 2023 GMT
*  subjectAltName: host "openvpn.net" matched cert's "openvpn.net"
*  issuer: C=GB; ST=Greater Manchester; L=Salford; O=Sectigo Limited; CN=Sectigo RSA Organization Validation Secure Server CA
*  SSL certificate verify ok.
* Using HTTP2, server supports multiplexing
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0x7fb0c380b600)
> GET /downloads/openvpn-connect-v3-macos.dmg HTTP/2
> Host: openvpn.net
> accept: */*
> user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15
> 
* Connection state changed (MAX_CONCURRENT_STREAMS == 256)!
< HTTP/2 301 
< date: Wed, 11 Jan 2023 04:10:03 GMT
< content-type: text/html; charset=UTF-8
< location: https://swupdate.openvpn.net/downloads/connect/openvpn-connect-3.4.1.4522_signed.dmg
< expires: Wed, 11 Jan 1984 05:00:00 GMT
< cache-control: no-cache, must-revalidate, max-age=0
< x-redirect-by: redirection
< cf-cache-status: MISS
< server: cloudflare
< cf-ray: 787accec092087e7-SIN
< 
{ [0 bytes data]
* Connection #0 to host openvpn.net left intact
* Issue another request to this URL: 'https://swupdate.openvpn.net/downloads/connect/openvpn-connect-3.4.1.4522_signed.dmg'
*   Trying 104.18.110.96:443...
* Connected to swupdate.openvpn.net (104.18.110.96) port 443 (#1)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*  CAfile: /etc/ssl/cert.pem
*  CApath: none
* (304) (OUT), TLS handshake, Client hello (1):
} [325 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):
{ [4752 bytes data]
* (304) (IN), TLS handshake, CERT verify (15):
{ [264 bytes data]
* (304) (IN), TLS handshake, Finished (20):
{ [52 bytes data]
* (304) (OUT), TLS handshake, Finished (20):
} [52 bytes data]
* SSL connection using TLSv1.3 / AEAD-AES256-GCM-SHA384
* ALPN, server accepted to use h2
* Server certificate:
*  subject: C=US; ST=California; O=OpenVPN Inc.; CN=*.openvpn.net
*  start date: Mar 21 00:00:00 2022 GMT
*  expire date: Apr 20 23:59:59 2023 GMT
*  subjectAltName: host "swupdate.openvpn.net" matched cert's "*.openvpn.net"
*  issuer: C=GB; ST=Greater Manchester; L=Salford; O=Sectigo Limited; CN=Sectigo RSA Organization Validation Secure Server CA
*  SSL certificate verify ok.
* Using HTTP2, server supports multiplexing
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0x7fb0c380b600)
> GET /downloads/connect/openvpn-connect-3.4.1.4522_signed.dmg HTTP/2
> Host: swupdate.openvpn.net
> accept: */*
> user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15
> 
* Connection state changed (MAX_CONCURRENT_STREAMS == 256)!
< HTTP/2 200 
< date: Wed, 11 Jan 2023 04:10:04 GMT
< content-type: application/x-apple-diskimage
< content-length: 192813583
< last-modified: Mon, 28 Nov 2022 14:08:18 GMT
< x-amz-version-id: lNFByBkoMHIoHzkFaMvwl4vd.CiEu8bR
< etag: "661234934ab38be0153d405f3cb8e0bd-12"
< x-cache: Hit from cloudfront
< via: 1.1 e5b482ce8b5bb64cfe4de1d81504c0b6.cloudfront.net (CloudFront)
< x-amz-cf-pop: MRS52-P3
< x-amz-cf-id: 9HTtik3xxssLCk7t5gjGBCKJFSckgcaAk25B0-yuMuCAlIFwmxp6rQ==
< cf-cache-status: HIT
< age: 361499
< expires: Sat, 11 Feb 2023 04:10:04 GMT
< cache-control: public, max-age=2678400
< accept-ranges: bytes
< server: cloudflare
< cf-ray: 787accf02ef56bbe-SIN
< 
{ [948 bytes data]
* Connection #1 to host swupdate.openvpn.net left intact

2023-01-11 12:10:10 : DEBUG : openvpnconnectv3 : DEBUG mode 1, not checking for blocking processes
2023-01-11 12:10:10 : REQ   : openvpnconnectv3 : Installing OpenVPN Connect
2023-01-11 12:10:10 : INFO  : openvpnconnectv3 : Mounting /Users/asri/Documents/dev/Installomator/build/OpenVPN Connect.dmg
2023-01-11 12:10:12 : DEBUG : openvpnconnectv3 : Debugging enabled, dmgmount output was:
Checksumming Protective Master Boot Record (MBR : 0)…
Protective Master Boot Record (MBR :: verified CRC32 $13DB2E7F
Checksumming GPT Header (Primary GPT Header : 1)…
GPT Header (Primary GPT Header : 1): verified CRC32 $B50E7EDF
Checksumming GPT Partition Data (Primary GPT Table : 2)…
GPT Partition Data (Primary GPT Tabl: verified CRC32 $A9224396
Checksumming  (Apple_Free : 3)…
(Apple_Free : 3): verified CRC32 $00000000
Checksumming disk image (Apple_HFS : 4)…
disk image (Apple_HFS : 4): verified CRC32 $60FF7BD7
Checksumming  (Apple_Free : 5)…
(Apple_Free : 5): verified CRC32 $00000000
Checksumming GPT Partition Data (Backup GPT Table : 6)…
GPT Partition Data (Backup GPT Table: verified CRC32 $A9224396
Checksumming GPT Header (Backup GPT Header : 7)…
GPT Header (Backup GPT Header : 7): verified CRC32 $C2DBF90B
verified CRC32 $C7A457C0
/dev/disk3              GUID_partition_scheme
/dev/disk3s1            Apple_HFS                       /Volumes/OpenVPN Connect

2023-01-11 12:10:12 : INFO  : openvpnconnectv3 : Mounted: /Volumes/OpenVPN Connect
2023-01-11 12:10:12 : DEBUG : openvpnconnectv3 : Found pkg(s):
/Volumes/OpenVPN Connect/OpenVPN_Connect_3_4_1(4522)_x86_64_Installer_signed.pkg
2023-01-11 12:10:12 : INFO  : openvpnconnectv3 : found pkg: /Volumes/OpenVPN Connect/OpenVPN_Connect_3_4_1(4522)_x86_64_Installer_signed.pkg
2023-01-11 12:10:12 : INFO  : openvpnconnectv3 : Verifying: /Volumes/OpenVPN Connect/OpenVPN_Connect_3_4_1(4522)_x86_64_Installer_signed.pkg
2023-01-11 12:10:12 : DEBUG : openvpnconnectv3 : File list: -rw-r--r--@ 1 asri  staff    92M 28 Nov 22:05 /Volumes/OpenVPN Connect/OpenVPN_Connect_3_4_1(4522)_x86_64_Installer_signed.pkg
2023-01-11 12:10:12 : DEBUG : openvpnconnectv3 : File type: /Volumes/OpenVPN Connect/OpenVPN_Connect_3_4_1(4522)_x86_64_Installer_signed.pkg: xar archive compressed TOC: 6111, SHA-1 checksum
2023-01-11 12:10:13 : DEBUG : openvpnconnectv3 : spctlOut is /Volumes/OpenVPN Connect/OpenVPN_Connect_3_4_1(4522)_x86_64_Installer_signed.pkg: accepted
2023-01-11 12:10:13 : DEBUG : openvpnconnectv3 : source=Notarized Developer ID
2023-01-11 12:10:13 : DEBUG : openvpnconnectv3 : origin=Developer ID Installer: OPENVPN TECHNOLOGIES, INC. (ACV7L3WCD8)
2023-01-11 12:10:13 : INFO  : openvpnconnectv3 : Team ID: ACV7L3WCD8 (expected: ACV7L3WCD8 )
2023-01-11 12:10:13 : DEBUG : openvpnconnectv3 : DEBUG enabled, skipping installation
2023-01-11 12:10:13 : INFO  : openvpnconnectv3 : Finishing...
2023-01-11 12:10:16 : INFO  : openvpnconnectv3 : App(s) found: /Applications/OpenVPN Connect.app
2023-01-11 12:10:16 : INFO  : openvpnconnectv3 : found app at /Applications/OpenVPN Connect.app, version 3.4.1, on versionKey CFBundleShortVersionString
2023-01-11 12:10:16 : REQ   : openvpnconnectv3 : Installed OpenVPN Connect, version 3.4.1
2023-01-11 12:10:16 : INFO  : openvpnconnectv3 : notifying
2023-01-11 12:10:16 : DEBUG : openvpnconnectv3 : Unmounting /Volumes/OpenVPN Connect
2023-01-11 12:10:17 : DEBUG : openvpnconnectv3 : Debugging enabled, Unmounting output was:
"disk3" ejected.
2023-01-11 12:10:17 : DEBUG : openvpnconnectv3 : DEBUG mode 1, not reopening anything
2023-01-11 12:10:17 : REQ   : openvpnconnectv3 : All done!
2023-01-11 12:10:17 : REQ   : openvpnconnectv3 : ################## End Installomator, exit code 0 

@scriptingosx scriptingosx added the application-issue App label issue that's not an Installomator bug. Vendor changed their installer, their website, etc. label Jan 12, 2023
@scriptingosx scriptingosx added this to the v10.3 milestone Jan 12, 2023
@asri-tm asri-tm closed this Jan 20, 2023
@asri-tm asri-tm deleted the openvpnconnectv3 branch January 20, 2023 06:09
asri-tm added a commit to asri-tm/Installomator that referenced this pull request Jan 20, 2023
@scriptingosx
Copy link
Collaborator

Thank you!

@asri-tm asri-tm mentioned this pull request Feb 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

application-issue App label issue that's not an Installomator bug. Vendor changed their installer, their website, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants