- This topic has 5 replies, 2 voices, and was last updated 1 week, 6 days ago by Brian Fernandes.
-
AuthorPosts
-
bushidobrownParticipantA 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.
Brian FernandesModeratorThanks 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!
bushidobrownParticipantThe 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
Brian FernandesModeratorThere 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 thep2.httpRule
switch. To do this, edit theeclipse.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.
bushidobrownParticipantOur 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.
Brian FernandesModeratorI’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 theeclipse.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.
-
AuthorPosts