vllm-project / vllm-project/aibrix
panic: failed to initialize sqlite memory store: failed to open sqlite: Binary was compiled with 'CGO_ENABLED=0',
- Dominant language
- Go
- Stars
- 5.1k
- Forks
- 694
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 98
Description
### 🐛 Describe the bug
```
./bin/console --dev-mode -v=2
2026/05/05 14:11:11 /Users/bytedance/workspace/aibrix/apps/console/api/store/gorm.go:72
[error] failed to initialize database, got error Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work. This is a stub
panic: failed to initialize sqlite memory store: failed to open sqlite: Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work. This is a stub
```
### Steps to Reproduce
```
➜ make build-console
CGO_ENABLED=0 go build -tags="nozmq" -o bin/console ./cmd/console
➜ ./bin/console --dev-mode -v=2
[error] failed to initialize database, got error Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work. This is a stub
panic: failed to initialize sqlite memory store: failed to open sqlite: Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work. This is a stub
goroutine 1 [running]:
github.com/vllm-project/aibrix/apps/console/api/store.NewMemoryStore()
/Users/bytedance/workspace/aibrix/apps/console/api/store/gorm.go:86 +0x188
github.com/vllm-project/aibrix/apps/console/api/store.NewFromURI({0x104e0ffa1?, 0x1060ceb88?}, {0x140002d2300, 0x40})
/Users/bytedance/workspace/aibrix/apps/console/api/store/factory.go:44 +0xdc
github.com/vllm-project/aibrix/apps/console/api/server.New(0x140000a1d40)
/Users/bytedance/workspace/aibrix/apps/console/api/server/server.go:52 +0x3c
main.main()
/Users/bytedance/workspace/aibrix/cmd/console/main.go:89 +0x3b4
```
### Expected behavior
it should run without error
### Environment
nightly
Contributor guide
Assessment
This issue has not been assessed yet.