We are trying to bootstrap our new koji setup and when we attempt to
import using --link we get the error below.
The packages that we are attempting to import are on the hub and have
been places in /mnt/koji/import (same volume).
The ownership on the packages is daemon (same as /mnt/koji/) - not sure
if this matters.
sudo koji import --link /mnt/koji/alsa-lib-1.0.14-1.rc4.el5.src.rpm
Linking rpm to:
/mnt/koji/work/cli-import/1216842099.8955669.PLyYLFZS/alsa-lib-1.0.14-1.rc4.el5.src.rpm
importing alsa-lib-1.0.14-1.rc4.el5.src.rpm... Fault: <Fault 1:
'Traceback (most recent call last):
File
"/usr/share/koji-hub/kojixmlrpc.py", line 86, in _marshaled_dispatch
response = self._dispatch(method, params)
File
"/usr/share/koji-hub/kojixmlrpc.py", line 156, in _dispatch
ret =
func(*params,**opts)
File "/usr/share/koji-hub/kojihub.py", line 4110,
in importRPM
import_rpm_file(fn,rpminfo['build'],rpminfo)
File
"/usr/share/koji-hub/kojihub.py", line 2991, in import_rpm_file
os.rename(fn,final_path)
OSError: [Errno 13] Permission denied
Locals
by frame, innermost last
Frame HandlerDispatch in
/usr/lib64/python2.4/site-packages/mod_python/importer.py at line 1537
path = ['/usr/share/koji-hub/']
config = {'PythonAutoReload':
'0', 'PythonDebug': '1'}
arg = <mp_request object at
0x2b3497cbd410>
Frame _execute_target in
/usr/lib64/python2.4/site-packages/mod_python/importer.py at line 1128
one_process = False
object = <function handler at 0x2b34997152a8>
req = <mp_request object at 0x2b3497cbd410>
pdb_debug = 0
arg =
<mp_request object at 0x2b3497cbd410>
config = {'PythonAutoReload':
'0', 'PythonDebug': '1'}
Frame handler in
/usr/share/koji-hub/kojixmlrpc.py at line 291
functions =
<_mp_4e76479ee7b716cdbf29397025ee2356.RootExport s object at
0x2b349c6f08d0>
profiling = False
h =
<_mp_df1c13776110deb1e020020636703560.ModXMLRPCReq uestHandler object at
0x2b349c6f0d10>
req = <mp_request object at 0x2b3497cbd410>
hostFunctions = <_mp_4e76479ee7b716cdbf29397025ee2356.HostExport s object
at 0x2b349c6f0d90>
opts = {'KojiTraceback': 'extended',
'KojiDebug': 'On', 'EmailDomain': '192.168.226.61',
'KojiWebURL': 'http://192.168.226.61/koji
<http://192.168.226.61/koji%5C>', 'LoginCreatesUser': 'Off',
'ProxyDNs': '/C=US/ST=New Jersey/O=Open System
Solutions/CN=192.168.226.61', 'DNUsernameComponent': 'CN',
'KojiDir': '/mnt/koji', 'DBHost': 'localhost', 'DBUser':
'koji', 'DBName': 'koji'}
Frame handle_request in
/usr/share/koji-hub/kojixmlrpc.py at line 242
self =
<_mp_df1c13776110deb1e020020636703560.ModXMLRPCReq uestHandler object at
0x2b349c6f0d10>
req = <mp_request object at 0x2b3497cbd410>
Frame
_marshaled_dispatch in /usr/share/koji-hub/kojixmlrpc.py at line 112
e
= [Errno 13] Permission denied
self =
<_mp_df1c13776110deb1e020020636703560.ModXMLRPCReq uestHandler object at
0x2b349c6f0d10>
e_class = exceptions.OSError
start = 1216842100.35
faultCode = 1
params = <ERROR WHILE PRINTING VALUE>
tb_str =
Traceback (most recent call last):
File
"/usr/share/koji-hub/kojixmlrpc.py", line 86, in _marshaled_dispatch
response = self._dispatch(method, params)
File
"/usr/share/koji-hub/kojixmlrpc.py", line 156, in _dispatch
ret =
func(*params,**opts)
File "/usr/share/koji-hub/kojihub.py", line 4110,
in importRPM
import_rpm_file(fn,rpminfo['build'],rpminfo)
File
"/usr/share/koji-hub/kojihub.py", line 2991, in import_rpm_file
--
Fedora-buildsys-list mailing list
Fedora-buildsys-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-buildsys-list
07-23-2008, 08:46 PM
Mike Bonnet
Problems using import --link
On Wed, 2008-07-23 at 16:33 -0400, Naveen Gavini wrote:
> Hello all,
>
> We are trying to bootstrap our new koji setup and when we attempt to
> import using --link we get the error below.
> The packages that we are attempting to import are on the hub and have
> been places in /mnt/koji/import (same volume).
> The ownership on the packages is daemon (same as /mnt/koji/) - not sure
> if this matters.
>
>
> sudo koji import --link /mnt/koji/alsa-lib-1.0.14-1.rc4.el5.src.rpm
>
> Linking rpm to:
> /mnt/koji/work/cli-import/1216842099.8955669.PLyYLFZS/alsa-lib-1.0.14-1.rc4.el5.src.rpm
>
> importing alsa-lib-1.0.14-1.rc4.el5.src.rpm... Fault: <Fault 1:
> 'Traceback (most recent call last):
File
> "/usr/share/koji-hub/kojixmlrpc.py", line 86, in _marshaled_dispatch
> response = self._dispatch(method, params)
File
> "/usr/share/koji-hub/kojixmlrpc.py", line 156, in _dispatch
ret =
> func(*params,**opts)
File "/usr/share/koji-hub/kojihub.py", line 4110,
> in importRPM
import_rpm_file(fn,rpminfo['build'],rpminfo)
File
> "/usr/share/koji-hub/kojihub.py", line 2991, in import_rpm_file
> os.rename(fn,final_path)
OSError: [Errno 13] Permission denied
Locals
> by frame, innermost last
Frame HandlerDispatch in
> /usr/lib64/python2.4/site-packages/mod_python/importer.py at line 1537
> path = ['/usr/share/koji-hub/']
config = {'PythonAutoReload':
> '0', 'PythonDebug': '1'}
arg = <mp_request object at
> 0x2b3497cbd410>
Frame _execute_target in
> /usr/lib64/python2.4/site-packages/mod_python/importer.py at line 1128
> one_process = False
object = <function handler at 0x2b34997152a8>
> req = <mp_request object at 0x2b3497cbd410>
pdb_debug = 0
arg =
> <mp_request object at 0x2b3497cbd410>
config = {'PythonAutoReload':
> '0', 'PythonDebug': '1'}
Frame handler in
> /usr/share/koji-hub/kojixmlrpc.py at line 291
functions =
> <_mp_4e76479ee7b716cdbf29397025ee2356.RootExport s object at
> 0x2b349c6f08d0>
profiling = False
h =
> <_mp_df1c13776110deb1e020020636703560.ModXMLRPCReq uestHandler object at
> 0x2b349c6f0d10>
req = <mp_request object at 0x2b3497cbd410>
> hostFunctions = <_mp_4e76479ee7b716cdbf29397025ee2356.HostExport s object
> at 0x2b349c6f0d90>
opts = {'KojiTraceback': 'extended',
> 'KojiDebug': 'On', 'EmailDomain': '192.168.226.61',
> 'KojiWebURL': 'http://192.168.226.61/koji
> <http://192.168.226.61/koji%5C>', 'LoginCreatesUser': 'Off',
> 'ProxyDNs': '/C=US/ST=New Jersey/O=Open System
> Solutions/CN=192.168.226.61', 'DNUsernameComponent': 'CN',
> 'KojiDir': '/mnt/koji', 'DBHost': 'localhost', 'DBUser':
> 'koji', 'DBName': 'koji'}
Frame handle_request in
> /usr/share/koji-hub/kojixmlrpc.py at line 242
self =
> <_mp_df1c13776110deb1e020020636703560.ModXMLRPCReq uestHandler object at
> 0x2b349c6f0d10>
req = <mp_request object at 0x2b3497cbd410>
Frame
> _marshaled_dispatch in /usr/share/koji-hub/kojixmlrpc.py at line 112
e
> = [Errno 13] Permission denied
self =
> <_mp_df1c13776110deb1e020020636703560.ModXMLRPCReq uestHandler object at
> 0x2b349c6f0d10>
e_class = exceptions.OSError
start = 1216842100.35
> faultCode = 1
params = <ERROR WHILE PRINTING VALUE>
tb_str =
> Traceback (most recent call last):
File
> "/usr/share/koji-hub/kojixmlrpc.py", line 86, in _marshaled_dispatch
> response = self._dispatch(method, params)
File
> "/usr/share/koji-hub/kojixmlrpc.py", line 156, in _dispatch
ret =
> func(*params,**opts)
File "/usr/share/koji-hub/kojihub.py", line 4110,
> in importRPM
import_rpm_file(fn,rpminfo['build'],rpminfo)
File
> "/usr/share/koji-hub/kojihub.py", line 2991, in import_rpm_file
Embedded in that horribly mangled stack trace was the root of the
problem:
File "/usr/share/koji-hub/kojihub.py", line 2991, in import_rpm_file
os.rename(fn,final_path)
OSError: [Errno 13] Permission denied
The problem is that "koji import --link", while very useful, is kind of
a hack. In order for it to work, is assumes your httpd is running as
uid 48 (the "apache" user on Fedora) and chown's the directory
under /mnt/koji/work/cli-import to uid 48 so httpd can rename() the file
from that dir to it's final location under /mnt/koji/packages
successfully. In your case, httpd is running under a different uid, so
that rename fails.
To fix this, I would do 2 things:
1. In /usr/bin/koji, change the last 2 numbers in the line
to the uid of the "daemon" user (whatever user httpd runs as).
2. Make sure all packages under /mnt/koji/import are owned by the daemon
user before starting the import.
Give that a try, and let me know if you're still running in to errors.
--
Fedora-buildsys-list mailing list
Fedora-buildsys-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-buildsys-list
07-23-2008, 08:47 PM
Doug Ledford
Problems using import --link
On Wed, 2008-07-23 at 16:33 -0400, Naveen Gavini wrote:
> Hello all,
>
> We are trying to bootstrap our new koji setup and when we attempt to
> import using --link we get the error below.
> The packages that we are attempting to import are on the hub and have
> been places in /mnt/koji/import (same volume).
> The ownership on the packages is daemon (same as /mnt/koji/) - not sure
> if this matters.
>
>
> sudo koji import --link /mnt/koji/alsa-lib-1.0.14-1.rc4.el5.src.rpm
>
> Linking rpm to:
> /mnt/koji/work/cli-import/1216842099.8955669.PLyYLFZS/alsa-lib-1.0.14-1.rc4.el5.src.rpm
>
Did you make sure that the entire tree under /mnt/koji is owned by user
apache and group apache (or whatever user/group your web server runs
as)? The xmlrpc code runs as the web user, so it needs permissions on
this tree.