Some Hardware/Software Specs:
Server type: KVM VPS
OS: Rocky 9
Panel: Virtualmin 7
SSH Client: PuTTY
When installing MongoDB onto my server, everything seems to install correctly except for ‘mongodb-org-server’.
sudo dnf install -y mongodb-org-server
Last metadata expiration check: 0:38:04 ago on Mon Sep 11 00:10:50 2023.
Dependencies resolved.Package Arch Version Repository Size
Installing:
mongodb-org-server x86_64 7.0.1-1.el9 mongodb-org-7.0 35 MTransaction Summary
Install 1 Package
Total download size: 35 M
Installed size: 174 M
Downloading Packages:
mongodb-org-server-7.0.1-1.el9.x86_64.rpm 23 MB/s | 35 MB 00:01Total 23 MB/s | 35 MB 00:01
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Running scriptlet: mongodb-org-server-7.0.1-1.el9.x86_64 1/1
groupadd: existing lock file /etc/group.lock with an invalid PID '32723
’
groupadd: cannot lock /etc/group; try again later.
error: %prein(mongodb-org-server-7.0.1-1.el9.x86_64) scriptlet failed, exit stat us 6Error in PREIN scriptlet in rpm package mongodb-org-server
Verifying : mongodb-org-server-7.0.1-1.el9.x86_64 1/1Failed:
mongodb-org-server-7.0.1-1.el9.x86_64Error: Transaction failed
I removed the lock files - ‘/etc/gshadow.lock’, and ‘/etc/group.lock’, but not sure what to do about the ‘PREIN’ scriptlet error.