mongodump different behavior on dbpath dump

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Tools
    • None
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      I have ReplicaSet and try to automate backup process.
      There are secondary replica instance on host1:27017 and arbiter on host1:27018.
      Process looks like:
      1. stop mongod(host1:27017)
      2. mongodump --dbpath /data/mongodb --out /tmp/backup --journal --directoryperdb
      3. start mongod(host1:27017)
      4. work with dump

      If I run script from user shell It's work perfectly. But when I put It into cron, I don't receive any dumps and got "If you are running a mongod on the same path you should connect to that instead of direct data file access". All that time where was mongod.lock file in data directory.

      Question is "why where are 2 different behavior in same environment?"

            Assignee:
            Thomas Rueckstiess (Inactive)
            Reporter:
            zlob
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: