Friday, April 4, 2014

pw: user 'messagebus' disappeared during update

Hello.

During dbus installation from ports, I got:
pw: user 'messagebus' disappeared during update
 The interesting thing is that after restarting the installation I got the following:
>Description: /usr/ports/devel/dbus fails if an existing messagebus user is found

===> Creating users and/or groups.
Using existing group `messagebus'.
Creating user `messagebus' with uid `556'.
pw: user 'messagebus' already exists
*** Error code 74

Stop in /usr/ports/devel/dbus.
*** Error code 1
And:
# pw useradd messagebus
pw: user 'messagebus' already exists
# pw usershow messagebus
pw: no such user `messagebus'
# pw userdel messagebus
pw: no such user `messagebus'
The user exists and does not exist in no time, heh.

The solution was found here:
  1. run vipw
  2. save /etc/passwd without changes
It looks like for some reasons the passwd database was corrupted. And vipw reset's it to normal state.

After doing that, 'pw userdel' completed successfully. And as the result, port has been installed successfully too.

Profit \^__^/

Guys, than you for your advise. It was very helpful. And I hope that post will be handy too.

3 comments: