Account-Erstellung funktioniert nicht mit discourse_encrypt

Hallo,

Seit ich gestern erstes und zweites aktualisiert habe, funktioniert die Registrierung nicht mehr.

Wenn ich auf die Schaltfläche Konto erstellen im Modal “Konto erstellen” klicke, erhalte ich oben im Modal eine Fehlermeldung:

Etwas ist schiefgelaufen, vielleicht sind der Benutzername oder die E-Mail-Adresse bereits registriert. Versuchen Sie den Link “Passwort vergessen”.

Was nicht stimmt, da ich es mit einer neuen E-Mail-Adresse und einem neuen Benutzernamen versucht habe… und die Feldvalidierungen werden ebenfalls akzeptiert.

Ich habe auch zwei erforderliche Bestätigungs-Benutzerfelder, falls das etwas bedeutet.


Ich habe es im abgesicherten Modus und mit Wiederaufbau usw. versucht… Nichts hat funktioniert.
Keine Fehler in der Konsole oder in /logs.


Eine weitere Sache, die ich gestern geändert habe, ist das Hinzufügen des Folgenden, um alte Assets zu bereinigen :arrow_down_small:
(Ich benutze Digital Ocean Spaces)

Aber dies wird erfolgreich ausgeführt, wenn ich wiederaufbaue oder aktualisiere.


Hier ist die Seite. Wo Sie es überprüfen können.

Jede Hilfe oder Idee wäre willkommen! Vielen Dank :slightly_smiling_face:

1 „Gefällt mir“

Ich habe gerade versucht, mich zu registrieren und erhalte ebenfalls eine Fehlermeldung (obwohl ich bei der Übersetzung erhalte: „Etwas ist schiefgelaufen! Die Registrierung ist derzeit in Wartung! Bitte kommen Sie später wieder und versuchen Sie es erneut.“[1])

Hier auf Meta funktioniert es, das könnte also helfen, das Problem einzugrenzen. Ich werde versuchen, meine Testseite mit benutzerdefinierten Feldern usw. zum Absturz zu bringen. :+1:


  1. Valami hiba történt! A regisztráció jelenleg karbantartás alatt van! Kérlek, látogass vissza kicsit később és próbáld újra. ↩︎

1 „Gefällt mir“

Danke für die Überprüfung :slightly_smiling_face: Ja, ich habe nur die Standardfehlermeldung umgeschrieben, um die Benutzer zu warnen, dass das Problem auf unserer Seite liegt. Entschuldigung, dass ich es vergessen habe zu erwähnen. :confused:

Aber diese Nachricht ist die: login.something_already_taken

1 „Gefällt mir“

I tried to register with invite and it dropped me finally an Internal Server Error :slightly_smiling_face:

With the following error in /logs

Info
ActiveRecord::NotNullViolation (PG::NotNullViolation: ERROR:  null value in column "encrypt_pms_default" of relation "user_options" violates not-null constraint
DETAIL:  Failing row contains (5333, f, t, t, t, f, t, 10080, 300000, 2880, null, 2, f, 1, 1, f, 2, 0, t, null, {}, f, 0, 0, 1, 0, 0, f, null, f, null, f, null, 0, null, t, null, null, null, null, 3, null, 1, f, null, 0, null).
)
app/models/user.rb:1734:in `create_user_option'
app/models/invite_redeemer.rb:142:in `create_user_from_invite'
app/models/invite_redeemer.rb:208:in `invited_user'
app/models/invite_redeemer.rb:260:in `add_user_to_groups'
app/models/invite_redeemer.rb:226:in `process_invitation'
app/models/invite_redeemer.rb:55:in `block in redeem'
app/models/invite_redeemer.rb:53:in `redeem'
app/models/invite.rb:227:in `redeem'
app/controllers/invites_controller.rb:227:in `perform_accept_invitation'
app/controllers/application_controller.rb:413:in `block in with_resolved_locale'
app/controllers/application_controller.rb:413:in `with_resolved_locale'
lib/middleware/omniauth_bypass_middleware.rb:71:in `call'
lib/content_security_policy/middleware.rb:12:in `call'
lib/middleware/anonymous_cache.rb:368:in `call'
config/initializers/008-rack-cors.rb:25:in `call'
config/initializers/100-quiet_logger.rb:23:in `call'
config/initializers/100-silence_logger.rb:31:in `call'
lib/middleware/enforce_hostname.rb:23:in `call'
lib/middleware/request_tracker.rb:202:in `call'
Backtrace
rack-mini-profiler (3.0.0) lib/patches/db/pg.rb:69:in `exec_params'

rack-mini-profiler (3.0.0) lib/patches/db/pg.rb:69:in `exec_params'

activerecord (7.0.3.1) lib/active_record/connection_adapters/postgresql_adapter.rb:768:in `block (2 levels) in exec_no_cache'

activesupport (7.0.3.1) lib/active_support/concurrency/share_lock.rb:187:in `yield_shares'

activesupport (7.0.3.1) lib/active_support/dependencies/interlock.rb:41:in `permit_concurrent_loads'

activerecord (7.0.3.1) lib/active_record/connection_adapters/postgresql_adapter.rb:767:in `block in exec_no_cache'

activesupport (7.0.3.1) lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'

activesupport (7.0.3.1) lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'

activesupport (7.0.3.1) lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'

activesupport (7.0.3.1) lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'

activerecord (7.0.3.1) lib/active_record/connection_adapters/abstract_adapter.rb:765:in `block in log'

activesupport (7.0.3.1) lib/active_support/notifications/instrumenter.rb:24:in `instrument'

activerecord (7.0.3.1) lib/active_record/connection_adapters/abstract_adapter.rb:756:in `log'

activerecord (7.0.3.1) lib/active_record/connection_adapters/postgresql_adapter.rb:766:in `exec_no_cache'

activerecord (7.0.3.1) lib/active_record/connection_adapters/postgresql_adapter.rb:745:in `execute_and_clear'

activerecord (7.0.3.1) lib/active_record/connection_adapters/postgresql/database_statements.rb:54:in `exec_query'

activerecord (7.0.3.1) lib/active_record/connection_adapters/abstract/database_statements.rb:132:in `exec_insert'

activerecord (7.0.3.1) lib/active_record/connection_adapters/postgresql/database_statements.rb:92:in `exec_insert'

activerecord (7.0.3.1) lib/active_record/connection_adapters/abstract/database_statements.rb:167:in `insert'

activerecord (7.0.3.1) lib/active_record/connection_adapters/abstract/query_cache.rb:22:in `insert'

activerecord (7.0.3.1) lib/active_record/persistence.rb:496:in `_insert_record'

activerecord (7.0.3.1) lib/active_record/persistence.rb:1096:in `_create_record'

activerecord (7.0.3.1) lib/active_record/counter_cache.rb:166:in `_create_record'

activerecord (7.0.3.1) lib/active_record/locking/optimistic.rb:79:in `_create_record'

activerecord (7.0.3.1) lib/active_record/attribute_methods/dirty.rb:222:in `_create_record'

activerecord (7.0.3.1) lib/active_record/callbacks.rb:461:in `block in _create_record'

activesupport (7.0.3.1) lib/active_support/callbacks.rb:107:in `run_callbacks'

activesupport (7.0.3.1) lib/active_support/callbacks.rb:929:in `_run_create_callbacks'

activerecord (7.0.3.1) lib/active_record/callbacks.rb:461:in `_create_record'

activerecord (7.0.3.1) lib/active_record/timestamp.rb:108:in `_create_record'

activerecord (7.0.3.1) lib/active_record/persistence.rb:1067:in `create_or_update'

activerecord (7.0.3.1) lib/active_record/callbacks.rb:457:in `block in create_or_update'

activesupport (7.0.3.1) lib/active_support/callbacks.rb:107:in `run_callbacks'

activesupport (7.0.3.1) lib/active_support/callbacks.rb:929:in `_run_save_callbacks'

activerecord (7.0.3.1) lib/active_record/callbacks.rb:457:in `create_or_update'

activerecord (7.0.3.1) lib/active_record/timestamp.rb:126:in `create_or_update'

activerecord (7.0.3.1) lib/active_record/persistence.rb:648:in `save!'

activerecord (7.0.3.1) lib/active_record/validations.rb:53:in `save!'

activerecord (7.0.3.1) lib/active_record/transactions.rb:302:in `block in save!'

activerecord (7.0.3.1) lib/active_record/transactions.rb:354:in `block in with_transaction_returning_status'

activerecord (7.0.3.1) lib/active_record/connection_adapters/abstract/database_statements.rb:314:in `transaction'

activerecord (7.0.3.1) lib/active_record/transactions.rb:350:in `with_transaction_returning_status'

activerecord (7.0.3.1) lib/active_record/transactions.rb:302:in `save!'

activerecord (7.0.3.1) lib/active_record/suppressor.rb:54:in `save!'

activerecord (7.0.3.1) lib/active_record/persistence.rb:55:in `create!'

app/models/user.rb:1734:in `create_user_option'

activesupport (7.0.3.1) lib/active_support/callbacks.rb:400:in `block in make_lambda'

activesupport (7.0.3.1) lib/active_support/callbacks.rb:236:in `block in halting_and_conditional'

activesupport (7.0.3.1) lib/active_support/callbacks.rb:599:in `block in invoke_after'

activesupport (7.0.3.1) lib/active_support/callbacks.rb:599:in `each'

activesupport (7.0.3.1) lib/active_support/callbacks.rb:599:in `invoke_after'

activesupport (7.0.3.1) lib/active_support/callbacks.rb:108:in `run_callbacks'

activesupport (7.0.3.1) lib/active_support/callbacks.rb:929:in `_run_create_callbacks'

activerecord (7.0.3.1) lib/active_record/callbacks.rb:461:in `_create_record'

activerecord (7.0.3.1) lib/active_record/timestamp.rb:108:in `_create_record'

activerecord (7.0.3.1) lib/active_record/persistence.rb:1067:in `create_or_update'

activerecord (7.0.3.1) lib/active_record/callbacks.rb:457:in `block in create_or_update'

activesupport (7.0.3.1) lib/active_support/callbacks.rb:118:in `block in run_callbacks'

activerecord (7.0.3.1) lib/active_record/autosave_association.rb:370:in `around_save_collection_association'

activesupport (7.0.3.1) lib/active_support/callbacks.rb:127:in `block in run_callbacks'

activesupport (7.0.3.1) lib/active_support/callbacks.rb:138:in `run_callbacks'

activesupport (7.0.3.1) lib/active_support/callbacks.rb:929:in `_run_save_callbacks'

activerecord (7.0.3.1) lib/active_record/callbacks.rb:457:in `create_or_update'

activerecord (7.0.3.1) lib/active_record/timestamp.rb:126:in `create_or_update'

activerecord (7.0.3.1) lib/active_record/persistence.rb:648:in `save!'

activerecord (7.0.3.1) lib/active_record/validations.rb:53:in `save!'

activerecord (7.0.3.1) lib/active_record/transactions.rb:302:in `block in save!'

activerecord (7.0.3.1) lib/active_record/transactions.rb:354:in `block in with_transaction_returning_status'

activerecord (7.0.3.1) lib/active_record/connection_adapters/abstract/database_statements.rb:314:in `transaction'

activerecord (7.0.3.1) lib/active_record/transactions.rb:350:in `with_transaction_returning_status'

activerecord (7.0.3.1) lib/active_record/transactions.rb:302:in `save!'

activerecord (7.0.3.1) lib/active_record/suppressor.rb:54:in `save!'

app/models/invite_redeemer.rb:142:in `create_user_from_invite'

app/models/invite_redeemer.rb:208:in `invited_user'

app/models/invite_redeemer.rb:260:in `add_user_to_groups'

app/models/invite_redeemer.rb:226:in `process_invitation'

app/models/invite_redeemer.rb:55:in `block in redeem'

activerecord (7.0.3.1) lib/active_record/connection_adapters/abstract/transaction.rb:319:in `block in within_new_transaction'

activesupport (7.0.3.1) lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'

activesupport (7.0.3.1) lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'

activesupport (7.0.3.1) lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'

activesupport (7.0.3.1) lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'

activerecord (7.0.3.1) lib/active_record/connection_adapters/abstract/transaction.rb:317:in `within_new_transaction'

activerecord (7.0.3.1) lib/active_record/connection_adapters/abstract/database_statements.rb:316:in `transaction'

activerecord (7.0.3.1) lib/active_record/transactions.rb:209:in `transaction'

app/models/invite_redeemer.rb:53:in `redeem'

app/models/invite.rb:227:in `redeem'

app/controllers/invites_controller.rb:227:in `perform_accept_invitation'

actionpack (7.0.3.1) lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'

actionpack (7.0.3.1) lib/abstract_controller/base.rb:215:in `process_action'

actionpack (7.0.3.1) lib/action_controller/metal/rendering.rb:53:in `process_action'

actionpack (7.0.3.1) lib/abstract_controller/callbacks.rb:234:in `block in process_action'

activesupport (7.0.3.1) lib/active_support/callbacks.rb:118:in `block in run_callbacks'

app/controllers/application_control

Which is probably related with Discourse Encrypt (for Private Messages) plugin it was an update 12 days ago so when I first updated the site yesterday this is also updated.
This plugin is installed on my site but is disabled. I try to comment out in app.yml and see how it works. :slightly_smiling_face:

2 „Gefällt mir“

Ich kann das jetzt reproduzieren. :+1:

Ich habe auch Verschlüsselung auf meiner Testseite, aber sie war aktiviert. Wenn ich sie deaktiviere, treten bei meinen Testbenutzerregistrierungen Fehler auf.

2 „Gefällt mir“

Das sind tolle Neuigkeiten :slightly_smiling_face: Ich habe gerade neu aufgebaut, aber jetzt habe ich mich beruhigt :smiley: Danke Jammy :slightly_smiling_face: Kannst du es nach Bug verschieben?

1 „Gefällt mir“

Leider funktioniert es bei mir auch nach dem Neuerstellen ohne das Plugin noch nicht. Vielleicht reicht das nicht aus… :person_shrugging:

Wenn ich es ausschalte, funktioniert es nicht mehr, aber wenn ich es wieder einschalte, funktioniert es wieder. Ich glaube, Sie müssen es neu installieren und einschalten, während an einer Lösung gearbeitet wird?

1 „Gefällt mir“

Ich frage mich, was die Idee dahinter ist, Plugins Spalten von Kerntabellen ändern zu lassen, anstatt die Tabelle plugin_store_rows oder dedizierte Tabellen discourse_pluginname_function zu verwenden.\n\nMeiner Meinung nach endet das immer in Tränen (oder mit Sams Worten: „ein ziemlicher Albtraum“) und komplexen Problemen.

5 „Gefällt mir“

Das scheint zu funktionieren :+1: Danke! :slightly_smiling_face:

1 „Gefällt mir“

Wow. Oder ein user_custom_field. Das ist in der Tat überraschend.

Vielen Dank für den Bericht, @Don. Wir arbeiten an einer Lösung dafür und sollten bald eine haben.

Update: Eine Lösung ist in Arbeit: FIX: allow encrypt_pms_default to be null by lis2 · Pull Request #231 · discourse/discourse-encrypt · GitHub. Sie sollte bald zusammengeführt werden.

5 „Gefällt mir“

Ich habe heute ein Update durchgeführt und jetzt funktioniert es großartig, wenn ich das Plugin deaktiviere. Ich habe noch nicht versucht, es zu entfernen und neu zu erstellen, aber ich bin sicher, dass das auch funktionieren wird. Vielen Dank für die Korrektur! :slightly_smiling_face:

2 „Gefällt mir“