Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest docker image has bad permissions, results in cell run errors, manual temporary fix available #180

Open
n-kremeris opened this issue Oct 6, 2023 · 0 comments

Comments

@n-kremeris
Copy link

n-kremeris commented Oct 6, 2023

Hi All,

After updating to the latest docker image (docker pull ucbbar/chisel-bootcamp), running the setup cell on any of the pages no longer works due to a permission problem, as you can see below

val path = System.getProperty("user.dir") + "/source/load-ivy.sc"

interp.load.module(ammonite.ops.Path(java.nio.file.FileSystems.getDefault().getPath(path)))

Compiling /chisel-bootcamp/Main.sc

Checking https://repo1.maven.org/maven2/edu/berkeley/cs/chisel3_2.12/maven-metadata.xml
Checked https://repo1.maven.org/maven2/edu/berkeley/cs/chisel3_2.12/maven-metadata.xml
Checking https://repo1.maven.org/maven2/edu/berkeley/cs/chisel-iotesters_2.12/maven-metadata.xml
Checked https://repo1.maven.org/maven2/edu/berkeley/cs/chisel-iotesters_2.12/maven-metadata.xml
Checking https://repo1.maven.org/maven2/edu/berkeley/cs/chiseltest_2.12/maven-metadata.xml
Checked https://repo1.maven.org/maven2/edu/berkeley/cs/chiseltest_2.12/maven-metadata.xml
Downloading https://repo1.maven.org/maven2/edu/berkeley/cs/chiseltest_2.12/maven-metadata.xml
Downloaded https://repo1.maven.org/maven2/edu/berkeley/cs/chiseltest_2.12/maven-metadata.xml

ammonite.util.CompilationError: Failed to resolve ivy dependencies:/coursier_cache/.structure.lock (Permission denied)
  ammonite.interp.Interpreter$$anon$1$load$.module(Interpreter.scala:716)
  ammonite.$sess.cmd0$Helper.<init>(cmd0.sc:2)
  ammonite.$sess.cmd0$.<init>(cmd0.sc:7)
  ammonite.$sess.cmd0$.<clinit>(cmd0.sc:-1)

The problem can be temporarily fixed manually by logging in to the container as root and changing ownership of the /coursier_cache folder from root to bootcamp

docker exec -u 0 -it 0227231b93fd bash
chown -R bootcamp:bootcamp /coursier_cache
@n-kremeris n-kremeris changed the title Latest docker image has bad permissions, leaving to compilation errors, can fix manually Latest docker image has bad permissions, results in cell run errors, manual temporary fix available Oct 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant