Hello,
I’ve tried installing quarto
and julia
together, both on my system config, and in a nix flake dev shell. Quarto rendering works fine the first time I compile it, but thereafter, it fails with the following message:
Starting julia control server process. This might take a while...
ERROR: PermissionDenied: Permission denied (os error 13): copy '/nix/store/6dgzgqx0nzv1bhjyj9khw40bn3rd3cbc-quarto-1.6.39/share/julia/Project.toml' -> '/run/user/1000/julia/Project.toml'
Stack trace:
at Object.copyFileSync (ext:deno_fs/30_fs.js:135:3)
at ensureQuartoNotebookRunnerEnvironment (file:///nix/store/6dgzgqx0nzv1bhjyj9khw40bn3rd3cbc-quarto-1.6.39/bin/quarto.js:41201:10)
at startOrReuseJuliaServer (file:///nix/store/6dgzgqx0nzv1bhjyj9khw40bn3rd3cbc-quarto-1.6.39/bin/quarto.js:41120:19)
at getJuliaServerConnection (file:///nix/store/6dgzgqx0nzv1bhjyj9khw40bn3rd3cbc-quarto-1.6.39/bin/quarto.js:41233:30)
at executeJulia (file:///nix/store/6dgzgqx0nzv1bhjyj9khw40bn3rd3cbc-quarto-1.6.39/bin/quarto.js:41292:24)
at Object.execute (file:///nix/store/6dgzgqx0nzv1bhjyj9khw40bn3rd3cbc-quarto-1.6.39/bin/quarto.js:41037:26)
at renderExecute (file:///nix/store/6dgzgqx0nzv1bhjyj9khw40bn3rd3cbc-quarto-1.6.39/bin/quarto.js:85757:48)
at renderFileInternal (file:///nix/store/6dgzgqx0nzv1bhjyj9khw40bn3rd3cbc-quarto-1.6.39/bin/quarto.js:85925:49)
at async renderFiles (file:///nix/store/6dgzgqx0nzv1bhjyj9khw40bn3rd3cbc-quarto-1.6.39/bin/quarto.js:85793:17)
at async render (file:///nix/store/6dgzgqx0nzv1bhjyj9khw40bn3rd3cbc-quarto-1.6.39/bin/quarto.js:90695:21)
If I do chmod +w /run/user/1000/julia/Project.toml
then it works for one invocation or a few in a short period of time, but within minutes goes back to the same error message. Further inspection shows that the permissions of that file are changed back to -r--r--r--
. This was not the case the first time I ran Quarto. My suspicion is that something non-FHS-compliant in NixOS is changing the permissions of the file, but I’m completely lost on how to debug this. I tried changing all the Quarto/Julia options I could including creating a new project env in the local directory. Let me know if I’ve left out any relevant info. Any help or guidance would be much appreciated, thanks!