# Run the instance during the event

You prepare the week before the event, and you know where to look on a Saturday when something goes wrong. An event lasts a few days during which all staff members consult their schedule: what follows lets someone other than the person who installed the instance take over.

If you would rather not run the instance yourself, [write to us](/contact/): we can host it for you.

## One week before

The *Ready for the event* card, in *Settings*, *Instance* tab (administrator only), reads the lines that can be worked out without calling anything outside and says for each whether it is in order, with the guide that explains it; it shows no configuration value. The other lines remain to be checked by hand. One list feeds the card and this table.

| Check | How | Guide |
| --- | --- | --- |
| The mail server is configured | *Ready for the event* card (*Settings*, *Instance* tab); `MAIL_HOST`, `MAIL_FROM` | [Get your e-mails delivered](courriels.md) |
| E-mails reach the inbox | a test schedule to three mailboxes, including Gmail and Outlook | [Get your e-mails delivered](courriels.md) |
| The administration address (MAIL_ADMIN) is filled in | the card; without it, nobody is warned of a failed backup | [Back up and restore](sauvegarde-et-restauration.md) |
| The public address (PUBLIC_URL) is https | the card; the links printed on PDFs and in e-mails depend on it | [Install the application on your server](installation.md) |
| The event's edition is active | the card, or the *Editions* page: without it, no reminder goes out | [Tune the automatic sends](envois-automatiques.md) |
| The plan is published | the card: the day-before reminder reads the published plan, never the working plan | [Tune the automatic sends](envois-automatiques.md) |
| A recent nightly backup exists | the card: a successful backup less than 36 hours old | [Back up and restore](sauvegarde-et-restauration.md) |
| You have already done a trial restore | `scripts/restaurer.sh --essai` | [Back up and restore](sauvegarde-et-restauration.md#3-restaurer) |
| An external probe watches `/q/health/ready` | the application cannot report its own absence | [Monitoring the instance](surveillance.md) |
| Error tracking is connected | `SENTRY_DSN` filled in | [Connect error tracking](observabilite.md) |
| The legal notice is complete | the card, on a public instance; `scripts/verifier-deploiement.sh` | [Fill in the legal notice](mentions-legales.md) |
| Every minor has an emergency contact | the card counts the minors of the active edition with nobody to warn; fill it in on the fiche, before the event | [Keep your instance GDPR record](rgpd.md) |
| No webhook is failing | the card; the delivery journal of each webhook | [Allow webhooks and the weather alert](appels-sortants.md) |
| The instance encryption key is present | the card; `INSTANCE_SECRET_KEY`, required as soon as a webhook exists | [Allow webhooks and the weather alert](appels-sortants.md) |
| The deployed version is named | application footer, `APP_VERSION` | [Update](mettre-a-jour.md) |

## During: a Saturday when something goes wrong

| What you hear | Where to look first |
| --- | --- |
| "I received nothing" | the four causes in order, [check when nothing arrives](envois-automatiques.md#3-vérifier-quand-rien-narrive), then the [classification of send failures](courriels.md#4-lire-ce-qui-est-gardé-de-chaque-envoi) |
| "The site no longer responds" | `docker compose -f docker-compose.prod.yml --env-file .env.prod ps`, then the [logs](surveillance.md#lire-et-limiter-les-journaux); the `/q/health/ready` probe says whether the database responds |
| "The solve won't start" | the solve cap or the instance quota ([the solve](calcul-du-planning.md)), and a failing remote compute machine ([the remote solve](calcul-sur-une-autre-machine.md#4-savoir-ce-qui-se-passe-en-cas-de-panne)) |
| "I can't sign in any more" | the emergency account ([local accounts](comptes-locaux.md#ne-jamais-senfermer-dehors)), the login log and [the form lockout](securite-acces-administration.md) |
| "Data is missing" | restore a dump, knowing that everything more recent is lost: [Back up and restore](sauvegarde-et-restauration.md#3-restaurer) |
| A blank page or a dead menu link after a redeployment | [Redeploy without breaking open browsers](mettre-a-jour.md#3-redéployer-sans-casser-les-navigateurs-ouverts) |

## After: close cleanly

Once the event is over, the measure of the realised freezes at the first read, and you carry out the annual purge: [Purge and keep data](conservation-des-donnees.md).
