I upgraded from 3.4 to 3.6 and to 4.0
The upgrade to 3.6 secceded bu when upgrading to 4.0 it fails with the following error:
I STORAGE [initandlisten] exception in initAndListen: 28574 Cannot start server. Detected data files in /var/lib/mongo created by storage engine ‘wiredTiger’. The configured storage engine is ‘mmapv1’., terminating