Skip to main content
ExLibris
  • Subscribe by RSS
  • Ex Libris Knowledge Center

    ftp (util sp/2 and manual ftp of sp files) doesn't work

     

    • Product: Aleph
    • Product Version: 20, 21, 22, 23
    • Relevant for Installation Type: Dedicated-Direct, Direct, Local, Total Care

     

    Description

    When util sp/2 ("Download latest SP") or manual ftp of the sp files is attempted, the files received on our server are truncated.  For example, the ServicePack-1-3101.tar.gz_aa file, which should be 10485760 bytes, is only 4344 bytes.

     

    Resolution

    Using sftp rather than ftp allowed the manual sftp to work, but in some cases, such as util_sp_06, where "wget" is used, the proc fails. 

    **Analysis by Wei Dai**

    "ftp" is hardcoded in the util_sp_06: 
    wget $WGET_OPTIONS -N "ftp://${FTPUSER}:${FTPPASS}@${PFTPSERVER}/${FTPSCRIPTSDIR}/*" 

    So it seems we cannot use sftp unless we change the util source code. 

    But $WGET_OPTIONS are parameters that are defined using util_sp_1_2. Since the passive-ftp mode doesn't work, I tried using "no-passive-ftp". (In some rare firewall setup, non-passive FTP might work when passive-FTP doesn't.) 

    As I tested, using --no-passive-ftp did work from the command line on their server: 

    wget --no-passive-ftp -N "ftp://produser:Pr6gue@ftp.exlibris-u....new/scripts/*

    <end Wei analysis>

    And we find that util sp/6 works (with util sp/1/2 set like this):

    Configuration summary:
    ----------------------
    FTP server:                ftp.exlibris-usa.com
    FTP user:                  ver23_sp
    FTP options:


     

     

     


    • Article last edited: 4-Dec-2018