Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
e64145cf
Commit
e64145cf
authored
Jan 29, 2014
by
Valera Rozuvan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated internal documentation on MongoDB.
Provided several suggestions what to do if MongoDB daemon doesn't start.
parent
9c6a7a3e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
4 deletions
+21
-4
docs/en_us/internal/development.md
+21
-4
No files found.
docs/en_us/internal/development.md
View file @
e64145cf
...
...
@@ -21,13 +21,30 @@ Install the following:
### Databases
First start up the
mongo
daemon. E.g. to start it up in the background
using a config file:
First start up the
MongoDB
daemon. E.g. to start it up in the background
using a config file
(sometimes using
`sudo`
is required)
:
mongod --config /usr/local/etc/mongod.conf &
Check out the course data directories that you want to work with into the
`GITHUB_REPO_ROOT`
(by default,
`../data`
). Then run the following command:
On some Linux distributions the configuration script is located at:
/etc/mongodb.conf
If MongoDB does not start properly, it might be the case that there is a stray
lock file somewhere, or that the configuration file is corrupt. In this case
try deleting the lock files, and then running the MongoDB repair script:
sudo rm -rf /data/db/mongod.lock
sudo rm -rf /var/lib/mongodb/mongod.lock
sudo -u mongodb mongod -f /usr/local/etc/mongod.conf --repair
To verify that MongoDB started up OK, run the MongoDB client:
mongo
After MongoDB daemon is successfully running, check out the course data
directories that you want to work with into the
`GITHUB_REPO_ROOT`
(by default,
`../data`
). Then run the following command:
rake resetdb
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment