Zum Hauptinhalt springen

Upgrading

Vodia Monitor supports near zero-downtime upgrades. A brief restart of 5–10 seconds is required. No data is lost.

note

Please perform a full backup of the virtual machine before proceeding with any upgrade.

Standard Upgrade​

note

If you're upgrading to enable the Teams Direct Routing module for the first time ( 1.0.6), add the required environment variables before restarting:

cd /opt/vodia-monitor && for kv in TEAMS_MODULE_ENABLED=true TEAMS_CLIENT_ID=04b07795-8ddb-461a-bbee-02f9e1bf7b46 TEAMS_PWSH_TIMEOUT_MS=900000 TEAMS_MAX_CONCURRENCY=1 TEAMS_REFRESH_TOKEN_DAYS=90; do grep -q "^${kv%%=*}=" .env || echo "$kv" >> .env; done && chmod 600 .env

Existing values are left untouched — only missing keys are appended. Restart the stack afterward for the teams worker to pick up the new configuration.

cd /opt/vodia-monitor && test -f docker-compose.yml && test -f .env && \
UPD=".vm-upd.$(date +%s)" && \
wget https://cdn.vodia.net/vodia-monitor/vodia-monitor.zip -O vodia-monitor-update.zip && \
unzip -oq vodia-monitor-update.zip -d "./$UPD" && \
test -d "./$UPD/vodia-monitor" && \
cp .env .env.bak.$(date +%s) && \
cp .env /tmp/.env.vodia-monitor.bak && \
cp -rf "./$UPD/vodia-monitor/"* . && \
cp /tmp/.env.vodia-monitor.bak .env && \
rm -rf "./$UPD" && \
rm -f vodia-monitor-update.zip && \
docker compose build --no-cache && \
docker compose up -d

Database migrations run automatically on startup. Your data is preserved.