Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Agent Client Collector 6.0.1 Ubuntu Installation Script Error

Gary Ault
Tera Contributor

Not a question just an FYI that might save someone time. 
We hit a bump installing ACC 6.0.1 on some of our Ubuntu Servers.   When it tried to download the signature zip file it failed because the file name variable was empty. 

Distro: ubuntu
Version: 22.04
CPU Architecture: x86_64

* Downloading https://install.service-now.com/glide/distribution/builds/package/app-signed/agent-client-collector…

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 53.9M  100 53.9M    0     0  1930k      0  0:00:28  0:00:28 --:--:-- 2209k

* Downloading https://install.service-now.com/glide/distribution/builds/package/app-signed/

curl: Remote file name has no length!
curl: (23) Failed writing received data to disk/application

The problem is in the script:
if [ "$ID" = "ubuntu" ]; then
  MAJOR_VERSION=$(echo "$VERSION_ID" | cut -d "." -f1)
  if ! [ "$MAJOR_VERSION" -eq "$MAJOR_VERSION" ] 2>/dev/null || [ "$MAJOR_VERSION" -lt 18 ]; then
    printf "\033[36m\n* Unsupported version of Ubuntu: %s, will try to use 18.04 executable.\n\033[0m\n" "$VERSION_ID"
  fi
  filename=$ACC_NAME-$ACC_VERSION-ubuntu-1804_amd64.deb
  sigfilename=$ACC_NAME-$ACC_VERSION-ubuntu-1804_amd64-deb-deb.zip
elif [ "$ID" = "debian" ]; then
  if [ "$VERSION_ID" = "9" ]; then
    filename=$ACC_NAME-$ACC_VERSION-debian-9_amd64.deb
    sig_filename=$ACC_NAME-$ACC_VERSION-debian-9_amd64-deb-deb.zip
  else
    printf "\033[36m\n* Unsupported version of Debian: %s, will try to use Debian 9 executable.\n\033[0m\n" "$VERSION_ID"
    filename=$ACC_NAME-$ACC_VERSION-debian-9_amd64.deb
    sig_filename=$ACC_NAME-$ACC_VERSION-debian-9_amd64-deb-deb.zip
  fi



Some workaround options:
1) Download the script, add the "_" and execute. 
2) Just download the .deb package and install it manually.

 

0 REPLIES 0