Setup:
Subversion 1.4.3v
Bugzilla 3.0.3v
ScmBug 0.25.2v

Issue #1:
The following error appears in error.log when trying to start daemon:

============================================
Tue Apr 29 11:05:22 2008 Package 'DBI' v1.50 not found. v0 found instead.
On a UNIX system, this package can be installed by running:
perl -MCPAN -e 'install DBI';

On a Windows system, this package can be installed by running:
C:> ppm
ppm> install DBI
Initialization of bug-tracking system 'Bugzilla' version '3.0.3'
failed. This could be due to an unsupported version of this system, or
misconfiguration.
Undefined subroutine &Scmbug::Daemon::Daemon::scmbug_error called at
C:/Program Files/Scmbug/share/scmbug/lib/Scmbug/Daemon/Daemon.pm line
752.
============================================

I have the following DBI package installed:
============================================
    Name: DBI
 Version: 1.59
  Author: Tim Bunce ([EMAIL PROTECTED])
   Title: DBI
Abstract: Database independent interface for Perl
Location: theory58S
Available Platforms:
       1. MSWin32-x86-multi-thread-5.8
============================================

The problem seems to be in the package_exists function located within
the Common.pm script that is called from the Bugzilla.pm script.

# A specific package version is requested. Check if this
# version exists.
no strict 'refs';
$version = ${"${package_name}::VERSION"} || ${"${package_name}::Version"} || 0;
$version = ${"${package_name}::VERSION"} || ${"${package_name}::Version"} || 0;
$version = -1 if $@;

The $version parameter (at least for me) is always 0.  I don't know
enough to know why but it is.  To get around this issue I've commented
out the following code within the Bugzilla.pm script.

============================================
#
# Require DBI version 1.50 on Windows. Earlier versions have
# threading issues.
#
if ($PRODUCT_ON_WINDOWS) {
  $package_name = "DBI";
  $package_version = "1.50";
  my $package_exists_retval;
  my $package_exists_version_found = "";
  ( $package_exists_retval, $package_exists_version_found ) =
package_exists( $package_name, $package_version );
  if ( $package_exists_retval == 0 ) {
    if ( $package_exists_version_found eq "" ) {
        return ( 2, "Package '" . $package_name . "' not found.
v$package_version is needed.\n" . package_installation_instructions(
$package_name ) );
    } else {
       return ( 2, "Package '" . $package_name . "' v$package_version
not found. v$package_exists_version_found found instead.\n" .
package_installation_instructions( $package_name ) );

  }
}
}
============================================



Issue #2:
I'm trying to upgrade repository glue running the following command:

============================================
scmbug_install_glue.pl --scm=Subversion --product=Scrub
--repository=file:///c:/SVN/Scrub --bug=1340 --binary-path="c:\Program
Files (x86)\Subversion\bin" --daemon=127.0.0.1
============================================

It would hang after a couple of iterations of hitting Enter to
continue and I would have to force it to stop.  I know I'm being very
vague here.  If I get some more info I will post it.  I haven't looked
into this that much because I was finally able to get it to work.  If
I ever get this working I'll have to upgrade more repositories so I'm
sure I'll come across this again.


Issue #3:
Attempted a commit and received the following message in my subversion client:

============================================
Modified: gary\temp\Scrub\Scrub.Build\CodeAccessScript.bat
Sending content: gary\temp\Scrub\Scrub.Build\CodeAccessScript.bat
Error: Commit failed (details follow):
Error: MERGE request failed on '/repos/Scrub/trunk/Scrub.Build'
Error: 'pre-commit' hook failed with error output:
Error: Scmbug notice:
---------------------------------------------------------
Error: Scmbug ERROR> Glue.pm:226 -
Error: *******************************************
Error: **
Error: **
Error: ** Scmbug error 126: The consolidate_cvs_messages SCM
configuration variable does not work on Windows. Please set this
variable to 0.
Error: **
Error: **
Error: *******************************************
Error: *******************************************
Error: **
Error: **
Error: ** Scmbug error 126: The consolidate_cvs_messages SCM
configuration variable does not work on Windows. Please set this
variable to 0.
Error: **
Error: **
Error: *******************************************
Error: READ configuration file
============================================

Changing the consolidate_cvs_messages variable value to 0 seemed to
fix this.  I'm surprised I had to do this since I specified the scm =>
{ name => 'Subversion'.  A possible fix for this would be to include
the following line within the if statement on line 225 within the
Glue.pm

============================================
$self->configuration()->{ scm }->{ name } eq "CVS" &&
============================================

This is what I did and it worked.


Issue #4:
Received the following error when trying to commit without defining a bug id.

============================================
Modified: gary\temp\Scrub\Scrub.Build\CodeAccessScript.bat
Sending content: gary\temp\Scrub\Scrub.Build\CodeAccessScript.bat
Error: Commit failed (details follow):
Error: MERGE request failed on '/repos/Scrub/trunk/Scrub.Build'
Error: 'pre-commit' hook failed with error output:
Error: Scmbug notice:
---------------------------------------------------------
Error: READ configuration file
Error: Scmbug notice: Preparing for VERIFICATION
Error: Undefined subroutine &Scmbug::Glue::SCM::scmbug_error called at
C:\SVN/Scrub/hooks/lib/scmbug/Scmbug/Glue/SCM.pm line 489.
============================================

I don't know what is going on now.  After much research into this it
appears that for some reason the scmbug_error function has been
removed from the Common.pm script.  I know that this function used to
exist in my ScmBug version 0.19.13.  I've temporarily added it back
and now receive the following error:

Modified: gary\temp\Scrub\Scrub.Build\CodeAccessScript.bat
Sending content: gary\temp\Scrub\Scrub.Build\CodeAccessScript.bat
Error: Commit failed (details follow):
Error: MERGE request failed on '/repos/Scrub/trunk/Scrub.Build'
Error: 'pre-commit' hook failed with error output:
Error: Scmbug notice:
---------------------------------------------------------
Error: READ configuration file
Error: Scmbug notice: Preparing for VERIFICATION
Error: *******************************************
Error: **
Error: **
Error: ** Scmbug error 3: No list of bug ids was found that matches
the log_bugid_regex 'bug\s*([\d|\s|,|#]*?):' and log_bugid_split_regex
',\s?#|\s?#|,|\s+' in the log message ''.
Error: **
Error: **
Error: *******************************************

This is closer to what I would expect but it still doesn't seem right.
 I'm starting to worry about this release or maybe I'm not doing
something correctly???



Issue #5:

I've then added the correct bug and comment and received the following error:

Modified: gary\temp\Scrub\Scrub.Build\CodeAccessScript.bat
Sending content: gary\temp\Scrub\Scrub.Build\CodeAccessScript.bat
Error: Commit failed (details follow):
Error: MERGE request failed on '/repos/Scrub/trunk/Scrub.Build'
Error: 'pre-commit' hook failed with error output:
Error: Scmbug notice:
---------------------------------------------------------
Error: READ configuration file
Error: Scmbug notice: Preparing for VERIFICATION
Error: Scmbug notice: Processing activity
Error: Scmbug notice: Submitting request
Error: Scmbug notice: Request submission was not replied to
Error: Scmbug ERROR> Connection.pm:357 -
Error: *******************************************
Error: **
Error: **
Error: ** Scmbug error 24: The daemon-spawned connection handler
exited abnormally. Please check the daemon error logs.
Error: **
Error: **
Error: *******************************************
Error: *******************************************
Error: **
Error: **
Error: ** Scmbug error 24: The daemon-spawned connection handler
exited abnormally. Please check the daemon error logs.
Error: **
Error: **
Error: *******************************************


error.log contains the following relevant message:
thread failed to start: Can't locate object method "new" via package
"Bugzilla::Bug" at C:/Program
Files/Scmbug/share/scmbug/lib/Scmbug/Daemon/Bugzilla.pm line 782,
<GEN1> line 34.


I'm done tracking this for now.  Has anyone else ran into these
issues.  I'm thinking I'm just doing something completely wrong here.
I know that I'm using Bugzilla 3.0.3 which according to the
documentation has not been fully tested but I don't think that is the
problem.  But maybe it is?

Any help would be greatly appreciated!

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

Reply via email to