Allow setting admin user email via environment variable during initial setup
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 45/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- docker, shell
- Ambito
- devops, infrastructure
Direzione di ricerca
Inizia tracciando il percorso di inizializzazione del container che gestisce NEXTCLOUD_ADMIN_USER e NEXTCLOUD_ADMIN_PASSWORD, quindi determina dove verrebbe applicata una variabile proposta per l'e-mail dell'amministratore. Riproduci una nuova installazione basata su Docker con le impostazioni SMTP e usa “Basic settings → Test and verify email settings” per confermare che l'e-mail sia impostata e che il test non fallisca più con l'errore 400 segnalato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
After a fresh Docker-based install with all SMTP settings supplied via environment variables, the send test via "Basic settings → Test and verify email settings" result in the following error:
AxiosError: Request failed with status code 400
This error message is not helpful and gives no indication of the root cause. It took me several days of debugging - including repeatedly verifying and adjusting the SMTP settings - before I realized that the problem was simply that the admin user had no email address set.
Expected Behavior
A fresh installation should allow specifying an admin email during setup. Without it, the email system silently fails with unclear error messages, despite all SMTP settings appearing correct.
Proposed Solution
Introduce a new environment variable, such as NEXTCLOUD_ADMIN_EMAIL, which can be used during container initialization to automatically assign an email address to the admin user.
environment:
- NEXTCLOUD_ADMIN_USER=admin
- NEXTCLOUD_ADMIN_PASSWORD=secret
- [email protected]
Benefits
- Prevents misleading errors like
AxiosError: Request failed with status code 400when testing email - Reduces time wasted on debugging SMTP configs
- Streamlined, fully automated deployment
- Enables functional email notifications from the start
- Avoids manual post-installation steps
This would align well with the goals of containerization and automation. Thanks for considering!
- Lingua principale
- Shell
- Stelle
- 7.4k
- Fork
- 1.9k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di nextcloud/docker
-
1. To develop bug feature: cron image
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Drop paragarph about anonymous (unnamed) volumes under Persistent Storage section fo the docsApertabug docs
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
-
0. Needs triage bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
-
Imagick architecture mismatch (x86_64 vs aarch64) on official arm64 image causes Apache segfaultsAperta0. Needs triage bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 50/100
Tutte le issue di nextcloud/docker
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
sclorg/s2i-ruby-container#660 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
wazuh/wazuh-docker#2732 ·
I maintainer di solito rispondono entro 1 giorno
-
Route 53 DNS analytics/insights adds an observability signal for the DNS layerForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertadocumentation enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100