-
Notifications
You must be signed in to change notification settings - Fork 610
Description
When installing/updating Citrix Workspace app this morning I was still getting the error that has been reported.
Here is the log of the failed attempt:
Script result: 2025-02-06 06:17:13 : REQ : : shifting arguments for Jamf
2025-02-06 06:17:13 : REQ : citrixworkspace : ################## Start Installomator v. 10.7, date 2025-01-24
2025-02-06 06:17:13 : INFO : citrixworkspace : ################## Version: 10.7
2025-02-06 06:17:14 : INFO : citrixworkspace : ################## Date: 2025-01-24
2025-02-06 06:17:14 : INFO : citrixworkspace : ################## citrixworkspace
2025-02-06 06:17:14 : INFO : citrixworkspace : SwiftDialog is not installed, clear cmd file var
2025-02-06 06:17:14 : INFO : citrixworkspace : BLOCKING_PROCESS_ACTION=tell_user_then_kill
2025-02-06 06:17:15 : INFO : citrixworkspace : NOTIFY=silent
2025-02-06 06:17:15 : INFO : citrixworkspace : LOGGING=INFO
2025-02-06 06:17:15 : INFO : citrixworkspace : LOGO=/System/Applications/App Store.app/Contents/Resources/AppIcon.icns
2025-02-06 06:17:15 : INFO : citrixworkspace : Label type: pkgInDmg
2025-02-06 06:17:15 : INFO : citrixworkspace : archiveName: Citrix Workspace.dmg
2025-02-06 06:17:15 : INFO : citrixworkspace : no blocking processes defined, using Citrix Workspace as default
2025-02-06 06:17:15 : INFO : citrixworkspace : App(s) found: /Applications/Citrix Workspace.app
2025-02-06 06:17:15 : INFO : citrixworkspace : found app at /Applications/Citrix Workspace.app, version 24.11.0.55, on versionKey CitrixVersionString
2025-02-06 06:17:15 : INFO : citrixworkspace : appversion: 24.11.0.55
2025-02-06 06:17:15 : INFO : citrixworkspace : Label is not of type “updateronly”, and it’s set to use force to install or ignoring app store apps, so not using updateTool.
2025-02-06 06:17:15 : INFO : citrixworkspace : Latest version not specified.
2025-02-06 06:17:15 : REQ : citrixworkspace : Downloading https: to Citrix Workspace.dmg
2025-02-06 06:17:15 : ERROR : citrixworkspace : error downloading https:
ls: Citrix Workspace.dmg: No such file or directory
2025-02-06 06:17:16 : ERROR : citrixworkspace : File list:
2025-02-06 06:17:16 : ERROR : citrixworkspace : File type: Citrix Workspace.dmg: cannot open `Citrix Workspace.dmg' (No such file or directory)
2025-02-06 06:17:16 : INFO : citrixworkspace : Installomator did not close any apps, so no need to reopen any apps.
2025-02-06 06:17:16 : ERROR : citrixworkspace : ERROR: Error downloading https: error:
- URL rejected: Port number was not a decimal number between 0 and 65535
- Closing connection
curl: (3) URL rejected: Port number was not a decimal number between 0 and 655352025-02-06 06:17:16 : REQ : citrixworkspace : ################## End Installomator, exit code 2
When looking between version 10.7 and 10.8Beta the entry for citrixworkspaceapp is exactly the same.
citrixworkspace)
#credit: Erik Stam (@erikstam) and #Philipp on MacAdmins Slack
name="Citrix Workspace"
type="pkgInDmg"
curlOptions=( --user-agent "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36")
parseURL() {
urlToParse='https://www.citrix.com/downloads/workspace-app/mac/workspace-app-for-mac-latest.html#ctx-dl-eula-external'
htmlDocument=$(curl -s -L $urlToParse)
xmllint --html --xpath "string(//a[contains(@rel, 'downloads.citrix.com')]/@rel)" 2> /dev/null <(print $htmlDocument)
}
downloadURL="https:$(parseURL)"
newVersionString() {
urlToParse='https://www.citrix.com/downloads/workspace-app/mac/workspace-app-for-mac-latest.html'
htmlDocument=$(curl -fs $urlToParse)
xmllint --html --xpath 'string(//p[contains(., "Version")])' 2> /dev/null <(print $htmlDocument)
}
appNewVersion=$(newVersionString | cut -d ' ' -f2 | cut -d '(' -f1)
versionKey="CitrixVersionString"
expectedTeamID="S272Y5R93J"
;;
When checking on Slack I found the fix mentioned by @dan-snelson about adding curlOptions to the entry which it has been in 10.7 & 10.8Beta. But only the curlOptions configuration portion was added, but it was not added to:
htmlDocument=$(curl -s -L $urlToParse)
by changing it to
htmlDocument=$(curl -s -L $urlToParse $curlOptions)
This fixed the port number issue for downloading the DMG file for Citrix Workspace app.
Sorry if this a duplicate submission on this error I could not find another active one.