update.sh fail after run for one repository for 3 time

Description

report by at group

step to redo:

  1. choose a idempiere update repository example https://raw.githubusercontent.com/hieplq/idempiere.artifact/idempiere-7.1.0.202002201435/m2p/idempiere-7.1.0.202002201435

  2. open teminal at idempiere folder and run bellow command

  3. export updateRepository=https://raw.githubusercontent.com/hieplq/idempiere.artifact/idempiere-7.1.0.202002201435/m2p/idempiere-7.1.0.202002201435

  4. ./update.sh $updateRepository

  5. ./update.sh $updateRepository

  6. ./update.sh $updateRepository

get Error: Unable to access jarfile plugins/org.eclipse.equinox.launcher_1.*.jar


investigate issue: tracking folder [idempiere]/p2/org.eclipse.equinox.p2.engine/profileRegistry
1st run update.sh: everything normal some stage file generate at profileRegistry/DefaultProfile.profile
2nd run update.sh, a new folder is name of repository
3rd get error like report


some try:

  1. after 2nd step. do delete new generate folder on [idempiere]/p2/org.eclipse.equinox.p2.engine/profileRegistry

  2. do steo 3rd, don't see any error, but it generate again
    try to delete and run update many time stil get success and new generate folder


conclude:
maybe p2 install get wrong to detect profile, so i try to append -profile DefaultProfile to p2 command and it always get success when run update.sh.

Environment

None

Assignee

Hiep Lq

Reporter

Hiep Lq

Labels

Tested By

None

Fix versions

Priority

Major
Configure