Skip to content
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

Issues in Minecraft Branch: RenderServer and RecordServer Fail to start #124

Open
uwFengyuan opened this issue Mar 14, 2024 · 9 comments
Open

Comments

@uwFengyuan
Copy link

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

@uwFengyuan
Copy link
Author

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

@QinoriQ
Copy link

QinoriQ commented Mar 18, 2024

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

@uwFengyuan
Copy link
Author

uwFengyuan commented Mar 19, 2024

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

@QinoriQ
Copy link

QinoriQ commented Mar 20, 2024

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"

@uwFengyuan
Copy link
Author

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.

@QinoriQ
Copy link

QinoriQ commented Mar 21, 2024

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

@chenweize1998
Copy link
Collaborator

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.

@uwFengyuan
Copy link
Author

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

@chenweize1998
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants