Hello,
I want to try scmbug (0.23) to 'glue' svn 1.4.4 and bugzilla 3.0.2.
I've set everything (I think), added hooks to svn but when I try to
commit, I have an error because the daemon isn't active and the daemon
return that error:
Scmbug error 79: Package 'Bugzilla' not found in installation
directory '/usr/share/bugzilla-3.0'.
Weird, and Bugzilla seems to work well aside that.
Following that is a log of the error, a listing of Bugzilla's
directory and my daemon.conf file.
Jean Berniolles
~# /etc/init.d/scmbug-server start
Starting SCM to bug-tracking integration daemon: scmbug_daemon
*******************************************
**
**
** Scmbug error 79: Package 'Bugzilla' not found in installation directory
'/usr/share/bugzilla-3.0'.
Initialization of bug-tracking system 'Bugzilla' version '3.0.0' failed. This
could be due to an unsupported version of this system, or misconfiguration.
**
**
*******************************************
.
~# ls -al /usr/share/bugzilla-3.0
total 1056
drwxr-x--- 14 root www-data 4096 2007-12-10 11:07 .
drwxr-xr-x 112 root root 4096 2007-12-10 11:06 ..
-rwxrwx--- 1 root www-data 31221 2007-12-10 11:06 attachment.cgi
-rwxrwx--- 1 root www-data 51040 2007-12-10 11:06 buglist.cgi
drwxrwx--- 12 root www-data 4096 2007-12-10 11:07 Bugzilla
-rw-rw---- 1 root www-data 2835 2007-12-10 11:06 bugzilla.dtd
-rw-rw---- 1 root www-data 20214 2007-12-10 11:06 Bugzilla.pm
-rwxrwx--- 1 root www-data 10302 2007-12-10 11:06 chart.cgi
-rwx-w---- 1 root www-data 15860 2007-12-10 11:06 checksetup.pl
-rwxrwx--- 1 root www-data 4883 2007-12-10 11:06 colchange.cgi
-rwxrwx--- 1 root www-data 20871 2007-12-10 11:06 collectstats.pl
-rwxrwx--- 1 root www-data 3807 2007-12-10 11:06 config.cgi
drwxrwxr-x 6 root root 4096 2007-12-10 11:06 contrib
-rwxrwx--- 1 root www-data 2532 2007-12-10 11:06 createaccount.cgi
drwxrwxr-x 2 root root 4096 2007-12-10 11:06 CVS
drwxrwx--- 8 root www-data 4096 2007-12-10 11:10 data
-rwxrwx--- 1 root www-data 3118 2007-12-10 11:06 describecomponents.cgi
-rwxrwx--- 1 root www-data 1344 2007-12-10 11:06 describekeywords.cgi
drwxrwx--- 9 root www-data 4096 2007-12-10 11:06 docs
-rwxrwx--- 1 root www-data 9356 2007-12-10 11:06 duplicates.cgi
-rw-rw---- 1 root www-data 6684 2007-12-10 11:06 duplicates.xul
-rwxrwx--- 1 root www-data 8804 2007-12-10 11:06 editclassifications.cgi
-rwxrwx--- 1 root www-data 14654 2007-12-10 11:06 editcomponents.cgi
-rwxrwx--- 1 root www-data 4050 2007-12-10 11:06 editfields.cgi
-rwxrwx--- 1 root www-data 26538 2007-12-10 11:06 editflagtypes.cgi
-rwxrwx--- 1 root www-data 25919 2007-12-10 11:06 editgroups.cgi
-rwxrwx--- 1 root www-data 4748 2007-12-10 11:06 editkeywords.cgi
-rwxrwx--- 1 root www-data 10405 2007-12-10 11:06 editmilestones.cgi
-rwxrwx--- 1 root www-data 5720 2007-12-10 11:06 editparams.cgi
-rwxrwx--- 1 root www-data 40555 2007-12-10 11:06 editproducts.cgi
-rwxrwx--- 1 root www-data 2998 2007-12-10 11:06 editsettings.cgi
-rwxrwx--- 1 root www-data 32867 2007-12-10 11:06 editusers.cgi
-rwxrwx--- 1 root www-data 13589 2007-12-10 11:06 editvalues.cgi
-rwxrwx--- 1 root www-data 5892 2007-12-10 11:06 editversions.cgi
-rwxrwx--- 1 root www-data 19197 2007-12-10 11:06 editwhines.cgi
-rwxrwx--- 1 root www-data 15132 2007-12-10 11:06 email_in.pl
-rwxrwx--- 1 root www-data 22869 2007-12-10 11:06 enter_bug.cgi
drwxrwx--- 2 root www-data 4096 2007-12-10 11:07 extensions
drwxrwx--- 2 root www-data 4096 2007-12-10 11:07 graphs
-rw-r----- 1 root www-data 155 2007-12-10 11:07 .htaccess
drwxrwx--- 3 root www-data 4096 2007-12-10 11:06 images
-rwxrwx--- 1 root www-data 48452 2007-12-10 11:06 importxml.pl
-rwxrwx--- 1 root www-data 2571 2007-12-10 11:06 index.cgi
drwxrwx--- 3 root www-data 4096 2007-12-10 11:06 js
-rw-rw---- 1 root www-data 4308 2007-12-10 11:07 localconfig
-rwxrwx--- 1 root www-data 1271 2007-12-10 11:06 long_list.cgi
-rw-rw---- 1 root www-data 3362 2007-12-10 11:06 mod_perl.pl
-rwxrwx--- 1 root www-data 2019 2007-12-10 11:06 page.cgi
-rwxrwx--- 1 root www-data 8648 2007-12-10 11:06 post_bug.cgi
-rwxrwx--- 1 root www-data 87732 2007-12-10 11:06 process_bug.cgi
-rw-rw---- 1 root www-data 9237 2007-12-10 11:06 productmenu.js
-rwxrwx--- 1 root www-data 13092 2007-12-10 11:06 query.cgi
-rw-rw---- 1 root www-data 3600 2007-12-10 11:06 QUICKSTART
-rwxrwx--- 1 root www-data 4542 2007-12-10 11:06 quips.cgi
-rw-rw---- 1 root www-data 892 2007-12-10 11:06 README
-rwxrwx--- 1 root www-data 7536 2007-12-10 11:06 relogin.cgi
-rwxrwx--- 1 root www-data 12964 2007-12-10 11:06 report.cgi
-rwxrwx--- 1 root www-data 8832 2007-12-10 11:06 reports.cgi
-rwxrwx--- 1 root www-data 13220 2007-12-10 11:06 request.cgi
-rw-rw---- 1 root www-data 44 2007-12-10 11:06 robots.txt
-rwx-w---- 1 root www-data 1135 2007-12-10 11:06 runtests.pl
-rwxrwx--- 1 root www-data 36599 2007-12-10 11:06 sanitycheck.cgi
-rwxrwx--- 1 root www-data 986 2007-12-10 11:06 search_plugin.cgi
-rwxrwx--- 1 root www-data 2005 2007-12-10 11:06 show_activity.cgi
-rwxrwx--- 1 root www-data 1209 2007-12-10 11:06 showattachment.cgi
-rwxrwx--- 1 root www-data 4313 2007-12-10 11:06 show_bug.cgi
-rwxrwx--- 1 root www-data 9865 2007-12-10 11:06 showdependencygraph.cgi
-rwxrwx--- 1 root www-data 5389 2007-12-10 11:06 showdependencytree.cgi
-rwxrwx--- 1 root www-data 1795 2007-12-10 11:06 sidebar.cgi
drwxrwx--- 6 root www-data 4096 2007-12-10 11:07 skins
-rwxrwx--- 1 root www-data 17544 2007-12-10 11:06 summarize_time.cgi
drwx-w---- 4 root www-data 4096 2007-12-10 11:06 t
drwxrwx--- 4 root www-data 4096 2007-12-10 11:07 template
-rwxrwx--- 1 root www-data 876 2007-12-10 11:06 testagent.cgi
-rwxrwx--- 1 root www-data 8800 2007-12-10 11:06 testserver.pl
-rwxrwx--- 1 root www-data 14378 2007-12-10 11:06 token.cgi
-rw-rw---- 1 root www-data 188 2007-12-10 11:06 UPGRADING
-rw-rw---- 1 root www-data 18416 2007-12-10 11:06 UPGRADING-pre-2.8
-rwxrwx--- 1 root www-data 20304 2007-12-10 11:06 userprefs.cgi
-rwxrwx--- 1 root www-data 13307 2007-12-10 11:06 votes.cgi
-rwxrwx--- 1 root www-data 2753 2007-12-10 11:06 whineatnews.pl
-rwxrwx--- 1 root www-data 24530 2007-12-10 11:06 whine.pl
-rwxrwx--- 1 root www-data 1295 2007-12-10 11:06 xml.cgi
-rwxrwx--- 1 root www-data 1424 2007-12-10 11:06 xmlrpc.cgi
~# cat /etc/scmbug/daemon.conf
#
# This is a template configuration file for the
# scmbug-server daemon
#
$daemon_configuration = {
# Logging configuration
logs => { error => '/var/log/scmbug/error.log' ,
activity => '/var/log/scmbug/activity.log' },
# Port the daemon will start on
daemon_port => 3872,
#
# Execution mode of the daemon. There are 3 options:
#
# - 'threaded'. Multiple threads are created to handle incoming
# connections. This was observed to work well under Windows but
# cause a 3-fold slowdown under UNIX.
#
# - 'forked'. Multiple processes are created to handle incoming
# connections. This was observed to work well under UNIX
# and most Windows systems.
#
# - 'auto'. Automatically chooses between a 'threaded' or 'forked'
# mode.
daemon_mode => "auto",
# Configuration information of the bug tracking
# system
bugtracker => {
# The possible options are:
# - 'Bugzilla'
# - 'Mantis'
# - 'RequestTracker'
# - 'TestDirector'
type => 'Bugzilla',
# This MUST be in the format x.y.z, where x,y,z
# are integers
version => '3.0.0',
database_location => '127.0.0.1',
database_port => '3306',
# Valid values are the ones accepted by the Perl DBI.
#
# For Bugzilla and RequestTracker, this value is ignored
#
# For Mantis, *some* valid values (there are others) are:
# - 'mysql'
# - 'Pg'
database_vendor => 'mysql',
# For RequestTracker these values are ignored
database_name => 'bugzilla-3',
database_username => 'bugzilla',
database_password => 'secret',
# Used only for Bugzilla.
#
# Flags whether the live bugtracker instance is installed
# locally on the same machine the daemon is running
installed_locally => 1,
# Used for Bugzilla and RequestTracker.
#
# Path to the directory of the bugtracker sources providing an
# API that the daemon can use
installation_directory => '/usr/share/bugzilla-3.0',
# Prefix used to display a bug
bug_url_prefix => 'http://127.0.0.1/bugs3/show_bug.cgi?id=' },
# Translation list of SCM usernames to bug-tracking
# usernames. Mappings based on mapping_ldap are applied
# first. Mappings based on mapping_regexes are applied second and
# can override a mapping based on mapping_ldap. Mappings based on
# mapping_values are applied last and can override all other
# mappings.
userlist => {
# Apply a case sensitive username verification
case_sensitive_username_verification => 1,
mappings => {
# Enable SCM username translation. This flag must be
# turned on for any of the mappings that follow to apply.
enabled => 0,
# This is a mapping based on
# LDAP. ldap_scm_username_attribute defines the LDAP
# attribute that will be used to match the SCM
# username. The SCM username will be mapped into the
# bug-tracking username defined by
# ldap_bugtracking_username_attribute.
mapping_ldap => {
enabled => 0,
ldap_server => '127.0.0.1',
ldap_port => '389',
# A binddn (e.g. cn=default) that has access to read
# all attributes
ldap_binddn => 'replace_with_binddn',
# The password of the binddn that has access to read
# all attributes
ldap_binddn_password => 'replace_with_binddn_password',
# The BaseDN in which to search for the
# ldap_scm_username_attribute
# (e.g. "ou=People,o=Company")
ldap_basedn => 'replace_with_basedn',
# The name of the attribute containing the user's SCM
# username
ldap_scm_username_attribute => 'uid',
# The name of the attribute containing the user's
# bug-tracking username
ldap_bugtracking_username_attribute => 'mail',
# LDAP filter to AND with the
# ldap_scm_username_attribute for filtering the list
# of valid SCM users.
ldap_filter => ''
},
# This is a mapping based on regular expressions. The
# first expression defines how the SCM username will be
# matched. The second defines how it will be transformed,
# and uses the unnamed variable $1 that was described by
# the first expression. The mapping is checked for a match
# as:
# m/$first_regex/
# and is applied as: s/$first_regex/$second_regex/
mapping_regexes => {
enabled => 0,
values => {
# This is an example of mapping a Windows Domain
# user from 'DOMAIN\user' to
# '[EMAIL PROTECTED]'
'^DOMAIN\\\\(\w+)$' => '[EMAIL PROTECTED]',
# This is an example of mapping a UNIX user from
# 'example_user' to
# '[EMAIL PROTECTED]'
'^(\w+)$' => '[EMAIL PROTECTED]'
}
},
# This is a one-to-one mapping of SCM usernames to
# bugtracking usernames. Mappings in this list override
# mappings from mapping_regexes.
mapping_values => {
enabled => 1,
values => {
'jberniol' => '[EMAIL PROTECTED]',
'example_user2' => '[EMAIL PROTECTED]'
}
}
}
}
};
_______________________________________________
scmbug-users mailing list
[email protected]
http://lists.mkgnu.net/cgi-bin/mailman/listinfo/scmbug-users