Difficulty running the Caracal repository locally #758
Replies: 3 comments 4 replies
-
Ah, you're using caracal without docker compose! While we usually use docker compose since it's likely easier, you can do this manually. Caracal expects mongo to be running somewhere. Configuration for caracal is done through environment variables. setup_script.sh is trying to help set those for you, so it takes some arguments as input. It'd be run If you don't have mongo set up somewhere else, you can set it up on your machine directly or use a container with ports mapped to localhost, and just run setup_script with default args only. Backup dev is likely quite old, thanks for pointing that out! I hope this helps; let us know if you have further questions or issues!! |
Beta Was this translation helpful? Give feedback.
-
Hey, @Moliki-Salman was the issue resolved for you? Because I'm still stuck on it |
Beta Was this translation helpful? Give feedback.
-
@SanjanaSogimatt I just figured it out. This was how I was able to resolve the issue: @birm I discovered that the mongo command line tool is no longer shipped with MongoDB version 6.0. This tool is deprecated and replaced by the new mongosh shell. Thus, by reinstalling mongodb, it will automatically install mongosh. This is why mongo was not recognised in PATH As regards, adding mongo to path: Inside the setup_script.sh, I changed all mongo to mongosh and all “mongo” to “mongosh”. Then I created camic database in mongodb GUI. Then run bash setup_script.sh mongodb:localhost:27017/camic. Then run npm start I hope this might be helpful to you. |
Beta Was this translation helpful? Give feedback.
-
Hello,
@birm I am trying to setup the caracal repository locally and run it. I have cloned all the three required repository (caracal, Distro and caMicroscope) in a parent directory as instructed in the caracal readme.md. However, I am unable to run bash ./setup_script inside the caracal repo. whenever i try to run it, it throws " [ database ] : name not passed, set to default value (127.0.0.1)
[ database ] : name not passed, set to default value (camic)
mongo could not be found on path. Please ensure that mongo is installed and is on PATH". I have installed mongo but i am still unable to run the script.
Please kindly guide me on what to do to solve this problem.
Also, i want to clarify. The readme.md of caracal repo states that: "First clone the [Caracal (backup-dev branch)], but I could not see a branch named backup-dev branch under Caracal. I only cloned Caracal.
I look forward to your guidance. Thank you
Beta Was this translation helpful? Give feedback.
All reactions