mongodb 3.4.3 Permission denied wiredtiger_kv_engine.cpp 267 error with ubuntu 16 : <p>I'm having problems lauching mongod as a service:
How is it possible that it works when I do sudo mongod -f /etc/mongod.conf but when launching it with sudo service mongod start I get an error in the log </p>

<p><code>Assertion: 28595:13: Permission denied src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp 267</code></p>

<p>I'm running mongodb on ubuntu 16</p>

<p>I followed exactly the instructions in the mongodb documentation for installation of that version, so is this a bug? Any suggestions how to solve this are appreciated. </p>

<p>Additional information:</p>

<p>The mongodb service startup script looks like this and runs it as user mongodb, could this be connected to the error? 
lib/systemd/system/mongodb.service:</p>

<pre><code>[Unit]
Description=MongoDB Database Service
Wants=network.target
After=network.target

[Service]
ExecStart=/usr/bin/mongod --config /etc/mongod.conf
ExecReload=/bin/kill -HUP $MAINPID
Restart=always
User=mongodb
Group=mongodb
StandardOutput=syslog
StandardError=syslog

[Install]
WantedBy=multi-user.target
</code></pre>
