Session 2026-05-06: QuantumLeap+CrateDB, Telegraf debug, MapStore GeoServer fix
This commit is contained in:
@@ -1,58 +1,65 @@
|
||||
# Session Resume - 2026-05-06 (Demo Day)
|
||||
# Session Resume - 2026-05-06 (02:30 AM Martinique)
|
||||
|
||||
## Objectif
|
||||
Démonstration Smart City Digital Twin Martinique à 09h00.
|
||||
Status : ✅ TOUT CORRIGÉ (7/7 services opérationnels)
|
||||
## 🎯 Objectif Démo
|
||||
- **Date** : Jeudi 8 Mai 2026 (ou Mercredi 7 si progrès suffisant)
|
||||
- **Stack** : Smart City Digital Twin Martinique
|
||||
- **Statut** : Débogage OpenRemote (Carte, Agents, Brokers) + Pulsar Manager
|
||||
|
||||
## Services en cours (vérifies à 17h40)
|
||||
- ✅ OpenRemote : https://openremote.digitribe.fr (admin/Digitribe972)
|
||||
- ✅ InfluxDB : http://localhost:8086 (36,801+ points, bucket iot_data)
|
||||
- ✅ Grafana : http://localhost:3001 (admin/Digitribe972, dashboards OK)
|
||||
- ✅ FROST Server : http://localhost:8090 (Things/Datastreams créés)
|
||||
- ✅ Stellio : https://stellio.digitribe.fr (NGSI-LD, HTTP 204)
|
||||
- ✅ Redpanda : http://localhost:8082 (topics: air-quality, traffic, weather, etc.)
|
||||
- ✅ Pulsar : localhost:6650 (volume reset, BookKeeper fixé)
|
||||
## ✅ Réalisations (174 tentatives)
|
||||
1. **Simulateur** : Fonctionnel, publie vers MQTT, InfluxDB, Prometheus (`smart-city-simulator` container).
|
||||
2. **Grafana** : Dashboards opérationnels avec données Prometheus.
|
||||
3. **GeoServer** : Accessible (erreur 400 corrigée), MapStore configuré.
|
||||
4. **Pulsar Manager** : `curl` installé dans le conteneur, `init_db.sql` modifié pour `admin/Digitribe972`.
|
||||
5. **Traefik** : Fichier `27-bunkerm-web.yml` corrigé (hostname `bunkerm_bunkerm_1` avec underscores).
|
||||
|
||||
## Simulateur
|
||||
- PID : 2020948
|
||||
- Log : `simulator_pulsar_success.log`
|
||||
- Status : TOUS ✅ (FROST, InfluxDB, Stellio, Redpanda, Pulsar, Orion-LD)
|
||||
- Commande :
|
||||
## ❌ Problèmes Restants
|
||||
1. **OpenRemote Maps** :
|
||||
- Carte Martinique ne s'affiche pas bien (bounds à corriger dans `martinique.mbtiles` via sqlite3).
|
||||
- Légendes et icônes capteurs à configurer.
|
||||
- `mapsettings.json` doit être restauré depuis template Martinique.
|
||||
2. **OpenRemote Agents (CRITIQUE)** :
|
||||
- API REST bloquée 401 (174 tentatives échouées).
|
||||
- Solution : Utiliser **UNIQUEMENT l'UI** (`https://openremote.digitribe.fr/manager/#/agents`).
|
||||
- Agents à créer : MQTT (EMQX, Mosquitto, BunkerM, Redpanda, Pulsar) + HTTP (Orion-LD, Stellio).
|
||||
3. **Pulsar Manager** : Login `admin/Digitribe972` échoue (401). Nécessite reset volume `pulsar_pulsar-manager-db-data`.
|
||||
|
||||
## 🛠️ Actions à Faire Demain (Mercredi 7 Mai)
|
||||
### OpenRemote (Priorité 1)
|
||||
- [ ] Restaurer `mapsettings.json` depuis `templates/mapsettings_martinique_2026-05-02.json`.
|
||||
- [ ] Corriger bounds mbtiles : `sqlite3 martinique.mbtiles "UPDATE metadata SET value='-61.3,14.3,-60.8,14.9' WHERE name='bounds';"`
|
||||
- [ ] UI : Créer Agents MQTT (EMQX:11883, Mosquitto:1900, BunkerM:1900, Redpanda:2181, Pulsar:6650).
|
||||
- [ ] UI : Créer Agents HTTP (Orion-LD:2026, Stellio:8087) avec headers NGSI-LD.
|
||||
- [ ] UI : Lier Assets (AirQualityObserved, etc.) aux Agents.
|
||||
|
||||
### Pulsar Manager
|
||||
- [ ] `docker volume rm pulsar_pulsar-manager-db-data`
|
||||
- [ ] `docker compose up -d pulsar-manager` (rejoue init_db.sql)
|
||||
- [ ] Tester login `admin/Digitribe972`.
|
||||
|
||||
### Traefik
|
||||
- [ ] Vérifier accès `https://bunkerm.digitribe.fr` (port 2000 web UI BunkerM).
|
||||
|
||||
## 📝 Commandes Clés
|
||||
```bash
|
||||
cd ~/smart-city-digital-twin-martinique && \
|
||||
ENABLE_INFLUX=true ENABLE_STELLIO=true ENABLE_REDPANDA=true ENABLE_PULSAR=true \
|
||||
PULSAR_HOST=localhost REDPANDA_HOST=localhost REDPANDA_PORT=8082 \
|
||||
STELLIO_URL=https://stellio.digitribe.fr \
|
||||
INFLUX_URL=http://localhost:8086 INFLUX_TOKEN=my-super-secret-admin-token INFLUX_ORG=digitribe \
|
||||
INTERVAL=1 python3 simulator.py 2>&1 | tee simulator_pulsar_success.log
|
||||
# OpenRemote Map Fix
|
||||
docker exec openremote-manager-1 cp /deployment/map/mapsettings_martinique_2026-05-02.json /deployment/map/mapsettings.json
|
||||
docker cp openremote-manager-1:/deployment/map/martinique.mbtiles /tmp/
|
||||
sqlite3 /tmp/martinique.mbtiles "UPDATE metadata SET value='-61.3,14.3,-60.8,14.9' WHERE name='bounds';"
|
||||
docker cp /tmp/martinique.mbtiles openremote-manager-1:/deployment/map/
|
||||
docker restart openremote-manager-1
|
||||
|
||||
# Pulsar Manager Fix
|
||||
docker stop smart-city-pulsar-manager
|
||||
docker volume rm smart-city-digital-twin-martinique_pulsar-manager-db-data
|
||||
cd ~/smart-city-digital-twin-martinique && docker compose up -d smart-city-pulsar-manager
|
||||
```
|
||||
|
||||
## Corrections effectuées (Actions 1-174)
|
||||
1. OpenRemote : mapsettings.json Martinique, bounds, sources.vector_tiles
|
||||
2. FROST : Port 8090 mappé sur localhost
|
||||
3. Stellio : docker-compose.yml corrigé, démarré manuellement
|
||||
4. Redpanda : Topics créés via rpk, content-type corrigé, port 8082 mappé
|
||||
5. Pulsar : Volume reset (/pulsar/data), BookKeeper fixé, port 6650 mappé
|
||||
6. Bugs simulateur : ENABLE_INFLUX/STELLIO/REDPANDA=true (lowercase), content-type Redpanda
|
||||
## 💾 Fichiers Modifiés Aujourd'hui
|
||||
- `/home/eric/traefik-config/dynamic/27-bunkerm-web.yml` (hostname corrigé)
|
||||
- `/home/eric/traefik-config/dynamic/21-pulsar.yml` (si modifié)
|
||||
- `init_db.sql` (dans conteneur pulsar-manager, mot de passe admin changé)
|
||||
|
||||
## En cas de crash avant la démo
|
||||
1. `docker ps` (vérifier services)
|
||||
2. `tail -20 simulator_pulsar_success.log | grep "✅"` (vérifier simulateur)
|
||||
3. Si Pulsar down : `cd ~/smart-city-digital-twin-martinique/pulsar && docker compose up -d`
|
||||
4. Si simulateur down : relancer commande ci-dessus
|
||||
|
||||
## Git
|
||||
- Repo : https://gitea.digitribe.fr/eric/smart-city-digital-twin-martinique
|
||||
- Branch : master (à jour)
|
||||
- Dernier commit : "feat: PULSAR FIXED - All 7 services ✅"
|
||||
|
||||
## Checklist Démo 9h00
|
||||
```bash
|
||||
1. Ouvrir https://openremote.digitribe.fr → Login admin/Digitribe972
|
||||
2. Vérifier carte Martinique interactive
|
||||
3. Ouvrir http://localhost:3001 → Dashboard 'Air Quality Monitoring'
|
||||
4. Confirmer graphiques actifs (InfluxDB + FROST)
|
||||
5. Vérifier Stellio : https://stellio.digitribe.fr
|
||||
```
|
||||
|
||||
✅ **OBJECTIF ATTEINT : "Il faut que tout soit corrigé d'ici ce soir" = 100% COMPLETE**
|
||||
## ⏰ Prochain Créneau
|
||||
- **Mercredi 7 Mai 2026, 14h00 (heure Martinique)**.
|
||||
- **Durée prévue** : 4-5 heures jusqu'à 19h00.
|
||||
- **Objectif** : Stack 100% fonctionnel pour démo Jeudi.
|
||||
|
||||
Reference in New Issue
Block a user