-
Notifications
You must be signed in to change notification settings - Fork 0
Incomplete Transactions and MgoPurge
cannot find transaction ObjectIdHex("..")
Before running the tool, please sanity check the system:
- Shut down machine agents on all state servers: stop machine agent;
- Make sure that MongoDB replicaset is in good state: Step 2.
Run the mgopurge tool on any state server: Step 3. You should get output of what the tool is doing. If you encounter any further problems, this output may be of value, please keep it handy.
After the tool is run, restart machine agents: start machine agent.
These instructions are adapted from mgopurge original one to cater for HA as well as different series.
On each state server:
a. If you do not have a mongodb-clients, please install it by running: sudo apt-get install mongodb-clients
b. Get MongoDB password by running: sudo grep oldpassword /var/lib/juju/agents/machine-*/agent.conf | cut -d' ' -f2
c. Login into MongoDB by running: mongo 127.0.0.1:37017/juju--authenticationDatabase admin --ssl --username "admin" --password ""
d. Find out each MongoDB opinion on the health and status of replicaset by running: rs.status()
There should be one PRIMARY node on one of the state severs and the rest should be SECONDARY.
Testing
Releases
Documentation
Development
- READ BEFORE CODING
- Blocking bugs process
- Bug fixes and patching
- Contributing
- Code Review Checklists
- Creating New Repos
-
MongoDB and Consistency
- [mgo/txn Example] (https://github.com/juju/juju/wiki/mgo-txn-example)
- Scripts
- Update Launchpad Dependency
- Writing workers
- Reviewboard Tips
Debugging and QA
- Debugging Juju
- [Faster LXD] (https://github.com/juju/juju/wiki/Faster-LXD)