panel icon indicating copy to clipboard operation
panel copied to clipboard

Error on starting fresh server

Open Corenb opened this issue 6 years ago • 4 comments

Background:

  • Panel or Daemon: Daemon
  • Version of Panel/Daemon: 1.0 beta release 4
  • Server's OS: Debian 9
  • Your Computer's OS & Browser: Win 10 + Mozilla Firefox

Describe the bug Can't start fresh server after installed it with the latest release... I've tried with Paper egg.

Panel: PHP 7.4.5 Kernel info: Linux ns3018348 4.19-ovh-xxxx-std-ipv6-64 Docker info:

Client:
 Debug Mode: false

Server:
 Containers: 29
  Running: 3
  Paused: 0
  Stopped: 26
 Images: 11
 Server Version: 19.03.8
 Storage Driver: devicemapper
  Pool Name: docker-8:2-7472688-pool
  Pool Blocksize: 65.54kB
  Base Device Size: 10.74GB
  Backing Filesystem: xfs
  Udev Sync Supported: true
  Data file: /dev/loop0
  Metadata file: /dev/loop1
  Data loop file: /var/lib/docker/devicemapper/devicemapper/data
  Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
  Data Space Used: 3.822GB
  Data Space Total: 107.4GB
  Data Space Available: 71.45GB
  Metadata Space Used: 21.29MB
  Metadata Space Total: 2.147GB
  Metadata Space Available: 2.126GB
  Thin Pool Minimum Free Space: 10.74GB
  Deferred Removal Enabled: true
  Deferred Deletion Enabled: true
  Deferred Deleted Device Count: 0
  Library Version: 1.02.137 (2016-11-30)
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk s                                                                                                                                                             yslog
 Swarm: inactive
 Runtimes: runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 7ad184331fa3e55e52b890ea95e65ba581ae3429
 runc version: dc9208a3303feef5b3839f4323d9beb36df0a9dd
 init version: fec3683
 Security Options:
  seccomp
   Profile: default
 Kernel Version: 4.19.0-ovh-xxxx-std-ipv6-64
 Operating System: Debian GNU/Linux 9 (stretch)
 OSType: linux
 Architecture: x86_64
 CPUs: 8
 Total Memory: 31.34GiB
 Name: ns3018348
 ID: LCWP:2IBP:NBXS:AFFJ:QLZU:ADYY:NCB5:6RGL:73IH:5QG4:MPHC:YDCE
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

WARNING: No cpu cfs quota support
WARNING: No cpu cfs period support
WARNING: the devicemapper storage-driver is deprecated, and will be removed in a                                                                                                                                                              future release.
WARNING: devicemapper: usage of loopback devices is strongly discouraged for pro                                                                                                                                                             duction use.
         Use `--storage-opt dm.thinpooldev` to specify a custom block storage de                                                                                                                                                             vice.

To Reproduce

  1. Just try to start a fresh server

Expected behavior Nothing in the panel console.

In the console :

1.5891523999409964e+09  info    server/environment_docker.go:144        syncing server configuration with Panel {"server": "535c2491-36a9-461e-b131-4a40ca3c7495"}
1.5891524019715369e+09  info    server/state.go:114     detected server as entering a potentially crashed state; running handler        {"server": "535c2491-36a9-461e-b131-4a40ca3c7495"}
1.5891524019715812e+09  error   server/state.go:121     failed to handle server crash state     {"server": "535c2491-36a9-461e-b131-4a40ca3c7495", "error": "Error response from daemon: OCI runtime create failed: container_linux.go:349: starting container process caused \"process_linux.go:449: container init caused \\\"process_linux.go:415: setting cgroup config for procHooks process caused \\\\\\\"failed to write \\\\\\\\\\\\\\\"-1\\\\\\\\\\\\\\\" to \\\\\\\\\\\\\\\"/sys/fs/cgroup/cpu,cpuacct/docker/e2e0ab636a04e7cb64e0558781f95c1dd39129d5edb565c40a478bfbc2f069a3/cpu.cfs_quota_us\\\\\\\\\\\\\\\": open /sys/fs/cgroup/cpu,cpuacct/docker/e2e0ab636a04e7cb64e0558781f95c1dd39129d5edb565c40a478bfbc2f069a3/cpu.cfs_quota_us: permission denied\\\\\\\"\\\"\": unknown", "errorVerbose": "Error response from daemon: OCI runtime create failed: container_linux.go:349: starting container process caused \"process_linux.go:449: container init caused \\\"process_linux.go:415: setting cgroup config for procHooks process caused \\\\\\\"failed to write \\\\\\\\\\\\\\\"-1\\\\\\\\\\\\\\\" to \\\\\\\\\\\\\\\"/sys/fs/cgroup/cpu,cpuacct/docker/e2e0ab636a04e7cb64e0558781f95c1dd39129d5edb565c40a478bfbc2f069a3/cpu.cfs_quota_us\\\\\\\\\\\\\\\": open /sys/fs/cgroup/cpu,cpuacct/docker/e2e0ab636a04e7cb64e0558781f95c1dd39129d5edb565c40a478bfbc2f069a3/cpu.cfs_quota_us: permission denied\\\\\\\"\\\"\": unknown
github.com/pterodactyl/wings/server.(*DockerEnvironment).Start

server/environment_docker.go:253
github.com/pterodactyl/wings/server.(*Server).handleServerCrash

server/crash.go:74
github.com/pterodactyl/wings/server.(*Server).SetState.func2

server/state.go:117
runtime.goexit

/usr/local/Cellar/go/1.14.2_1/libexec/src/runtime/asm_amd64.s:1373"}
github.com/pterodactyl/wings/server.(*Server).SetState.func2
        server/state.go:121
1.5891524019723294e+09  info    server/state.go:119     did not restart server after crash; occurred too soon after last        {"server": "535c2491-36a9-461e-b131-4a40ca3c7495"}

Corenb avatar May 10 '20 23:05 Corenb

The kernel you are running doesn't support cgroups. It looks like the OVH kernel that they ship without it for some reason. This isn't panel/daemon issue so much as a docker issue.

parkervcp avatar May 10 '20 23:05 parkervcp

So do you know why servers installed with previous releases still working ?

Corenb avatar May 11 '20 00:05 Corenb

You didn't set the cpu limit to -1 on the other servers it looks like.

parkervcp avatar May 11 '20 00:05 parkervcp

Ok if I just need to specify the CPU limit that's ok

Corenb avatar May 11 '20 07:05 Corenb