Pb with docker rTask


(francois.lavallee) #1

Hello,
I pulled openmole this morning, and when I run in local this script:

val rTask =
RTask(""“
runif(20)
”"")

rTask

I obtain the error message below.

Does anyone have an idea to solve this error?
Thank you in advance,
Best,
François

error message:

javax.script.ScriptException: org.openmole.core.exception.UserBadDataError: Docker registry responded with HttpResponseProxy{HTTP/1.1 400 Bad Request [Date: Thu, 26 Jul 2018 09:32:00 GMT, Content-Type: application/xml, Transfer-Encoding: chunked, Connection: keep-alive, Set-Cookie: __cfduid=d9f39f6fed15b5c6bd4f207a082d49e4c1532597520; expires=Fri, 26-Jul-19 09:32:00 GMT; path=/; domain=.production.cloudflare.docker.com; HttpOnly; Secure, CF-Cache-Status: MISS, CF-RAY: 4405db472f96b765-CDG, Expect-CT: max-age=604800, report-uri=“https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct”, Set-Cookie: __cfduid=d9f39f6fed15b5c6bd4f207a082d49e4c1532597520; expires=Fri, 26-Jul-19 09:32:00 GMT; path=/; domain=.production.cloudflare.docker.com; HttpOnly; Secure, Vary: Accept-Encoding, x-amz-id-2: 2HuX0LCsuEXbnrnWYpXcNcNE0lJcRQZQ3JzkcZlO/H6oiMXBhWzPDm7Z9EVR/pukYKaO/V+5mN4=, x-amz-request-id: 472061C03E2F5D35, Server: cloudflare] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}} to the query GET https://registry-1.docker.io/v2/openmole/r-base/blobs/sha256:b542126fc304f7f5ba1b3b241a784352bcd776e73237b7fecd4ce63618d4bb38 HTTP/1.1
at org.openmole.core.console.OMScripted$WrappedRequest.$anonfun$eval$1(OMScripted.scala:189)
at org.openmole.core.console.OMScripted.withScriptContext(OMScripted.scala:87)
at org.openmole.core.console.OMScripted$WrappedRequest.eval(OMScripted.scala:186)
at java.scripting/javax.script.CompiledScript.eval(CompiledScript.java:106)
at org.openmole.core.console.ScalaREPL.$anonfun$compile$1(ScalaREPL.scala:287)
at org.openmole.core.project.Compiled.eval(Project.scala:117)
at org.openmole.gui.server.core.ApiImpl.$anonfun$runScript$3(ApiImpl.scala:340)
at org.openmole.core.outputmanager.OutputManager$.withStreamOutputs(OutputManager.scala:120)
at org.openmole.gui.server.core.ApiImpl.$anonfun$runScript$2(ApiImpl.scala:340)
at org.openmole.gui.server.core.ApiImpl.catchAll$1(ApiImpl.scala:333)
at org.openmole.gui.server.core.ApiImpl.$anonfun$runScript$1(ApiImpl.scala:340)
at org.openmole.core.threadprovider.ThreadProvider$RunClosure.run(ThreadProvider.scala:24)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:844)
Caused by: org.openmole.core.exception.UserBadDataError: Docker registry responded with HttpResponseProxy{HTTP/1.1 400 Bad Request [Date: Thu, 26 Jul 2018 09:32:00 GMT, Content-Type: application/xml, Transfer-Encoding: chunked, Connection: keep-alive, Set-Cookie: __cfduid=d9f39f6fed15b5c6bd4f207a082d49e4c1532597520; expires=Fri, 26-Jul-19 09:32:00 GMT; path=/; domain=.production.cloudflare.docker.com; HttpOnly; Secure, CF-Cache-Status: MISS, CF-RAY: 4405db472f96b765-CDG, Expect-CT: max-age=604800, report-uri=“https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct”, Set-Cookie: __cfduid=d9f39f6fed15b5c6bd4f207a082d49e4c1532597520; expires=Fri, 26-Jul-19 09:32:00 GMT; path=/; domain=.production.cloudflare.docker.com; HttpOnly; Secure, Vary: Accept-Encoding, x-amz-id-2: 2HuX0LCsuEXbnrnWYpXcNcNE0lJcRQZQ3JzkcZlO/H6oiMXBhWzPDm7Z9EVR/pukYKaO/V+5mN4=, x-amz-request-id: 472061C03E2F5D35, Server: cloudflare] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}} to the query GET https://registry-1.docker.io/v2/openmole/r-base/blobs/sha256:b542126fc304f7f5ba1b3b241a784352bcd776e73237b7fecd4ce63618d4bb38 HTTP/1.1
at org.openmole.plugin.task.udocker.Registry$HTTP$.execute(Registry.scala:44)
at org.openmole.plugin.task.udocker.Registry$.blob(Registry.scala:145)
at org.openmole.plugin.task.udocker.Registry$.$anonfun$downloadLayer$1(Registry.scala:164)
at org.openmole.core.workspace.NewFile.withTmpFile(NewFile.scala:27)
at org.openmole.plugin.task.udocker.Registry$.downloadLayer(Registry.scala:163)
at org.openmole.plugin.task.udocker.UDocker$.$anonfun$downloadImage$9(UDocker.scala:81)
at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12)
at org.openmole.core.tools.service.Retry$.retry(Retry.scala:37)
at org.openmole.core.tools.service.Retry$.retry(Retry.scala:47)
at org.openmole.plugin.task.udocker.UDocker$.$anonfun$downloadImage$8(UDocker.scala:81)
at scala.concurrent.Future$.$anonfun$apply$1(Future.scala:654)
at scala.util.Success.$anonfun$map$1(Try.scala:251)
at scala.util.Success.map(Try.scala:209)
at scala.concurrent.Future.$anonfun$map$1(Future.scala:288)
at scala.concurrent.impl.Promise.liftedTree1$1(Promise.scala:29)
at scala.concurrent.impl.Promise.$anonfun$transform$1(Promise.scala:29)
at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:60)
… 3 more


(Samuel Thiriot) #2

Just my 2 cents there; did it worked after retrying later ? Maybe it was just a problem on the server side, where the images for R are stored on?


(francois.lavallee) #3

Hi Samuel,
I have retried but I still have the same error.
Thanks for your answer.


#4

Hello,

I just pushed a fix for this bug,

Romain


(francois.lavallee) #5

Thanks Romain, it works :slight_smile:
François