`Error building classpath` on clerk-demo/commit/9224ef59c801d01c90a19075ef90ead743869136/

Open
#799 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
clojure
Domain
build-system

Research direction

Reproduce the failure by opening the Demo link from the main repository README and the specified clerk-demo commit. Start with the classpath build error and its read-only /mnt/mvn-cache path; done means the hosted demo builds its classpath and loads successfully without the hato resolution error.

Written by the indexing model from the issue text.

Description

Steps to reproduce:
  1. Click Demo link in the main repo readme
  2. Be redirected from https://github.clerk.garden/nextjournal/clerk-demo/ to https://github.clerk.garden/nextjournal/clerk-demo/commit/9224ef59c801d01c90a19075ef90ead743869136/
  3. See error:
Image
🌐 Establishing connection…
🌐 Connected in 0.407s.
🌱 Starting build
🌱 Done in 4.267s.
❌ Error building classpath. Failed to read artifact descriptor for hato:hato:jar:1.0.0
org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for hato:hato:jar:1.0.0
	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.alpha.extensions.maven$read_descriptor.invokeStatic(maven.clj:115)
	at clojure.tools.deps.alpha.extensions.maven$fn__1143.invokeStatic(maven.clj:143)
	at clojure.tools.deps.alpha.extensions.maven$fn__1143.invoke(maven.clj:143)
	at clojure.lang.MultiFn.invoke(MultiFn.java:244)
	at clojure.tools.deps.alpha$expand_deps$children_task__773$fn__775$fn__776.invoke(alpha.clj:405)
	at clojure.tools.deps.alpha.util.concurrent$submit_task$task__481.invoke(concurrent.clj:35)
	at clojure.lang.AFn.call(AFn.java:18)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could not transfer artifact hato:hato:pom:1.0.0 from/to central (https://repo1.maven.org/maven2/): /mnt/mvn-cache/hato/hato/1.0.0/hato-1.0.0.pom.part.lock (Read-only file system)
	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)
	... 13 more
Caused by: org.eclipse.aether.transfer.ArtifactTransferException: Could not transfer artifact hato:hato:pom:1.0.0 from/to central (https://repo1.maven.org/maven2/): /mnt/mvn-cache/hato/hato/1.0.0/hato-1.0.0.pom.part.lock (Read-only file system)
	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)
	... 16 more
Caused by: java.io.FileNotFoundException: /mnt/mvn-cache/hato/hato/1.0.0/hato-1.0.0.pom.part.lock (Read-only file system)
	at java.base/java.io.RandomAccessFile.open0(Native Method)
	at java.base/java.io.RandomAccessFile.open(RandomAccessFile.java:344)
	at java.base/java.io.RandomAccessFile.<init>(RandomAccessFile.java:259)
	at java.base/java.io.RandomAccessFile.<init>(RandomAccessFile.java:213)
	at org.eclipse.aether.connector.basic.PartialFile$LockFile.tryLock(PartialFile.java:138)
	at org.eclipse.aether.connector.basic.PartialFile$LockFile.lock(PartialFile.java:82)
	at org.eclipse.aether.connector.basic.PartialFile$LockFile.<init>(PartialFile.java:70)
	at org.eclipse.aether.connector.basic.PartialFile$Factory.newInstance(PartialFile.java:268)
	at org.eclipse.aether.connector.basic.BasicRepositoryConnector$GetTaskRunner.runTask(BasicRepositoryConnector.java:481)
	at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:396)
	... 21 more

exiting with status 1

https://github.com/user-attachments/assets/28dcb532-c076-4cb3-84da-4a0304dd1220

Dominant language
Clojure
Stars
2.1k
Forks
87
Avg merge
3m
Merged PRs (30d)
2

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nextjournal/clerk

All issues in nextjournal/clerk

Similar issues

More Clojure issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.