Bug: No LocalPreferences.toml written

Aperta
#39 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
shell
Ambito
devops, tooling

Direzione di ricerca

Inizia con juhpc intorno alle righe 73, 190-191 e 240, quindi riproduci l’installazione dettagliata usando una directory temporanea sotto /dev/shm. Traccia il modo in cui viene invocabile l’eseguibile Julia e come vengono usati JULIA_PREF_PROJECT e JULIA_PREFS. Il lavoro è completato quando la directory temporanea può essere configurata in modo che le installazioni su filesystem non eseguibili possano creare correttamente LocalPreferences.toml.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

The script defines JULIA_PREF_PROJECT and JULIA_PREFS:

https://github.com/JuliaParallel/JUHPC/blob/f510cfa9eb7d3fdb244b93ca7b20b9cd5487a9a0/juhpc#L190-L191

Then calls julia_pref many times to write to those files. However, in my install today with Julia 1.11.6+0.x64.linux.gnu, no LocalPreferences.toml file was written. I get only Project.toml.

Verbose output indicates this is because paths in /dev/shm/$USER are not executable.

[ JUHPC: Starting installation of HPC setup for juliaup, julia and HPC key packages requiring system libraries...
[ JUHPC: Installing juliaup and julia temporarily in /dev/shm/99r/juliaup...

info: downloading installer
Checking for new Julia versions
Installing Julia 1.11.6+0.x64.linux.gnu
Configured the default Julia version to be 'release'.
[ JUHPC: ... done: temporary installation completed.
[ JUHPC: Creating preferences for HPC key packages (this can take a few minutes, because some packages have to be temporarily installed)...
./juhpc: line 73: /dev/shm/99r/juliaup/bin/julia: Permission denied
./juhpc: line 73: /dev/shm/99r/juliaup/bin/julia: Permission denied
./juhpc: line 73: /dev/shm/99r/juliaup/bin/julia: Permission denied
./juhpc: line 73: /dev/shm/99r/juliaup/bin/julia: Permission denied
./juhpc: line 73: /dev/shm/99r/juliaup/bin/julia: Permission denied
./juhpc: line 73: /dev/shm/99r/juliaup/bin/julia: Permission denied
./juhpc: line 73: /dev/shm/99r/juliaup/bin/julia: Permission denied
[ JUHPC: ERROR: preferences file is missing or empty.
[ JUHPC: cleaning up temporary juliaup installation in /dev/shm/99r/juliaup.
Error running 02-script in /tmp/build/99r/juhpc.yaml

Manually running the juliaup installer to install to /dev/shm/99r/juliaup shows the file is marked executable. It's a system permission error.

$ ls -l /dev/shm/99r/juliaup/bin/julia
lrwxrwxrwx 1 99r 99r 38 Aug  5 16:55 /dev/shm/99r/juliaup/bin/julia -> /dev/shm/99r/juliaup/bin/julialauncher
$ ls -l /dev/shm/99r/juliaup/bin/julialauncher 
-rwxr-xr-x 1 99r 99r 3307984 Apr 23 11:39 /dev/shm/99r/juliaup/bin/julialauncher

That causes the following line to break:
https://github.com/JuliaParallel/JUHPC/blob/f510cfa9eb7d3fdb244b93ca7b20b9cd5487a9a0/juhpc#L240C1-L240C83

My full process was:

export JUHPC_CUDA_HOME=$CUDA_HOME
export JUHPC_CUDA_RUNTIME_VERSION=$CRAY_CUDATOOLKIT_VERSION
export JUHPC_MPI_VENDOR=cray
export JUHPC_MPI_EXEC=srun
export JUHPC_HDF5_HOME=$HDF5_DIR

bash -l ./juhpc $prefix/juhpc $prefix/juliaup --verbose=2

So, the error is from my system. However, the temporary directory is not configurable as it needs to be to work around this cleanly.

Lingua principale
Shell
Stelle
65
Fork
4
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di JuliaParallel/JUHPC

Tutte le issue di JuliaParallel/JUHPC

Issue simili

Altre issue su Shell/Bash

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.