-
Notifications
You must be signed in to change notification settings - Fork 600
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
Could not authorize you against Realms server: Invalid Session ID #869
Comments
I believe the Realms server error message is a red-herring - if memory serves, this is always displayed, and is nothing to worry about. From the log, it looks as though Minecraft is running and is ready for use (the line "CLIENT enter state: DORMANT" means we're ready to receive a mission). I suspect there are two problems here: a) Malmo's default communication port is 10000 - if that's undesirable for some reason, you can override it - as you are doing, by passing the "-port 10234"cmdline argument. But the client code (eg tutorial_1.py) needs to know what to connect to. The tutorials all assume the default port, so you either need to run Minecraft on the default port, or change your client code to pass in 10234. For details of how to do that, see (for example) https://github.com/microsoft/malmo/blob/c3d129721c5a2f7c0eac274836f113f4c7ae4205/Malmo/samples/Python_examples/run_mission.py - look for the ClientPool stuff around line 70. b) The other problem might be your use of the -env flag - this runs Malmo in the "MalmoEnv" mode, where it can present as a gym environment, but the tutorials (and all the python samples) were written before this feature became available, and communicate with Minecraft using a non-gym protocol (which is much more flexible but potentially less convenient, depending on your needs). I suspect none of the samples will work if the -env flag is specified. Let us know if this helps - if not, we'll do some more digging. |
Thank you very much for getting back to me. I tried the approach that you suggested, but I am still seeing the same problem. Here is the entire output that I am seeing when I run the command ./launchClient.sh -port 10000 This mapping 'snapshot_20161220' was designed for MC 1.11! Use at your own peril. BUILD SUCCESSFUL Total time: 13.407 secs This build could be faster, please consider using the Gradle Daemon: https://docs.gradle.org/2.14/userguide/gradle_daemon.html BUILD SUCCESSFUL Total time: 7.514 secs This build could be faster, please consider using the Gradle Daemon: https://docs.gradle.org/2.14/userguide/gradle_daemon.html Time: 3/2/20 8:17 PM This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR A detailed walkthrough of the error, its code path and all known details is as follows:-- System Details --
I am wondering if this provides any useful information as to what the problem might be. One detail that might be important is that there are two instances of ./launchClient.sh. One is in the MalmoPlatform/Minecraft directory, and the other is in the MalmoPlatform/build/install/Minecraft directory. The one that I have been running is the latter of the two, and I am curious about whether that might have something to do with the problem. |
Thanks for the trace. Okay, so what happens when you try to run the samples? You say the terminal just gets stuck on the command |
Thank you very much for getting back to me again. I put in some print commands to mark checkpoints in tutorial_1.py. The code runs normally until it gets to the line UpdateCTestConfiguration from :/home/justin/MalmoPlatform/build/DartConfiguration.tcl 1: Test command: /home/justin/MalmoPlatform/build/Malmo/test/CppTests/CppTests_create_tcp_server 2: Test command: /home/justin/MalmoPlatform/build/Malmo/test/CppTests/CppTests_test_agent_host 3: Test command: /home/justin/MalmoPlatform/build/Malmo/test/CppTests/CppTests_test_argument_parser 4: Test command: /home/justin/MalmoPlatform/build/Malmo/test/CppTests/CppTests_test_client_server 5: Test command: /home/justin/MalmoPlatform/build/Malmo/test/CppTests/CppTests_test_mission 6: Test command: /home/justin/MalmoPlatform/build/Malmo/test/CppTests/CppTests_test_parameter_set 7: Test command: /home/justin/MalmoPlatform/build/Malmo/test/CppTests/CppTests_test_persistence 8: Test command: /home/justin/MalmoPlatform/build/Malmo/test/CppTests/CppTests_test_string_server 9: Test command: /home/justin/MalmoPlatform/build/Malmo/test/CppTests/CppTests_test_video_server 10: Test command: /home/justin/MalmoPlatform/build/Malmo/test/CppTests/CppTests_test_video_writer 11: Test command: /usr/bin/java "-cp" "/home/justin/MalmoPlatform/build/Malmo/test/JavaTests/test_agent_host.jar:/home/justin/MalmoPlatform/build/Malmo/src/JavaWrapper/MalmoJavaJar.jar" "-Djava.library.path=/home/justin/MalmoPlatform/build/Malmo/src/JavaWrapper" "test_agent_host" 12: Test command: /usr/bin/java "-cp" "/home/justin/MalmoPlatform/build/Malmo/test/JavaTests/test_argument_parser.jar:/home/justin/MalmoPlatform/build/Malmo/src/JavaWrapper/MalmoJavaJar.jar" "-Djava.library.path=/home/justin/MalmoPlatform/build/Malmo/src/JavaWrapper" "test_argument_parser" 13: Test command: /usr/bin/java "-cp" "/home/justin/MalmoPlatform/build/Malmo/test/JavaTests/test_mission.jar:/home/justin/MalmoPlatform/build/Malmo/src/JavaWrapper/MalmoJavaJar.jar" "-Djava.library.path=/home/justin/MalmoPlatform/build/Malmo/src/JavaWrapper" "test_mission" 14: Test command: /usr/bin/java "-cp" "/home/justin/MalmoPlatform/build/Malmo/test/JavaTests/test_parameter_set.jar:/home/justin/MalmoPlatform/build/Malmo/src/JavaWrapper/MalmoJavaJar.jar" "-Djava.library.path=/home/justin/MalmoPlatform/build/Malmo/src/JavaWrapper" "test_parameter_set" 15: Test command: /usr/bin/java "-cp" "/home/justin/MalmoPlatform/build/Malmo/test/JavaTests/test_wrapping.jar:/home/justin/MalmoPlatform/build/Malmo/src/JavaWrapper/MalmoJavaJar.jar" "-Djava.library.path=/home/justin/MalmoPlatform/build/Malmo/src/JavaWrapper" "test_wrapping" 16: Test command: /usr/bin/python3.6 "test_wrapping.py" 17: Test command: /usr/bin/python3.6 "test_argument_parser.py" 18: Test command: /usr/bin/python3.6 "test_agent_host.py" 19: Test command: /usr/bin/python3.6 "test_mission.py" 20: Test command: /usr/bin/python3.6 "test_parameter_set.py" 21: Test command: /usr/bin/python3.6 "test_malmoutils.py" 22: Test command: /usr/bin/python3.6 "launch_minecraft_in_background.py" 23: Test command: /home/justin/MalmoPlatform/build/Malmo/samples/Cpp_examples/run_mission "--help" 24: Test command: /home/justin/MalmoPlatform/build/Malmo/samples/Cpp_examples/run_mission "--test" 25: Test command: /usr/bin/java "-cp" "/home/justin/MalmoPlatform/build/Malmo/samples/Java_examples/JavaExamples_run_mission.jar:/home/justin/MalmoPlatform/build/Malmo/src/JavaWrapper/MalmoJavaJar.jar" "-Djava.library.path=/home/justin/MalmoPlatform/build/Malmo/src/JavaWrapper" "JavaExamples_run_mission" "--help" 26: Test command: /usr/bin/java "-cp" "/home/justin/MalmoPlatform/build/Malmo/samples/Java_examples/JavaExamples_run_mission.jar:/home/justin/MalmoPlatform/build/Malmo/src/JavaWrapper/MalmoJavaJar.jar" "-Djava.library.path=/home/justin/MalmoPlatform/build/Malmo/src/JavaWrapper" "JavaExamples_run_mission" "--test" 27: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/animation_test.py" "--help" 28: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/animation_test.py" "--test" "--recording_dir" "animation_test" "--record_video" 29: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/braitenberg_simulation.py" "--help" 30: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/braitenberg_simulation.py" "--test" "--recording_dir" "braitenberg_simulation" "--record_video" 31: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/build_test.py" "--help" 32: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/build_test.py" "--test" "--recording_dir" "build_test" "--record_video" 33: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/chat_reward.py" "--help" 34: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/chat_reward.py" "--test" "--recording_dir" "chat_reward" "--record_video" 35: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/chunk_test.py" "--help" 36: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/chunk_test.py" "--test" "--recording_dir" "chunk_test" "--record_video" 37: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/craft_work.py" "--help" 38: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/craft_work.py" "--test" "--recording_dir" "craft_work" "--record_video" 39: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/decision_tree_test.py" "--help" 40: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/decision_tree_test.py" "--test" "--recording_dir" "decision_tree_test" "--record_video" 41: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/default_world_test.py" "--help" 42: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/default_world_test.py" "--test" "--recording_dir" "default_world_test" "--record_video" 43: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/depth_map_runner.py" "--help" 44: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/depth_map_runner.py" "--test" "--recording_dir" "depth_map_runner" "--record_video" 45: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/discrete_3d_test.py" "--help" 46: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/discrete_3d_test.py" "--test" "--recording_dir" "discrete_3d_test" "--record_video" 47: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/drawing_test.py" "--help" 48: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/drawing_test.py" "--test" "--recording_dir" "drawing_test" "--record_video" 49: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/file_test.py" "--help" 50: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/file_test.py" "--test" "--recording_dir" "file_test" "--record_video" 51: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/hit_test.py" "--help" 52: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/hit_test.py" "--test" "--recording_dir" "hit_test" "--record_video" 53: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/inventory_test.py" "--help" 54: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/inventory_test.py" "--test" "--recording_dir" "inventory_test" "--record_video" 55: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/MazeRunner.py" "--help" 56: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/MazeRunner.py" "--test" "--recording_dir" "MazeRunner" "--record_video" 57: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/mission_quit_command_example.py" "--help" 58: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/mission_quit_command_example.py" "--test" "--recording_dir" "mission_quit_command_example" "--record_video" 59: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/mob_fun.py" "--help" 60: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/mob_fun.py" "--test" "--recording_dir" "mob_fun" "--record_video" 61: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/mouse_steering_test.py" "--help" 62: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/mouse_steering_test.py" "--test" "--recording_dir" "mouse_steering_test" "--record_video" 63: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/moving_target_test.py" "--help" 64: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/moving_target_test.py" "--test" "--recording_dir" "moving_target_test" "--record_video" 65: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/overclock_test.py" "--help" 66: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/overclock_test.py" "--test" "--recording_dir" "overclock_test" "--record_video" 67: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/patchwork_quilt.py" "--help" 68: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/patchwork_quilt.py" "--test" "--recording_dir" "patchwork_quilt" "--record_video" 69: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/quit_from_reaching_position_test.py" "--help" 70: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/quit_from_reaching_position_test.py" "--test" "--recording_dir" "quit_from_reaching_position_test" "--record_video" 71: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/radar_test.py" "--help" 72: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/radar_test.py" "--test" "--recording_dir" "radar_test" "--record_video" 73: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/render_speed_test.py" "--help" 74: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/render_speed_test.py" "--test" "--recording_dir" "render_speed_test" "--record_video" 75: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/reward_for_discarding_items_test.py" "--help" 76: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/reward_for_discarding_items_test.py" "--test" "--recording_dir" "reward_for_discarding_items_test" "--record_video" 77: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/reward_for_items_test.py" "--help" 78: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/reward_for_items_test.py" "--test" "--recording_dir" "reward_for_items_test" "--record_video" 79: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/reward_for_mission_end_test.py" "--help" 80: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/reward_for_mission_end_test.py" "--test" "--recording_dir" "reward_for_mission_end_test" "--record_video" 81: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/robust_frames.py" "--help" 82: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/robust_frames.py" "--test" "--recording_dir" "robust_frames" "--record_video" 83: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/run_mission.py" "--help" 84: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/run_mission.py" "--test" "--recording_dir" "run_mission" "--record_video" 85: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/tabular_q_learning.py" "--help" 86: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/tabular_q_learning.py" "--test" "--recording_dir" "tabular_q_learning" "--record_video" 87: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/teleport_test.py" "--help" 88: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/teleport_test.py" "--test" "--recording_dir" "teleport_test" "--record_video" 89: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/to_string_test.py" "--help" 90: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/to_string_test.py" "--test" "--recording_dir" "to_string_test" "--record_video" 91: Test command: /usr/bin/python3.6 "launch_minecraft_in_background.py" "10001" 92: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/two_diggers.py" "--help" 93: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/two_diggers.py" "--test" "--recording_dir" "two_diggers" "--record_video" 94: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/team_reward_test.py" "--help" 95: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/team_reward_test.py" "--test" "--recording_dir" "team_reward_test" "--record_video" 96: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/MultiMaze.py" "--help" 97: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/Malmo/samples/Python_examples/MultiMaze.py" "--test" "--recording_dir" "MultiMaze" "--record_video" 98: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/sample_missions/validate.py" "/home/justin/MalmoPlatform/sample_missions/default_world_1.xml" 99: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/sample_missions/validate.py" "/home/justin/MalmoPlatform/sample_missions/default_flat_1.xml" 100: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/sample_missions/validate.py" "/home/justin/MalmoPlatform/sample_missions/tricky_arena_1.xml" 101: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/sample_missions/validate.py" "/home/justin/MalmoPlatform/sample_missions/eating_1.xml" 102: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/sample_missions/validate.py" "/home/justin/MalmoPlatform/sample_missions/cliff_walking_1.xml" 103: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/sample_missions/validate.py" "/home/justin/MalmoPlatform/sample_missions/mazes/maze_1.xml" 104: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/sample_missions/validate.py" "/home/justin/MalmoPlatform/sample_missions/mazes/maze_2.xml" 105: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/sample_missions/validate.py" "/home/justin/MalmoPlatform/sample_missions/classroom/basic.xml" 106: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/sample_missions/validate.py" "/home/justin/MalmoPlatform/sample_missions/classroom/obstacles.xml" 107: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/sample_missions/validate.py" "/home/justin/MalmoPlatform/sample_missions/classroom/simpleRoomMaze.xml" 108: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/sample_missions/validate.py" "/home/justin/MalmoPlatform/sample_missions/classroom/attic.xml" 109: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/sample_missions/validate.py" "/home/justin/MalmoPlatform/sample_missions/classroom/vertical.xml" 110: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/sample_missions/validate.py" "/home/justin/MalmoPlatform/sample_missions/classroom/complexity_usage.xml" 111: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/sample_missions/validate.py" "/home/justin/MalmoPlatform/sample_missions/classroom/medium.xml" 112: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/sample_missions/validate.py" "/home/justin/MalmoPlatform/sample_missions/classroom/hard.xml" 113: Test command: /usr/bin/python3.6 "/home/justin/MalmoPlatform/sample_missions/validate.py" "/home/justin/MalmoPlatform/sample_missions/../Malmo/samples/Python_examples/tutorial_6.xml" 11% tests passed, 101 tests failed out of 113 Total Test time (real) = 153.06 sec The following tests FAILED: I am not sure if this output reveals anything useful, but it seems to show a problem with the current PYTHONPATH. If that is the issue, I am wondering what I should set the PYTHONPATH to be. |
Could someone please respond to my latest post? I really need to get this resolved. |
I have an update from yesterday. I was successful in running the compiled C++ implementation of the run_mission example, but I am still unable to run any of the Python examples. Based on the results of the Ctest command, it looks like the problem has something to do with Python integration. I am comfortable proceeding in C++ if necessary, although Python would be preferable, so I would therefore really appreciate if someone would be willing to guide me in addressing the Python integration problem. |
@DarthMalloc , Forge provides a development version on Minecraft. Which does not include any multiplayer code. Because If you can do that, there will be no reason to buy the game. Thus I suggest you to build the mod using |
I have built Malmo on Linux Mint 19.3 with OpenJDK8, and when I attempt to run Minecraft with the Malmo mod using
./launchClient.sh -port 10234 -env
I get the following output, as shown in the screenshot below:
As the picture shows, the second last line is
[15:13:59] [Realms Notification Availability checker #1/INFO]: Could not authorize you against Realms server: Invalid session id
I think this is preventing my from running missions, because when I try to run tutorial_1.py, nothing happens. There is no error message, but the terminal gets stuck on the command
python3.7 tutorial_1.py
.
I would greatly appreciate help in resolving this issue.
The text was updated successfully, but these errors were encountered: