Project

General

Profile

Actions

bug #7079

closed

P2 updates not found

Added by Patrick Plitzner over 6 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
New
Assignee:
Patrick Plitzner
Category:
taxeditor
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Severity:
normal
Found in Version:
Tags:

Description

The behavior of the automatic update is somewhat undeterministic: On some systems it works and on some it doesn't. There are even cases where only the nightly update or only the stable update works.

We have to investigate how to deterministically reproduce the problem.

P2 caches update information. This could also be a problem.

p2 cache

The p2 cache is located in the Taxeditor installation folder at ./p2/org.eclipse.equinox.p2.repository/cache this folder contains a file with a cryptic name. In my case it is named -622154754. This file is an xz archive, which seems to have the same content as the content.xml.xzin the p2 download site. Maybe this is exactly the file which has been downloaded from the update site.


repeating description of #5061 which has been set as duplicate of this issue:

This may be due to http://eclipsesource.com/blogs/2012/08/31/reloading-your-p2-cache/

We can solve this problem by simply forcing a reload of the p2 caches always before the update check, but first we need to confirm that this is indeed the problem.

This can be checked by choosing Preferences -> Install / Update -> Available Software Sites. Then select the nightly site and click reload. If this works then it should be the cache that is causing the problem.



Files

wireshark-screenshot.png (266 KB) wireshark-screenshot.png Andreas Kohlbecker, 11/22/2017 12:38 PM
wireshark-log-2018-02-15-1.png (51.7 KB) wireshark-log-2018-02-15-1.png Andreas Kohlbecker, 02/15/2018 05:41 PM
content-2018-02-15_16-26.xml.xz (47.3 KB) content-2018-02-15_16-26.xml.xz Andreas Kohlbecker, 02/15/2018 05:44 PM
wireshark-log-after-reload.png (125 KB) wireshark-log-after-reload.png Andreas Kohlbecker, 02/15/2018 05:49 PM

Related issues

Related to EDIT - feature request #4452: p2 update problem with nebula compositetable dependencyClosedPatrick Plitzner

Actions
Related to EDIT - bug #5430: P2 update of Taxonomic Editor bundled with JRE does not workNewKatja Luther

Actions
Related to EDIT - feature request #7076: Add Nebula CompositeTable as direct dependencyClosedPatrick Plitzner

Actions
Related to EDIT - bug #7279: p2 sites are extremely hugeClosedPatrick Plitzner

Actions
Related to EDIT - feature request #9118: Change p2 update site to https in TaxeditorClosedAndreas Müller

Actions
Actions #1

Updated by Andreas Kohlbecker over 6 years ago

Hallo,

ich habe mir das geupdate des Editors in der develop version mal im wireshark angesehen:

Es sieht so aus als würde der taxeditor nach dem 2ten redirect einfach nicht weiter machen .

Andreas

Actions #2

Updated by Andreas Müller over 6 years ago

Actions #3

Updated by Andreas Müller over 6 years ago

  • Related to bug #5430: P2 update of Taxonomic Editor bundled with JRE does not work added
Actions #5

Updated by Andreas Müller over 6 years ago

Patrick, could you please check if #5061 and this ticket are duplicates?

Actions #8

Updated by Patrick Plitzner about 6 years ago

Actions #9

Updated by Andreas Kohlbecker about 6 years ago

Es sieht so aus als würde der taxeditor nach dem 2ten redirect einfach nicht weiter machen .

Sorry, das war quatsch, der redirect geht auf einen URL mit dem HTTPS Protokol, das bedeutet. Ab diesem Punkt ist die Kommunikation per SSL oder TSL verschlüsslt, daher erfasst der HTTP filter in wireshark den Traffic nicht mehr. Um auch den verschlüsselten Traffic analysieren zu können, muss er in wireshark entschlüsslelt werden. Wie das geht steht hier beschrieben: https://blog.stalkr.net/2010/03/codegate-decrypting-https-ssl-rsa-768.html

Actions #10

Updated by Andreas Kohlbecker about 6 years ago

Ich habe testweise den redirect auf https im server deaktiviert und das update hat prompt geklappt.

@patrick: Steht in der eclipse Dokumentation zu den update sites etwas https, ssl oder tsl? Gibt es in diesem Zusammenhang bekannte Probleme?

Ich habe versucht die update site aus dem redirect explizit aus zu schließen, hatte aber bislang keinen Erfolg damit.

Actions #11

Updated by Patrick Plitzner about 6 years ago

Ah, das ist ja interessant. Weiß nicht, ob dort etwas steht, aber ich werde mal schauen.

Actions #12

Updated by Andreas Kohlbecker about 6 years ago

ich habe den redirect auf https wieder deaktiviert, so dass die updates für nightly wieder funktionieren müssen.

Es werden aber keine Upadates gefunden.

wie in wireshark zu sehen ist holt sich der editor die content.xml.xz und bricht dann ab:

ein cache problem? oder unterscheiden sich die content.xml.xz der nightly build einfach nicht?

dies ist die aktuelle content.xml.xz: content-2018-02-15_16-26.xml.xz

Actions #14

Updated by Andreas Kohlbecker about 6 years ago

nach dem "reload" wie in #5061 empfohlen wird wesentlich mehr von der Update site herunter geladen:

Aber noch immer "No updates found!"

Auch nach einen Neutstart des Editors keine Veränderung.

Actions #15

Updated by Andreas Kohlbecker about 6 years ago

  • Description updated (diff)
Actions #16

Updated by Andreas Kohlbecker about 6 years ago

ich habe den redirect auf https wieder aktiviert

Actions #17

Updated by Andreas Kohlbecker about 6 years ago

  • Description updated (diff)

supplying some more details to the issue description ...

Actions #18

Updated by Andreas Kohlbecker about 6 years ago

test:

1 . deleted exiting ./p2/org.eclipse.equinox.p2.repository/cache/-622154754 file which had the md5 sum: 0c798397f7bd1a77065d591075b195fa

  1. trying update ... no updates found
  2. the ./p2/org.eclipse.equinox.p2.repository/cache/-622154754 has been restored and has been obviously been updated, it has a new md5 sum: 20d10682041b1bde580ba4700e139cce which exactly matches the content.xml.xz file in the update site. This finding supports the observations made with wireshark.
Actions #19

Updated by Andreas Kohlbecker about 6 years ago

  • Related to bug #7279: p2 sites are extremely huge added
Actions #20

Updated by Andreas Kohlbecker about 6 years ago

something extremely interesting happened:

After deleting and recreating the taxeditor/update/nightly folder the update suddenly worked, see #7279.
Maybe the update sizes contain old files which confuse the p2 update manager?

Actions #21

Updated by Patrick Plitzner about 6 years ago

  • Status changed from New to Resolved
  • Assignee changed from Patrick Plitzner to Andreas Kohlbecker
  • Target version changed from Unassigned CDM tickets to Release 5.0
  • % Done changed from 0 to 50

By clearing the update site with every build (#7279) This issue seems to be solved.

Actions #22

Updated by Andreas Kohlbecker about 6 years ago

we need to review and test this once again after the release 4.15 to sure it is fixed.

Actions #23

Updated by Andreas Müller almost 6 years ago

  • Status changed from Resolved to Feedback
  • Assignee changed from Andreas Kohlbecker to Patrick Plitzner

It looks like nightly update does not work anymore in 5.1-Snapshot

Actions #24

Updated by Patrick Plitzner almost 6 years ago

  • Assignee changed from Patrick Plitzner to Andreas Kohlbecker

The update did not work for after the release because of a wrong version tag due to the manual update script.

This has already been fixed with taxeditor|9fb97d484e04342323e25b786819acebc94289de and has already been tested.

@Andreas K.: Can you test this again. But you need to have a downloaded nightly build after this commit.

Actions #25

Updated by Andreas Kohlbecker almost 6 years ago

  • Assignee changed from Andreas Kohlbecker to Patrick Plitzner

Patrick Plitzner wrote:

@Andreas K.: Can you test this again. But you need to have a downloaded nightly build after this commit.

Updating the version 5.1.0.201806110837 to the latest nightly build 5.1.0.201806251348 worked for me

Actions #26

Updated by Patrick Plitzner almost 6 years ago

  • Status changed from Feedback to Closed
  • % Done changed from 50 to 100
Actions #27

Updated by Andreas Müller almost 4 years ago

Actions #28

Updated by Andreas Kohlbecker almost 4 years ago

  • Tags set to eclipse-p2
Actions #29

Updated by Andreas Kohlbecker almost 4 years ago

  • Tags changed from eclipse-p2 to eclipse-p2
Actions

Also available in: Atom PDF