github / github/codeql

OverlappingFileLockException and permission issue

Offen
#6,543 4 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
question
Vorherrschende Sprache
CodeQL
Sterne
10.1k
Forks
2.1k
Ø Merge
2 T. 15 Std.
Gemergte PRs (30 T.)
141

Beschreibung

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")
```

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.