Problemi con Google Bucket per il backup

Su un sito in cui i backup e gli upload su bucket Google funzionavano, la pagina dei backup ora visualizza:

Impossibile accedere all'archivio di backup: un'intestazione o un parametro di query fornito ha richiesto una funzione non implementata.

Pensavo potesse essere un problema di permessi del bucket (ma non aveva molto senso, dato che la stessa configurazione funzionava alcune settimane fa), ma rileggendo il messaggio, sembra che Discourse stia cercando di eseguire un’azione che, beh, non è implementata. (Il che sembra anch’esso improbabile).

Gli upload S3 su un bucket Google (sebbene diverso) funzionano perfettamente. Esiste un sito di produzione su 2.4.0.beta9 e un sito di staging su 2.4.0.beta10 (e ho appena eseguito un altro aggiornamento sul sito di staging).

Si tratta di un’installazione standard a due container con solo plugin standard e le impostazioni S3 configurate tramite env: nel file .yml. EDIT: Ho rimosso quelle impostazioni ENV dal file yml e ho ricreato l’ambiente (l’operazione destroy, start non le ha rimosse), ma il problema persiste.

Non vedo commit evidenti (almeno per me) che possano essere correlati.

EDIT: C’è un’altra istanza di installazione standard in esecuzione su 2.4.0.beta8 con le stesse impostazioni e funziona, quindi sembra che qualcosa sia cambiato tra beta8 e beta9. Questo sembra proprio un :bug:. @gerhard, potrebbe essere correlato in qualche modo alle tue modifiche ai backup?

P.S. Ho controllato un sito che utilizza DigitalOcean Spaces e i backup funzionano correttamente.

2 Mi Piace

Are you getting the error as soon as you visit /admin/backups? I didn’t change anything in that area recently, but we updated the aws-s3 gem between beta8 and beta10 from version 1.36.1 to 1.60.1. It’s possible that this doesn’t work with Google buckets anymore. Maybe you find the cause in the CHANGELOG. You could test with different versions of the gem to narrow it down.

3 Mi Piace

Yes.

Darn.

Yuck. I’ll ping an engineer at Google who probably won’t know and see what else I can find.

Thanks very much.

3 Mi Piace

So, by entering the container and editing Gemfile and changing

gem 'aws-sdk-s3', require: false

to versions of

gem 'aws-sdk-s3', '1.51.0', require: false

and then doing

bundle install --no-deployment
sv restart unicorn

to see if it worked or not, a binary search through the versions shows that 1.51.0 is the last version that works, so something in 1.52.0 “Feature - Adding support in SelectObjectContent for scanning a portion of an object specified by a scan range.” is where the problem began.

I’m not sure what to do next. I guess I’ll open an issue over at GitHub - aws/aws-sdk-ruby: The official AWS SDK for Ruby, but I’m not sure that they care, right? So maybe open a ticket with the Google?

And Discourse still works for uploads on Google Buckets, just not backups.

5 Mi Piace

Presumibilmente questo è stato risolto, poiché Google sembra essere supportato su

Questo argomento è stato chiuso automaticamente 30 giorni dopo l’ultima risposta. Non sono più consentite nuove risposte.