Getting socket timeout for multiple libraries hiccup 2.0.0-RC4 and ring/devel 1.13.0.
Error building classpath. Failed to read artifact descriptor for hiccup:hiccup:jar:2.0.0-RC4
org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for hiccup:hiccup:jar:2.0.0-RC4
at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:255)
This would be served by fastly. I wonder if they had an issue? Where are you located geographically?
I'm in the US. I'll share my deps.edn once I reach my computer. But , even without deps.edn the command shared above fails
clojure -Sdeps '{:deps {hiccup/hiccup {:mvn/version "2.0.0-RC4"} ring/ring-devel {:mvn/version "1.13.0"}}}'
org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for hiccup:hiccup:jar:2.0.0-RC4
I wonder if the pom file is corrupted. Can you try rm -rf ~/.m2/repository/hiccup/hiccup/2.0.0-RC4, then run the command again?
yea that was the first I tried. I'll try again later , u never know
it is only affecting hiccup-2.x and ring-deve-0.13 for me. Other jars work
If that doesn't work, can you share the contents of ~/.m2/repository/hiccup/hiccup/2.0.0-RC4/hiccup-2.0.0-RC4.pom ?
dir ~/.m2/repository/hiccup/hiccup/2.0.0-RC4/ is empty for me
Ok. Can you share the full output when you run clojure -Sdeps '{:deps {hiccup/hiccup {:mvn/version "2.0.0-RC4"}}}'?
clojure -Sdeps '{:deps {hiccup/hiccup {:mvn/version "2.0.0-RC4"} ring/ring-devel {:mvn/version "1.13.0"}}}'
Error building classpath. Failed to read artifact descriptor for hiccup:hiccup:jar:2.0.0-RC4
org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for hiccup:hiccup:jar:2.0.0-RC4
at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:255)
at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:171)
at org.eclipse.aether.internal.impl.DefaultRepositorySystem.readArtifactDescriptor(DefaultRepositorySystem.java:263)
at clojure.tools.deps.extensions.maven$read_descriptor.invokeStatic(maven.clj:115)
at clojure.tools.deps.extensions.maven$fn__1322.invokeStatic(maven.clj:143)
at clojure.tools.deps.extensions.maven$fn__1322.invoke(maven.clj:143)
at clojure.lang.MultiFn.invoke(MultiFn.java:244)
at clojure.tools.deps$expand_deps$children_task__929$fn__931$fn__932.invoke(deps.clj:416)
at clojure.lang.AFn.applyToHelper(AFn.java:152)
at clojure.lang.AFn.applyTo(AFn.java:144)
at clojure.core$apply.invokeStatic(core.clj:667)
at clojure.core$with_bindings_STAR_.invokeStatic(core.clj:1990)
at clojure.core$with_bindings_STAR_.doInvoke(core.clj:1990)
at clojure.lang.RestFn.invoke(RestFn.java:428)
at clojure.lang.AFn.applyToHelper(AFn.java:156)
at clojure.lang.RestFn.applyTo(RestFn.java:135)
at clojure.core$apply.invokeStatic(core.clj:671)
at clojure.core$bound_fn_STAR_$fn__5837.doInvoke(core.clj:2020)
at clojure.lang.RestFn.invoke(RestFn.java:400)
at clojure.lang.AFn.call(AFn.java:18)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could not transfer artifact hiccup:hiccup:pom:2.0.0-RC4 from/to clojars ( ): Operation timed out
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:431)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:235)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:212)
at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:240)
... 23 more
Caused by: org.eclipse.aether.transfer.ArtifactTransferException: Could not transfer artifact hiccup:hiccup:pom:2.0.0-RC4 from/to clojars ( ): Operation timed out
at org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed(ArtifactTransportListener.java:52)
at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:401)
at org.eclipse.aether.util.concurrency.RunnableErrorForwarder.lambda$wrap$0(RunnableErrorForwarder.java:73)
at org.eclipse.aether.connector.basic.BasicRepositoryConnector$DirectExecutor.execute(BasicRepositoryConnector.java:669)
at org.eclipse.aether.connector.basic.BasicRepositoryConnector.get(BasicRepositoryConnector.java:290)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:520)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:408)
... 26 more
Caused by: java.net.SocketException: Operation timed out
at java.base/sun.nio.ch.SocketDispatcher.read0(Native Method)
at java.base/sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:47)
at java.base/sun.nio.ch.NioSocketImpl.tryRead(NioSocketImpl.java:256)
at java.base/sun.nio.ch.NioSocketImpl.timedRead(NioSocketImpl.java:281)
at java.base/sun.nio.ch.NioSocketImpl.implRead(NioSocketImpl.java:304)
at java.base/sun.nio.ch.NioSocketImpl.read(NioSocketImpl.java:346)
at java.base/sun.nio.ch.NioSocketImpl$1.read(NioSocketImpl.java:796)
at java.base/java.net.Socket$SocketInputStream.read(Socket.java:1099)
at java.base/sun.security.ssl.SSLSocketInputRecord.read(SSLSocketInputRecord.java:489)
at java.base/sun.security.ssl.SSLSocketInputRecord.readHeader(SSLSocketInputRecord.java:483)
at java.base/sun.security.ssl.SSLSocketInputRecord.bytesInCompletePacket(SSLSocketInputRecord.java:70)
at java.base/sun.security.ssl.SSLSocketImpl.readApplicationRecord(SSLSocketImpl.java:1461)
at java.base/sun.security.ssl.SSLSocketImpl$AppInputStream.read(SSLSocketImpl.java:1066)
at org.apache.http.impl.io.SessionInputBufferImpl.streamRead(SessionInputBufferImpl.java:137)
at org.apache.http.impl.io.SessionInputBufferImpl.fillBuffer(SessionInputBufferImpl.java:153)
at org.apache.http.impl.io.SessionInputBufferImpl.readLine(SessionInputBufferImpl.java:280)
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:138)
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:56)
at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:259)
at org.apache.http.impl.DefaultBHttpClientConnection.receiveResponseHeader(DefaultBHttpClientConnection.java:163)
at org.apache.http.impl.conn.CPoolProxy.receiveResponseHeader(CPoolProxy.java:157)
at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:273)
at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125)
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:272)
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186)
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72)
at org.eclipse.aether.transport.http.HttpTransporter.execute(HttpTransporter.java:359)
at org.eclipse.aether.transport.http.HttpTransporter.implGet(HttpTransporter.java:294)
at org.eclipse.aether.spi.connector.transport.AbstractTransporter.get(AbstractTransporter.java:72)
at org.eclipse.aether.connector.basic.BasicRepositoryConnector$GetTaskRunner.runTask(BasicRepositoryConnector.java:496)
at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:396)
... 31 moreDoes curl work?
yes that works
Do you happen to have a ~/.m2/settings.xml file that sets some timeout values?
no m2 settings, but I wonder if there's some other places where this setting file could reside
I'll check
👍 Yeah, if curl works, it feels like a setting somewhere that the aether resolver is picking up.
Any way to address?
It's working for me -- are you still having problems? Perhaps Clojars was having a problem when you tried earlier:
> clojure -Sdeps '{:deps {hiccup/hiccup {:mvn/version "2.0.0-RC4"} ring/ring-devel {:mvn/version "1.13.0"}}}'
Clojure 1.12.0
user=>If you're still having problems, can you share your deps.edn file?