Is that possible to run the environment via 'ssh' with a headless server?

#1

Hi,
same as Fail to make environment : Minecraft Process finished unexpectedly

I failed to make the environment with ‘xvfb-run’, and the error goes:
EOFError: Minecraft Process finished unexpectedly

Does anyone successfully running the environment on a remote server?

Best,

2 Likes
#2

Same here, I’ve been stuck here for a while. I think I have xvfb running the way it should be, but no luck getting past here yet.

#3

Could you try running your code with

import logging
logging.basicConfig(level=logging.DEBUG)

That should give us a more detailed error.

#4

Check this thread:


You may also not have write permissions.

#5

DEBUG:minerl.env.malmo:[11:26:26] [Client thread/INFO]: Setting user: Player110
DEBUG:minerl.env.malmo:[11:26:29] [Client thread/WARN]: Skipping bad option: lastServer:
DEBUG:minerl.env.malmo:[11:26:29] [Client thread/INFO]: LWJGL Version: 2.9.4
DEBUG:minerl.env.malmo:[11:26:29] [Client thread/ERROR]: Couldn’t set pixel format
DEBUG:minerl.env.malmo:org.lwjgl.LWJGLException: Could not choose GLX13 config
DEBUG:minerl.env.malmo: at org.lwjgl.opengl.LinuxDisplayPeerInfo.initDefaultPeerInfo(Native Method) ~[lwjgl-2.9.4-nightly-20150209.jar:?]
DEBUG:minerl.env.malmo: at org.lwjgl.opengl.LinuxDisplayPeerInfo.(LinuxDisplayPeerInfo.java:61) ~[lwjgl-2.9.4-nightly-20150209.jar:?]
DEBUG:minerl.env.malmo: at org.lwjgl.opengl.LinuxDisplay.createPeerInfo(LinuxDisplay.java:828) ~[lwjgl-2.9.4-nightly-20150209.jar:?]
DEBUG:minerl.env.malmo: at org.lwjgl.opengl.DrawableGL.setPixelFormat(DrawableGL.java:61) ~[lwjgl-2.9.4-nightly-20150209.jar:?]
DEBUG:minerl.env.malmo: at org.lwjgl.opengl.Display.create(Display.java:846) ~[lwjgl-2.9.4-nightly-20150209.jar:?]
DEBUG:minerl.env.malmo: at org.lwjgl.opengl.Display.create(Display.java:757) ~[lwjgl-2.9.4-nightly-20150209.jar:?]
DEBUG:minerl.env.malmo: at net.minecraft.client.Minecraft.createDisplay(Minecraft.java:615) [Minecraft.class:?]
DEBUG:minerl.env.malmo: at net.minecraft.client.Minecraft.init(Minecraft.java:469) [Minecraft.class:?]
DEBUG:minerl.env.malmo: at net.minecraft.client.Minecraft.run(Minecraft.java:387) [Minecraft.class:?]
DEBUG:minerl.env.malmo: at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?]
DEBUG:minerl.env.malmo: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_171]
DEBUG:minerl.env.malmo: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_171]
DEBUG:minerl.env.malmo: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_171]
DEBUG:minerl.env.malmo: at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_171]
DEBUG:minerl.env.malmo: at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
DEBUG:minerl.env.malmo: at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
DEBUG:minerl.env.malmo: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_171]
DEBUG:minerl.env.malmo: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_171]
DEBUG:minerl.env.malmo: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_171]
DEBUG:minerl.env.malmo: at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_171]
DEBUG:minerl.env.malmo: at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
DEBUG:minerl.env.malmo: at GradleStart.main(GradleStart.java:26) [start/:?]

It seems something else.

#6

It seems that you may not have any graphics drivers on your system.

Can you run

xvfb-run glxgears

If this fails I can help you download graphics drivers.

#7

@qiwei_ye Do you have an NVIDIA GPU on your system? Sometimes the drivers conflict with xvfb-run. In which case I recommend you run everything in a docker container.

#8

@william_guss yes, I have nvidia-415 driver installed.

± % xvfb-run glxgears
/usr/bin/xvfb-run: 184: /usr/bin/xvfb-run: glxgears: not found

I’ll rerun in a clean docker and get back to you soon.

#9

xvfb-run -s "-ac -screen 0 1280x1024x24" glxgears
worked for me istead of
xvfb-run glxgears

➜ ✗ xvfb-run glxgears
Error: couldn’t get an RGB, Double-buffered visual
➜ ✗ xvfb-run -s “-ac -screen 0 1280x1024x24” glxgears
9106 frames in 5.0 seconds = 1821.173 FPS
8794 frames in 5.0 seconds = 1758.764 FPS
9311 frames in 5.0 seconds = 1862.075 FPS
8775 frames in 5.0 seconds = 1754.928 FPS
9102 frames in 5.0 seconds = 1820.364 FPS
9198 frames in 5.0 seconds = 1839.505 FPS
8882 frames in 5.0 seconds = 1776.282 FPS
8896 frames in 5.0 seconds = 1779.172 FPS
9100 frames in 5.0 seconds = 1819.925 FPS