Jump to content

Gr8Lightning

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by Gr8Lightning

  1. On 11/12/2022 at 7:13 PM, Goobaroo said:

    @Gr8Lightning & @DarthLlama I found that the forge installer is left behind and getting sucked into your startup command.   I can make sure installers get cleaned up, but if you manually delete the forge-*-installer.jar files in your install directories, everything will work.

     

    java -server -XX:+UseG1GC -XX:+UnlockExperimentalVMOptions -Dfml.queryResult=confirm -Dlog4j.configurationFile=log4j2_112-116.xml -Xms6144m -Xmx9182m -jar forge-1.16.5-36.2.33-installer.jar forge-1.16.5-36.2.33.jar nogui

     

    It works perfectly. Thank you very much for the containers and the great support. 😄👍  @Goobaroo

    • Like 1
  2. On 7/24/2022 at 4:33 AM, DarthLlama said:

      

    Hey again @Goobaroo, I updated the OceanBlock Docker as it said it had an update. I'm assuming to take care of the user permissions you mentioned. I did the command (customized for the ftboceanblock folder) and I still get the below error in my logs when turning the docker on, then it shuts off. Any suggestions?

    + ID=91
    + VER=2230
    + cd /data
    + [[ true = \f\a\l\s\e ]]
    + echo eula=true
    + [[ -f serverinstall_91_2230 ]]
    + [[ -n FTB OceanBlock v1.14.0 Server Powered by Docker ]]
    + sed -i '/motd\s*=/ c motd=FTB OceanBlock v1.14.0 Server Powered by Docker' /data/server.properties
    + [[ -n world ]]
    + sed -i '/level-name\s*=/ c level-name=world' /data/server.properties
    + [[ -n Kalaup,aRand0mB0t ]]
    + echo Kalaup,aRand0mB0t
    + awk -v RS=, '{print}'
    + [[ -n '' ]]
    + sed -i 's/server-port.*/server-port=25565/g' server.properties
    + [[ -f run.sh ]]
    + [[ -f start.sh ]]
    + [[ -f run.sh ]]
    + [[ -f start.sh ]]
    ++ ls forge-1.16.5-36.2.33-installer.jar forge-1.16.5-36.2.33.jar
    + FORGE_JAR='forge-1.16.5-36.2.33-installer.jar
    forge-1.16.5-36.2.33.jar'
    + curl -Lo log4j2_112-116.xml https://launcher.mojang.com/v1/objects/02937d122c86ce73319ef9975b58896fc1b491d1/log4j2_112-116.xml
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100  1131  100  1131    0     0  13962      0 --:--:-- --:--:-- --:--:-- 13962
    + java -server -XX:+UseG1GC -XX:+UnlockExperimentalVMOptions -Dfml.queryResult=confirm -Dlog4j.configurationFile=log4j2_112-116.xml -Xms6144m -Xmx9182m -jar forge-1.16.5-36.2.33-installer.jar forge-1.16.5-36.2.33.jar nogui
    + ID=91
    + VER=2230
    + cd /data
    + [[ true = \f\a\l\s\e ]]
    + echo eula=true
    + [[ -f serverinstall_91_2230 ]]
    + [[ -n FTB OceanBlock v1.14.0 Server Powered by Docker ]]
    + sed -i '/motd\s*=/ c motd=FTB OceanBlock v1.14.0 Server Powered by Docker' /data/server.properties
    + [[ -n world ]]
    + sed -i '/level-name\s*=/ c level-name=world' /data/server.properties
    + [[ -n Kalaup,aRand0mB0t ]]
    + echo Kalaup,aRand0mB0t
    + awk -v RS=, '{print}'
    + [[ -n '' ]]
    + sed -i 's/server-port.*/server-port=25565/g' server.properties
    + [[ -f run.sh ]]
    + [[ -f start.sh ]]
    + [[ -f run.sh ]]
    + [[ -f start.sh ]]
    ++ ls forge-1.16.5-36.2.33-installer.jar forge-1.16.5-36.2.33.jar
    + FORGE_JAR='forge-1.16.5-36.2.33-installer.jar
    forge-1.16.5-36.2.33.jar'
    + curl -Lo log4j2_112-116.xml https://launcher.mojang.com/v1/objects/02937d122c86ce73319ef9975b58896fc1b491d1/log4j2_112-116.xml
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100  1131  100  1131    0     0  14500      0 --:--:-- --:--:-- --:--:-- 14500
    + java -server -XX:+UseG1GC -XX:+UnlockExperimentalVMOptions -Dfml.queryResult=confirm -Dlog4j.configurationFile=log4j2_112-116.xml -Xms6144m -Xmx9182m -jar forge-1.16.5-36.2.33-installer.jar forge-1.16.5-36.2.33.jar nogui
    JVM info: Oracle Corporation - 1.8.0_312 - 25.312-b07
    java.net.preferIPv4Stack=true
    Found java version 1.8.0_312
    Exception in thread "main" 
    java.awt.HeadlessException: 
    No X11 DISPLAY variable was set, but this program performed an operation which requires it.
            at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:204)
            at java.awt.Window.<init>(Window.java:536)
            at java.awt.Frame.<init>(Frame.java:420)
            at java.awt.Frame.<init>(Frame.java:385)
            at javax.swing.SwingUtilities$SharedOwnerFrame.<init>(SwingUtilities.java:1763)
            at javax.swing.SwingUtilities.getSharedOwnerFrame(SwingUtilities.java:1838)
            at javax.swing.JOptionPane.getRootFrame(JOptionPane.java:1696)
            at javax.swing.JOptionPane.showOptionDialog(JOptionPane.java:863)
            at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:666)
            at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:637)
            at net.minecraftforge.installer.SimpleInstaller.launchGui(SimpleInstaller.java:177)
            at net.minecraftforge.installer.SimpleInstaller.main(SimpleInstaller.java:147)
    JVM info: Oracle Corporation - 1.8.0_312 - 25.312-b07
    java.net.preferIPv4Stack=true
    Found java version 1.8.0_312
    Exception in thread "main" 
    java.awt.HeadlessException: 
    No X11 DISPLAY variable was set, but this program performed an operation which requires it.
            at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:204)
            at java.awt.Window.<init>(Window.java:536)
            at java.awt.Frame.<init>(Frame.java:420)
            at java.awt.Frame.<init>(Frame.java:385)
            at javax.swing.SwingUtilities$SharedOwnerFrame.<init>(SwingUtilities.java:1763)
            at javax.swing.SwingUtilities.getSharedOwnerFrame(SwingUtilities.java:1838)
            at javax.swing.JOptionPane.getRootFrame(JOptionPane.java:1696)
            at javax.swing.JOptionPane.showOptionDialog(JOptionPane.java:863)
            at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:666)
            at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:637)
            at net.minecraftforge.installer.SimpleInstaller.launchGui(SimpleInstaller.java:177)
            at net.minecraftforge.installer.SimpleInstaller.main(SimpleInstaller.java:147)

     

     

    I found a workaround for the "no X11 Display error" that seems to work for me on the FTBOceanBlock Container I just set an environment variable with the name DISPLAY and add the value :0.0 

     

    After this i got the following error: 

     

    §7java.lang.UnsatisfiedLinkError: /usr/local/openjdk-8/lib/amd64/libawt_xawt.so: libXrender.so.1: cannot open shared object file: No such file or directory

     

    I fixed this by manually installing these packages in the container. libxrender1 libxtst6 libxi6

    docker exec "container" apt install libxrender1 libxtst6 libxi6 -y

     

    After that everything worked perfectly. I hope this helps.

     

    variable.png

×
×
  • Create New...