github / github/codeql

OverlappingFileLockException and permission issue

未關閉
#6,543 4 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
question
主要語言
CodeQL
星號
10.1k
分支
2.1k
平均合併
2 天 15 小時
30 天內合併 PR
141

描述

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

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。