Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server Warnings: mongodump #3351

Closed
FATeknollogee opened this issue Dec 13, 2021 · 5 comments
Closed

Server Warnings: mongodump #3351

FATeknollogee opened this issue Dec 13, 2021 · 5 comments

Comments

@FATeknollogee
Copy link

on v 0.9.59.

Under My Server, I see this "Server Warnings.
WARNING: Unable to find mongodump, MongoDB database auto-backup will not be performed."

What can I do to fix this?

@nzalev
Copy link
Contributor

nzalev commented Dec 13, 2021

This indicates meshcentral cannot find the mongodump executable.

You will need to add the autobackup section to your config.json to tell meshcentral the file path to mongodump.exe.

  "settings": {
    "tlsOffload": "127.0.0.1",
    "mongoDb": "mongodb://127.0.0.1:27017/",
    "AutoBackup": {
      "mongodumppath": "C:\\Program Files\\MongoDB\\Server\\4.4\\bin\\mongodump.exe"
    },
    ...

Assuming that you are using Windows, ensure that you have mongodump.exe installed. Find it's full path on your machine, and specify the path in mongodumppath. You must use double backslashes in the config file.

There are also a variety of other issues with this exact warning: #2791, #2491, #2242, #2945

@FATeknollogee
Copy link
Author

Thanks for the info @nzalev
I'm running Fedora, I'll take a look at the links you posted.

@FATeknollogee
Copy link
Author

It seems like I don't have mongodump installed:

# which mongodump
/usr/bin/which: no mongodump in `(/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin)

@nzalev
Copy link
Contributor

nzalev commented Dec 13, 2021

If you are running linux, generally, the next advice I give so to run which mongodump to check if it is installed, so I am glad you beat me to it.

I believe there is an RPM available. On linux, you don't need to include include the autobackup section of the config or mongodumppath, as long as the binary is within the $PATH variable for the user running meshcentral.

@FATeknollogee
Copy link
Author

If you are running linux, generally, the next advice I give so to run which mongodump to check if it is installed, so I am glad you beat me to it.

I believe there is an RPM available. On linux, you don't need to include include the autobackup section of the config or mongodumppath, as long as the binary is within the $PATH variable for the user running meshcentral.

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants