#invalid mount config for type "bind"

21 messages · Page 1 of 1 (latest)

unkempt kite
#

Trying to run a minecraft vanilla server from the node but its runs into a error and wings is not able to create a new container sadly...

  • I am using ubuntu server with docker

And no i don't have the snap version of docker installed

wings.log

ERROR: [Nov 14 15:33:23.540] error processing websocket event "set state" error=environment/docker: failed to run pre-boot process: environment/docker: failed to create container: Error response from daemon: invalid mount config for type "bind": bind source path does not exist: /var/lib/pterodactyl/volumes/e01f85f5-5a34-4b57-b843-28baccba06f7 error_identifier=8b9f0992-cd1f-4e27-86ff-8ecb5a26ccfb event=set state server=e01f85f5-5a34-4b57-b843-28baccba06f7

Stacktrace:
Error response from daemon: invalid mount config for type "bind": bind source path does not exist: /var/lib/pterodactyl/volumes/e01f85f5-5a34-4b57-b843-28baccba06f7
environment/docker: failed to create container
molten phoenixBOT
#

@unkempt kite; Execute the commands below and post the output

sudo docker info | nc pteropaste.com 99
sudo snap list  | nc pteropaste.com 99
unkempt kite
#

i can see the folders just fine here so idk why its complaining that it cannot find the files

#

but yeah this is the main problem currently now

#

ill just share my docker-compose.yml

docker compose - wings

  wings:
    image: ghcr.io/pterodactyl/wings:latest
    container_name: pterodactyl_wings
    restart: unless-stopped
    ports:
      - 8181:8080
      - 8182:2022 # SFTP
    stdin_open: true
    tty: true
    environment:
      TZ: Etc/UTC
      APP_TIMEZONE: Etc/UTC
      WINGS_UID: 1000
      WINGS_GID: 1000
      WINGS_USERNAME: pterodactyl
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock #
      - /var/lib/docker/containers:/var/lib/docker/containers #
      - /etc/ssl/certs:/etc/ssl/certs:ro #
      - ./wings/conf/etc:/etc/pterodactyl #
      - ./wings/data/lib:/var/lib/pterodactyl #
      - ./wings/data/logs/wings:/var/log/pterodactyl #
      - ./wings/data/tmp/pterodactyl:/tmp/pterodactyl #
      - ./wings/data/lib/wings.db:/var/lib/pterodactyl/wings.db
molten phoenixBOT
#

@unkempt kite: It looks like Docker probably is not running on your machine. Use systemctl status docker to check the status of it, and systemctl restart docker to get it operational again.

unkempt kite
#

and this is the panel docker compose

docker compose - panel

  panel:
    image: ghcr.io/pterodactyl/panel:latest
    container_name: pterodactyl_panel
    restart: unless-stopped
    stdin_open: true
    tty: true
    ports:
      - 8180:80
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - /var/lib/docker/containers:/var/lib/docker/containers
      - /etc/ssl/certs:/etc/ssl/certs:ro
      - ./panel/conf/certs:/etc/letsencrypt #
      - ./panel/conf/etc:/etc/pterodactyl
      - ./panel/conf/nginx:/etc/nginx/http.d #
      - ./panel/data/var:/app/var #
      - ./panel/data/logs/panel:/app/storage/logs #
      - ./panel/data/logs/panel:/var/log/panel/logs
      - ./panel/data/panel:/var/www/html
      - ./panel/data/lib:/var/lib/pterodactyl
    environment:
      TZ: Etc/UTC
      APP_TIMEZONE: Etc/UTC
      APP_ENV: production
      APP_ENVIRONMENT_ONLY: false
      APP_URL: REDACTED
      APP_SERVICE_AUTHOR: REDACTED
      MAIL_FROM: REDACTED
      MAIL_DRIVER: REDACTED
      MAIL_HOST: REDACTED
      MAIL_PORT: REDACTED
      MAIL_USERNAME: REDACTED
      MAIL_PASSWORD: REDACTED
      MAIL_ENCRYPTION: false
      TRUSTED_PROXIES: "*" # Set this to your proxy IP
      DB_HOST: db
      DB_PORT: 3306
      DB_PASSWORD: REDACTED
      CACHE_DRIVER: redis
      SESSION_DRIVER: redis
      QUEUE_DRIVER: redis
      REDIS_HOST: cache
molten phoenixBOT
#

@unkempt kite: It looks like Docker probably is not running on your machine. Use systemctl status docker to check the status of it, and systemctl restart docker to get it operational again.

unkempt kite
#

think i fixed the first problem by changing the

- ./wings/data/logs/wings:/var/log/pterodactyl

into

- /wings/data/lib:/wings/data/lib

also had to change it at the config.yml

system:
  root_directory: /wings/data/lib
  log_directory: /var/log/pterodactyl
  data: /wings/data/lib/volumes
  archive_directory: /wings/data/lib/archives
  backup_directory: /wings/data/lib/backups

the containers seems to be created now but here comes the second problem...

Unable to access jarfile server.jar

containers logs:

container@pterodactyl~ java -version
openjdk version "21.0.3" 2024-04-16 LTS
OpenJDK Runtime Environment Temurin-21.0.3+9 (build 21.0.3+9-LTS)
OpenJDK 64-Bit Server VM Temurin-21.0.3+9 (build 21.0.3+9-LTS, mixed mode, sharing)
container@pterodactyl~ java -Xms128M -XX:MaxRAMPercentage=95.0 -jar server.jar
Error: Unable to access jarfile server.jar
pastel cipher
#

Fetch Wings' latest server install logs from where you mounted it; check what's going wrong when fetching the jar during install.

unkempt kite
#
 INFO: [Nov 14 17:25:57.386] performing server limit modification on-the-fly server=e01f85f5-5a34-4b57-b843-28baccba06f7
 INFO: [Nov 14 17:25:57.401] completed server preflight, starting boot process... server=e01f85f5-5a34-4b57-b843-28baccba06f7
 INFO: [Nov 14 17:25:58.124] starting resource polling for container container_id=e01f85f5-5a34-4b57-b843-28baccba06f7 environment=docker
 INFO: [Nov 14 17:25:58.452] releasing exclusive lock for power action action=restart lock_id=825db12a-a2ad-11ef-ac45-02420a001f04 server=e01f85f5-5a34-4b57-b843-28baccba06f7
 INFO: [Nov 14 17:25:58.524] detected server as entering a crashed state; running crash handler server=e01f85f5-5a34-4b57-b843-28baccba06f7
 INFO: [Nov 14 17:25:58.799] acquired exclusive lock on power actions, processing event... action=start lock_id=8351ccd7-a2ad-11ef-ac45-02420a001f04 server=e01f85f5-5a34-4b57-b843-28baccba06f7
 INFO: [Nov 14 17:25:58.799] syncing server configuration with panel server=e01f85f5-5a34-4b57-b843-28baccba06f7
 INFO: [Nov 14 17:25:58.948] performing server limit modification on-the-fly server=e01f85f5-5a34-4b57-b843-28baccba06f7
 INFO: [Nov 14 17:25:58.967] performing server limit modification on-the-fly server=e01f85f5-5a34-4b57-b843-28baccba06f7
 INFO: [Nov 14 17:25:58.984] completed server preflight, starting boot process... server=e01f85f5-5a34-4b57-b843-28baccba06f7
 INFO: [Nov 14 17:25:59.720] starting resource polling for container container_id=e01f85f5-5a34-4b57-b843-28baccba06f7 environment=docker
 INFO: [Nov 14 17:26:00.063] releasing exclusive lock for power action action=start lock_id=8351ccd7-a2ad-11ef-ac45-02420a001f04 server=e01f85f5-5a34-4b57-b843-28baccba06f7
 INFO: [Nov 14 17:26:00.095] detected server as entering a crashed state; running crash handler server=e01f85f5-5a34-4b57-b843-28baccba06f7
 INFO: [Nov 14 17:26:00.352] did not restart server after crash; occurred too soon after the last server=e01f85f5-5a34-4b57-b843-28baccba06f7
pastel cipher
#

No. A separate log file is generated for each server install. Whatever the latest dated time is on the logs folder you mounted.

unkempt kite
#

something wrong with the docker volume mounts?

pastel cipher
unkempt kite
pastel cipher
# unkempt kite do the mounts have to be the same like `- /wings/data/lib:/wings/data/lib` ? ...

Just the data mount and any other mounts you create. Wings doesn't use Docker in Docker, it uses the host system's Docker through the mounted socket to create containers, so when Wings tells a container "You're created and you have a mount at this path", if the host system can't see that path, it errors out. Only the Wings container can see the new paths you re-map in mounts.

FYI, the support bot does have the correct response for that error, but you would have had to paste it in #docker-help for it to give that instead of the snap check.