AgentVerse icon indicating copy to clipboard operation
AgentVerse copied to clipboard

Issues in Minecraft Branch: RenderServer and RecordServer Fail to start

Open uwFengyuan opened this issue 1 year ago • 9 comments

What should I notice when I compose up the docker? image

uwFengyuan avatar Mar 14 '24 03:03 uwFengyuan

I also met ConnectionError when I executed "bash run.sh". image

uwFengyuan avatar Mar 14 '24 04:03 uwFengyuan

Same , I also met ConnectionError when I executed "bash run.sh".

QinoriQ avatar Mar 18 '24 09:03 QinoriQ

Have you been able to compose up? I cannot compose up. image

uwFengyuan avatar Mar 19 '24 02:03 uwFengyuan

Ok I finally figure out how to solve this. My env is windows10, WSL2(ubuntu). WSL2 uses virtual ip address, so we need to change DB_HOST. If you use WSL2 or any virtual machine of linux system which uses virtual ip address , probably try this:

cat /etc/resolv.conf

then it would generate the nameserver "xxx.xxx.xxx.1" for DB_HOST, replace LocalHost(or "127.0.0.1") with "xxx.xxx.xxx.1"

QinoriQ avatar Mar 20 '24 21:03 QinoriQ

My env is same with yours. Thank you for your advice. May I ask which file you have changed the DB_HOST in?

I got the following warnings: WARNING: The DB_HOST variable is not set. Defaulting to a blank string. WARNING: The DB_PORT variable is not set. Defaulting to a blank string. WARNING: The DB_NAME variable is not set. Defaulting to a blank string. WARNING: The DB_USERNAME variable is not set. Defaulting to a blank string. WARNING: The DB_PASSWORD variable is not set. Defaulting to a blank string.

uwFengyuan avatar Mar 21 '24 01:03 uwFengyuan

use export viriable ; or open docker-compose.yml, for both RenderServer and RecordServer, just change them into: - DB_HOST=172.23.80.1 (this is my virtual ip, change it into yours) - DB_PORT=27017 - DB_NAME=mc - DB_USERNAME=user - DB_PASSWORD=000000

QinoriQ avatar Mar 21 '24 17:03 QinoriQ

Hello! Sorry for the delayed response, really busy these days. I've verified the issue you mentioned and have taken steps to address it. I am now able to again successfully execute the environment on my MacOS by following these revised steps:

  1. Replace the 4th step in the README with downloading the newly uploaded Docker files. After downloading, unzip the files and run cd docker; bash build_all.sh in your terminal to construct all necessary Docker images.
  2. Within the same directory, initiate the environment by running docker-compose up.

Should you encounter any further issues or have questions, please post them here.

chenweize1998 avatar Mar 24 '24 07:03 chenweize1998

Thank you for your help! The first issue has been solved. However, when I executed 'bash run.sh', I encountered the following errors: image image

uwFengyuan avatar Mar 25 '24 11:03 uwFengyuan

It seems that due to some time passing, the versions of packages related to mineflayer and previous code have become somewhat incompatible. I have attempted to set the versions of some packages, so could you please re-download the docker from this link and rebuild it? Really sorry for the inconvenience caused. I have verified that bash run.sh can run normally on my MacOS with Python 3.10, but you may need to replace all instances of gpt-4-0314 in voyager/voyager.py with the version now supported by your OpenAI service. Additionally, after running docker-compose up, please wait for the game server to fully start before running bash run.sh. One way to judge this is as shown in the picture: WX20240326-132515@2x

chenweize1998 avatar Mar 26 '24 05:03 chenweize1998