[SERVER-8606] Remove to change frightening OpenVZ message at mongod startup Created: 18/Feb/13  Updated: 11/Jul/16  Resolved: 08/Oct/13

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: 2.2.3
Fix Version/s: 2.5.3

Type: Improvement Priority: Minor - P4
Reporter: Erik Beebe Assignee: Ian Whalen (Inactive)
Resolution: Done Votes: 1
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux OpenVZ


Issue Links:
Related
is related to SERVER-1121 Crashes reported on OpenVZ Closed
Participants:

 Description   

When mongod detects an environment using OpenVZ, it logs a warning:

[initandlisten] ** WARNING: You are running in OpenVZ. This is known to be broken!!!

This is a holdover from much older versions of OpenVZ - this appeared to first be reported more than 2.5 years ago in SERVER-1121. All reasonably modern versions of OpenVZ (I haven't tested every version, but haven't seen this happen with any CentOS 6+ kernel) work well with MongoDB, and the outdated warnings scare off potential users. This should probably be eliminated, or at least modified to recommend using a current version instead of a blanket "broken" statement.



 Comments   
Comment by Fernando Kosh [ 09/Aug/14 ]

+1 on this warning triggers on Debian 7. I am running mongodb in OpenVZ for over 8 months and have not seen issues.

Comment by Vincent [ 30/May/14 ]

This warning triggers even on distribs not related with RHEL (Debian in my case).
It then displays a very annoying "Host has startup warnings." message on the MMS dashboard (which could hide something real).
NB : MongoDB 2.6.1

Comment by auto [ 08/Oct/13 ]

Author:

{u'username': u'IanWhalen', u'name': u'Ian Whalen', u'email': u'ian@mongodb.com'}

Message: SERVER-8606 Correct error message for OpenVZ
Branch: master
https://github.com/mongodb/mongo/commit/490f50a98649400e24566bb59b31f61c28ea5df7

Comment by Eric Milkie [ 09/May/13 ]

It's still scheduled to be included in the next release (2.6). The coding part is easy; we just need to spend a bit of time on the investigation.

Comment by Kenny Gorman [ 08/May/13 ]

+1 will a pull request help things along?

Comment by Pykler [ 24/Mar/13 ]

I am running mongodb in OpenVZ (via ProxMox 2.1, 2.2, and 2.3) for over 6 months and have not seen issues. The latest mongo command line shell shows the server init warnings including this one which is frightening and disheartining everytime it loads.

Is there still known issues with OpenVZ and MongoDB? I have not seen the memory related errors previously mentioned in issue SERVER-1121 with the latest ProxMox releases (as mentioned above).

Generated at Thu Feb 08 03:17:53 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.