Giter Club home page Giter Club logo

multicraft-docker's People

Contributors

foestolfur avatar mariowi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

multicraft-docker's Issues

Changing web interface port

Hello, I was wondering how I can change the web interface port, i'm trying to change it to 81, I've edited the apache2.conf and exposed port 81, and recreated the container but then neither port 80 or 81 work.

Not functional with unRaid

The new Image is not functional with unRaid.
It looks as if the UID and GID are not correctly adopted.

multicraft.xml does not work

The xml docker/unraid template is not usable. It has many errors:

Warning: simplexml_load_file(): /boot/config/plugins/dockerMan/templates-user/multicraft.xml:123: parser error : Opening and ending tag mismatch: TemplateURL line 15 and Container in /usr/local/emhttp/plugins/dynamix.docker.manager/include/Helpers.php on line 102

Warning: simplexml_load_file(): in /usr/local/emhttp/plugins/dynamix.docker.manager/include/Helpers.php on line 102

Warning: simplexml_load_file(): ^ in /usr/local/emhttp/plugins/dynamix.docker.manager/include/Helpers.php on line 102

Warning: simplexml_load_file(): /boot/config/plugins/dockerMan/templates-user/multicraft.xml:123: parser error : EndTag: '</' not found in /usr/local/emhttp/plugins/dynamix.docker.manager/include/Helpers.php on line 102

Warning: simplexml_load_file(): in /usr/local/emhttp/plugins/dynamix.docker.manager/include/Helpers.php on line 102

Warning: simplexml_load_file(): ^ in /usr/local/emhttp/plugins/dynamix.docker.manager/include/Helpers.php on line 102

Failed to connect to MySQL

Hi Mario

I have tried your multicraft project, but I get this error, when I start the containers with docker-compose

docker-compose -f examples/docker-compose.yml

multicraft_1  | 2021-11-21 11:40:11,874 DEBUG    Connecting to MySQL server at db:3306
multicraft_1  | 2021-11-21 11:40:11,894 ERROR    Failed to connect to MySQL: (1045, "Access denied for user 'mc_user'@'172.19.0.2' (using password: YES)")
multicraft_1  | 2021-11-21 11:40:11,894 ERROR    Database connection failed.
multicraft_1  | 2021-11-21 11:40:11,895 DEBUG    Connecting to MySQL server at db:3306

and I don't know how to solve it.

Maybe it is related to this error where the databases is created and mc_user is grated privileges?

db_1          | 2021-11-21 11:38:33+00:00 [Note] [Entrypoint]: /usr/local/bin/docker-entrypoint.sh: running /docker-entrypoint-initdb.d/mysqlinit.sql
db_1          | ERROR: Can't initialize batch_readline - may be the input source is a directory or a block device.

This is the complete log. Are you able to see whats wrong?

Status: Downloaded newer image for mysql:latest
Creating examples_multicraft_1 ... done
Creating examples_db_1         ... done
Attaching to examples_multicraft_1, examples_db_1
db_1          | 2021-11-21 11:38:12+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.27-1debian10 started.
multicraft_1  | [2021-11-21_12:38:12] - No multicraft daemon config file detected, creating new one from multicraft.conf.dist
multicraft_1  | [2021-11-21_12:38:12] - No Multicraft Panel config file found. Creating new one from config.php.dist
db_1          | 2021-11-21 11:38:12+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
db_1          | 2021-11-21 11:38:12+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.27-1debian10 started.
db_1          | 2021-11-21 11:38:12+00:00 [Note] [Entrypoint]: Initializing database files
db_1          | 2021-11-21T11:38:12.611640Z 0 [System] [MY-013169] [Server] /usr/sbin/mysqld (mysqld 8.0.27) initializing of server in progress as process 43
db_1          | 2021-11-21T11:38:12.634751Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
db_1          | 2021-11-21T11:38:14.943864Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
multicraft_1  | Multicraft 2.4.1 - Minecraft Server Manager Daemon
multicraft_1  | Loading configuration from /opt/multicraft/multicraft.conf
multicraft_1  | DOCKER: The daemon needs to run in multiuser mode for Docker support to work.
multicraft_1  | DOCKER: See the "multiuser" setting in the multicraft.conf
multicraft_1  | Starting daemon
multicraft_1  | Permissions set, exiting.
multicraft_1  | [2021-11-21_12:38:17] - No Apache config file found. Creating one from template.
multicraft_1  |  * Starting Apache httpd web server apache2
multicraft_1  | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.19.0.2. Set the 'ServerName' directive globally to suppress this message
db_1          | 2021-11-21T11:38:18.235655Z 0 [Warning] [MY-013746] [Server] A deprecated TLS version TLSv1 is enabled for channel mysql_main
db_1          | 2021-11-21T11:38:18.235683Z 0 [Warning] [MY-013746] [Server] A deprecated TLS version TLSv1.1 is enabled for channel mysql_main
db_1          | 2021-11-21T11:38:18.323862Z 6 [Warning] [MY-010453] [Server] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.
multicraft_1  |  * 
multicraft_1  | [2021-11-21_12:38:18] - Symlinked Data
multicraft_1  | [2021-11-21_12:38:18] - Symlinked Jar
multicraft_1  | [2021-11-21_12:38:18] - Symlinked Servers
multicraft_1  | [2021-11-21_12:38:18] - Symlinked Templates
db_1          | 2021-11-21 11:38:29+00:00 [Note] [Entrypoint]: Database files initialized
db_1          | 2021-11-21 11:38:29+00:00 [Note] [Entrypoint]: Starting temporary server
db_1          | 2021-11-21T11:38:29.525315Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.27) starting as process 92
db_1          | 2021-11-21T11:38:29.551478Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
db_1          | 2021-11-21T11:38:29.870811Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
db_1          | 2021-11-21T11:38:30.312892Z 0 [Warning] [MY-013746] [Server] A deprecated TLS version TLSv1 is enabled for channel mysql_main
db_1          | 2021-11-21T11:38:30.312956Z 0 [Warning] [MY-013746] [Server] A deprecated TLS version TLSv1.1 is enabled for channel mysql_main
db_1          | 2021-11-21T11:38:30.315849Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
db_1          | 2021-11-21T11:38:30.315972Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
db_1          | 2021-11-21T11:38:30.321869Z 0 [Warning] [MY-011810] [Server] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
db_1          | 2021-11-21T11:38:30.366665Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Socket: /var/run/mysqld/mysqlx.sock
db_1          | 2021-11-21T11:38:30.366709Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.27'  socket: '/var/run/mysqld/mysqld.sock'  port: 0  MySQL Community Server - GPL.
db_1          | 2021-11-21 11:38:30+00:00 [Note] [Entrypoint]: Temporary server started.
db_1          | Warning: Unable to load '/usr/share/zoneinfo/iso3166.tab' as time zone. Skipping it.
db_1          | Warning: Unable to load '/usr/share/zoneinfo/leap-seconds.list' as time zone. Skipping it.
db_1          | Warning: Unable to load '/usr/share/zoneinfo/zone.tab' as time zone. Skipping it.
db_1          | Warning: Unable to load '/usr/share/zoneinfo/zone1970.tab' as time zone. Skipping it.
db_1          | 
db_1          | 2021-11-21 11:38:33+00:00 [Note] [Entrypoint]: /usr/local/bin/docker-entrypoint.sh: running /docker-entrypoint-initdb.d/mysqlinit.sql
db_1          | ERROR: Can't initialize batch_readline - may be the input source is a directory or a block device.
db_1          | 2021-11-21 11:38:35+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
db_1          | 2021-11-21 11:38:35+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.27-1debian10 started.
db_1          | 2021-11-21T11:38:35.429504Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.27) starting as process 1
db_1          | 2021-11-21T11:38:35.446425Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
db_1          | 2021-11-21T11:38:39.750628Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
db_1          | 2021-11-21T11:38:40.013361Z 0 [System] [MY-010229] [Server] Starting XA crash recovery...
db_1          | 2021-11-21T11:38:40.026366Z 0 [System] [MY-010232] [Server] XA crash recovery finished.
db_1          | 2021-11-21T11:38:40.195072Z 0 [Warning] [MY-013746] [Server] A deprecated TLS version TLSv1 is enabled for channel mysql_main
db_1          | 2021-11-21T11:38:40.195141Z 0 [Warning] [MY-013746] [Server] A deprecated TLS version TLSv1.1 is enabled for channel mysql_main
db_1          | 2021-11-21T11:38:40.197314Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
db_1          | 2021-11-21T11:38:40.197421Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
db_1          | 2021-11-21T11:38:40.204693Z 0 [Warning] [MY-011810] [Server] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
db_1          | 2021-11-21T11:38:40.251788Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock
db_1          | 2021-11-21T11:38:40.251923Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.27'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  MySQL Community Server - GPL.
multicraft_1  | [2021-11-21_12:38:47] - Symlinked HTML
multicraft_1  | [2021-11-21_12:38:47] - Symlinked Key
multicraft_1  | 2021-11-21 11:38:59,950 INFO     Install of downloaded file requested
multicraft_1  | 2021-11-21 11:39:00,015 INFO     File installed, status: done, message: 
multicraft_1  | 2021-11-21 11:39:00,016 INFO     Updating: minecraft_optimized.jar.conf
multicraft_1  | 2021-11-21 11:39:00,016 INFO     Starting download from http://www.multicraft.org/download/conf/?file=minecraft_optimized.jar.conf&version=2.4.1&os=posix&arch=64&machine=x86_64
multicraft_1  | 2021-11-21 11:39:00,220 INFO     Download finished.
multicraft_1  | 2021-11-21 11:39:00,220 INFO     Checked file, status: ready
multicraft_1  | 2021-11-21 11:39:00,220 INFO     Install of downloaded file requested
multicraft_1  | 2021-11-21 11:39:00,222 INFO     File installed, status: done, message: 
multicraft_1  | 2021-11-21 11:39:00,227 INFO     Updating: minecraft_optimized.jar
multicraft_1  | 2021-11-21 11:39:00,228 INFO     Starting download from http://www.multicraft.org/download/jar/?file=minecraft&version=latest&client=multicraft
multicraft_1  | 2021-11-21 11:39:06,697 INFO     Download finished.
multicraft_1  | 2021-11-21 11:39:06,697 INFO     Checked file, status: ready
multicraft_1  | 2021-11-21 11:39:06,698 INFO     Install of downloaded file requested
multicraft_1  | 2021-11-21 11:39:06,767 INFO     File installed, status: done, message: 
multicraft_1  | 2021-11-21 11:39:06,767 INFO     Updating: minecraft_server.jar.conf
multicraft_1  | 2021-11-21 11:39:06,767 INFO     Starting download from http://www.multicraft.org/download/conf/?file=minecraft_server.jar.conf&version=2.4.1&os=posix&arch=64&machine=x86_64
multicraft_1  | 2021-11-21 11:39:07,127 INFO     Download finished.
multicraft_1  | 2021-11-21 11:39:07,128 INFO     Checked file, status: ready
multicraft_1  | 2021-11-21 11:39:07,129 INFO     Install of downloaded file requested
multicraft_1  | 2021-11-21 11:39:07,130 INFO     File installed, status: done, message: 
multicraft_1  | 2021-11-21 11:39:07,137 INFO     Updating: minecraft_server.jar
multicraft_1  | 2021-11-21 11:39:07,137 INFO     Starting download from http://www.multicraft.org/download/jar/?file=minecraft&version=latest&client=multicraft
multicraft_1  | 2021-11-21 11:39:11,864 DEBUG    Connecting to MySQL server at db:3306
multicraft_1  | 2021-11-21 11:39:11,871 ERROR    Failed to connect to MySQL: (1045, "Access denied for user 'mc_user'@'172.19.0.2' (using password: YES)")
multicraft_1  | 2021-11-21 11:39:11,871 ERROR    Database connection failed.
multicraft_1  | 2021-11-21 11:39:11,872 DEBUG    Connecting to MySQL server at db:3306
multicraft_1  | 2021-11-21 11:39:11,872 WARNING  Setting daemon info failed, please update your database.
multicraft_1  | 2021-11-21 11:39:11,876 ERROR    Failed to connect to MySQL: (1045, "Access denied for user 'mc_user'@'172.19.0.2' (using password: YES)")
multicraft_1  | 2021-11-21 11:39:11,876 ERROR    Database connection failed.
multicraft_1  | 2021-11-21 11:39:11,876 DEBUG    Connecting to MySQL server at db:3306
multicraft_1  | 2021-11-21 11:39:11,880 ERROR    Failed to connect to MySQL: (1045, "Access denied for user 'mc_user'@'172.19.0.2' (using password: YES)")
multicraft_1  | 2021-11-21 11:39:11,880 ERROR    Database connection failed.
multicraft_1  | 2021-11-21 11:39:14,185 INFO     Download finished.
multicraft_1  | 2021-11-21 11:39:14,185 INFO     Checked file, status: ready
multicraft_1  | 2021-11-21 11:39:14,186 INFO     Install of downloaded file requested
multicraft_1  | 2021-11-21 11:39:14,253 INFO     File installed, status: done, message: 
multicraft_1  | 2021-11-21 11:39:14,254 INFO     Updating: spigot.jar.conf
multicraft_1  | 2021-11-21 11:39:14,254 INFO     Starting download from http://www.multicraft.org/download/conf/?file=spigot.jar.conf&version=2.4.1&os=posix&arch=64&machine=x86_64
multicraft_1  | 2021-11-21 11:39:14,633 INFO     Download finished.
multicraft_1  | 2021-11-21 11:39:14,634 INFO     Checked file, status: uptodate
multicraft_1  | 2021-11-21 11:39:14,635 INFO     File has not changed, no update necessary
multicraft_1  | 2021-11-21 11:39:14,635 INFO     Install of downloaded file requested
multicraft_1  | 2021-11-21 11:39:14,640 INFO     Updating: spigot.jar
multicraft_1  | 2021-11-21 11:39:14,640 INFO     Starting download from http://www.multicraft.org/download/jar/?file=spigot&version=latest&client=multicraft
multicraft_1  | 2021-11-21 11:39:21,177 INFO     Download finished.
multicraft_1  | 2021-11-21 11:39:21,177 INFO     Checked file, status: ready
multicraft_1  | 2021-11-21 11:39:21,178 INFO     Install of downloaded file requested
multicraft_1  | 2021-11-21 11:39:21,248 INFO     File installed, status: done, message: 
multicraft_1  | 2021-11-21 11:39:31,866 DEBUG    Connecting to MySQL server at db:3306
multicraft_1  | 2021-11-21 11:39:31,874 ERROR    Failed to connect to MySQL: (1045, "Access denied for user 'mc_user'@'172.19.0.2' (using password: YES)")
multicraft_1  | 2021-11-21 11:39:31,874 ERROR    Database connection failed.
multicraft_1  | 2021-11-21 11:39:31,874 DEBUG    Connecting to MySQL server at db:3306
multicraft_1  | 2021-11-21 11:39:31,875 WARNING  Setting daemon info failed, please update your database.
multicraft_1  | 2021-11-21 11:39:31,882 ERROR    Failed to connect to MySQL: (1045, "Access denied for user 'mc_user'@'172.19.0.2' (using password: YES)")
multicraft_1  | 2021-11-21 11:39:31,882 ERROR    Database connection failed.
multicraft_1  | 2021-11-21 11:39:31,882 DEBUG    Connecting to MySQL server at db:3306
multicraft_1  | 2021-11-21 11:39:31,889 ERROR    Failed to connect to MySQL: (1045, "Access denied for user 'mc_user'@'172.19.0.2' (using password: YES)")
multicraft_1  | 2021-11-21 11:39:31,890 ERROR    Database connection failed.

Increase net2ftp upload sizes

I am trying to increase the size of files able to be uploaded via the built in ftp, but I cannot seem to find where this would be changed?

Failed to adapt server configuration

I am testing this build, but I am having a problem.

First time I run my docker-compose file everything works. I can create my first Minecraft server and play on it. But each time i stop the server and stop the containers and the restart the system I get this error

Failed to adapt server configuration

and the server cant start ???

I can see that It is something with the file permissions in servers/server1 and I guess I have made something wrong in my docker-compose.yml file

 services:
   multicraft:
     build: 
       context: ./
       args:
         - USERID=99
         - GROUPID=100
         - USERNAME=christian

I dont understand how to use these three variables ?

Current install.sh enables too much

The current entrypoint.sh makes no difference whether FTP or e.g. Docker should be enabled.
All lines with "enable = ..." are set to true.

Can't use forge versions

Could you explain how to use forge servers on this, I don't think I am doing it right and I can't find a reliable guide, I am seeing people be able to put .sh scripts in the jar file textbox but it does not work for me, sorry I am new to this so I am just trying to figure things out.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.