#3003 new_repo script fails to create a user's repo directory
Closed: Fixed None Opened 12 years ago by aarapov.

It can be a credentials problem, but since there are no data about getting the proper credentials at the wiki I tend to think about this as a bug.
wiki: http://fedoraproject.org/wiki/Fedorapeople_Repos

[aarapov@people02 ~]$ new_repo (fails at the fedorapeople.org with:)
Creating repo directory structure

Creating http://repos.fedorapeople.org/repos/aarapov/kernel-uprobes/fedora-16/i386
Could not create fedora-16 - Permission denied
Creating http://repos.fedorapeople.org/repos/aarapov/kernel-uprobes/fedora-16/x86_64
Could not create fedora-16 - Permission denied
Creating http://repos.fedorapeople.org/repos/aarapov/kernel-uprobes/fedora-16/SRPMS
Could not create fedora-16 - Permission denied
Some repos could not be created. They means your new repos may
not work.

creating repo files

creating fedora repo
Could not create /srv/repos/aarapov/kernel-uprobes/fedora-kernel-uprobes.repo - No such file or directory
Traceback (most recent call last):
File "/usr/local/bin/new_repo", line 215, in <module>
create_repo_files(GROUP, repo_name, RELEASES, DESCRIPTION)
File "/usr/local/bin/new_repo", line 133, in create_repo_files
file.write('''# Place this file in your /etc/yum.repos.d/ directory
UnboundLocalError: local variable 'file' referenced before assignment

// as a background:
I taking over the kernel-uprobes from the jistone who already has this package at fedorapeople's repos. Once my repo fly, he will remove his one.

Please, Help! :)


Can you login and run:

id

and

mkdir /srv/repos/aarapov

and give us the output?

[aarapov@people02 ~]$ id
uid=108532(aarapov) gid=108532(aarapov) groups=108532(aarapov),100300(packager),101440(cla_redhat),152003(gitlibpagemap) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
[aarapov@people02 ~]$ mkdir /srv/repos/aarapov
mkdir: cannot create directory `/srv/repos/aarapov': Permission denied

strace log:
http://aarapov.fedorapeople.org/strace.log

Something is screwy with the cla_done group.

If you do a 'newgrp cla_done' and then run new_repo, does it work?

Indeed. Fixed. Thanks for the prompt help.

Login to comment on this ticket.

Metadata