github / github/codeql

OverlappingFileLockException and permission issue

Aperta
#6,543 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub
question
Lingua principale
CodeQL
Stelle
10.1k
Fork
2.1k
Merge medio
2g 15h
PR unite (30g)
141

Descrizione

Hi,

I was facing below error while running codeql cli:
```
Running queries.
A fatal error occurred: Error initializing the IMB disk cache: the cache directory is already locked by another running process. Only one instance of the IMB can access a cache directory at a time. The lock file is located at /scratch/workspaces/xr-ws/xr-git/iosxr-codeql-db/db-cpp/default/cache/.lock
(eventual cause: OverlappingFileLockException)
Finished running CodeQL CLI.
```

how can we avoid and resolve this issue?

Another question is, if we have two persons run ql on the same db, we noticed that there are always cache permission problems.
For example, codeql-db is created by person A, but when B run a query, there are permission errors like
```
A fatal error occurred: Severe disk cache trouble (corruption or out of space) at db/default/cache/predicates/62.pack: Failed to delete file in disk cache (eventual cause: AccessDeniedException "/db/default/cache/predicates/62.pack”)
```

```
A fatal error occurred: Error reading generation info file: db/default/cache/cached-strings/pools/poolInfo (eventual cause: AccessDeniedException "db/default/cache/cached-strings/pools/poolInfo")
```

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.