Ticket #1068 (closed defect: fixed)

Opened 12 years ago

Last modified 11 years ago

Malformed URL in Packages/config.xml Throws Traceback

Reported by: rcuza Owned by:
Priority: minor Milestone: Bcfg2 1.2.1 Release (Bugfix)
Component: bcfg2-server Version: 1.0
Keywords: v1.1.3 Cc: [email protected]


When there is a URl that returns a 404 error in the Packages/config.xml file, running bcfg2 on a client throws a traceback error.

Here is an example

Failed to read file
/var/lib/bcfg2/Packages/cache/http:@@[email protected]@[email protected]@[email protected]@[email protected]
Packages: File read failed; falling back to file download
Packages: Updating
Packages: Failed to fetch url
Packages: Updating
Packages: Failed to fetch url
Failed to read file
/var/lib/bcfg2/Packages/cache/http:@@[email protected]@[email protected]@[email protected]@[email protected]
Failed to update source
Traceback (most recent call last):
 File "/usr/lib/pymodules/python2.6/Bcfg2/Server/Plugins/",
line 120, in setup_data
 File "/usr/lib/pymodules/python2.6/Bcfg2/Server/Plugins/",
line 403, in read_files
   reader = gzip.GzipFile(fname)
 File "/usr/lib/python2.6/", line 79, in __init__
   fileobj = self.myfileobj =, mode or 'rb')
IOError: [Errno 2] No such file or directory:
'/var/lib/bcfg2/Packages/cache/http:@@[email protected]@[email protected]@[email protected]@[email protected]'
Loading experimental plugin(s): Packages

Expected result is no traceback. The "Failed to fetch" and 404 should be sufficient to get the sysadmin looking in the right direction.

Nice to have: suggested troubleshooting steps in error message.


Change History

comment:1 Changed 12 years ago by solj

  • Cc [email protected] added
  • Milestone changed from Bcfg2 1.3.0 Release to Bcfg2 1.2.1 Release (Bugfix)

Can you reproduce this with the latest HEAD?

comment:2 Changed 12 years ago by solj

  • Component changed from bcfg2-client to bcfg2-server

comment:3 Changed 12 years ago by rcuza

  • Keywords v1.1.3 added

This traceback was produced with version 1.1.3. I will update bug when I've had a chance to test it against HEAD.

Note: Plugins/Packages?.py was rebuilt from 1.1.3 to current HEAD.

comment:4 Changed 11 years ago by

  • Owner changed from desai to
  • Status changed from new to accepted

comment:5 Changed 11 years ago by

  • Status changed from accepted to closed
  • Resolution set to fixed

WARNING! You need to establish a session before you can create or edit tickets. Otherwise the ticket will get treated as spam.


Add a comment

Modify Ticket

Change Properties
<Author field>
as closed
The resolution will be deleted. Next status will be 'reopened'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.