clojars

http://clojars.org discussion and “support”, see http://status.clojars.org for status.
cap10morgan 2016-07-18T16:53:05.000003Z

Anyone else seen this error trying to deploy a new release: Could not transfer metadata my-tmpl:lein-template/maven-metadata.xml from/to releases (<https://clojars.org/repo/>): Read timed out? Tried 2 different releases and gotten this error both times. status says clojars is 100% up.

2016-07-18T16:53:57.000004Z

@cap10morgan: yes, that's been reported, but we have no idea of the cause right now https://github.com/clojars/clojars-web/issues/546

2016-07-18T16:54:25.000006Z

did the deploy seem to take a while, or did the timeout occur immediately?

cap10morgan 2016-07-18T16:54:33.000007Z

ah, OK. pretty quickly.

2016-07-18T16:54:56.000008Z

was the timeout on maven-metadata.xml both times?

cap10morgan 2016-07-18T16:55:03.000009Z

yes

2016-07-18T16:55:07.000010Z

hmm

2016-07-18T16:56:31.000011Z

we are using maven-medata.xml as a trigger to validate the deploy, copy it from a tmp repo to the live repo (part of the atomic deploy feature), and, just recently, to copy the project to Rackspace cloudfiles in anticipation of serving the repo from a CDN

2016-07-18T16:56:39.000012Z

it's possible that that is all taking too long

2016-07-18T16:56:51.000013Z

depending on the default timeout in aether

daveliepmann 2016-07-18T16:57:18.000014Z

@cap10morgan: I saw that error, but the release seemed to deploy successfully anyway.

2016-07-18T16:57:23.000015Z

in the reported cases, the deploy actually succeeded, yeah

daveliepmann 2016-07-18T16:57:38.000016Z

@tcrawley: the error seemed to occur within a few seconds

cap10morgan 2016-07-18T16:57:39.000017Z

OK, that’s good at least 🙂

2016-07-18T16:57:41.000018Z

@daveliepmann: was your error with maven-metadata.xml as well?

daveliepmann 2016-07-18T16:58:02.000019Z

Yes: Could not transfer metadata uruk:uruk/maven-metadata.xml from/to clojars (https://clojars.org/repo/): Read timed out Failed to deploy metadata: Could not transfer metadata uruk:uruk/maven-metadata.xml from/to clojars (https://clojars.org/repo/): Read timed out

2016-07-18T16:58:11.000020Z

good to know, thanks

cap10morgan 2016-07-18T16:58:39.000021Z

@tcrawley: want me to do another one w/ some debugging output turned on?

2016-07-18T16:58:40.000022Z

I suspect we may need to move uploading to cloudfiles to a queue that gets processed async

2016-07-18T16:59:26.000024Z

@cap10morgan: let me add some timing output to the server side, give me a few minutes

cap10morgan 2016-07-18T16:59:32.000025Z

OK, sounds good

2016-07-18T16:59:43.000026Z

how big is the jar for the project you are deploying?

cap10morgan 2016-07-18T17:00:05.000027Z

22K

daveliepmann 2016-07-18T17:00:26.000028Z

26K

2016-07-18T17:02:19.000029Z

those are pretty small, I was thinking it was large uploads to cloudfiles causing the issue

2016-07-18T17:26:18.000030Z

@cap10morgan: @daveliepmann: I added some profiling to the validation and upload-to-cloudfiles code, and deployed a small test app

2016-07-18T17:26:44.000031Z

It didn't fail, but did take almost 8 seconds to validate + upload

2016-07-18T17:26:56.000032Z

950ms just to upload the 12k jar

2016-07-18T17:26:59.000033Z

to cloudfiles

2016-07-18T17:27:14.000034Z

so, if the timeout is 10s, we could very easily hit it

2016-07-18T17:31:14.000035Z

yeah, it looks like 10s may be the default - I just recreated the issue by increasing the jar size to 23k

2016-07-18T17:31:59.000036Z

the validate+upload took 9800ms, and it's safe to assume we're spending another 200ms outside of that process to get us over 10s

2016-07-18T17:32:39.000037Z

I'm going to disable the cloudfiles upload for now, since we're not yet using the artifacts uploaded there

2016-07-18T17:54:38.000038Z

@cap10morgan: @daveliepmann: the cloudfiles uploads are now disabled in production. I just deployed my testapp, and the deploy time went from ~10s to 200ms. Please let me know if you continue to see the problem

1
cap10morgan 2016-07-18T17:55:20.000039Z

@tcrawley: cool, will do. thanks!