ActionScript download giving 404 but I can see in browser

Hi Folks,

I have a fixlet to download some scripts to be run by ITM Tivoli, and this line gives a 404:

download “http://gotsvw1577:52311/Uploads/Tivoli/CustomProperties/check_multipath.properties

I have tried with and without quotes around the URL.

Here is the error I see whren applying the fixlet:

check_multipath.properties
 Failed
 [-]
[+] Download error:  "Unexpected HTTP response: 404 Not Found" 
 Download requested on server: 
 URL: http://gotsvw1577:52311/Uploads/Tivoli/CustomProperties/check_multipath.properties 
 Hash:  
 Size:  
 Next retry: 8 minutes. Retry now 

If I paste that URL into a browser, it works fine.

Any ideas what’s up?

Thanks,
R.

OK, I restarted the Gather Service, I restarted The BigFix server and I checked I can access the URL from a browser on the BF server: I could. What else can I look at? Where would I find logs that may cast light onto the issue?

Could you show the Fixlet Action Script?

Hi fermt,

This is what I have. It is one of my first Fixlets, so nothing too complicated…

// Enter your action script here

download "http://gotsvw1577:52311/Uploads/Tivoli/CustomProperties/check_multipath.properties"
download "http://gotsvw1577:52311/Uploads/Tivoli/Scripts/check_multipath.pl"

continue if {(exists file "check_multipath.properties" of folder "__Download" of client folder of current site) and (exists file "check_multipath.pl" of folder "__Download" of client folder of current site) }

move {pathname of file "check_multipath.pl"         of folder "__Download" of client folder of current site} /opt/IBM/ITM/scripts/check_multipath.pl
move {pathname of file "check_multipath.properties" of folder "__Download" of client folder of current site} /opt/IBM/ITM/localconfig/ux/scripts_definitions/check_multipath.properties

wait /opt/IBM/ITM/bin/itmcmd agent stop lz
wait /opt/IBM/ITM/bin/itmcmd agent start lz

Is it possible that a proxy or similar is preventing the download? Please see https://www.ibm.com/developerworks/community/wikis/home?lang=en#!/wiki/Tivoli%20Endpoint%20Manager/page/Proxy%20Server%20Settings for proxy configuration information.

As a workaround, you could manually cache the file in question in order to proceed: http://www-01.ibm.com/support/docview.wss?uid=swg21506037

1 Like

Hi Aram,

That was it. I forgot BigFix uses it’s own proxy, not the system one. Added exclusion for its name and localhost, then it worked a treat. Well the download/cache works, the copy does not, but I am sure I can resolve that.

Thanks,
R.