Welcome to the troubleshooting guide for BurnOut. If you encounter any issues while setting up or running the project, this document should help you diagnose and resolve common problems.
Before troubleshooting, ensure:
- You've followed installation/setup instructions in README.md.
- Node.js and npm are installed for React.
- MongoDB is running and accessible.
- Flask environment is set up with necessary dependencies.
Possible Causes:
- Missing
node_modules
after cloning the repository. - Incorrect environment variables.
Solution:
- Run
npm install
to install dependencies. - Ensure environment variables are correctly set.
Possible Causes:
- State management issues.
- Missing or incorrect props.
Solution:
- Check the state and props being passed to components.
- Use React Developer Tools for debugging.
Possible Causes:
- MongoDB server isn't running.
- Connection string is incorrect.
Solution:
- Start MongoDB with
mongod
. - Verify connection string in the configuration.
Possible Causes:
- Targeted collection doesn't exist.
- No data exists in events collection
Solution:
-
Run the following commands to populate events collection:
cd BurnOut-HealthGoalsApp
python insert_event_data.py
-
Refresh Events Page.
Possible Causes:
- Missing dependencies.
- Port already in use.
Solution:
- Run
pip install -r requirements.txt
to ensure all packages are installed. - Try a different port or ensure no other processes are using the default port.
Possible Causes:
- Endpoints or routes are incorrectly defined.
- Backend can't connect to MongoDB.
Solution:
- Verify route definitions and ensure methods (GET, POST, etc.) are correct.
- Check the backend's MongoDB connection and settings.
If you're still facing issues:
- Check if the problem has been reported in the Issues section.
- If not listed, create a new issue with as much detail as possible.
- For questions, refer to Discussions.