jusito / docker-teamspeak-ranksystem

Image for the free TS rank system. https://ts-n.net/ranksystem.php
https://hub.docker.com/r/jusito/docker-teamspeak-ranksystem/
MIT License
1 stars 4 forks source link

dbconfig.php caused not a directory #2

Closed ddinternetagentur closed 3 years ago

ddinternetagentur commented 3 years ago

Hey,

i use the Repo from kourgiantakis with the Docker-Compose.. but i have this error:

ERROR: for teamspeak_ranksystem  Cannot start service ranksystem: OCI runtime create failed: container_linux.go:349: starting container process caused "process_linux.go:449: container init caused \"rootfs_linux.go:58: mounting \\\"/root/teamspeak/dbconfig.php\\\" to rootfs \\\"/var/lib/docker/overlay2/554b555834822b2311b740b9cef97296e2cfd2ce84445397b9611ccb2b6173f3/merged\\\" at \\\"/var/lib/docker/overlay2/554b555834822b2311b740b9cef97296e2cfd2ce84445397b9611ccb2b6173f3/merged/var/www/html/ranksystem/other/dbconfig.php\\\" caused \\\"not a directory\\\"\"": unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type

ERROR: for ranksystem  Cannot start service ranksystem: OCI runtime create failed: container_linux.go:349: starting container process caused "process_linux.go:449: container init caused \"rootfs_linux.go:58: mounting \\\"/root/teamspeak/dbconfig.php\\\" to rootfs \\\"/var/lib/docker/overlay2/554b555834822b2311b740b9cef97296e2cfd2ce84445397b9611ccb2b6173f3/merged\\\" at \\\"/var/lib/docker/overlay2/554b555834822b2311b740b9cef97296e2cfd2ce84445397b9611ccb2b6173f3/merged/var/www/html/ranksystem/other/dbconfig.php\\\" caused \\\"not a directory\\\"\"": unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type
ERROR: Encountered errors while bringing up the project.
version: '3.1'

services:
  teamspeak:
    image: teamspeak
    container_name: teamspeak_teamspeak3
    restart: always
    ports:
      - 9987:9987/udp
      - 10011:10011
      - 30033:30033
    volumes:
      - ./srv/ts3-data:/var/ts3server/
    environment:
      TS3SERVER_LICENSE: accept

    networks:
      teamspeak-network:
        aliases:
          - teamspeak.docker.local

  sinusbot:
    image: sinusbot/docker
    container_name: teamspeak_sinusbot
    restart: always
    ports:
      - 8087:8087
    volumes:
      - ./srv/sinusbot/scripts:/opt/sinusbot/scripts
      - ./srv/sinusbot/data:/opt/sinusbot/data
    environment:
      UID: 1002
      GID: 1002
    networks:
      teamspeak-network:

  mariadb:
    image: bitnami/mariadb:10.3
    container_name: teamspeak_ranksystem-database
    restart: always
    ports:
      - 3306:3306
    volumes:
      - ./srv/mariadb_ranksystem:/bitnami/mariadb
    environment:
      - MARIADB_ROOT_PASSWORD=XGapXdm7tyWuIo
      - MYSQL_DATABASE=RanksystemDatabase
    networks:
      teamspeak-network:
        aliases:
          - ranksystemdb.docker.local

  ranksystem:
    image: kourgiantakis/docker-teamspeak-ranksystem
    container_name: teamspeak_ranksystem
    restart: always
    ports:
      - 8088:80
    volumes:
      - ./dbconfig.php:/var/www/html/ranksystem/other/dbconfig.php
    depends_on:
      - mariadb
    networks:
      teamspeak-network:

networks:
    teamspeak-network:
        driver: bridge

so we can fix this ?? The Mounting Volume is Empty

Thanks !

jusito commented 3 years ago

Your local file dbconfig.php is probably a folder but should be a file. Because of that it can't start container teamspeak_ranksystem, because it can't start the container the service ranksystem fails also.

ddinternetagentur commented 3 years ago

Okay.. this is fixed.. but the Bot comes for 5sec online in Teamspeak and goes without error in logs.. in the ServerQuery Log -> Connection lost

06.11.2020 19:09:15 VirtualServer   Info    query client connected 'Ranksystem'(id:3) from 172.23.0.1:35520

06.11.2020 19:09:18 VirtualServerBase   Info    query client disconnected 'Ranksystem'(id:3) reason 'reasonmsg=connection lost
2020-11-06 20:09:15.563856   NONE      Bot starts now his work!
2020-11-06 20:09:15.563804   NONE      Config check [done]
2020-11-06 20:09:15.562957   DEBUG       Serverside config 'memory_limit' (PHP.ini): 128M
2020-11-06 20:09:15.562924   DEBUG       Serverside config 'max_execution_time' (PHP.ini): 0 sec.
2020-11-06 20:09:15.562889   NONE        Log Level: 6 - DEBUG
2020-11-06 20:09:15.562846   NONE      Config check started...
2020-11-06 20:09:15.562790   INFO        Joined to specified TS channel with channel-ID 1 (already member of it).
2020-11-06 20:09:15.559654   NONE          Select virtual server [done]
2020-11-06 20:09:15.554512   NONE          Select virtual server...
2020-11-06 20:09:15.554457   INFO        TS3 Server version: 3.12.1 on Linux [Build: 1585305527 from 2020-03-27 11:38:47]
2020-11-06 20:09:15.553902   NONE      Connection to TS3 Server established.
2020-11-06 20:09:15.543576   NONE      Connect to TS3 Server (Address: "XXX.XXX.XXX.XXX" Voice-Port: "9987" Query-Port: "10011" SSH: "0" Query-Slowmode: "0.0").
2020-11-06 20:09:15.543521   NOTICE    Loading addons [done]
2020-11-06 20:09:15.543469   NOTICE      Addon: 'assign_groups' [OFF]
2020-11-06 20:09:15.543022   NOTICE    Loading addons...
2020-11-06 20:09:15.542991   NONE      Ranksystem Version: 1.3.12 (on Update-Channel: stable)
jusito commented 3 years ago

This is out of my knowledge, the issue tracker of ranksystem only mentions a bug in an much older release + buggy php installation with this error. Could be an php error e.g. php:7.4.3-apache is used in the fork and 7.4.12-apache is most recent and the fork is using master direct instead of specific ranksystem + version pinning. But I don't think so especially because ranksystem updates itself.

We need an error message, maybe any error in docker logs CONTAINER_RANKSYSTEM ?

ddinternetagentur commented 3 years ago

No i have no Logs in the Ranksystem Container.. iam testing now with 7.4.12-apache..

jusito commented 3 years ago

its a command you can execute, Iam trying to reproduce this error currently, have a little bit time to look into this deeper.

ddinternetagentur commented 3 years ago

können wir deutsch sprechen ? ;-) welchen Command ?

jusito commented 3 years ago

klar, docker logs NameVomContainerRanksystem

ddinternetagentur commented 3 years ago

ja rufe die Logs mit Portainer ab.. da steht nicht viel drin.. nur zugriffe die aufs Apache selbst sind

jusito commented 3 years ago

dann sieht das zumindest gut aus, ich probiere mal ein bisschen rum

ddinternetagentur commented 3 years ago

Okay, hier wäre meine derzeitige Compose:

version: '3.1'

services:
  teamspeak:
    image: teamspeak
    container_name: Social_teamspeak3
    restart: always
    ports:
      - 9987:9987/udp
      - 10011:10011
      - 30033:30033
    volumes:
      - ./srv/ts3-data:/var/ts3server/
    environment:
      TS3SERVER_LICENSE: accept
    networks:
      Social-Network:
        aliases:
          - teamspeak.docker.local

  sinusbot:
    image: sinusbot/docker
    container_name: Social_sinusbot
    restart: always
    ports:
      - 8087:8087
    volumes:
      - ./srv/sinusbot/scripts:/opt/sinusbot/scripts
      - ./srv/sinusbot/data:/opt/sinusbot/data
    environment:
      UID: 1002
      GID: 1002
    networks:
      Social-Network:
        aliases:
          - sinusbot.docker.local
  mariadb:
    image: mariadb
    container_name: Social_ranksystem-database
    restart: always
    ports:
      - 3306:3306
    volumes:
      - ./srv/mariadb_ranksystem:/mariadb
    environment:
      - MYSQL_ROOT_PASSWORD=xxx
      - MYSQL_DATABASE=xxx
      - MYSQL_USER=xxx
      - MYSQL_PASSWORD=xxx
    networks:
      Social-Network:
        aliases:
          - ranksystemdb.docker.local

  ranksystem:
    image: kourgiantakis/docker-teamspeak-ranksystem
    container_name: Social_ranksystem
    restart: always
    ports:
      - 8088:80
    depends_on:
      - mariadb
    networks:
      Social-Network:
        aliases:
            - ranksystem.docker.local

networks:
    Social-Network:
        driver: bridge
ddinternetagentur commented 3 years ago

ja geil, problem ist mit 7.4.12 schon behoben :D

ddinternetagentur commented 3 years ago

jetzt bekomme ich das hier:


2020-11-06 23:06:16.850438   ERROR     524: client is flooding (please wait 1 seconds); Error due command clientdbinfo for client-database-ID 4 (permission: b_virtualserver_client_dbinfo needed).

2020-11-06 23:06:16.849394   ERROR     524: client is flooding (please wait 1 seconds); Error due command clientdbinfo for client-database-ID 3 (permission: b_virtualserver_client_dbinfo needed).
jusito commented 3 years ago

Die Frage würde ich eher an TSN Ranksystem stellen, ich vermute das der Teamspeak query nutzer nicht die Berechtigungen hat wie angegeben: https://ts-ranksystem.com/#serverquery