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

[Help] Issue on setting up the local development env #79

Closed
Aju100 opened this issue Feb 25, 2022 · 3 comments
Closed

[Help] Issue on setting up the local development env #79

Aju100 opened this issue Feb 25, 2022 · 3 comments

Comments

@Aju100
Copy link
Contributor

Aju100 commented Feb 25, 2022

Hi everyone,

As far as I have gone through README.md of scan8, I have got the issue on setting up the local environment in my machine.

First approach

I have gone through Docker one isolating the env so we can run easily. But the issue raises up.

make sure you have to install docker.
Steps to reproduce.

  • Fork and git clone repo_url
  • cd Scan8/Dockerfiles/Dashboard+Coordinator/
  • docker build -t name_of_build_image .

Here are the failed logs via docker setup.
cop

It has already said there is no folder of that in order to copy in the docker storage/volume correct me if i am wrong here

Second approach

I have to set up the rest of the other tools like MongoDB, Redis, Python, and clamav too for the plain installation process.
Make sure my Redis and MongoDB working on the background.
Mongodb
db
Redis
re

Steps to reproduce

  • I assume you have cloned and are already in the directory
  • cd Dashboard
  • pip3 install -r requirements.txt
  • python3 app.py, flask server listens to the port on 5000 on localhost

Here is the output
ser

I would love to know what causes the issue and fully set it up in my local machine so I can learn and enhance this project. Looking forward to hear from the community.

@maanas-talwar
Copy link
Collaborator

Hi @Aju100,
Changing MONGODB_HOST="mongo-service" to MONGODB_HOST="127.0.0.1" in the .env file should fix it.

The issue arises due to 2 main reasons, firstly, correct environment variables are needed by the project to interact with other components like MongoDB, which can be fixed as stated above. Secondly, as highlighted here, it may be the case that MongoDB is not listening on localhost mapped to IPv6. This can be resolved by editing the MongoDB config file.

For location of MongoDB config file refer this.
For changing the config file to enable MongoDB to listen to IPv6 refer this.

@Aju100
Copy link
Contributor Author

Aju100 commented Mar 2, 2022

Hi @maanas-talwar thank you it's working now.

@Aju100 Aju100 closed this as completed Mar 2, 2022
@Aju100 Aju100 reopened this Mar 2, 2022
@Aju100
Copy link
Contributor Author

Aju100 commented Mar 2, 2022

@maanas-talwar How about the first approach can you please test it on your machine?

@Aju100 Aju100 closed this as completed Oct 30, 2022
This issue was closed.
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

2 participants