Errore imprevisto 500 mai visto prima (nome bucket S3 mancante)

Ciao! Gestisco un’istanza di Discourse (Docker) su DigitalOcean da tre anni senza troppi problemi.

Oggi, dopo aver modificato alcune impostazioni relative alle dimensioni delle immagini, l’intero sito ha restituito un errore 500, mostrando questo messaggio:


Nota: scusate, riesco a vedere solo la versione in spagnolo; non so come ottenere quella in inglese in questa situazione.

Ho provato a ricreare l’app senza successo. Né i log mi hanno fornito nulla di chiaro, almeno per quanto mi riguarda.

Dato che non ho mai visto questo errore prima, fornirò solo alcune righe di informazioni che potrebbero essere rilevanti (o meno):

  • Le immagini sono ospitate su S3. Non ho modificato nulla relativo alla configurazione AWS/S3.
  • Il forum è configurato con Let’s Encrypt.
  • Posso accedere all’app tramite la console di Rails senza problemi.

Ho cercato in precedenza nel forum, ma poiché il messaggio è in spagnolo, non riesco a trovare la versione in inglese :thinking:

Nota: forse sarebbe una buona idea includere un codice di errore in quel messaggio, anche se tradotto, da utilizzare come riferimento nel forum in seguito.

Can you load the logs (http://yoursiteurl.com/logs) ?

Yes! I don’t know how I forget it! (I never had this kind of problem in 3 years with Discourse, sorry).

Seems like it is related to S3 :thinking: it’s at least a clue, something where to start debugging

Looks like your setting s3_bucket is empty/missing somehow…

Are you running latest Discourse?

No, I updated the forum around 2 months ago or so.

You hit the nail on the head, IDK how it happened :facepalm: this is kind of crazy.
I’m restoring the bucket name from the console and let’s see if works.

@Falco it works. I’m ashamed, the lack of practice debugging Discourse blocked me :facepalm: thank you so much for you quick response.

I will update the title now that I know the error.

Thanks!