Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » OOmph offline installation failing
OOmph offline installation failing [message #1747271] Fri, 11 November 2016 13:24 Go to next message
Christian Pontesegger is currently offline Christian PonteseggerFriend
Messages: 197
Registered: July 2009
Location: Graz, Austria
Senior Member
I was trying to run the Oomph installer on a pure offline machine. Therefore I first installed eclipse on an online machine. then I transferred the bundlepool along with the <windows> user/.eclipse folder to the offline PC.

I can start the installer there but it fails on resolving depedencies showing:
Unable to connect to repository:
http://download.eclipse.org/technology/epp/packages/neon/content.xml

this is one of the added repositories. Sure it is not there, but I thought as everything should be available in the bundle pool, why is eclipse calling home during install?
Do I have to copy additional data to the offline machine?

thanks
Christian
Re: OOmph offline installation failing [message #1747281 is a reply to message #1747271] Fri, 11 November 2016 15:54 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 29545
Registered: July 2009
Senior Member
No, the bundle pool is not everything that's needed to work offline. There's also the cached content metadata and artifact metadata that would be needed.
Re: OOmph offline installation failing [message #1747297 is a reply to message #1747281] Fri, 11 November 2016 18:07 Go to previous messageGo to next message
Christian Pontesegger is currently offline Christian PonteseggerFriend
Messages: 197
Registered: July 2009
Location: Graz, Austria
Senior Member
ok, where is this data stored?
Re: OOmph offline installation failing [message #1747328 is a reply to message #1747297] Sat, 12 November 2016 09:00 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 29545
Registered: July 2009
Senior Member
Well, I could start listing places that I think might be an issue, but in the end, I wonder what the overall goal here is? There's ~/.eclipse/org.eclipse.oomph.p2/cache where Oomph caches the things that p2 itself doesn't always cache so well. There's p2's own cache, but that's in the agent which you probably copied with the pool, I guess. There's the ~/.eclipse/org.eclipse.oomph.setup/cache where setup files are cached. But you suggest you've copied these. I assume you've selected the Offline check mark.

But what's the goal? Yes, I understand of course you want something to work offline, but why not just create an installation and copy it to the offline machine? I.e., there must be flexibility you're trying to achieve, that likely would be far better achieved if you created mirrors of the update sites and use those mirrors so that the full flexibility of being able to install anything would be possible...
Re: OOmph offline installation failing [message #1747330 is a reply to message #1747328] Sat, 12 November 2016 11:06 Go to previous messageGo to next message
Christian Pontesegger is currently offline Christian PonteseggerFriend
Messages: 197
Registered: July 2009
Location: Graz, Austria
Senior Member
Seeing the offline checkbox I assumed there is a way to use the oomph installer for full offline installations. In our company we have closed networks where I wanted to create oomph setups for. Using the default eclipse catalog would mean to mimic eclipse update servers, run a local webserver, fake dns lookup for eclipse.org or create my own catalogs. This seems to be too much effort.

thanks for clarification
Christian
Re: OOmph offline installation failing [message #1747337 is a reply to message #1747330] Sat, 12 November 2016 14:22 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 29545
Registered: July 2009
Senior Member
The offline mode is primarily there so users can replicate an installation that they've previously installed.

If I were to set things up for a company I would focus more on creating mirrors or aggregates of the Eclipse p2 update sites I wanted to use. It's pretty easy:
#!/bin/sh

eclipse="/d/sandbox/oomph-master/eclipse/eclipse.exe"

if [[ $# != 2 ]]; then
  echo "mirror-eclipse <source-URL> <targetURL>"
else
 $eclipse -nosplash -verbose \
   -application org.eclipse.equinox.p2.artifact.repository.mirrorApplication \
   -source $1 \
   -destination $2
 $eclipse -nosplash -verbose \
   -application org.eclipse.equinox.p2.metadata.repository.mirrorApplication \
   -source $1 \
   -destination $2
fi

exit

Redirections (like the ones used to redirect setup resources) can also be used to redirect p2 update site URLs so it should be relatively straight forward to create internal mirrors and to use them.

Having control over your own catalog would also be useful, though granted more initially to create such things. We do have wizards now for creating all the needed resource types and in the coming weeks I want to commit a sample to illustrate the basics. The installer supports dragging and dropping an Index (or an archive containing an Index) to configure it to use that index. And with Configurations it's much easier to automate the product/project selection process.

But of course it's not all so well documented to make it easy.
Re: OOmph offline installation failing [message #1764468 is a reply to message #1747337] Tue, 30 May 2017 10:19 Go to previous messageGo to next message
uma nayak is currently offline uma nayakFriend
Messages: 19
Registered: May 2017
Junior Member
Hi Ed,

same issue i am facing due to company network not able to read eclipse.org site.

I am planning to create my own local repository instead of given below.
<setupTask
xsi:type="setup.p2:P2Task"
label="Eclipse for RCP and RAP Developers (Neon)">
<requirement
name="epp.package.rcp"
versionRange="[4.6.0,4.7.0)"/>
<requirement
name="org.eclipse.platform.feature.group"
versionRange="[4.6.0,4.7.0)"/>
<requirement
name="org.eclipse.rcp.feature.group"
versionRange="[4.6.0,4.7.0)"/>
<requirement
name="org.eclipse.jdt.feature.group"
versionRange="[3.12.0,3.13.0)"/>
<requirement
name="org.eclipse.pde.feature.group"
versionRange="[3.12.0,3.13.0)"/>
<repository
url="http://download.eclipse.org/technology/epp/packages/neon"/>
<repository
url="http://download.eclipse.org/releases/neon/201610111000"/>
</setupTask>

So please help me how can i create our local repository for neon 3 eclipse..
Re: OOmph offline installation failing [message #1764486 is a reply to message #1764468] Tue, 30 May 2017 12:56 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 29545
Registered: July 2009
Senior Member
You'll need to mirror each of those repositories. For Neon, you could mirror just the most recent simple repository instead of the whole composite.
Re: OOmph offline installation failing [message #1764496 is a reply to message #1764486] Tue, 30 May 2017 14:06 Go to previous messageGo to next message
uma nayak is currently offline uma nayakFriend
Messages: 19
Registered: May 2017
Junior Member
Hi Ed

could you please suggest website url from where i can download mirror for recent simple repository?
Re: OOmph offline installation failing [message #1764544 is a reply to message #1764496] Wed, 31 May 2017 07:14 Go to previous messageGo to next message
uma nayak is currently offline uma nayakFriend
Messages: 19
Registered: May 2017
Junior Member
Hi Ed,

As per my googling i got 2 mirror sites but in mirror repository i am not able to see eclipse.exe so that i am confused which one is correct for create our local repository.

Site url given below.
1.http://ftp.gnome.org/mirror/eclipse.org/tracecompass/neon/stable/repository/

2. http://mirror.math.princeton.edu/pub/eclipse/oomph/epp/neon/R3/

If anyone url is correct or you have idea about other please help me.
Re: OOmph offline installation failing [message #1764557 is a reply to message #1764544] Wed, 31 May 2017 08:36 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 29545
Registered: July 2009
Senior Member
My answer to your previous questions seems to have gone missing. :-( I tried to suggest that http://download.eclipse.org/releases/neon/201705151400 is the latest simple neon update site (with some fixes to problems introduced in Neon.3). So that would be the repository to mirror... The EPP update site is an aggregate and you should mirror that whole site.
Re: OOmph offline installation failing [message #1764559 is a reply to message #1764557] Wed, 31 May 2017 08:53 Go to previous messageGo to next message
uma nayak is currently offline uma nayakFriend
Messages: 19
Registered: May 2017
Junior Member
Hi Ed,

This is correct but i don't know how can i download mirror for http://download.eclipse.org/releases/neon/201705151400 site.
Re: OOmph offline installation failing [message #1764563 is a reply to message #1764559] Wed, 31 May 2017 09:38 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 29545
Registered: July 2009
Senior Member
I don't think there is a site zip for it. You should use the mirror application provided by p2 https://wiki.eclipse.org/Equinox_p2_Repository_Mirroring and earlier in this thread I showed the script I use to invoke that application using an existing Eclipse installation.
Previous Topic:Adding update repository to Eclipse Installer
Next Topic:WST Server Runtime Preference setup in product setup
Goto Forum:
  


Current Time: Fri Sep 21 18:32:50 GMT 2018

Powered by FUDForum. Page generated in 0.01938 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top