Re: [OSM-talk] JOSM connection problems downloading/uploading data?

2014-08-29 Thread Richard Z.
On Fri, Aug 29, 2014 at 04:39:27PM +0200, Jean-Marc Liotier wrote:
> On 29/08/2014 16:32, Richard Z. wrote:
> >On Fri, Aug 29, 2014 at 03:25:02PM +0100, Tom Hughes wrote:
> >>On 29/08/14 15:20, Jean-Marc Liotier wrote:
> >>>On 29/08/2014 16:14, Tom Hughes wrote:
> On 29/08/14 15:08, Tom Hughes wrote:
> >On 29/08/14 15:01, Richard Z. wrote:
> >>"Failed to upload data to or download data from
> >>'https://api.openstreetmap.org/api/' due to a problem with
> >>transferring data. Details (untranslated): java.lang.RuntimeException:
> >>Could not generate DH keypair"
> >>
> >>it seems that there is no client side fix (other than upgrading to Java 7 
> >>or later).
> 
> Ok - upgrading to Java 7 fixed the problem for me, thanks !
> 
> Well - it is not like JOSM had not been warning me for ages that staying
> with Java 6 was going to cause problems...

I have neither Java 6 nor 7 but ""java-1.7.0-openjdk". Latest JOSM is
happy with it so I assumed it is pretty much Java 7 but maybe there 
are differences between various Java 7 versions and only some of them
support the longer keys - which would explain the discrepancies between
the FAQ and what various people are seeing.


Richard

___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] JOSM connection problems downloading/uploading data?

2014-08-29 Thread Tom Hughes

On 29/08/14 16:11, Andy Street wrote:

On Fri, 29 Aug 2014 15:59:07 +0100
Tom Hughes  wrote:


On 29/08/14 15:57, Andy Street wrote:


FWIW I'm seeing a different error in JOSM:

"WARNING: java.io.IOException: Server returned HTTP response code:
401 for URL:
https://api.openstreetmap.org/api/0.6/changeset/25098566/upload.";

The upload succeeds if HTTP is used instead of HTTPS.


401 is just it telling you to enter your password.


There is no password; I authenticate using oauth. The oauth token is
valid if submitted as HTTP but invalid if submitted as HTTPS.


Yes I think you have found the reason why https requests were being 
forwarded to the backend as https - because otherwise the oauth 
validation fails on the backend.


The problem is that apache 2.4 seems to be throwing random 400 errors 
when requests are forwarded over https.


I'm going to reenable https forwarding for now, as random 400 errors are 
better than some people not being able to upload at all.


Tom

--
Tom Hughes (t...@compton.nu)
http://compton.nu/

___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] JOSM connection problems downloading/uploading data?

2014-08-29 Thread Vincent Privat
No, it seems there's a problem with upload (authentication works fine for
changeset creation):

INFO: PUT https://api.openstreetmap.org/api/0.6/changeset/create...
DEBUG: REQUEST: {User-Agent=[JOSM/1.5 (7459 SVN en) Windows 8.1 64-Bit
Java/1.7.0_65], Connection=[close]}
INFO: OK
DEBUG: RESPONSE: {null=[HTTP/1.1 200 OK], X-Runtime=[0.049391], ETag=[xxx],
Content-Length=[8], X-XSS-Protection=[1; mode=block], X-Request-Id=[xxx],
Connection=[close], Server=[Apache/2.4.7 (Ubuntu)], X-Powered-By=[Phusion
Passenger 4.0.50], Cache-Control=[max-age=0, private, must-revalidate],
X-Content-Type-Options=[nosniff], X-Frame-Options=[SAMEORIGIN], Status=[200
OK], Date=[Fri, 29 Aug 2014 15:06:11 GMT], Content-Type=[text/plain;
charset=utf-8]}

INFO: POST https://api.openstreetmap.org/api/0.6/changeset/25099130/upload.
..
DEBUG: REQUEST: {User-Agent=[JOSM/1.5 (7459 SVN en) Windows 8.1 64-Bit
Java/1.7.0_65], Connection=[close]}
INFO: Unauthorized
WARNING: java.io.IOException: Server returned HTTP response code: 401 for
URL: https://api.openstreetmap.org/api/0.6/changeset/25099130/upload.
Cause: java.io.IOException: Server returned HTTP response code: 401 for
URL: https://api.openstreetmap.org/api/0.6/changeset/25099130/upload
java.io.IOException: Server returned HTTP response code: 401 for URL:
https://api.openstreetmap.org/api/0.6/changeset/25099130/upload
ERROR: Error body: Couldn't authenticate you
DEBUG: RESPONSE: {null=[HTTP/1.1 401 Unauthorized], X-Runtime=[0.024400],
WWW-Authenticate=[Basic realm="Web Password"], X-XSS-Protection=[1;
mode=block], X-Request-Id=[xxx], Connection=[close], Server=[Apache/2.4.7
(Ubuntu)], X-Powered-By=[Phusion Passenger 4.0.50],
Cache-Control=[no-cache], X-Content-Type-Options=[nosniff], Status=[401
Unauthorized], X-Frame-Options=[SAMEORIGIN], Transfer-Encoding=[chunked],
Date=[Fri, 29 Aug 2014 15:06:11 GMT], Content-Type=[text/html;
charset=utf-8]}



2014-08-29 16:59 GMT+02:00 Tom Hughes :

> On 29/08/14 15:57, Andy Street wrote:
>
>  FWIW I'm seeing a different error in JOSM:
>>
>> "WARNING: java.io.IOException: Server returned HTTP response code: 401
>> for URL:
>> https://api.openstreetmap.org/api/0.6/changeset/25098566/upload.";
>>
>> The upload succeeds if HTTP is used instead of HTTPS.
>>
>
> 401 is just it telling you to enter your password.
>
>
> Tom
>
> --
> Tom Hughes (t...@compton.nu)
> http://compton.nu/
>
> ___
> talk mailing list
> talk@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/talk
>
___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] JOSM connection problems downloading/uploading data?

2014-08-29 Thread Andy Street
On Fri, 29 Aug 2014 15:59:07 +0100
Tom Hughes  wrote:

> On 29/08/14 15:57, Andy Street wrote:
> 
> > FWIW I'm seeing a different error in JOSM:
> >
> > "WARNING: java.io.IOException: Server returned HTTP response code:
> > 401 for URL:
> > https://api.openstreetmap.org/api/0.6/changeset/25098566/upload.";
> >
> > The upload succeeds if HTTP is used instead of HTTPS.
> 
> 401 is just it telling you to enter your password.

There is no password; I authenticate using oauth. The oauth token is
valid if submitted as HTTP but invalid if submitted as HTTPS. 

-- 
Regards,

Andy Street

___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] JOSM connection problems downloading/uploading data?

2014-08-29 Thread Tom Hughes

On 29/08/14 15:57, Andy Street wrote:


FWIW I'm seeing a different error in JOSM:

"WARNING: java.io.IOException: Server returned HTTP response code: 401
for URL:
https://api.openstreetmap.org/api/0.6/changeset/25098566/upload.";

The upload succeeds if HTTP is used instead of HTTPS.


401 is just it telling you to enter your password.

Tom

--
Tom Hughes (t...@compton.nu)
http://compton.nu/

___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] JOSM connection problems downloading/uploading data?

2014-08-29 Thread Andy Street
On Fri, 29 Aug 2014 15:08:31 +0100
Tom Hughes  wrote:

> On 29/08/14 15:01, Richard Z. wrote:
> 
> > having frequent problems today, sometimes everything works
> > and sometimes when downloading/uploading data JOSM says
> >
> > "Failed to upload data to or download data from
> > 'https://api.openstreetmap.org/api/' due to a problem with
> > transferring data. Details (untranslated):
> > java.lang.RuntimeException: Could not generate DH keypair"
> 
> Thank you - that explains a lot. You're the first person to provide
> the actual error details and it explains why the temporary fix I
> managed to come up with accidentally has solved the problem.


FWIW I'm seeing a different error in JOSM:

"WARNING: java.io.IOException: Server returned HTTP response code: 401
for URL:
https://api.openstreetmap.org/api/0.6/changeset/25098566/upload.";

The upload succeeds if HTTP is used instead of HTTPS.


-- 
Regards,

Andy Street

___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] JOSM connection problems downloading/uploading data?

2014-08-29 Thread Jean-Marc Liotier

On 29/08/2014 16:32, Richard Z. wrote:

On Fri, Aug 29, 2014 at 03:25:02PM +0100, Tom Hughes wrote:

On 29/08/14 15:20, Jean-Marc Liotier wrote:

On 29/08/2014 16:14, Tom Hughes wrote:

On 29/08/14 15:08, Tom Hughes wrote:

On 29/08/14 15:01, Richard Z. wrote:

"Failed to upload data to or download data from
'https://api.openstreetmap.org/api/' due to a problem with
transferring data. Details (untranslated): java.lang.RuntimeException:
Could not generate DH keypair"


it seems that there is no client side fix (other than upgrading to Java 7 or 
later).


Ok - upgrading to Java 7 fixed the problem for me, thanks !

Well - it is not like JOSM had not been warning me for ages that staying 
with Java 6 was going to cause problems...


___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] JOSM connection problems downloading/uploading data?

2014-08-29 Thread Richard Z.
On Fri, Aug 29, 2014 at 03:25:02PM +0100, Tom Hughes wrote:
> On 29/08/14 15:20, Jean-Marc Liotier wrote:
> >On 29/08/2014 16:14, Tom Hughes wrote:
> >>On 29/08/14 15:08, Tom Hughes wrote:
> >>>On 29/08/14 15:01, Richard Z. wrote:
> "Failed to upload data to or download data from
> 'https://api.openstreetmap.org/api/' due to a problem with
> transferring data. Details (untranslated): java.lang.RuntimeException:
> Could not generate DH keypair"
> >>
> >>It looks like you are hitting this:
> >>
> >>  http://httpd.apache.org/docs/current/ssl/ssl_faq.html#javadh
> >>
> >>Which fits with us upgrading the servers today.
> >
> >So is there a client-side workaround or should we just wait for an
> >api.openstreetmap.org fix ?
> 
> Well the FAQ isn't very helpful, but it seems that there is no client side
> fix (other than upgrading to Java 7 or later).

the FAQ actually says 
"Java 7 and earlier limit their support for DH prime sizes to a maximum of 1024 
bits"

..not sure if there is any Java version at all that would do it and
work together with JOSM.

Richard

___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] JOSM connection problems downloading/uploading data?

2014-08-29 Thread Tom Hughes

On 29/08/14 15:20, Jean-Marc Liotier wrote:

On 29/08/2014 16:14, Tom Hughes wrote:

On 29/08/14 15:08, Tom Hughes wrote:

On 29/08/14 15:01, Richard Z. wrote:

"Failed to upload data to or download data from
'https://api.openstreetmap.org/api/' due to a problem with
transferring data. Details (untranslated): java.lang.RuntimeException:
Could not generate DH keypair"


It looks like you are hitting this:

  http://httpd.apache.org/docs/current/ssl/ssl_faq.html#javadh

Which fits with us upgrading the servers today.


So is there a client-side workaround or should we just wait for an
api.openstreetmap.org fix ?


Well the FAQ isn't very helpful, but it seems that there is no client 
side fix (other than upgrading to Java 7 or later).


Just trying to work out the best fix for the server that won't reduce 
the SSL protection for more recent browsers.


Tom

--
Tom Hughes (t...@compton.nu)
http://compton.nu/

___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] JOSM connection problems downloading/uploading data?

2014-08-29 Thread Jean-Marc Liotier

On 29/08/2014 16:14, Tom Hughes wrote:

On 29/08/14 15:08, Tom Hughes wrote:

On 29/08/14 15:01, Richard Z. wrote:

"Failed to upload data to or download data from
'https://api.openstreetmap.org/api/' due to a problem with
transferring data. Details (untranslated): java.lang.RuntimeException:
Could not generate DH keypair"


It looks like you are hitting this:

  http://httpd.apache.org/docs/current/ssl/ssl_faq.html#javadh

Which fits with us upgrading the servers today.


So is there a client-side workaround or should we just wait for an 
api.openstreetmap.org fix ?



___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] JOSM connection problems downloading/uploading data?

2014-08-29 Thread Richard Z.
On Fri, Aug 29, 2014 at 03:08:31PM +0100, Tom Hughes wrote:
> On 29/08/14 15:01, Richard Z. wrote:
> 
> >having frequent problems today, sometimes everything works
> >and sometimes when downloading/uploading data JOSM says
> >
> >"Failed to upload data to or download data from 
> >'https://api.openstreetmap.org/api/' due to a problem with transferring 
> >data. Details (untranslated): java.lang.RuntimeException: Could not generate 
> >DH keypair"
> 
> Thank you - that explains a lot. You're the first person to provide the
> actual error details and it explains why the temporary fix I managed to come
> up with accidentally has solved the problem.

still the same problem here though.

Additionally, when launching JOSM it says

"JOSM tried to access the following resources: 
https://api.openstreetmap.org/api/capabilities
but failed to do so, because of the following network errors: 
java.security.InvalidAlgorithmParameterException: Prime size must be multiple 
of 64, and can only range from 512 to 1024 (inclusive)
It may be due to a missing proxy configuration. Would you like to change your 
proxy settings now?"


Richard


___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] JOSM connection problems downloading/uploading data?

2014-08-29 Thread Tom Hughes

On 29/08/14 15:08, Tom Hughes wrote:

On 29/08/14 15:01, Richard Z. wrote:


having frequent problems today, sometimes everything works
and sometimes when downloading/uploading data JOSM says

"Failed to upload data to or download data from
'https://api.openstreetmap.org/api/' due to a problem with
transferring data. Details (untranslated): java.lang.RuntimeException:
Could not generate DH keypair"


Thank you - that explains a lot. You're the first person to provide the
actual error details and it explains why the temporary fix I managed to
come up with accidentally has solved the problem.


Hmm... Actually I think you may have a different problem. Specifically 
it looks like you are hitting this:


  http://httpd.apache.org/docs/current/ssl/ssl_faq.html#javadh

Which fits with us upgrading the servers today.

Tom

--
Tom Hughes (t...@compton.nu)
http://compton.nu/

___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] JOSM connection problems downloading/uploading data?

2014-08-29 Thread Tom Hughes

On 29/08/14 15:01, Richard Z. wrote:


having frequent problems today, sometimes everything works
and sometimes when downloading/uploading data JOSM says

"Failed to upload data to or download data from 'https://api.openstreetmap.org/api/' 
due to a problem with transferring data. Details (untranslated): 
java.lang.RuntimeException: Could not generate DH keypair"


Thank you - that explains a lot. You're the first person to provide the 
actual error details and it explains why the temporary fix I managed to 
come up with accidentally has solved the problem.


Tom

--
Tom Hughes (t...@compton.nu)
http://compton.nu/

___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


[OSM-talk] JOSM connection problems downloading/uploading data?

2014-08-29 Thread Richard Z.
Hi,

having frequent problems today, sometimes everything works
and sometimes when downloading/uploading data JOSM says

"Failed to upload data to or download data from 
'https://api.openstreetmap.org/api/' due to a problem with transferring data. 
Details (untranslated): java.lang.RuntimeException: Could not generate DH 
keypair"

The network connection seems fine, background imagery is
laoded fine - is anyone else seeing this??



Richard

___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk