facebook

Timeout when updating Eclipse client

  1. Secure Delivery Center
  2.  > 
  3. Getting Help
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #702435 Reply

    bushidobrown
    Participant

    A user gets the following error trying to update their Eclipse client:

    An error occurred while collecting items to be installed
    — error: session context was:(profile=com.genuitec.delivery.package.profile.0953-vvE-6286, phase=com.genuitec.pulse.client.deliverypackage.runtime.p2.DeliveryCollect, operand=, action=).
    — error: Unable to read repository at http://sdc-page:9050/site/7744-Adr-1253/1.0.0.v202409190901-NIGHTLY/plugins/org.eclipse.ajax_1.0.0.v2024.jar.
    — java.net.SocketTimeoutException: Read timed out
    at java.base/java.net.SocketInputStream.socketRead0(Native Method)
    at java.base/java.net.SocketInputStream.socketRead(SocketInputStream.java:115)
    at java.base/java.net.SocketInputStream.read(SocketInputStream.java:168)
    at java.base/java.net.SocketInputStream.read(SocketInputStream.java:140)
    at org.apache.http.impl.io.SessionInputBufferImpl.streamRead(SessionInputBufferImpl.java:137)
    at org.apache.http.impl.io.SessionInputBufferImpl.read(SessionInputBufferImpl.java:197)
    at org.apache.http.impl.io.ContentLengthInputStream.read(ContentLengthInputStream.java:176)
    at org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:135)
    at java.base/java.io.FilterInputStream.read(FilterInputStream.java:133)
    at java.base/java.io.FilterInputStream.read(FilterInputStream.java:107)
    at org.eclipse.ecf.provider.filetransfer.retrieve.AbstractRetrieveFileTransfer$1.performFileTransfer(AbstractRetrieveFileTransfer.java:178)
    at org.eclipse.ecf.filetransfer.FileTransferJob.run(FileTransferJob.java:74)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)

    Is there a way to increase the connection timeout

    Attachments:
    You must be logged in to view attached files.
    #702450 Reply

    Brian Fernandes
    Moderator

    Thanks for the details. I’m checking with the dev team on the timeout setting; in the meanwhile, I have a few questions:

    1) Are you sure this is a timeout related issue – if you open that URL in a browser from the same machine, are you able to download the file?
    2) Is this issue specific to a single user – are others able to update the same package?
    3) Can you please let us know what version of SDC you’re running?

    Thanks!

    #702463 Reply

    bushidobrown
    Participant

    The machines are DOD machines that have some restrictions on networking. They can access that url page and start downloading but the download fails.
    All the users on the DOD machines have this issue.
    The version
    5.8.1.v202301031610

    #702466 Reply

    Brian Fernandes
    Moderator

    There was a change in more recent Eclipse releases that would prevent access to HTTP URLs for update sites. It’s quite likely that that is actually what you’re running into, not a timeout problem.

    1) What version of Eclipse are these users running?
    2) If this is indeed the problem, you could resolve this by using the p2.httpRule switch. To do this, edit the eclipse.ini file and add -Dp2.httpRule=allow to the end of the file, anywhere after the -vmargs switch. On restart, they should be able to access the site.
    Of course, if this works, you could push this change down via SDC instead of having the users make the change manually.

    The longer term solution would be to update/configure your SDC install to work over HTTPS, where the the update sites would be served over HTTPS too. Documentation: https://www.genuitec.com/docs/sdc/advanced-administration/setting-alternate-web-mappings-reverse-proxy-servers/

    Please let us know if this resolves your issues.

    #702467 Reply

    bushidobrown
    Participant

    Our Eclipse release is 2020-06/202006171000. That did not work for him. Most of our users do not have this issue, just have a handful that have a somewhat locked down DOD machine.

    #702472 Reply

    Brian Fernandes
    Moderator

    I’m sorry, I missed the bit in your earlier response where you said that in a browser, the download did start but then failed. I wanted some more clarity on this – did some bytes of the file get downloaded, but the download never finished or did no bytes get downloaded before the failure?

    As far as the timeout is concerned, you could try increasing the values that are on this page: https://wiki.eclipse.org/Equinox/p2/TransportDebugging You would set each of them with a -D switch in the eclipse.ini file. I would recommend setting values for both the first and the second set of properties just to ensure we’re covering all cases. For example:
    -Dorg.eclipse.ecf.provider.filetransfer.httpclient4.browse.connectTimeout=120000
    -Dorg.eclipse.ecf.provider.filetransfer.retrieve.connectTimeout=120000

    If this doesn’t work, it doesn’t seem like we can do more to address this from the SDC / Eclipse side.

    A final option would be for you to build and distribute offline installers for the latest version of your package. If the machines having issues run the installers, they will be given an update option that they can use to install the update, a re-install would not be necessary.

    Do keep us posed.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Timeout when updating Eclipse client

You must be logged in to post in the forum log in