Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multicraft.xml does not work #6

Open
Abuda1 opened this issue Jan 30, 2022 · 6 comments
Open

multicraft.xml does not work #6

Abuda1 opened this issue Jan 30, 2022 · 6 comments

Comments

@Abuda1
Copy link

Abuda1 commented Jan 30, 2022

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

@Abuda1
Copy link
Author

Abuda1 commented Jan 30, 2022

I fixed the "TemplateURLS" end tag by adding a "/" and it appears to be fixed. I will try setting it up now.

@Abuda1
Copy link
Author

Abuda1 commented Jan 30, 2022

I am facing another problem. What do I put in these fields (They are required fields)?
image

UPDATE:

I simply put the default values of the fields (which were not automatically inputted, I read the XML) and am trying to continue with the installation.

UPDATE 2:

That did not work, there is a problem I cannot solve when trying to fill in the "Host Port" 1 through 6

@Abuda1
Copy link
Author

Abuda1 commented Jan 30, 2022

UPDATE: The ports problem has been solved (by removing those "Host Port" fields. The Multicraft login page shows up but now there is a new problem, please take look at the log:

[2022-01-29_21:32:35] - Multicraft daemon config file already exist! Installing config file.
[2022-01-29_21:32:36] - Symlinked HTML
[2022-01-29_21:32:36] - No Apache config file found. Creating one from template.
* Starting Apache httpd web server apache2
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.50.123. Set the 'ServerName' directive globally to suppress this message
*
Multicraft 2.4.1 - Minecraft Server Manager Daemon
Loading configuration from /opt/multicraft/multicraft.conf
Starting daemon
Permissions set, exiting.
[2022-01-29_21:32:40] - Symlinked Data
[2022-01-29_21:32:40] - Symlinked Jar
[2022-01-29_21:32:40] - Symlinked Scripts
[2022-01-29_21:32:40] - Symlinked Servers
[2022-01-29_21:32:40] - Symlinked Templates
[2022-01-29_21:32:40] - Set user and permissions to /opt/multicraft
chown: cannot access ' ': No such file or directory
[2022-01-29_21:32:40] - Set user and permissions to /multicraft
chown: cannot access '/multicraft/jar /multicraft/data /multicraft/templates /multicraft/configs /multicraft/html /multicraft/scripts /multicraft/servers': No such file or directory
2022-01-30 05:32:41,951 DEBUG Connecting to MySQL server at db:3306
2022-01-30 05:32:41,952 ERROR Failed to connect to MySQL: (2003, "Can't connect to MySQL server on 'db' ([Errno -2] Name or service not known)")

2022-01-30 05:32:41,952 ERROR Database connection failed.

2022-01-30 05:32:41,952 DEBUG Connecting to MySQL server at db:3306
2022-01-30 05:32:41,954 ERROR Failed to connect to MySQL: (2003, "Can't connect to MySQL server on 'db' ([Errno -2] Name or service not known)")

2022-01-30 05:32:41,954 ERROR Database connection failed.

2022-01-30 05:32:41,954 DEBUG Connecting to MySQL server at db:3306
2022-01-30 05:32:41,956 ERROR Failed to connect to MySQL: (2003, "Can't connect to MySQL server on 'db' ([Errno -2] Name or service not known)")

2022-01-30 05:32:41,956 ERROR Database connection failed.

2022-01-30 05:32:42,238 INFO Completed version check, remote version: 2.4.1

2022-01-30 05:32:46,950 DEBUG Connecting to MySQL server at db:3306
2022-01-30 05:32:46,953 ERROR Failed to connect to MySQL: (2003, "Can't connect to MySQL server on 'db' ([Errno -2] Name or service not known)")

2022-01-30 05:32:46,953 ERROR Database connection failed.

@MarioWi
Copy link
Owner

MarioWi commented Feb 17, 2022

First of all thanks for the hint with the broken TemplateURL. I hadn't noticed that in my last tests. Probably because the template was still in the cache from unraid.

Ports 1 and 2 are mandatory, the others are not. It depends on how many servers are to be operated and whether other topics such as Dynmap and Geyser are to run there. The default values ​​serve as an example and are those exposed by the container.

I'm about to write a more detailed How To in the wiki. Unfortunately I haven't been able to do much in the past few weeks.
I will revise the template again in the near future. In this process I will also be moving it from this one to a separate repo for templates.

@MarioWi
Copy link
Owner

MarioWi commented Feb 17, 2022

The excerpt from the logs indicates that the container cannot connect to the database.
Is an external database used? Possibly in another container? Then this must still be specified.
When using an external mySQL database, the DB Engine must set to mysql and following settings must be specified:
grafik

If no external mySQL database is used, "sqlite" must be specified as the DB engine. This is the default option and should already be set.

@Abuda1
Copy link
Author

Abuda1 commented Jul 16, 2022

@MarioWi Can you please permanently delete this Github Issue, not "close," permanently delete.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants