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

Go Back   Linux Archive > Redhat > Fedora/Linux Management Tools

 
 
LinkBack Thread Tools
 
Old 06-10-2008, 09:50 AM
Adrian Revill
 
Default Error when creating repo

Im not sure if ive missed a step, but i am setting up a new install of
cobbler 1.0.1-2 on rhel5.2


I have run
# cobbler repo add --name rhel-x86_64-server-5
--mirror=rhn://rhel-x86_64-server-5


and it seems to have setup /var/lib/cobbler/repo ok

I then run
#cobbler reposync

and i get an error

- creating: /var/www/cobbler/repo_mirror/.origin/rhel-x86_64-server-5.repo
- creating: /var/www/cobbler/repo_mirror/rhel-x86_64-server-5/config.repo
exceptions.IOError
[Errno 2] No such file or directory:
'/var/www/cobbler/repo_mirror/rhel-x86_64-server-5/config.repo'
File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 65,
in main

return BootCLI().run(sys.argv)
File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 44,
in run

return self.loader.run(args)
File "/usr/lib/python2.4/site-packages/cobbler/commands.py", line 69,
in run

return fn.run()
File "/usr/lib/python2.4/site-packages/cobbler/modules/cli_misc.py",
line 227, in run

return self.api.reposync(self.options.only)
File "/usr/lib/python2.4/site-packages/cobbler/api.py", line 349, in
reposync


return reposync.run(name)
File "/usr/lib/python2.4/site-packages/cobbler/action_reposync.py",
line 78, in run

self.do_reposync(repo)
File "/usr/lib/python2.4/site-packages/cobbler/action_reposync.py",
line 198,

in do_reposync
self.create_local_file(repo, dest_path)
File "/usr/lib/python2.4/site-packages/cobbler/action_reposync.py",
line 248,

in create_local_file
config_file = open(fname, "w+")

If i create the directory
/var/www/cobbler/repo_mirror/rhel-x86_64-server-5 then it cures the error


_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 06-10-2008, 12:45 PM
Michael DeHaan
 
Default Error when creating repo

Adrian Revill wrote:
Im not sure if ive missed a step, but i am setting up a new install of
cobbler 1.0.1-2 on rhel5.2


I have run
# cobbler repo add --name rhel-x86_64-server-5
--mirror=rhn://rhel-x86_64-server-5


and it seems to have setup /var/lib/cobbler/repo ok

I then run
#cobbler reposync


Thanks for the heads up.

Can you please file a Trac item here?

https://fedorahosted.org/cobbler

If you don't have a Fedora account it can be easily acquired from:

https://admin.fedoraproject.org/accounts

--Michael




and i get an error

- creating:
/var/www/cobbler/repo_mirror/.origin/rhel-x86_64-server-5.repo

- creating: /var/www/cobbler/repo_mirror/rhel-x86_64-server-5/config.repo
exceptions.IOError
[Errno 2] No such file or directory:
'/var/www/cobbler/repo_mirror/rhel-x86_64-server-5/config.repo'
File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 65,
in main

return BootCLI().run(sys.argv)
File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 44,
in run

return self.loader.run(args)
File "/usr/lib/python2.4/site-packages/cobbler/commands.py", line
69, in run

return fn.run()
File "/usr/lib/python2.4/site-packages/cobbler/modules/cli_misc.py",
line 227, in run

return self.api.reposync(self.options.only)
File "/usr/lib/python2.4/site-packages/cobbler/api.py", line 349, in
reposync


return reposync.run(name)
File "/usr/lib/python2.4/site-packages/cobbler/action_reposync.py",
line 78, in run

self.do_reposync(repo)
File "/usr/lib/python2.4/site-packages/cobbler/action_reposync.py",
line 198,

in do_reposync
self.create_local_file(repo, dest_path)
File "/usr/lib/python2.4/site-packages/cobbler/action_reposync.py",
line 248,

in create_local_file
config_file = open(fname, "w+")

If i create the directory
/var/www/cobbler/repo_mirror/rhel-x86_64-server-5 then it cures the error


_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools


_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 

Thread Tools




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

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