SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
root@duelie:~# /etc/rc.d/rc.mongodb start
about to fork child process, waiting until server is ready for connections.
forked process: 5818
ERROR: child process failed, exited with 1
To see additional information in this output, start without the "--fork" option.
MongoDB server failed to start, exiting now...
I edited /etc/mongod.conf and changed the "fork" to false, and receivd even less informaiton on what is wrong.
Here is the last error line from mongod.log.
Code:
{"t":{"$date":"2024-05-07T10:35:37.054-04:00"},"s":"I", "c":"CONTROL", "id":23330,
82 "ctx":"main","msg":"ERROR: Cannot write pid file to {path_string}: {errAndStr_second}",
83 "attr":{"path_string":"/var/run/mongodb/mongod.pid","errAndStr_second":"No such file or directory"}}
Any help would be appreciated. I have no experience with data base programs.
could it be you are missing the needed user:group to use the package?
if you haven't done it already and the user and group mongo are not already in your system (you can check with "grep mongo /etc/{passwd,group}") run these two commands
The user and gropup got created by the install. I have check the presence of other files in /etc. I have a login.defs file, a mongod.conf file and a mongodb.conf file. User mongo I can log into from a shell. ( I think that is the way it is supposed to be.)
I have the deps installed Alienbob has posted.
Quote:
ls -l /var/lib/pkgtools/packages | grep python-cheetah3
-rw-r--r-- 1 root root 21K May 1 09:39 python-cheetah3-3.2.6-x86_64-1alien
(Tue May-5 11:18:52am)-(CPU 0.0%:0:Net 33)-(cliff:~)-(86M:199)
> ls -l /var/lib/pkgtools/packages | grep python-psutil
-rw-r--r-- 1 root root 9.6K May 1 09:40 python-psutil-5.6.7-x86_64-1alien
(Tue May-5 11:22:39am)-(CPU 0.0%:0:Net 34)-(cliff:~)-(86M:199)
> ls -l /var/lib/pkgtools/packages | grep python-yaml
-rw-r--r-- 1 root root 5.1K May 1 09:40 python-yaml-5.3.1-x86_64-1alien
Last edited by camorri; 05-07-2024 at 10:24 AM.
Reason: fixed spelling
I asked because the error shown is "Cannot write pid file to {path_string}" and "path_string":"/var/run/mongodb/mongod.pid","errAndStr_second":"No such file or directory": that could happen because the path /var/run/mongodb either doesn't exist or because it has not the right owner/permissions...
You are correct, there was no mongodb dir in /var/run/. I have created it by root user, not sure who has to own it though. root:root ownership has not changed the result.
You are correct, there was no mongodb dir in /var/run/. I have created it by root user, not sure who has to own it though. root:root ownership has not changed the result.
then there's something wrong in the rc.mongodb you are using: it should create the directory itself and apply the correct ownership (mongo:mongo) and permissions.
I think you are using another rc.mongodb different from the one provided by the Alien Bob's package.
maybe the right one is called /etc/rc.d/rc.mongodb.new because when you installed Alien Bob's mongodb package there was already an /etc/rc.d/rc.mongodb present in your system.
I created the dir, /var/run/mongodb and chown to mongo:mongo and:
Quote:
root@duelie:/var/run# /etc/rc.d/rc.mongodb start
about to fork child process, waiting until server is ready for connections.
forked process: 5054
child process started successfully, parent exiting
MongoDB server started successfully.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.