Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 595502

Summary: net-analyzer/munin-2.0.19-r2 - useradd: group munin-async exists - if you want to add this user to that group, use -g.
Product: Gentoo Linux Reporter: dawgg <pete_dawgg>
Component: Current packagesAssignee: Sysadmin Bugs <sysadmin>
Status: RESOLVED FIXED    
Severity: normal CC: graaff
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description dawgg 2016-09-29 08:19:30 UTC
on a ~x86-system with net-analyzer/munin already installed the ebuild for net-analyzer/munin-2.0.19-r2 tries to re-create the group "munin-async" and fails because this group already exists from the previous installation.
error log:
 * Package:    net-analyzer/munin-2.0.19-r2
 * Repository: gentoo
 * Maintainer: sysadmin@gentoo.org
 * USE:        abi_x86_32 elibc_glibc kernel_linux minimal ssl userland_GNU x86
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
 * Adding user 'munin-async' to your system ...
 *  - Userid: 107
 *  - Shell: /bin/sh
 *  - Home: /var/spool/munin-async
 *  - Groups: (none)
 *  - GECOS: added by portage for munin
useradd: group munin-async exists - if you want to add this user to that group, use -g.
 * ERROR: net-analyzer/munin-2.0.19-r2::gentoo failed (setup phase):
 *   (no error message)
 * 
 * Call stack:
 *                ebuild.sh, line 133:  Called pkg_setup
 *   munin-2.0.19-r2.ebuild, line 104:  Called enewuser 'munin-async' '-1' '/bin/sh' '/var/spool/munin-async'
 *              user.eclass, line 248:  Called die
 * The specific snippet of code:
 *              useradd -r "${opts[@]}" "${euser}" || die

i do not use munin-async so the solution was to
groupdel munin-async
and re-emerge the package
Comment 1 Hans de Graaff gentoo-dev Security 2023-07-22 07:51:37 UTC
Munin now uses the new user management mechanism with acct-group and acct-user ebuilds, so this issue should no longer occur.