panel icon indicating copy to clipboard operation
panel copied to clipboard

endless server crash

Open crombiecrunch opened this issue 9 years ago • 5 comments

trying a test server and I am getting endless server crash on creation, this is on a ms azure vps, Im thinking it might be a permissions issue??

Linux mc-portal 4.8.0-30-generic #32-Ubuntu SMP Fri Dec 2 03:43:27 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux PHP 7.0.13-0ubuntu0.16.10.1 (cli) ( NTS ) Copyright (c) 1997-2016 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies with Zend OPcache v7.0.13-0ubuntu0.16.10.1, Copyright (c) 1999-2016, by Zend Technologies

(Daemon) Server container started.
(Daemon) Attached to server container.
Building Spigot... This could take awhile.
Picked up _JAVA_OPTIONS: -Duser.home=/home/container/.tmp-build
Loading BuildTools version: git-BuildTools-8aa3a22-59 (#59)
BuildTools
[email protected]
Attempting to build version: 'latest' use --rev <version> to override
Found version
    "name": "1179",
    "description": "Jenkins build 1179",
    "refs": {
        "BuildData": "8df2731012bb6887630ce7ebd4c7220eabe49a07",
        "Bukkit": "2eb7b9fd887cb2b2257ca9f09435c0ab72a393f8",
        "CraftBukkit": "cb61ac0404a52ba8c3f6ab8d92304aeeb6250846",
        "Spigot": "d4f98a3918e69673b2c0486b5651c5fe912b3c8d"
    },
    "toolsVersion": 47
Pulling updates for /home/container/.tmp-build/BuildData/.git
Successfully fetched updates!
Checked out: 8df2731012bb6887630ce7ebd4c7220eabe49a07
Pulling updates for /home/container/.tmp-build/Bukkit/.git
Successfully fetched updates!
Checked out: 2eb7b9fd887cb2b2257ca9f09435c0ab72a393f8
Pulling updates for /home/container/.tmp-build/CraftBukkit/.git
Successfully fetched updates!
Checked out: cb61ac0404a52ba8c3f6ab8d92304aeeb6250846
Pulling updates for /home/container/.tmp-build/Spigot/.git
Successfully fetched updates!
Checked out: d4f98a3918e69673b2c0486b5651c5fe912b3c8d
Attempting to build Minecraft with details: VersionInfo(minecraftVersion=1.11.2, accessTransfor
ms=bukkit-1.11.2.at, classMappings=bukkit-1.11.2-cl.csrg, memberMappings=bukkit-1.11.2-members.
csrg, packageMappings=package.srg, minecraftHash=e576e5eb43cd176158917585200cb37d, decompileCom
mand=java -jar BuildData/bin/fernflower.jar -dgs=1 -hdc=0 -asc=1 -udv=0 {0} {1}, serverUrl=http
s://launcher.mojang.com/mc/game/1.11.2/server/f00c294a1576e03fddcac777c3cf4c7d404c4ba4/server.j
ar)
Found good Minecraft hash (e576e5eb43cd176158917585200cb37d)
Found good Minecraft hash (e576e5eb43cd176158917585200cb37d)
Picked up _JAVA_OPTIONS: -Duser.home=/home/container/.tmp-build
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-install-plugin:2.4:install-file (default-cli) @ standalone-pom ---
[INFO] Installing /home/container/.tmp-build/work/mapped.22de4839.jar to /home/container/.tmp-b
uild/.m2/repository/org/spigotmc/minecraft-server/1.11.2-SNAPSHOT/minecraft-server-1.11.2-SNAPS
HOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.460 s
[INFO] Finished at: 2017-02-22T01:56:07+00:00
[INFO] Final Memory: 9M/266M
[INFO] ------------------------------------------------------------------------
Applying CraftBukkit Patches
Backing up NMS dir
Patching with ItemReed.patch
Exception in thread "main" java.io.FileNotFoundException: work/decompile-22de4839/net/minecraft
/server/ItemReed.java (No such file or directory)
    at java.io.FileInputStream.open0(Native Method)
    at java.io.FileInputStream.open(FileInputStream.java:195)
    at java.io.FileInputStream.<init>(FileInputStream.java:138)
    at com.google.common.io.Files$FileByteSource.openStream(Files.java:126)
    at com.google.common.io.Files$FileByteSource.openStream(Files.java:116)
    at com.google.common.io.ByteSource$AsCharSource.openStream(ByteSource.java:448)
    at com.google.common.io.CharSource.readLines(CharSource.java:290)
    at com.google.common.io.Files.readLines(Files.java:574)
    at com.google.common.io.Files.readLines(Files.java:545)
    at org.spigotmc.builder.Builder.main(Builder.java:390)
cp: can't stat '/home/container/.tmp-build/spigot-*.jar': No such file or directory
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)
$ java -Xms128M -Xmx1095M -jar server.jar
Error: Unable to access jarfile server.jar
(Daemon) Server detected as stopped.
(Daemon) Server detected as crashed! Attempting to reboot server now.
(Daemon) Server detected as booting.
(Daemon) Server container started.
(Daemon) Attached to server container.
Building Spigot... This could take awhile.
Picked up _JAVA_OPTIONS: -Duser.home=/home/container/.tmp-build
Loading BuildTools version: git-BuildTools-8aa3a22-59 (#59)
BuildTools
[email protected]
Attempting to build version: 'latest' use --rev <version> to override
Found version
    "name": "1179",
    "description": "Jenkins build 1179",
    "refs": {
        "BuildData": "8df2731012bb6887630ce7ebd4c7220eabe49a07",
        "Bukkit": "2eb7b9fd887cb2b2257ca9f09435c0ab72a393f8",
        "CraftBukkit": "cb61ac0404a52ba8c3f6ab8d92304aeeb6250846",
        "Spigot": "d4f98a3918e69673b2c0486b5651c5fe912b3c8d"
    },
    "toolsVersion": 47
Pulling updates for /home/container/.tmp-build/BuildData/.git
Successfully fetched updates!
Checked out: 8df2731012bb6887630ce7ebd4c7220eabe49a07
Pulling updates for /home/container/.tmp-build/Bukkit/.git
Successfully fetched updates!
Checked out: 2eb7b9fd887cb2b2257ca9f09435c0ab72a393f8
Pulling updates for /home/container/.tmp-build/CraftBukkit/.git
Successfully fetched updates!
Checked out: cb61ac0404a52ba8c3f6ab8d92304aeeb6250846
Pulling updates for /home/container/.tmp-build/Spigot/.git
Successfully fetched updates!
Checked out: d4f98a3918e69673b2c0486b5651c5fe912b3c8d
Attempting to build Minecraft with details: VersionInfo(minecraftVersion=1.11.2, accessTransfor
ms=bukkit-1.11.2.at, classMappings=bukkit-1.11.2-cl.csrg, memberMappings=bukkit-1.11.2-members.
csrg, packageMappings=package.srg, minecraftHash=e576e5eb43cd176158917585200cb37d, decompileCom
mand=java -jar BuildData/bin/fernflower.jar -dgs=1 -hdc=0 -asc=1 -udv=0 {0} {1}, serverUrl=http
s://launcher.mojang.com/mc/game/1.11.2/server/f00c294a1576e03fddcac777c3cf4c7d404c4ba4/server.j
ar)
Found good Minecraft hash (e576e5eb43cd176158917585200cb37d)
Found good Minecraft hash (e576e5eb43cd176158917585200cb37d)
Picked up _JAVA_OPTIONS: -Duser.home=/home/container/.tmp-build
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-install-plugin:2.4:install-file (default-cli) @ standalone-pom ---
[INFO] Installing /home/container/.tmp-build/work/mapped.22de4839.jar to /home/container/.tmp-b
uild/.m2/repository/org/spigotmc/minecraft-server/1.11.2-SNAPSHOT/minecraft-server-1.11.2-SNAPS
HOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.493 s
[INFO] Finished at: 2017-02-22T01:56:16+00:00
[INFO] Final Memory: 9M/266M
[INFO] ------------------------------------------------------------------------
Applying CraftBukkit Patches
Backing up NMS dir
Patching with ItemReed.patch
Exception in thread "main" java.io.FileNotFoundException: work/decompile-22de4839/net/minecraft
/server/ItemReed.java (No such file or directory)
    at java.io.FileInputStream.open0(Native Method)
    at java.io.FileInputStream.open(FileInputStream.java:195)
    at java.io.FileInputStream.<init>(FileInputStream.java:138)
    at com.google.common.io.Files$FileByteSource.openStream(Files.java:126)
    at com.google.common.io.Files$FileByteSource.openStream(Files.java:116)
    at com.google.common.io.ByteSource$AsCharSource.openStream(ByteSource.java:448)
    at com.google.common.io.CharSource.readLines(CharSource.java:290)
    at com.google.common.io.Files.readLines(Files.java:574)
    at com.google.common.io.Files.readLines(Files.java:545)
    at org.spigotmc.builder.Builder.main(Builder.java:390)
cp: can't stat '/home/container/.tmp-build/spigot-*.jar': No such file or directory
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)
$ java -Xms128M -Xmx1095M -jar server.jar
Error: Unable to access jarfile server.jar
(Daemon) Server detected as stopped.
(Daemon) Server detected as crashed! Unable to reboot due to crash within last 60 seconds.```

crombiecrunch avatar Feb 22 '17 02:02 crombiecrunch

A known issue and I believe there is a fix in the works.

parkervcp avatar Feb 22 '17 03:02 parkervcp

This is not a permissions issue Open the file explorer and delete the .tmp-build folder, once that has finished try to restart, if that doesn't work, please provide the output.

How much memory does your machine actually have? Using BuildTools can require upto ~2GB of free ram, my biggest guess would be that the original attempt to run BuildTools failed for some reason, and each time you tried to run it afterwards it saw a certain file in there that lead to to believe it was in a "sane state" however the original crash left it in some weird position

electronicboy avatar Feb 22 '17 07:02 electronicboy

crombiecrunch avatar Feb 22 '17 12:02 crombiecrunch

In the future could you please try to format that properly, could you please try to up the memory limit to 2G and attempt to build it?

electronicboy avatar Feb 22 '17 12:02 electronicboy

sorry yes, LOL still waking up. Issue resolved. I increased to 2GB on the container gave 1GB of swap builds just fine. Ill be toying around with this today. thank you

crombiecrunch avatar Feb 22 '17 12:02 crombiecrunch