I found my mistake. Version compatibility issues. Check by running mongodump -version.
Turns off the execution of apt install mongodb does not install the latest version. Remember to uninstall and uninstall the mongo tools and update to the latest version.
source
to share