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

Server returning error when running docker-compose up #14

Open
ajk5yx opened this issue Jul 16, 2022 · 19 comments
Open

Server returning error when running docker-compose up #14

ajk5yx opened this issue Jul 16, 2022 · 19 comments
Labels
Documentation Improvements or additions to documentation

Comments

@ajk5yx
Copy link

ajk5yx commented Jul 16, 2022

I've followed all the steps in the documentation, but after running docker-compose up --build -d, each of the tabs in http://localhost is empty (see image below for example) despite all the assets being appropriately located in the server/assets directory. The server is also returning an error when I run docker-compose up that can be seen in the second image below. I believe I have setup everything correctly in accordance with the documentation, so I would appreciate any insight as to what could be causing the issue. Thanks!
image
image

@YuqiHuai
Copy link
Owner

YuqiHuai commented Jul 17, 2022

Hi! Thanks for posting the issue.
Is the mongo container up and running? You should be able to use Mongo compass to connect to mongodb://localhost:28018

Can you also post the output of docker ps -a

@ajk5yx
Copy link
Author

ajk5yx commented Jul 17, 2022

The attached image is the output of docker ps -a. I can connect to mongodb://localhost:28018 using MonogDB compass but the it is essentially empty and there are no collections, even though I have the assets stored in server/assets.
image

@YuqiHuai
Copy link
Owner

I see. The mongo container is up and running but there is no collection. This is weird. Maybe the set up process for mongo is somehow bugged.

For now, can you manually import all the collections from https://github.com/YuqiHuai/SORA-SVL/tree/master/mongo/setup?

@YuqiHuai YuqiHuai added the Documentation Improvements or additions to documentation label Aug 17, 2022
@umdreamer
Copy link
Contributor

umdreamer commented Aug 24, 2022

I see. The mongo container is up and running but there is no collection. This is weird. Maybe the set up process for mongo is somehow bugged.

Yes, the mongodb is also empty for my instance.

For now, can you manually import all the collections from https://github.com/YuqiHuai/SORA-SVL/tree/master/mongo/setup?

The import method:

  • enter the mongodb container, then input the command
  • cd /docker-entrypoint-initdb.d/
  • ./import.sh

Done.

@YuqiHuai
Copy link
Owner

Thanks for the response @umdreamer. I am not sure why the Mongo container setup may not work sometimes. I'll try to figure it out.

@s0966066980
Copy link

I have same problem

2023-01-05 11-45-12 的螢幕擷圖
2023-01-05 11-47-17 的螢幕擷圖

how can i fix this problem,thank!!!

@YuqiHuai
Copy link
Owner

YuqiHuai commented Jan 5, 2023

I suggest using mongo compass to check whether the database is empty first.

@s0966066980
Copy link

s0966066980 commented Jan 5, 2023

我建議首先使用mongo compass檢查數據庫是否為空。
thank for your Reply,I don't how to use mongo compass...help

this?

2023-01-05 13-26-04 的螢幕擷圖

@s0966066980
Copy link

HI

I think this is my problem

2023-01-07 13-14-54 的螢幕擷圖

@YuqiHuai
Copy link
Owner

YuqiHuai commented Jan 7, 2023 via email

@s0966066980
Copy link

I get this problem

2023-01-09 10-33-50 的螢幕擷圖

@YuqiHuai
Copy link
Owner

YuqiHuai commented Jan 9, 2023 via email

@s0966066980
Copy link

thanks for your reply
image

Is this successful?

@YuqiHuai
Copy link
Owner

YuqiHuai commented Feb 2, 2023

My bad, I somehow didn't get notified when you replied. The screenshot shows the database is up and running.

@zhang291
Copy link

zhang291 commented Feb 3, 2023

@YuqiHuai
Copy link
Owner

YuqiHuai commented Feb 3, 2023

Hi, this problem is caused by MongoDB not correctly starting up.

@YuqiHuai
Copy link
Owner

@zhang291 @s0966066980 How are things going for you guys? Did you manage to resolve the issue?

@zhang291
Copy link

zhang291 commented Feb 16, 2023

@zhang291 @s0966066980 How are things going for you guys? Did you manage to resolve the issue?

sorry,I forget to modify the .env.template filename to .env filename,now I resolve this issue,thank you very much.

@YuqiHuai
Copy link
Owner

YuqiHuai commented Feb 16, 2023

Hi @zhang291, sorry I do not understand what you mean by

The database cannot be connected because it has not been modified before.

As far as I am aware the .env files should be in client and server, and once configured correctly the server should be able to connect to the MongoDB container.

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

No branches or pull requests

5 participants