Roles missing in mongodb

I am using Docker to add mongodb 2.6.5 to a host that already had 2.4.9 installed and I am sharing the data directory.

When I run the 2.6.5 (in container) I get permission issues apparently due to changes in 2.6:

  • Fig doesn't link two containers
  • Failed to allocate gateway with docker stack
  • Docker publishing ports to multiple IPs
  • Docker save file
  • Phoenix Framework - docker image for development and deployment to Kubernetes
  • Resources required for running application on server VS running application in LXC container?

    But when I try to add a user with role roleAdminAnyDatabase I get “No role named roleAdminAnyDatabase@admin”

    Do I need to migrate the data? What is the best way to do that?

    I assume I could start up 2.6.5 with no data files and mongorestore the data from 2.4.9. But, does that mean I cannot run 2.4.9 using that directory anymore?

  • Docker running Jupyter Notebook - `'no $DISPLAY environment variable'?
  • Containers running on Multi Host (two VMs on seperate ESX) networking with overlay network driver
  • the docker's host machine cannot connect internet
  • Docker build ignore file permissions
  • How to redirect from the main domain to a subdomain in Cloudron?
  • docker-compose won't use my named volumes
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.