FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor


 
 
LinkBack Thread Tools
 
Old 10-15-2010, 05:33 PM
Narendra Sisodiya
 
Default Mock Error

On Fri, Oct 15, 2010 at 10:31 PM, Narendra Sisodiya <narendra@narendrasisodiya.com> wrote:

creating 32 bit iso file on 64 bit machine using pungi and mock. but following error I am getting.


[root@narendra mock]# mock -r fedora-13-i386 --clean
INFO: mock.py version 1.1.5 starting...
State Changed: init plugins


INFO: selinux enabled
State Changed: start
State Changed: lock buildroot
State Changed: clean
[root@narendra mock]# mock -r fedora-13-i386 --init
INFO: mock.py version 1.1.5 starting...
State Changed: init plugins


INFO: selinux enabled
State Changed: start
State Changed: lock buildroot
State Changed: clean
State Changed: init
State Changed: lock buildroot
Mock Version: 1.1.5
INFO: Mock Version: 1.1.5
INFO: enabled root cache


State Changed: unpacking root cache
INFO: enabled yum cache
State Changed: cleaning yum metadata
INFO: enabled ccache
State Changed: running yum
ERROR: Command failed. See logs for output.
Β*# ['/usr/sbin/groupadd', '-g', '478', 'mockbuild']


[root@narendra mock]#


After this, I have applied this commad

# mock -r fedora-13-i386 --no-clean --install pungi

INFO: mock.py version 1.1.5 starting...

State Changed: init plugins
INFO: selinux enabled
State Changed: start
State Changed: lock buildroot
Β*
but it is not installing anything. it seems to be hang.

--
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” €β”€β”€β”€β”€β”€β”€β”€β”€β”€β”

β”‚Β* Β* Narendra Sisodiya
β”‚Β* Β* http://narendrasisodiya.com
└───────────────┠€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
 
Old 10-15-2010, 05:37 PM
Stephen John Smoogen
 
Default Mock Error

On Fri, Oct 15, 2010 at 11:33, Narendra Sisodiya
<narendra@narendrasisodiya.com> wrote:
>
>
> On Fri, Oct 15, 2010 at 10:31 PM, Narendra Sisodiya
> <narendra@narendrasisodiya.com> wrote:
>>
>> creating 32 bit iso file on 64 bit machine using pungi and mock. but
>> following error I am getting.
>>
>>
>> [root@narendra mock]# mock -r fedora-13-i386 --clean
>> INFO: mock.py version 1.1.5 starting...
>> State Changed: init plugins
>> INFO: selinux enabled
>> State Changed: start
>> State Changed: lock buildroot
>> State Changed: clean
>> [root@narendra mock]# mock -r fedora-13-i386 --init
>> INFO: mock.py version 1.1.5 starting...
>> State Changed: init plugins
>> INFO: selinux enabled
>> State Changed: start
>> State Changed: lock buildroot
>> State Changed: clean
>> State Changed: init
>> State Changed: lock buildroot
>> Mock Version: 1.1.5
>> INFO: Mock Version: 1.1.5
>> INFO: enabled root cache
>> State Changed: unpacking root cache
>> INFO: enabled yum cache
>> State Changed: cleaning yum metadata
>> INFO: enabled ccache
>> State Changed: running yum
>> ERROR: Command failed. See logs for output.
>> Β*# ['/usr/sbin/groupadd', '-g', '478', 'mockbuild']
>> [root@narendra mock]#
>>

Ok I ran into this problem. The issue is that you can not run mock as
the root user. Add the user who is going to run mock into the group
user.


groupadd -a -G mock username

and then run as that user and you should avoid both problems.

>
> After this, I have applied this commad
>
> # mock -r fedora-13-i386 --no-clean --install pungi
>
> INFO: mock.py version 1.1.5 starting...
> State Changed: init plugins
> INFO: selinux enabled
> State Changed: start
> State Changed: lock buildroot
>
> but it is not installing anything. it seems to be hang.
>
>
> --
> β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” €β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
> β”‚Β* Β* Narendra Sisodiya
> β”‚Β* Β* http://narendrasisodiya.com
> └───────────────┠€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
>
> --
> buildsys mailing list
> buildsys@lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/buildsys
>



--
Stephen J Smoogen.
β€œThe core skill of innovators is error recovery, not failure avoidance.”
Randy Nelson, President of Pixar University.
"We have a strategic plan. It's called doing things.""
β€” Herb Kelleher, founder Southwest Airlines
--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
 
Old 10-15-2010, 05:43 PM
Narendra Sisodiya
 
Default Mock Error

groupadd -a -G mock username



-a and -G are invalid options.

--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
 
Old 10-15-2010, 05:46 PM
Narendra Sisodiya
 
Default Mock Error

On Fri, Oct 15, 2010 at 11:13 PM, Narendra Sisodiya <narendra@narendrasisodiya.com> wrote:



groupadd -a -G mock username



-a and -G are invalid options.


using GUI, I have added narendra (narendra is username) a group member of mock group.
Now I logout from root. Applied same command. Still facing same error..

[root@narendra mock]# exit

exit

[narendra@narendra mock]$Β* mock -r fedora-13-i386 --clean
+
+
INFO: chroot (/var/lib/mock/fedora-13-i386) unlocked and deleted

[narendra@narendra mock]$Β* mock -r fedora-13-i386 --init
INFO: mock.py version 1.1.5 starting...

+
+
INFO: enabled ccache
State Changed: running yum
ERROR: Command failed. See logs for output.
Β*# ['/usr/sbin/groupadd', '-g', '478', 'mockbuild']



--
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” €β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚Β* Β* Narendra Sisodiya
β”‚Β* Β* http://narendrasisodiya.com
└───────────────┠€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
 
Old 10-15-2010, 06:08 PM
Stephen John Smoogen
 
Default Mock Error

On Fri, Oct 15, 2010 at 11:43, Narendra Sisodiya
<narendra@narendrasisodiya.com> wrote:
>
>> groupadd -a -G mock username
>
>
> -a and -G are invalid options.

ugh I meant

useradd -a -G mock username

grep username /etc/group #make sure its in the right group

mock -r <put in unit here> --scrub=all


--
Stephen J Smoogen.
β€œThe core skill of innovators is error recovery, not failure avoidance.”
Randy Nelson, President of Pixar University.
"We have a strategic plan. It's called doing things.""
β€” Herb Kelleher, founder Southwest Airlines
--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
 
Old 10-15-2010, 06:09 PM
Ville Skyttδ
 
Default Mock Error

On Friday 15 October 2010, Narendra Sisodiya wrote:
> > groupadd -a -G mock username
>
> -a and -G are invalid options.

s/groupadd/usermod/
--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
 

Thread Tools




All times are GMT. The time now is 09:42 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org