# 데이터베이스가 잠김

Singularity의 기본 데이터베이스 백엔드 (SQLite3)를 사용할 때 "데이터베이스가 잠겼습니다" 오류 메시지가 발생할 수 있습니다.

## 왜 이런 일이 발생하나요?

SQLite3는 파일을 데이터베이스로 사용하여 작동합니다. 기록 작업이 수행될 때마다 SQLite3는 이 파일을 잠그게 됩니다. 동시에 여러 기록 작업을 시도하는 경우 "데이터베이스가 잠겼습니다" 오류가 발생합니다.

## 어떻게 해야 하나요?

* **자동 재시도** : Singularity는 이 오류가 발생하는 작업을 자동으로 재시도하도록 설계되었습니다. 따라서 대부분의 경우 이 오류 메시지를 무시해도 됩니다.
* **소프트웨어 정지** : 이 오류로 인해 Singularity가 응답하지 않는 것으로 생각되면 버그로 보고해주십시오.

## 제품 환경에서의 권장사항

SQLite는 개발 또는 경량 작업에 적합하지만, 제품 환경에서는 권장되지 않습니다. 더 견고한 데이터베이스 백엔드를 사용하여 Singularity를 제품 환경에 배포하는 방법에 대한 안내는 [제품 환경에 배포하기 가이드](/singularity/kr/installation/deploy-to-production.md)를 참조하십시오.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://data-programs.gitbook.io/singularity/kr/faq/database-is-locked.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
