Bug 17551 - hsh: Failed to deduce hasher config number
Summary: hsh: Failed to deduce hasher config number
Status: CLOSED WORKSFORME
Alias: None
Product: Sisyphus
Classification: Development
Component: hasher (show other bugs)
Version: unstable
Hardware: all Linux
: P2 normal
Assignee: Dmitry V. Levin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-13 16:49 MSD by viy
Modified: 2009-01-06 01:52 MSK (History)
5 users (show)

See Also:


Attachments
find /hasherdir -exec ls -l {} \; (54.84 KB, text/plain)
2008-10-13 16:49 MSD, viy
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description viy 2008-10-13 16:49:03 MSD
Created attachment 2993 [details]
find /hasherdir -exec ls -l {} \;

добавил 2-го сборщика
sudo ls /etc/hasher-priv/user.d
igor  igor:1

в какой-то момент hsh сконфузился:
$ hsh --mountpoints=/proc /tmp/hasher ~/src/RPM/SRPMS/bzr-1.7.1-alt0.M40.1.src.rpm 2>&1 | tee hsh.log
hsh: Failed to deduce hasher config number from directory ownership.

Явное указание номера не помогает
igor@breeze src/RPM/SPECS $ hsh --number=0 --mountpoints=/proc /tmp/hasher ~/src/RPM/SRPMS/bzr-1.7.1-alt0.M40.1.src.rpm 2>&1 | tee hsh.log
hsh: --number: 0: invalid number.

igor@breeze src/RPM/SPECS $ hsh --number=1 --mountpoints=/proc /tmp/hasher ~/src/RPM/SRPMS/bzr-1.7.1-alt0.M40.1.src.rpm 2>&1 | tee hsh.log
hsh: Failed to deduce hasher config number from directory ownership.
Comment 1 viy 2008-10-13 19:42:28 MSD
просто удаление hasherdir не помогало, 
помогло только вместе с уделением igor:1 и добавленных псевдопользователей.
Comment 2 Dmitry V. Levin 2008-12-01 02:40:39 MSK
(In reply to comment #0)
> Created an attachment (id=2993) [details]
> find /hasherdir -exec ls -l {} \;

Там каталоги chroot с неправильными группами владения.
Интересно, каким способом они были получены.

> добавил 2-го сборщика
> sudo ls /etc/hasher-priv/user.d
> igor  igor:1

С помощью hasher-useradd?

> в какой-то момент hsh сконфузился:
> $ hsh --mountpoints=/proc /tmp/hasher ~/src/RPM/SRPMS/bzr-1.7.1-alt0.M40.1.src.rpm 2>&1 | tee hsh.log
> hsh: Failed to deduce hasher config number from directory ownership.

Это бывает только если каталог /tmp/hasher/chroot уже существует с неправильной группой доступа.

> Явное указание номера не помогает
> igor@breeze src/RPM/SPECS $ hsh --number=0 --mountpoints=/proc /tmp/hasher ~/src/RPM/SRPMS/bzr-1.7.1-alt0.M40.1.src.rpm 2>&1 | tee hsh.log
> hsh: --number: 0: invalid number.
> 
> igor@breeze src/RPM/SPECS $ hsh --number=1 --mountpoints=/proc /tmp/hasher ~/src/RPM/SRPMS/bzr-1.7.1-alt0.M40.1.src.rpm 2>&1 | tee hsh.log
> hsh: Failed to deduce hasher config number from directory ownership.

Если chroot уже существует, то --number не используется.
Comment 3 Dmitry V. Levin 2009-01-06 01:52:25 MSK
(In reply to comment #2)
> (In reply to comment #0)
> > Created an attachment (id=2993) [details] [details]
> > find /hasherdir -exec ls -l {} \;
> 
> Там каталоги chroot с неправильными группами владения.
> Интересно, каким способом они были получены.