Open siddhanth339 opened 3 years ago
so, it looks like your mingw environment doesn't know about mongo, at least as "mongo", or perhaps it's some quirk of mingw's shell?
To help answer this, could you run mongo
from mingw and see if it runs?
It says: "bash: mongo: command not found"
thanks for the detailed report @siddhanth339, could you try navigating to the MongoDB installation directory from the terminal and run ./mongo
? What does it show?
Also, is it possible to share the list of variables on your PATH from your terminal?
I'm not currently logged into my windows machine, will try doing so tomorrow morning.
Running mongo, I was successfully able to enter into the MongoDB shell:
List of variables on my path:
@siddhanth339 since you're running the setup script the cygwin terminal, please run ./mongo and list the path from that shell itself.
@YashKumarVerma any update?
Apologies but I'm writing university exams this week so was not able to investigate this myself.
Update:
When I was looking at the setup script there were few commands using wget
So, I installed wget and updated my environment variable "Path" to include wget.
Now, magically, the "mongo path error" I was getting before disappeared.
Any reason why and how this happened?
Is mongo linked with wget in any way?
After successfully running the setup_script, running npm start also runs fine but when I go to localhost:4010, it says "Cannot Get /"
It is fairly strange that installing wget solved that problem, but it did nonetheless. The logic for checking whether or not mongo is available in the path or not is (given below). I will play around with this weekend and let you know about the results.
###
## check if the system has required services installed
###
if ! command -v "mongo" &>/dev/null; then
echo "mongo could not be found on path. Please ensure that mongo is installed and is on PATH"
exit
fi
if ! command -v "node" &>/dev/null; then
echo "node could not be found on path. Please ensure that node is installed and is on PATH"
exit
fi
Describe the bug I was following the instructions on using setup script to initialize the project. I have the Distro, Caracal, and caMicroscope repositories in the same parent folder. When I run "bash ./setup_script.sh", I get an error saying the mongo path was not found while I have set the path inside environment variables.
To Reproduce Steps to reproduce the behavior:
Expected behavior The script must run smoothly and start the application
Screenshots The error:
My environment variables window:
System information: