-
Notifications
You must be signed in to change notification settings - Fork 48
How to Resolve the 'Failed to Connect to Database' Error
ByoungSeob Kim edited this page Jan 24, 2024
·
2 revisions
- 상황
-
기존 설치된 Go 개발 환경에서 CB-Spider 서버 가동시(start.sh 실행) 다음과 같은 오류를 만났을 때
``` panic: Failed to Connect to Database goroutine 1 [running]: [github.com/cloud-barista/cb-spider/cloud-info-manager/connection-config-info-manager.init.0()](http://github.com/cloud-barista/cb-spider/cloud-info-manager/connection-config-info-manager.init.0()) /home/ubuntu/workspace/cb-spider-master/cloud-info-manager/connection-config-info-manager/ConnectionConfigInfoManager.go:41 +0xde ```
-
- 원인
- Spider가 활용하는 Gorm은 Go build 시 CGO On 필요
- 설정
* 확인 $ go env |grep CGO_ENABLED CGO_ENABLED='0' * On 설정 $ go env -w CGO_ENABLED=1 * 확인 $ go env |grep CGO_ENABLED CGO_ENABLED='1'
- CB-Spider rebuild 필요
-
Install & Start Guide
-
Features & Usage
-
- AdminWeb Tool Guide
- CLI Tool Guide
- REST API Guide
-
Design
-
Developer Guide
-
Cloud Driver Developer Guide
- Cloud Driver Developer Guide-WIP
- VM SSH Key Development Guide-WIP
- VM User Development Guide
- What is the CSP SDK API Version of drivers
- Region Zone Info and Driver API
- Price Info and Driver API
- (StartVM TerminateVM) API Call Counts and Waiting
- StartVM and TerminateVM Main Flow of drivers
- VM Root Disk Configuration Guide
- Security Group Rules and Driver API
- Network Load Balancer and Driver API
- VM Snapshot, MyImage and Disk Overview
- Kubernetes and Driver API(PMKS, K8S)
- Tag and Cloud Driver API
- AnyCall API Extension Guide
-
Test Reports
- v0.2.8-for-espresso-release
- v0.3.0-espresso-release
- Azure:Terminating VM
- cb-user@VM: ssh login, sudo run
- v0.3.14 test for SG Source
- v0.4.0-cafemocha-release
- Test via REST API Gateway
- Test Reports of v0.4.11 (IID2 initial Version)
- Test Reports of v0.4.12 (Register & Unregister existing Resources)
- Test Reports for v0.6.0 Release
- How to ...
- How to provision GPU VMs
- How to Resolve the 'Failed to Connect to Database' Error
- How to test CB Spider with Mock Driver
- How to install CB Spider on WSL2 under 공유기/사설망
- How to install CB Spider on macOS
- How to run CB Spider Container on macOS
- How to install OpenStack on a VM for CB Spider Testing
- How to get Azure available Regions
- How to profile memory usage in Golang
- Deprecated:How to install protoc and plugins
- [For Cloud-Migrator]