java.io.IOException: Server returned HTTP response code: 403

Hi All,

Can somebody help me on this issue, I can see Title error. when i use update script for version information

like update --version, update --help is working and --updatesite also working.
FYI., below URL(http://.......artifacts.xml) is accessible using chrome/IE

Full error msg
E:\Program Files\Parasoft\SOAtest\9.10>update --version
Exception in thread "main" java.io.IOException: Server returned HTTP response code: 403 for URL: http://updates.parasoft.com/xtest/archive/web/9.10/ar
tifacts.xml
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1840)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)
at java.net.URL.openStream(URL.java:1045)
at com.parasoft.soavirt.products.update.ServicePackInstaller.getArtifactsXml(ServicePackInstaller.java:215)
at com.parasoft.soavirt.products.update.ServicePackInstaller.getArtifactsFromUpdateSite(ServicePackInstaller.java:230)
at com.parasoft.soavirt.products.update.ServicePackInstaller.printVersion(ServicePackInstaller.java:180)
at com.parasoft.soavirt.products.update.Update.executeUpdate(Update.java:218)
at com.parasoft.soavirt.products.update.Update.main(Update.java:253)

Comments

  • williammccuskerwilliammccusker Posts: 362 ✭✭

    Hi,
    Are you attempting to use the update script to apply a service pack? From the output as a guess I wonder if it could be an issue related to the link being http but in a browser the link gets redirected to https.

  • Yes, I'm using update script. now I tried with https also, find the error below.
    ./update --updatesite https://updates.parasoft.com/xtest/archive/web/9.10/artifacts.xml
    Exception in thread "main" java.lang.Exception: Unknown archive file or URL specified
    at com.parasoft.soavirt.products.update.ServicePackInstaller.formatUpdateSite(ServicePackInstaller.java:167)
    at com.parasoft.soavirt.products.update.ServicePackInstaller.getUpdateSite(ServicePackInstaller.java:209)
    at com.parasoft.soavirt.products.update.ServicePackInstaller.install(ServicePackInstaller.java:132)
    at com.parasoft.soavirt.products.update.Update.executeUpdate(Update.java:226)
    at com.parasoft.soavirt.products.update.Update.main(Update.java:253)

  • williammccuskerwilliammccusker Posts: 362 ✭✭

    Hi,
    We are taking a look at it. Are you blocked from being able to update your installation?

  • No, I'm able to use update --updatesite com.parasoft.xtest.web.sp_updatesite_9.10.8.zip and update --help,

    But if I try update --version or --updatesite gives me an error as java.io.IOException: Server returned HTTP response code: 403

  • williammccuskerwilliammccusker Posts: 362 ✭✭

    Ok, thanks! We will look at why the options that are accessing online urls are not functioning as expected.

  • benken_parasoftbenken_parasoft Posts: 823 ✭✭✭
    edited December 2019

    below URL(http://.......artifacts.xml) is accessible using chrome/IE

    The URL also works for me. I see no issue.

    This is the wrong URL. You do not include "artifacts.xml" at the end of the URL. Just use https://updates.parasoft.com/xtest/archive/web/9.10/

  • sharathkasarlasharathkasarla Posts: 4

    [[email protected] 9.10]$ ./update --version
    Exception in thread "main" java.io.IOException: Server returned HTTP response code: 403 for URL: http://updates.parasoft.com/xtest/archive/web/9.10/artifacts.xml
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1900)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498)
    at java.net.URL.openStream(URL.java:1067)
    at com.parasoft.soavirt.products.update.ServicePackInstaller.getArtifactsXml(ServicePackInstaller.java:215)
    at com.parasoft.soavirt.products.update.ServicePackInstaller.getArtifactsFromUpdateSite(ServicePackInstaller.java:230)
    at com.parasoft.soavirt.products.update.ServicePackInstaller.printVersion(ServicePackInstaller.java:180)
    at com.parasoft.soavirt.products.update.Update.executeUpdate(Update.java:218)
    at com.parasoft.soavirt.products.update.Update.main(Update.java:253)
    Update completed unsuccessfully
    [[email protected] 9.10]$ ./update --updatesite
    Exception in thread "main" java.io.IOException: Server returned HTTP response code: 403 for URL: http://updates.parasoft.com/xtest/archive/web/9.10/artifacts.xml
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1900)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498)
    at java.net.URL.openStream(URL.java:1067)
    at com.parasoft.soavirt.products.update.ServicePackInstaller.getArtifactsXml(ServicePackInstaller.java:215)
    at com.parasoft.soavirt.products.update.ServicePackInstaller.getArtifactsFromUpdateSite(ServicePackInstaller.java:230)
    at com.parasoft.soavirt.products.update.ServicePackInstaller.install(ServicePackInstaller.java:133)
    at com.parasoft.soavirt.products.update.Update.executeUpdate(Update.java:226)
    at com.parasoft.soavirt.products.update.Update.main(Update.java:253)
    Update completed unsuccessfully
    [[email protected] 9.10]$ ./update --updatesite https://updates.parasoft.com/xtest/archive/web/9.10/
    Exception in thread "main" java.lang.Exception: Unknown archive file or URL specified
    at com.parasoft.soavirt.products.update.ServicePackInstaller.formatUpdateSite(ServicePackInstaller.java:167)
    at com.parasoft.soavirt.products.update.ServicePackInstaller.getUpdateSite(ServicePackInstaller.java:209)
    at com.parasoft.soavirt.products.update.ServicePackInstaller.install(ServicePackInstaller.java:132)
    at com.parasoft.soavirt.products.update.Update.executeUpdate(Update.java:226)
    at com.parasoft.soavirt.products.update.Update.main(Update.java:253)
    Update completed unsuccessfully

Sign In or Register to comment.