Closed lsps9150414 closed 2 years ago
Hmm, I wasn't able to re-create the problem so my only guess so far is that a previous copy of the start script was present with non-execute bit set or similar. Here's what I did to attempt recreating this:
root> useradd -u 5000 -U -m user5000
root> usermod -a -G docker user5000
root> sudo -i -u user5000
user5000> docker run -d -e EULA=TRUE \
-v /home/user5000/data:/data -e UID=5000 -e GID=5000 \
-e TYPE=FTB -e FTB_SERVER_MOD=https://www.feed-the-beast.com/projects/ftb-revelation/files/2519465 \
-p 25566:25565 \
--name mc-ftb \
itzg/minecraft-server
Let's compare the info on your /home/philipchen/minecraft-docker/mc-ftb-data/FeedTheBeast/ServerStart.sh
. Here is what I have:
ls -l /home/user5000/data/FeedTheBeast/ServerStart.sh
-rwxr-xr-x 1 user5000 user5000 1739 Feb 3 10:16 /home/user5000/data/FeedTheBeast/ServerStart.sh
I also got some errors by running the FTB server on my Debian-95-stretch-64-minimal
server:
Command:
docker run -d -v /home/mc:/data -e TYPE=FTB -e FTB_SERVER_MOD=modpack.zip -p 25565:25565 -e EULA=TRUE --name mc itzg/minecraft-server
Log:
Running as uid=1000 gid=1000 with /data as 'drwxrwxrwx 2 0 0 4096 Aug 13 00:53 /data'
Checking version information.
Checking type information.
Looking for Feed-The-Beast server modpack.
Unpacking FTB server modpack /data/modpack.zip ...
............................................................................................................................................................................................................................................................................................................................................................................................
BusyBox v1.28.4 (2018-05-30 10:45:57 UTC) multi-call binary.
Usage: dirname FILENAME
Strip non-directory suffix from FILENAME
chmod: /./ServerStart.sh: No such file or directory
sed: /./ServerStart.sh: No such file or directory
sed: /./ServerStart.sh: No such file or directory
Creating server.properties in /data/server.properties
detected FTB, changing properties path to /server.properties
cp: can't create '/server.properties': Permission denied
Setting server-port to '25565' in /server.properties
sed: /server.properties: No such file or directory
Setting motd to 'A Ftb Minecraft Server powered by Docker' in /server.properties
sed: /server.properties: No such file or directory
Skip setting allow-nether
Skip setting announce-player-achievements
Skip setting enable-command-block
Skip setting spawn-animals
Skip setting spawn-monsters
Skip setting spawn-npcs
Skip setting generate-structures
Skip setting view-distance
Skip setting hardcore
Skip setting snooper-enabled
Skip setting max-build-height
Skip setting force-gamemode
Skip setting max-tick-time
Skip setting enable-query
Skip setting query.port
Setting enable-rcon to 'true' in /server.properties
sed: /server.properties: No such file or directory
Setting rcon.password to 'minecraft' in /server.properties
sed: /server.properties: No such file or directory
Setting rcon.port to '25575' in /server.properties
sed: /server.properties: No such file or directory
Skip setting max-players
Skip setting max-world-size
Setting level-name to 'world' in /server.properties
sed: /server.properties: No such file or directory
Skip setting level-seed
Setting pvp to 'true' in /server.properties
sed: /server.properties: No such file or directory
Skip setting generator-settings
Setting online-mode to 'true' in /server.properties
sed: /server.properties: No such file or directory
Skip setting allow-flight
Setting level type to DEFAULT
Setting level-type to 'DEFAULT' in /server.properties
sed: /server.properties: No such file or directory
Setting difficulty to '1' in /server.properties
sed: /server.properties: No such file or directory
Skipping JSON check. No files present.
Setting initial memory to 1G and max to 1G
cp: can't create '/eula.txt': Permission denied
/start-minecraftFinalSetup: line 89: /settings-local.sh: Permission denied
Running FTB ./ServerStart.sh in ...
bash: ./ServerStart.sh: No such file or directory
2018/08/13 00:53:01 Done
Running as uid=1000 gid=1000 with /data as 'drwxrwxrwx 5 0 0 4096 Aug 13 00:53 /data'
Checking version information.
Checking type information.
Looking for Feed-The-Beast server modpack.
Unpacking FTB server modpack /data/modpack.zip ...
............................................................................................................................................................................................................................................................................................................................................................................................
BusyBox v1.28.4 (2018-05-30 10:45:57 UTC) multi-call binary.
Usage: dirname FILENAME
Strip non-directory suffix from FILENAME
chmod: /./ServerStart.sh: No such file or directory
sed: /./ServerStart.sh: No such file or directory
sed: /./ServerStart.sh: No such file or directory
server.properties already created, skipping
Skipping JSON check. No files present.
Setting initial memory to 1G and max to 1G
cp: can't create '/eula.txt': Permission denied
/start-minecraftFinalSetup: line 89: /settings-local.sh: Permission denied
Running FTB ./ServerStart.sh in ...
bash: ./ServerStart.sh: No such file or directory
2018/08/13 00:53:09 Done
The whole folder has chmod a+rwx
Can you double check that you downloaded the server mod pack and not the default client download? Regardless, it looks like I need some better error handling there.
Problem solved I downloaded the client. 🤦🏼♂️ Sorry for wasting your time and keep up this awesome project 😊
No problem at all. When I get a chance, I'll add some error checking there that suggests the server modpack as a fix.
I added a warning if the user isn't using the server version of the modpack to your FTB script 😀
@JanikBot that would be great if you could PR that.
Hmm, I wasn't able to re-create the problem so my only guess so far is that a previous copy of the start script was present with non-execute bit set or similar. Here's what I did to attempt recreating this:
root> useradd -u 5000 -U -m user5000 root> usermod -a -G docker user5000 root> sudo -i -u user5000 user5000> docker run -d -e EULA=TRUE \ -v /home/user5000/data:/data -e UID=5000 -e GID=5000 \ -e TYPE=FTB -e FTB_SERVER_MOD=https://www.feed-the-beast.com/projects/ftb-revelation/files/2519465 \ -p 25566:25565 \ --name mc-ftb \ itzg/minecraft-server
Let's compare the info on your
/home/philipchen/minecraft-docker/mc-ftb-data/FeedTheBeast/ServerStart.sh
. Here is what I have:ls -l /home/user5000/data/FeedTheBeast/ServerStart.sh -rwxr-xr-x 1 user5000 user5000 1739 Feb 3 10:16 /home/user5000/data/FeedTheBeast/ServerStart.sh
I had the same problem as JanikBot. I started a Minecraft RLCraft Server, but i messed up with the permissions of the docker and the files. The Mods in den data directory had other permissions as my docker. I created the user5000 as a test and now it works fine :) I set up a new docker as user5000 and copied with the same user the mods.
This issue is stale because it has been open 30 days with no activity. Please add a comment describing the reason to keep this issue open.
My UID & GID
My docker script:
Result from
docker logs mc-ftb
:I've manually downloaded the
FTBserver-1.12.2-14.23.1.2601.jar
file and placed it inside/home/philipchen/minecraft-docker/mc-ftb-data
before running thedocker run
script above.What am I doing wrong here?
P.S. a vanilla minecraft server and forge server runs successfully.