Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standalone sftp server not starting #1497

Closed
Luukth opened this issue Feb 22, 2019 · 2 comments
Closed

Standalone sftp server not starting #1497

Luukth opened this issue Feb 22, 2019 · 2 comments

Comments

@Luukth
Copy link

Luukth commented Feb 22, 2019

  • Daemon
  • 0.6.11
  • Debian 9

Describe the bug
Linux server1 4.9.0-8-amd64 #1 SMP Debian 4.9.144-3.1 (2019-02-19) x86_64 GNU/Linux

Containers: 8
 Running: 3
 Paused: 0
 Stopped: 5
Images: 11
Server Version: 18.09.2
Storage Driver: overlay2
 Backing Filesystem: extfs
 Supports d_type: true
 Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 9754871865f7fe2f4e74d43e2fc7ccd237edcbce
runc version: 09c8266bf2fcf9519a651b04ae54c967b9ab86ec
init version: fec3683
Security Options:
 seccomp
  Profile: default
Kernel Version: 4.9.0-8-amd64
Operating System: Debian GNU/Linux 9 (stretch)
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 1.911GiB
Name: server1
ID: 2JHU:JK55:GZZI:ETAL:W2VD:W7PB:QLKZ:5CSD:PVAK:UKXG:FVO2:6QEC
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false
Product License: Community Engine

Standalone sftp doesn't start, it gives an error.

To Reproduce
Steps to reproduce the behavior:

  1. Add sftp.enabled=false to your Daemon's core.json file.
  2. Reboot daemon
  3. execute curl -Lo sftp-server https://github.com/pterodactyl/sftp-server/releases/download/v1.0.4/sftp-server
  4. execute chmod +x sftp-server
  5. execute ./sftp-server

Error:

1.55083763994512e+09    info    sftp-server/main.go:46  reading configuration from path {"config-path": "./config/core.json"}
1.5508376399459374e+09  info    sftp-server/main.go:59  using system daemon user        {"username": "pterodactyl"}
1.5508376399474707e+09  fatal   sftp-server/main.go:88  could not start SFTP server     {"error": "asn1: structure error: integer not minimally-encoded"}
main.main
        /Users/dane/go/src/github.com/pterodactyl/sftp-server/main.go:88
runtime.main
        /usr/local/Cellar/go/1.11.1/libexec/src/runtime/proc.go:201

Expected behavior
The sftp server starting without errors.

@Luukth Luukth closed this as completed Feb 22, 2019
@catalystsitaly
Copy link

I have the same error, how did you solved it? thanks @Luukth

@DaneEveritt
Copy link
Member

Delete the /srv/daemon/config/.sftp folder.

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

No branches or pull requests

3 participants