lagupgrade fails with "url: no URL specified!" error

  • 7000232
  • 29-Apr-2008
  • 26-Apr-2012

Environment

Novell Access Management 3 Linux Access Gateway
Novell Access Management 3 Support Pack 2 applied

Situation

Upgrade and Access Manager Linux Access Gateway (LAG) with SP2 IR1 (upgrading from SP2) and 
the upgrade would not succeed. Looking at the error message referenced, I could see the following
information and error

> URL_string = ftp://ftp.novell.com/incoming/lagrpms.tar.gz
>
> Downloading the LAG rpms package...
>
> curl: no URL specified!
> curl: try 'curl --help' or 'curl --manual' for more information
> Failed to download ftp://ftp.novell.com/incoming/lagrpms.tar.gz. Please
> make sure that the server, path are correct.
> Run /chroot/lag/opt/novell/bin/lagupgrade.sh with --help option for
> more details on the usage

Resolution

Fixed in Support Pack 3. To work around the issue on pre SP3 builds, modify line 305 of the install script and add an extra space character

CURL_COMMAND="${CURL_COMMAND} ${URL_STRING}"

Additional Information

Looking at the /chroot/lag/opt/novell/bin/lagupgrade.sh script on line 305 ...

CURL_COMMAND=${CURL_COMMAND}${URL_STRING}

...should actually be (with a space between the variables)....

CURL_COMMAND="${CURL_COMMAND} ${URL_STRING}"

when upgrading from an anonymous FTP server. The string that WAS being executed before this change was....

/usr/bin/curl -f -u
anonymousftp://ftp.novell.com/lagrpms.tar.gz

Note that there is no space between anonymous and the URL causing CURL to fail with the following error...

curl: no URL specified!

Feedback service temporarily unavailable. For content questions or problems, please contact Support.