Bug 6007

Summary: nut fails to create group upsmon in time
Product: [Development] Sisyphus Reporter: Michael Shigorin <mike@altlinux.org>
Component: nutAssignee: Michael Shigorin <mike@altlinux.org>
Status: CLOSED NOTABUG QA Contact: qa-sisyphus@altlinux.org
Severity: normal    
Priority: P2    
Version: unstable   
Hardware: all   
OS: Linux   

Description From 2005-02-02 19:45:22
# apt-get install nut
[...]
Preparing...                
################################################################### [100%]
warning: group upsmon does not exist - using root
warning: group upsmon does not exist - using root
warning: group upsmon does not exist - using root
1: nut                      
################################################################### [100%]
------- Comment #1 From 2005-02-02 19:45:41 -------
PS: reinstall goes on smoothly
------- Comment #2 From 2005-02-03 01:22:10 -------
Local misconfiguration?

$ rpmquery -p --qf '%{PREIN}\n' nut-2.0.1-alt0.1.i586.rpm 
if [ $1 -gt 1 -a -x /sbin/upsmon -a ! -d /etc/nut/certs ]; then
        echo "Upgrading from incompatible nut < 1.4.1-alt2" >&2
        [ -x /etc/rc.d/init.d/upsmon ] && service upsmon condstop ||:
        [ -x /etc/rc.d/init.d/upsd ] && service upsd condstop ||:
        if [ ! -d "/etc/nut" -o -e "/etc/nut".bak ] ||
           ! /bin/mv -v "/etc/nut" "/etc/nut".bak; then
                echo "Automatic upgrade failed." >&2
                exit 1
        fi
        echo "Please update config files manually." >&2
fi
/usr/sbin/groupadd -r -f upsmon
/usr/sbin/useradd -r -g upsmon -d / -s /dev/null \
        -c "NUT monitoring daemon" -n upsmon >/dev/null 2>&1 ||:
------- Comment #3 From 2005-02-03 09:50:27 -------
Was quite amused to see the bug getting assigned to you :)

Still it's quite plain sisyphus system, might try in an isolated environment.
------- Comment #4 From 2005-08-30 02:24:50 -------
closing
------- Comment #5 From 2005-08-30 02:36:14 -------
closing