I am trying to get mongodb installed on my machine and have run into an area where I feel out of my depth. The error that I am getting when attempting to run a mongod
server suggests the following:
WARNING: /sys/kernel/mm/transparent_hugepage/enabled is 'always'. We suggest setting it to 'never'
I feel a bit uncomfortable tinkering with kernal memory management without knowing for sure what effects it will have. Would appreciate any guidance here, or if someone has installed mongo on their machine, what the process was.
Here are the steps that got me to where I am in this installation process. Everything up to the point of the kernal warning I have done before on ubuntu machines. This kernal warning is new territory for me.
# start the server
mongod
# Err address already in use
# https://stackoverflow.com/questions/6478113/unable-to-start-mongodb-local-server
sudo killall -15 mongod
# Err /data/db not found
sudo mkdir -p /data/db
# Err Unable to create/open lock file: /data/db/mongod.lock errno:13 Permission denied
# https://stackoverflow.com/questions/15229412/unable-to-create-open-lock-file-data-mongod-lock-errno13-permission-denied
sudo chown -R mongodb:mongodb /data/db
sudo chown $USER /data/db
# Err WARNING: /sys/kernel/mm/transparent_hugepage/enabled is 'always'. We suggest setting it to 'never'
I also came across this in my hunt for answers, though not sure how applicable it is to the PureOS: https://docs.mongodb.com/manual/tutorial/transparent-huge-pages/#transparent-huge-pages-thp-settings
I am on a Librem 13.