Skip to content

Misleading error message when locale mismatch occurs #1347

@kikoreis

Description

@kikoreis

Hello there. I've spent a bit of time today trying to figure out why mosh wouldn't work with a server farm I run and realized it's the same issue that many others have reported. I think the error output when mosh encounters this problem is somewhat bewildering because:

  • The output is very long and refers to locales, a somewhat arcane topic
  • The last line in the error output provides misleading information: /usr/bin/mosh: Did not find mosh server startup message. (Have you installed mosh on your server?)

I'll paste the raw output into my next comment to stay on point; I think the output should, ideally, be a one-liner, something like:

/usr/bin/mosh: server missing files for client locale pt_BR.UTF-8; to fix generate server locales or modify client locale

This would be in line with the idea of providing a general error message in the last line, such as what mosh displays when the server is indeed not installed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions