Modify

Ticket #527 (closed defect: fixed)

Opened 15 years ago

Last modified 15 years ago

Better error message when importscript.py can't read /etc/bcfg2.conf

Reported by: anonymous Owned by: desai
Priority: major Milestone: Bcfg2 0.9.5 Release
Component: bcfg2-client Version:
Keywords: Cc:

Description

/etc/bcfg2.conf is readable by root only and when importscript.py isn't ran by root or with sudo, we get this:

 python /usr/share/pycentral/bcfg2-server/site-packages/Bcfg2/Server/Reports/importscript.py 
Traceback (most recent call last):
  File "/usr/share/pycentral/bcfg2-server/site-packages/Bcfg2/Server/Reports/importscript.py", line 7, in ?
    import settings
  File "/usr/share/pycentral/bcfg2-server/site-packages/Bcfg2/Server/Reports/settings.py", line 6, in ?
    if c.get('statistics', 'web_debug') == "True":
  File "/usr/lib/python2.4/ConfigParser.py", line 511, in get
    raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'statistics'

Better error message probably can just be "/etc/bcfg2.conf not readable".

Attachments

Change History

comment:1 Changed 15 years ago by desai

  • Status changed from new to closed
  • Resolution set to fixed
  • Milestone set to Bcfg2 0.9.5 Release

Fixed in [721c80c052afc40cb4dac5fb2ee52435129e2c6f] (SVN r4411) and queued for the 0.9.5 series.

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

View

Add a comment

Modify Ticket

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


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

 
Note: See TracTickets for help on using tickets.