[02:50:05] <Sammitch> hey all. I'm trying to start mongod via systemctl and keep getting "Attempted to create a lock file on a read-only directory" but if I start it manually via `sudo -u mongod /usr/bin/mongod -f /etc/mongod.conf` it starts up just fine. what's the deal?
[09:55:48] <Derick> Sammitch: which lock file is it trying to create?
[17:55:37] <Sammitch> if start/stop manually, which works, and then try to start again with systemd without clearing the data dir I get '28596 Unable to determine status of lock file in the data directory /dbDir: boost::filesystem::status: Permission denied: "/dbDir/mongod.lock"'
[17:56:13] <Derick> right, with servicectl, it will likely run as the "mongodb" user, and not *your* user (root?)
[18:29:02] <Sammitch> yep. here's all the relevant config: https://hastebin.com/ocusuyojap.makefile
[19:12:10] <Derick> so who owns /dbPath and /dbPath/mongodb (use ls -l )
[19:53:37] <Sammitch> in some manner, it would seem. I'm porting this ansible play from something based on Ubuntu 16.04 which apparently doesn't even have selinux installed, to a proper Centos 7 that actually matches the rest of our environment =_=
[19:55:10] <Sammitch> On RHEL 7.0, if you change the data path, the default SELinux policies will prevent mongod from having write access on the new data path if you do not change the security context.
[22:16:34] <quarters> hello. I was wondering if anyone can offer advice on migrating sql data to mongodb. I'm currently using Ruby on Rails as my backend but am open to running the conversion through python or nodejs as well unless there's a direct means to do so. I was thinking that it can simply be a matter of leveraging the fact that my backend queries the sql database and responds with json objects to simply store the json objects