Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Photon installer just gets "Installation failed with an error"
Photon installer just gets "Installation failed with an error" [message #1791408] Thu, 28 June 2018 19:43 Go to next message
David M. Karr is currently offline David M. KarrFriend
Messages: 577
Registered: July 2009
Senior Member
I've been trying to install Photon this morning. I had some initial odd issues with the installer getting an "Access is Denied" error on a file in ~/.eclipse, but after I rebooted I don't see that anymore. However, with the "Simple Installer", when I click the "Install" button, it immediately says "Installation failed with an error.", with no other information.
Re: Photon installer just gets "Installation failed with an error" [message #1791415 is a reply to message #1791408] Fri, 29 June 2018 05:42 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 29552
Registered: July 2009
Senior Member
Which OS are you on? Doesn't it give you a link to the log? Can you show (attach *.png) what it looks like? If on Windows, if you switch to simple mode, it will ask if you want to keep the installer in a permanent location. If you do that, and run it again (be sure to choose a Photon version explicitly if there is a choice of version), and it fails again, perhaps there will be a *.log file in the installer's configuration folder? If you're on the Mac, be sure you've unpackaged to somewhere other than your download folder; the Mac does some "randomizing" thing that can cause jars not to load properly.
Re: Photon installer just gets "Installation failed with an error" [message #1791451 is a reply to message #1791415] Fri, 29 June 2018 16:24 Go to previous messageGo to next message
David M. Karr is currently offline David M. KarrFriend
Messages: 577
Registered: July 2009
Senior Member
Platform: Windows 7.

I've attached the picture and the log file (slightly edited).

As you can see, there are bunch of "FileNotFoundException" errors, with the qualification of "Access is denied". I don't know why it would say that. I checked most of those errors, and the file in question exists, is owned by me, and is read/write/exec.

Is there something in this ~/.eclipse tree I can safely delete to see if that fixes this? Will that break anything in my existing Oxygen installation?

  • Attachment: installer.log
    (Size: 537.28KB, Downloaded 31 times)
Re: Photon installer just gets "Installation failed with an error" [message #1791454 is a reply to message #1791451] Fri, 29 June 2018 17:21 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 29552
Registered: July 2009
Senior Member
You could delete everything in C:\Users\<uid>\.eclipse\org.eclipse.oomph.jreinfo and it will be created new. Also, in C:\Users\<uid>\.eclipse\org.eclipse.oomph.setup\ . But Access Denied? What's going on with your machine that you don't have write access in your own home folder's files. That's the more fundamental problem because you probably want to create the installation there too and will end up with the next same problem. Can you edit any of these files with notepad, e.g., add and remove a space and then save it?
Re: Photon installer just gets "Installation failed with an error" [message #1791457 is a reply to message #1791454] Fri, 29 June 2018 17:40 Go to previous messageGo to next message
David M. Karr is currently offline David M. KarrFriend
Messages: 577
Registered: July 2009
Senior Member
I do have write access in those folders. I verified that by manually putting a file there. No problem. I also edited one of the existing files and saved it. No problem.
Re: Photon installer just gets "Installation failed with an error" [message #1791458 is a reply to message #1791457] Fri, 29 June 2018 17:43 Go to previous messageGo to next message
David M. Karr is currently offline David M. KarrFriend
Messages: 577
Registered: July 2009
Senior Member
I removed "jreinfo" and "setup" and retested. Same error. The log now complains about "org.eclipse.oomph.setup.installer\installRoot.txt". Can I delete that directory?
Re: Photon installer just gets "Installation failed with an error" [message #1791462 is a reply to message #1791458] Fri, 29 June 2018 19:17 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 29552
Registered: July 2009
Senior Member
Yes, but there's something seriously wrong with the permissions with which the installer is running, or with the permissions/ownership of your home folder. No doubt the installer won't be able to write anything at all anywhere on the file system, and that's of course fundamentally what an installer does...
Re: Photon installer just gets "Installation failed with an error" [message #1791469 is a reply to message #1791462] Fri, 29 June 2018 21:14 Go to previous messageGo to next message
David M. Karr is currently offline David M. KarrFriend
Messages: 577
Registered: July 2009
Senior Member
And after deleting that directory and retesting, the installation went through successfully. The installation process recreated some of these directories and files. Even looking at them after the fact, I don't see any obvious difference between the old and the new. It's almost like the installation process failed specifically because those files were present at all.
Re: Photon installer just gets "Installation failed with an error" [message #1791479 is a reply to message #1791469] Sat, 30 June 2018 09:10 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 29552
Registered: July 2009
Senior Member
Indeed because they were present without write access permission. Goodness knows how they could be in such a state. Perhaps you've previously run the installer as admin (or some other user)? It's much harder to understand file permissions on Windows than on Linux-style file systems where it's more obvious in the properties you see...
Re: Photon installer just gets "Installation failed with an error" [message #1791492 is a reply to message #1791479] Sat, 30 June 2018 16:48 Go to previous messageGo to next message
David M. Karr is currently offline David M. KarrFriend
Messages: 577
Registered: July 2009
Senior Member
Just so it's clear, I saw no indication that write permission was a problem. I was able to write to those files and directories. All the files were owned by me, and the permissions were read and write. There's no way the installer could have been run by anyone but my userid.

No argument on the confusion of Windows file permissions. I'm sure this incident is an artifact of that, but I have no clue what happened.
Re: Photon installer just gets "Installation failed with an error" [message #1791500 is a reply to message #1791492] Sun, 01 July 2018 05:40 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 29552
Registered: July 2009
Senior Member
Sometimes virus scanners on Windows cause such problems for files that are read and written quickly. While scanning the file, it's locked, making it look like it's read-only. I.e., we've repeatedly had reports (and it happened on my old machine), that p2 would download an artifact to a "download" folder and then try to move the final result to the permanent location in the pool, which would then fail with an access denied exception. In such cases, the virus scanner had to be configured to stop doing its thing in the pool/agent folder.
Previous Topic:Having issue to create new Android project in eclips
Next Topic:An error occured during installatinh Eclipse
Goto Forum:
  


Current Time: Tue Sep 25 15:32:54 GMT 2018

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

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

Back to the top