Skip to content

Fix #522: Catch authorization errors and prevent auto-rejoining#571

Closed
tristan-maksad wants to merge 1 commit intoPsycheFoundation:mainfrom
tristan-maksad:issue-522-fix-1
Closed

Fix #522: Catch authorization errors and prevent auto-rejoining#571
tristan-maksad wants to merge 1 commit intoPsycheFoundation:mainfrom
tristan-maksad:issue-522-fix-1

Conversation

@tristan-maksad
Copy link

When users try to join a run without an authorized account, the client throws a cryptic error and will problematically continue to auto-rejoin. This pull request catches the "AccountNotInitialized" authorization errors and now throws a cleaner error, then exits Psyche. The docker wrapper no longer auto-rejoins when such errors occur.

Specific File Changes:

  • backend.rs: Detect AccountNotInitialized authorization errors, throwing cleaner error
  • app.rs: Exit with exit code 11 when said authorization error occurs
  • train_entrypoint.sh: Skip auto-rejoining at exit code 11

…-rejoining.

- backend.rs: Detect AccountNotInitialized authorization errors, throwing cleaner error
- app.rs: Exit with exit code 11 when said authorization error occurs
- train_entrypoint.sh: Skip auto-rejoining at exit code 11
@IAvecilla
Copy link
Contributor

Hey! Thank you for your contribution, all of this functionality is already handled in #514. We now check for authorization before joining the run when using the run manager, so we won’t retry if there’s no authorization, and the error message is clear now. We forgot to link that PR to the issue, sorry for that but thanks anyway for your work

@IAvecilla IAvecilla closed this Feb 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants