ccarney16 / pterodactyl-containers

Pterodactyl Panel within a docker container
231 stars 79 forks source link

Servers not starting after upgrading from 0.7 #85

Closed Syntax3rror404 closed 3 years ago

Syntax3rror404 commented 3 years ago

After the upgrade i get the following error in the webinterface:

container@pterodactyl~ Server marked as offline...
[Pterodactyl Daemon]: Checking server disk space usage, this could take a few seconds...
[Pterodactyl Daemon]: Updating process configuration files...
[Pterodactyl Daemon]: Ensuring file permissions are set correctly, this could take a few seconds...
container@pterodactyl~ Server marked as starting...
[Pterodactyl Daemon]: Pulling Docker container image, this could take a few minutes to complete...
Pulling from pterodactyl/core 
Digest: sha256:5a152cce194a9379f31bbb2de7ffa28c983468393a45f30a44fccd3079dc3aaf 
Status: Image is up to date for quay.io/pterodactyl/core:source 
[Pterodactyl Daemon]: Finished pulling Docker container image
container@pterodactyl~ Error Event [7589d37e-6177-4fe2-b73a-91d44b465414]: Error response from daemon: invalid mount config for type "bind": bind source path does not exist: /var/lib/pterodactyl/7a043195-65ca-49ab-80d7-6a21c7b3dc18

Wings log:

 INFO: [Jan  4 19:09:25.672] detected server as entering a crashed state; running crash handler server=7a043195-65ca-49ab-80d7-6a21c7b3dc18
 INFO: [Jan  4 19:09:25.673] syncing server configuration with panel server=7a043195-65ca-49ab-80d7-6a21c7b3dc18
 INFO: [Jan  4 19:09:25.765] performing server limit modification on-the-fly server=7a043195-65ca-49ab-80d7-6a21c7b3dc18
{"status":"Pulling from pterodactyl/core","id":"source"}
{"status":"Digest: sha256:5a152cce194a9379f31bbb2de7ffa28c983468393a45f30a44fccd3079dc3aaf"}
{"status":"Status: Image is up to date for quay.io/pterodactyl/core:source"}
ERROR: [Jan  4 19:09:27.388] failed to handle server crash error=Error response from daemon: invalid mount config for type "bind": bind source path does not exist: /var/lib/pterodactyl/7a043195-65ca-49ab-80d7-6a21c7b3dc18 server=7a043195-65ca-49ab-80d7-6a21c7b3dc18
Stacktrace:
Error response from daemon: invalid mount config for type "bind": bind source path does not exist: /var/lib/pterodactyl/7a043195-65ca-49ab-80d7-6a21c7b3dc18

But the mount works, i can access create and remove files and dirs with the file explorer within the panel and i can access the dir within the wings container:

[root@dockersrv01 ~]# docker exec -it mog_pterodactyl_daemon_1 sh
/var/lib/pterodactyl # cd /var/lib/pterodactyl/7a043195-65ca-49ab-80d7-6a21c7b3dc18
/var/lib/pterodactyl/7a043195-65ca-49ab-80d7-6a21c7b3dc18 # 

I have docker completly removed with containerd and reinstalled.

Syntax3rror404 commented 3 years ago

Problem fixed, the daemon data mount must have the same source and destination. This was not the case in my setup. After the data source was adjusted in the deamon config and the compose, everything worked for me. Thank you @ccarney16 for updating the panel and daemon :)