Unknown Host: http://download.eclipse.org/releases/photon/content.xml
Guru
guru.hb at oracle.com
Fri Nov 16 16:02:21 UTC 2018
Could you please let me know which version of below tools used . I could try on my linux instance to evaluate.
Java
Maven
I am using :
java version "1.8.0_172"
Java(TM) SE Runtime Environment (build 1.8.0_172-b07)
Java HotSpot(TM) 64-Bit Server VM (build 25.172-b07, mixed mode)
Apache Maven 3.5.3 // You can use latest.
Thanks,
Guru
> On 16-Nov-2018, at 9:26 PM, Jie Kang <jkang at redhat.com> wrote:
>
> Hi,
>
> No worries! For what it's worth, I also cannot access
> http://download.eclipse.org/releases/photon/content.xml <http://download.eclipse.org/releases/photon/content.xml>
Yes this is expected, Only way to check `photon` P2 is working is to check with eclipse.
>
> If I add the sample proxy which does not exist to ~/.m2/settings.xml,
> the build fails similarly with:
>
> [INFO] Adding repository http://download.eclipse.org/releases/photon
> [ERROR] Failed to resolve target definition
> /home/jkang/Work/code/src/hg.openjdk.java.net/jmc/jmc/releng/platform-definitions/platform-definition-photon/platform-definition-photon.target:
> Failed to load p2 metadata repository from location
> http://download.eclipse.org/releases/photon/: Unknown Host:
> http://download.eclipse.org/releases/photon/content.xml: Unknown host
> my.proxy.example.org -> [Help 1]
>
> I am certain the initial error is because you specify a proxy service
> (my.proxy.example.org) which does not exist.
>
> For reference, I do not need a proxy on my system and my build runs as:
>
> [...] > mvn clean verify
> [INFO] Scanning for projects...
> [INFO] Computing target platform for MavenProject:
> org.openjdk.jmc:org.openjdk.jmc.alert:7.0.0-SNAPSHOT @
> /home/jkang/Work/code/src/hg.openjdk.java.net/jmc/jmc/application/org.openjdk.jmc.alert/pom.xml
> [INFO] Adding repository http://localhost:8080/site
> [INFO] Fetching p2.index from http://download.eclipse.org/releases/photon/
> [INFO] Fetching p2.index from http://download.eclipse.org/releases/photon/
> [INFO] Adding repository http://download.eclipse.org/releases/photon
> [INFO] Fetching p2.index from
> http://download.eclipse.org/technology/epp/packages/photon/
> [INFO] Fetching p2.index from
> http://download.eclipse.org/technology/epp/packages/photon/
> [INFO] Fetching p2.index from
> http://download.eclipse.org/releases/photon/201806271001/
> [INFO] Fetching p2.index from
> http://download.eclipse.org/releases/photon/201806271001/
> [...]
>
> On Fri, Nov 16, 2018 at 10:10 AM Gary Morrison <Gary.Morrison at arm.com> wrote:
>>
>> Thanks a bunch for the suggestions, Jie.
>>
>> I’ll dig deeper into how they set up the proxies on this system.
>>
>> It didn’t seem likely to be a proxy issue, because simply browsing to that URL on my Windows machine and on my iPad also reported being unable to access that file — exact same error as browsing to it on the machine in question here. Also, I’d put in the ~/.m2 fix suggested in the README (didn’t help).
>>
>> Anyway, thanks again for the ideas!
>>
>> Get Outlook for iOS
>>
>> ________________________________
>> From: Jie Kang <jkang at redhat.com>
>> Sent: Friday, November 16, 2018 8:03 AM
>> To: Gary Morrison
>> Cc: guru.hb at oracle.com; jmc-dev at openjdk.java.net
>> Subject: Re: Unknown Host: http://download.eclipse.org/releases/photon/content.xml
>>
>> Hi Gary,
>>
>>> [INFO] Adding repository http://download.eclipse.org/releases/photon
>>> [ERROR] Failed to resolve target definition /home/ubuntu/jmc/releng/platform-definitions/platform-definition-photon/platform-definition-photon.target: Failed to load p2 metadata repository from location http://download.eclipse.org/releases/photon/: Unknown Host: http://download.eclipse.org/releases/photon/content.xml: Unknown host my.proxy.example.org<http://my.proxy.example.org> -> [Help 1]
>>
>> Looking at the error (re-pasted above), it looks like your proxy setup
>> is unfinished. I would not expect a proxy of my.proxy.example.org to
>> exist; it should be replaced by your proxy's actual host name. Is a
>> proxy required for your system? I would be tempted to try without it.
>>
>>
>> Regards,
>>
>> On Thu, Nov 15, 2018 at 10:55 PM Gary Morrison <Gary.Morrison at arm.com> wrote:
>>>
>>> Thanks for the reply.
>>>
>>> I already put the fix listed for a proxy. No effect. (Also my separate Windows machine’s browser also doesn’t see it.)
>>>
>>> Hmmm...
>>>
>>> As for it just being unavailable now only, I know that command failed for me earlier, but I didn’t make note of the exact error.
>>>
>>> Get Outlook for iOS<https://aka.ms/o0ukef>
>>>
>>> ________________________________
>>> From: Guru <guru.hb at oracle.com>
>>> Sent: Thursday, November 15, 2018 9:42 PM
>>> To: Gary Morrison
>>> Cc: jmc-dev at openjdk.java.net
>>> Subject: Re: Unknown Host: http://download.eclipse.org/releases/photon/content.xml
>>>
>>> I believe you are following the Jmc build step mentioned in README.md.
>>> There could be any of the below :
>>> 1. Photon update site might have been down for temporarily. (May be for periodic maintenance).
>>> You can cross check the same from, eclipse —> Help —> Install new software —> Work with (add) http://download.eclipse.org/releases/photon . This will let you know if the photon p2 site is reachable or not.
>>> 2. If you are behind proxy , please do set the proxy in ~/.m2/settings.xml
>>> 3. If you are building the `Jmc` for the first time , ~/jmc/releng/third-party/ : mvn p2:site && mvn jetty:run will take some time to fetch dependency. (This might not be the case for the below problem).
>>>
>>> I tried a `mvn clean package` now and didn’t see any failure.
>>>
>>> -Guru
>>> On 16-Nov-2018, at 8:35 AM, Gary Morrison <Gary.Morrison at arm.com<mailto:Gary.Morrison at arm.com>> wrote:
>>>
>>> I got side-tracked on a separate assignment, but I'm back to trying to build JMC under JDK 8.
>>>
>>> From the README, I'm through to the (almost) final "mvn package" command, which gives me:
>>>
>>> ...
>>> [INFO] Adding repository http://localhost:8080/site
>>> [INFO] Fetching content.jar from http://localhost:8080/site/ (1.46kB)
>>> [INFO] Adding repository http://download.eclipse.org/releases/photon
>>> [ERROR] Failed to resolve target definition /home/ubuntu/jmc/releng/platform-definitions/platform-definition-photon/platform-definition-photon.target: Failed to load p2 metadata repository from location http://download.eclipse.org/releases/photon/: Unknown Host: http://download.eclipse.org/releases/photon/content.xml: Unknown host my.proxy.example.org<http://my.proxy.example.org> -> [Help 1]
>>> [ERROR]
>>> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
>>> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>>> [ERROR]
>>> [ERROR] For more information about the errors and possible solutions, please read the following articles:
>>> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MavenExecutionException
>>> ubuntu at tx2inst-c143:~/jmc$
>>>
>>> When I point my browser over to http://download.eclipse.org/releases/photon/content.xml (browser running on a separate, Windows machine, BTW, so probably not proxies), it really does seem to be "Not Found." It says:
>>>
>>> Not Found
>>> We're sorry, the page or file cannot be found. Here are some reasons why:
>>> A file may have moved to the archives. Please contact the project members on their user forum.
>>> Your file was part of a nightly or integration build which is no longer there. Simply download the latest version.
>>> The project is uploading a new build, and this file is not there yet. Try again later.
>>>
>>> Does this sound familiar to any of you gentlefolks?
>>>
>>> Thanks for any suggestions!
>>> IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
>>>
>>> IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
>> IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
More information about the jmc-dev
mailing list