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.
All went well until I tried to start mongodb. Here are the errors reported.
Code:
/etc/rc.d/rc.mongodb start
/etc/bash_completion.d/libreoffice.sh: line 5: /dev/null: Permission denied
/etc/bash_completion.d/libreoffice.sh: line 12: /dev/null: Permission denied
/etc/bash_completion.d/libreoffice.sh: line 17: /dev/null: Permission denied
/etc/profile.d/libglib2.sh: line 18: /dev/null: Permission denied
{"t":{"$date":"2024-05-05T17:28:53.301Z"},"s":"E", "c":"-", "id":23825, "ctx":"main","msg":"SecureRandom: open `{kFn}`: {strerror_errSave}","attr":{"kFn":"/dev/urandom","strerror_errSave":"Permission denied"}}
{"t":{"$date":"2024-05-05T17:28:53.301Z"},"s":"F", "c":"-", "id":23089, "ctx":"main","msg":"Fatal assertion","attr":{"msgid":28839,"file":"src/mongo/platform/random.cpp","line":174}}
{"t":{"$date":"2024-05-05T17:28:53.301Z"},"s":"F", "c":"-", "id":23090, "ctx":"main","msg":"\n\n***aborting after fassert() failure\n\n"}
MongoDB server failed to start, exiting now...
Each error for libreoffice.sh script fails on a line pointing at /dev/null.
I'm not well versed in this area. I suspect this is a clean up script. I am not sure how to proceed here, I don't want to start changing ownership and causing security holes.
Here is /dev/null.
Code:
ls -l /dev/null
crw-rw---- 1 root plugdev 1, 3 May 5 11:37 /dev/null
Well, it looks like the permissions in /dev aren't correct. Those devices are created and managed by udev. Have you tried restarting the machine to see if it cleans up the permissions?
OK, some progress. I had copies of 42-logitech-unify-permissions.rules in /lib/udev/rules.d and /etc/udev/rules.d. I moved both out to my home directory. Now the permissions for /dev/null look like my other systems.
Now I see:
Code:
ls -l /dev/null
crw-rw-rw- 1 root root 1, 3 May 5 19:31 /dev/null
However, mongodb still won't start. Now I see:
Code:
/etc/rc.d/rc.mongodb start
about to fork child process, waiting until server is ready for connections.
forked process: 2812
ERROR: child process failed, exited with 48
To see additional information in this output, start without the "--fork" option.
MongoDB server failed to start, exiting now...
I also see a copy of rule 42 in the initrd-tree. Is that something I should be concerned with?
I had copies of 42-logitech-unify-permissions.rules in /lib/udev/rules.d and /etc/udev/rules.d.
I built the Solaar-1.1.11-x86_64-2_SBo.tgz package and it installed 42-logitech-unify-permissions.rules only in /lib/udev/rules.d, nothing in /etc/udev/rules.d. If you have both, the one in /etc is used instead. Try diff those two files to see if there is something different in the file that was in /etc.
Here the udev rule (from /lib/udev/rules.d) only changed the group and mode of /dev/hidraw0 and /dev/hidraw1, no change for /dev/null.
Quote:
Originally Posted by camorri
However, mongodb still won't start.
That's probably not connected to the Solaar problem.
Quote:
Originally Posted by camorri
I also see a copy of rule 42 in the initrd-tree. Is that something I should be concerned with?
It could be a good idea to rebuild initrd and prepare the boot loader to get rid of the broken rule there, but I don't think it matters, because everything runs still as root there and device nodes having wrong mode there shouldn't matter.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.