Hello,

thank you for your help. It was a firewall and configuration problem. Now I 
succeed to install the glue. I added the export PERL5LIB=/path/to/Bugzilla/lib 
to my scmbug start script.



When I commit I get the error:

Scmbug ERROR> Bugzilla.pm:549:Scmbug::Daemon::Bugzilla::bug_status_map - 
Undefined subroutine &Scmbug::Daemon::Bugzilla::def_or called at 
/usr/share/scmbug/lib/Scmbug/Daemon/Bugzilla.pm line 549.



I think it can be also a configuration error because I new to scmbug, so I 
don´t know how to configurate it propaly. Can you please told me what I did 
wrong in my config files? The config file are attached.



Thanks


From: [email protected] 
[mailto:[email protected]] On Behalf Of Amouzou, Afi
Sent: Tuesday, June 28, 2011 11:39 AM
To: [email protected]
Subject: [scmbug-users] Bugzilla 4.0.1 Support Problems

Hello,

I have some Problems to start the scmbug server. I am using scmbug 0.26.22 , 
Bugzilla 4.0.1 and SVN 1.6.15.  I installed the scmbug server and apply the 
following patch:


 *   scmbug-customization-0.26.22.patch from 
http://www.mail-archive.com/[email protected]/msg02522.html
 *   scmbug_bugzilla_use_lib_with_Factory.patch from 
http://www.mail-archive.com/[email protected]/msg02666.html
 *   scmbug_bugzilla_custom_status_workflow.patch from 
http://www.mail-archive.com/[email protected]/msg02681.html

When I start the server I get the following errors:

Starting SCM to bug-tracking integration daemon: scmbug_daemon
Using a hash as a reference is deprecated at 
/usr/share/scmbug/lib/Scmbug/Daemon/Process.pm line 1206.
Using a hash as a reference is deprecated at 
/usr/share/scmbug/lib/Scmbug/Daemon/Process.pm line 1207.
Using a hash as a reference is deprecated at 
/usr/share/scmbug/lib/Scmbug/Daemon/Process.pm line 1208.
Using a hash as a reference is deprecated at 
/usr/share/scmbug/lib/Scmbug/Daemon/Process.pm line 1217.
Using a hash as a reference is deprecated at 
/usr/share/scmbug/lib/Scmbug/Daemon/Process.pm line 1221.
Using a hash as a reference is deprecated at 
/usr/share/scmbug/lib/Scmbug/Daemon/Process.pm line 1225.
.
.
But in activity.log I didn´t get any error:
Scmbug WARN> Daemon.pm:78:Scmbug::Daemon::Daemon::read_configuration - Read 
configuration file '/etc/scmbug/daemon.conf'
Scmbug WARN> Daemon.pm:392:Scmbug::Daemon::Daemon::start_daemon_forked - Server 
started on port '3872' (forked mode)

And if I want to install the glue I get the error: scmbug error 32: Unable to 
connect to integration daemon at “My IP”, port ‘3872’. Is the daemon running?

Can you please help me with the error. I have searched in the Internet but I 
can´t find anything helpful

Best Regards,

Afi Ahoefa Amouzou
FTS TSP DCS R&D QA1

FUJITSU
Fujitsu Technology Solutions GmbH
Bürgermeister Ulrich Straße 100
86199 Augsburg Deutschland
Tel: +49 821 804-1402
Email: [email protected]<mailto:[email protected]>
Web: ts.fujitsu.com
Company Info: de.ts.fujitsu.com/imprint<http://de.ts.fujitsu.com/imprint.html>



############### glue.conf #################

$glue_configuration = { 
enabled => 1,
log4perl.category.Glue             = WARN, AppWarn, AppRest

# Filter to match level WARN
log4perl.filter.MatchWarn  = Log::Log4perl::Filter::LevelMatch
log4perl.filter.MatchWarn.LevelToMatch  = WARN
log4perl.filter.MatchWarn.AcceptOnMatch = true

# Filter to match everything but WARN
log4perl.filter.MatchRest  = Log::Log4perl::Filter::LevelMatch
log4perl.filter.MatchRest.LevelToMatch  = WARN
log4perl.filter.MatchRest.AcceptOnMatch = false

# Simple layout for WARN messages
log4perl.appender.AppWarn = Log::Log4perl::Appender::Screen
log4perl.appender.AppWarn.layout   = Log::Log4perl::Layout::PatternLayout
log4perl.appender.AppWarn.layout.ConversionPattern = Scmbug notice: %m
log4perl.appender.AppWarn.Filter   = MatchWarn

# Elaborate layout for the rest
log4perl.appender.AppRest = Log::Log4perl::Appender::Screen
log4perl.appender.AppRest.layout   = Log::Log4perl::Layout::PatternLayout
log4perl.appender.AppRest.layout.ConversionPattern = Scmbug %p> %F{1}:%L:%M - %m
log4perl.appender.AppRest.Filter   = MatchRest

# Log all glue activity to a file
log4perl.appender.Logfile          = Log::Log4perl::Appender::File
log4perl.appender.Logfile.filename = /var/log/scmbug/scmbug_glue.log
log4perl.appender.Logfile.layout   = Log::Log4perl::Layout::PatternLayout
log4perl.appender.Logfile.layout.ConversionPattern = %d Scmbug %p> %F{1}:%L:%M 
- %m
',

    scm => {
                name => 'Subversion',
                binary_paths => '/bin,/usr/bin',
                label_directories => [
                                                     'tags',
                                                     'branches'
                                                     ],
                main_trunk_directories => [
                                                                  'trunk'
                                                                  ],
                consolidate_cvs_messages => 0
    },
    daemon => {
                location => My IP,
                port => 3872,
                },
    policies => {

                log_template => {
                log_bugid_regex => '^\s*bug\s*([\d|\s|,|#]*?):',
                 log_bugid_split_regex => ',\s?#|\s?#|,|\s+',
                  log_body_regex => '^\s*bug.*?:\s*(.*)'
                    },

                resolution_template => {
                    enabled => 1,
                    resolution_bugid_regex => '^\s*status\s*([\d|\s|,|#]*?):',
                 resolution_bugid_split_regex => ',\s?#|\s?#|,|\s+',
                    
                    resolution_status_regex => '^\s*status.*?:\s*(\S+)\s*.*',
                    
                    resolution_status_resolution_regex => 
'^\s*status.*?:\s*\S+\s+(\S+)',
                    
                    resolution_status_resolution_data_regex => 
'^\s*status.*?:\s*\S+\s+\S+\s+(\S+)',
            # Apply a case sensitive resolution and resolution status 
verification
            resolution_status_case_sensitive_verification => 0,
                   resolution_status_convert => {
                               enabled => 1,
                               # Regular expressions that will be applied to 
convert
                               # the characters of all resolution_status_*
                               # information. It is applied for substitution as:
                               #
                               # s/$convert_from/$convert_to/g
                               resolution_status_convert_from => '!',
                               resolution_status_convert_to => ' '
                               },
                    # The bugs whose resolution status will be changed must be
                    # filed against a valid product name.
                    resolution_valid_product_name => 1,
                    # The SCM user must be the user to which the bugs whose
                    # resolution status will be changed are assigned
                    resolution_valid_bug_owner => 1,
                    },

                presence_of_bug_ids =>  {
                    value => 'required'
                    },

                valid_bug_owner => {
                    enabled => 0
                    },

                anonymous_scm_username => {
                    enabled => 0,
                    value => 'anonymous_scm_user'
                    },

                # The bug against which an activity is issued must be in an
                # open state
                open_bug_state => {
                    enabled => 1
                    },

                # Minimum number of characters log message.
                minimum_log_message_size => {
                    enabled => 1,
                    size => 5
                    },

                # Format of label names (tag or branch names) defined as
                # regular expressions.
                label_name => {
                    enabled => 1,
                    names => [
                                     # Convention for official releases.
                                     # For example:
                                     # SCMBUG_RELEASE_0-2-7
                                     '^.+?_RELEASE_[0-9]+-[0-9]+-[0-9]+$',

                                     # Convention for development builds.
                                     # For example:
                                     # 
SCMBUG_BUILD_28_added_a_policies_mechanism
                                     '^.+?_BUILD_[0-9]+_.+$',

                                     # Convention for branches.
                                     # For example:
                                     # 
b_experimenting_with_policies_on_glue_side
                                     '^b_.+$',

                                     # Convention for private developer tags. 
Uses
                                     # the developer's initials (either 2 or 3).
                                     # For example:
                                     # p_kpm_prior_to_bug353_stabilization_fixes
                                     '^p_[a-zA-Z][a-zA-Z]?[a-zA-Z]_.+$'
                                     ]
                                 },

                # The bug against which an activity is issued must be filed
                # against a valid product name.
                valid_product_name => {
                    enabled => 1
                    },

# This policy is ALWAYS enabled
                product_name_definition => {
                    values => { '(.*)' => 'CVS/SVN' }
                    },

                #
                # Send email notifications after integration activity
                #
                mail_notification => {
            # Send an email after a successful activity (both
            # verifying and labeling)
                    mail_on_success => 0,
                    
                    mail_on_failure => 0,
                    mail_settings => {
                               To => 
'[email protected]',
                               From => 'Scmbug 
<[email protected]>',
                               Smtp => 
'replace_with_mail_server.exampledomain.com'
                    },
                    # Sending email when a tag is moved or deleted in CVS can
                    # be annoying, since multiple emails are sent per
                    # directory (but not when a tag is added). mail_on_label
                    # can disable that behavior.
                    mail_on_label => 1,
                    mail_recipients => {
                               # Make the email also appear to have been sent 
by the
                               # SCM user.
                               mail_also_appears_from_scm_user => 1,
                               # List of users that will be notified
                               mail_scm_user => 1,
                               mail_bug_owner => 1,
                               mail_bug_reporter => 1,
                               mail_bug_monitors => 1,
                               mail_product_owners => 1
                               }
                }
    }
};
#################################################################
#
#
######################## daemon.conf ###########################


$daemon_configuration = {
    logging => '
log4perl.category.Daemon           = WARN, Logfile

# Log all daemon activity to a file
log4perl.appender.Logfile          = Log::Log4perl::Appender::File
log4perl.appender.Logfile.filename = /var/log/scmbug/activity.log
log4perl.appender.Logfile.layout   = Log::Log4perl::Layout::PatternLayout
log4perl.appender.Logfile.layout.ConversionPattern = %d Scmbug %p> %F{1}:%L:%M 
- %m
',
    # Port the daemon will start on
    daemon_port => 3872,

    # Pid file the daemon will use
    daemon_pidfile => "/var/run/scmbug_daemon.pid",
    daemon_mode => "auto",

    # Configuration information of the bug tracking
    # system
    bugtracker => {
                type => 'Bugzilla',
                version => '4.0.1',
                database_location => '127.0.0.1',
                database_port => '3306',
                
                database_vendor => 'mysql',
                # For RequestTracker these values are ignored
                database_name => 'dbuser',
                database_username => 'myuser',
                database_password => 'mypass',
                installed_locally => 1,
                installation_directory => '/srv/www/htdocs/bugzilla-4.0.1',

                # Prefix used to display a bug
                bug_url_prefix => 'http://127.0.0.1/show_bug.cgi?id='

                bug_status_map => {
                               "CONFIRMED" => {
                                               name => "CONFIRMED",
                                               active => 0,
                                               accepts_data_as_resolution => 1,
                                               possible_resolution_states => [ 
"CONFIRMED", "IN_PROGRESS", "RESOLVED" ],
                                               possible_resolutions => [ ] },
                               "IN_PROGRESS" => {
                                               name => "IN_PROGRESS",
                                               active => 1,
                                               accepts_data_as_resolution => 0,
                                               verify_is_owner => 1,
                                               possible_resolution_states => [ 
"CONFIRMED", "RESOLVED" ],
                                               possible_resolutions => [ ] },
                               "RESOLVED" => {
                                               name => "RESOLVED",
                                               active => 0,
                                               accepts_data_as_resolution => 0,
                                               possible_resolution_states => [ 
"CONFIRMED", "VERIFIED" ],
                                               accepts_resolution => 1,
                                               possible_resolutions => [
                                                                              
"FIXED",
                                                                              
"INVALID",
                                                                              
"WONTFIX",
                                                                              
"LATER",
                                                                              
"REMIND",
                                                                              
"DUPLICATE",
                                                                              
"WORKSFORME" ] },
                               "VERIFIED" => {
                                               name => "VERIFIED",
                                               active => 0,
                                               accepts_data_as_resolution => 0,
                                               possible_resolution_states => [ 
"CONFIRMED" ],
                                               accepts_resolution => 1,
                                               possible_resolutions => [
                                                                              
"FIXED",
                                                                              
"INVALID",
                                                                              
"WONTFIX",
                                                                              
"LATER",
                                                                              
"REMIND",
                                                                              
"DUPLICATE",
                                                                              
"WORKSFORME" ] }
                }


},

    userlist => {
                case_sensitive_username_verification => 1,

                mappings => {
                    enabled => 1,
                    mapping_ldap => {
                               enabled => 0,
                               ….
                               },
                    mapping_regexes => {
                               enabled => 0,
                               …
                    },
                    mapping_values => {
                               enabled => 0,
                               values => {
                                   'DOMAIN\\example_user' => 
'[email protected]',
                                   'mySVN User' => 'My Bugzilla User'
                                   }
                    }
                }
                
    }

};

_______________________________________________
scmbug-users mailing list
[email protected]
http://lists.mkgnu.net/cgi-bin/mailman/listinfo/scmbug-users

Reply via email to