Files
calypso/DATABASE-CHECK-REPORT.md
2026-01-09 16:54:39 +00:00

80 lines
2.0 KiB
Markdown

# Database Check Report
**Tanggal:** 2025-01-09
**System:** Ubuntu 24.04 LTS
## Hasil Pengecekan PostgreSQL
### ✅ User Database yang EXIST:
1. **bacula** - User untuk Bacula backup software
- Status: ✅ **EXIST**
- Attributes: (no special attributes)
### ❌ User Database yang TIDAK EXIST:
1. **calypso** - User untuk Calypso application
- Status: ❌ **TIDAK EXIST**
- Expected: User untuk Calypso API backend
### ✅ Database yang EXIST:
1. **bacula**
- Owner: `bacula`
- Encoding: SQL_ASCII
- Status: ✅ **EXIST**
### ❌ Database yang TIDAK EXIST:
1. **calypso**
- Expected Owner: `calypso`
- Expected Encoding: UTF8
- Status: ❌ **TIDAK EXIST**
---
## Summary
| Item | Status | Notes |
|------|--------|-------|
| User `bacula` | ✅ EXIST | Ready untuk Bacula |
| Database `bacula` | ✅ EXIST | Ready untuk Bacula |
| User `calypso` | ❌ **TIDAK EXIST** | **PERLU DIBUAT** |
| Database `calypso` | ❌ **TIDAK EXIST** | **PERLU DIBUAT** |
---
## Action Required
Calypso application memerlukan:
1. **User PostgreSQL:** `calypso`
2. **Database PostgreSQL:** `calypso`
### Langkah untuk Membuat Database Calypso:
```bash
# 1. Create user calypso
sudo -u postgres psql -c "CREATE USER calypso WITH PASSWORD 'your_secure_password';"
# 2. Create database calypso
sudo -u postgres psql -c "CREATE DATABASE calypso OWNER calypso;"
# 3. Grant privileges
sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE calypso TO calypso;"
# 4. Verify
sudo -u postgres psql -c "\du" | grep calypso
sudo -u postgres psql -c "\l" | grep calypso
```
### Atau menggunakan installer script:
```bash
# Jalankan installer database script
cd /src/calypso/installer/alpha/scripts
sudo bash database.sh
```
---
## Catatan
- Bacula database sudah terinstall dengan benar ✅
- Calypso database belum dibuat, kemungkinan installer belum dijalankan atau ada masalah saat instalasi
- Setelah database dibuat, migrations akan otomatis dijalankan saat Calypso API pertama kali start