Panel: (Go-)SFTP server fails to load certificate sometimes

Created on 31 Jul 2019  路  2Comments  路  Source: pterodactyl/panel

Background (please complete the following information):

  • Panel or Daemon: SFTP-Server (standalone)
  • Version of Panel/Daemon: 1.0.4
  • Server's OS: Ubuntu 18.04.2 LTS
  • Your Computer's OS & Browser: n/a

Describe the bug
Sometimes - when bad luck is involved - the standalone SFTP server fails to load existing certificates when installed into a daemon that has been run before.
The ASN1 library of Go complains:

{"error": "asn1: structure error: integer not minimally-encoded"}

Often, this can be fixed by deleting the certificate files in config/.sftp/ and letting the standalone SFTP server generate them.

To Reproduce
Steps to reproduce the behavior:

  1. Install a daemon
  2. Run that daemon (with SFTP enabled)
  3. Stop the daemon
  4. Install the standalone SFTP server
  5. Run it (with a grain of bad luck)

Expected behavior
The standalone SFTP server should start normally.

Actual behavior
The standalone SFTP server crashes.

Most helpful comment

In that case, now the issue will show up in Google at least :sweat_smile:

All 2 comments

This is a pretty common bug, not sure why it happens but the fix is so simple I'm not worried about it. The end goal is moving entirely away from the internal SFTP server anyways, so this won't be a problem in the long run.

In that case, now the issue will show up in Google at least :sweat_smile:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

schrej picture schrej  路  3Comments

stijnb1234 picture stijnb1234  路  3Comments

TRYTIG picture TRYTIG  路  3Comments

dennorske picture dennorske  路  4Comments

zKoz210 picture zKoz210  路  4Comments