error after upgrading Bugzilla from 3.2.2 to 3.2.3

classic Classic list List threaded Threaded
5 messages Options
J X
Reply | Threaded
Open this post in threaded view
|

error after upgrading Bugzilla from 3.2.2 to 3.2.3

J X
Hi,

I have two Windows Server 2003 machines running Bugzilla 3.2.2 +
Testopia 2.2, one is production and the other is for test, both have
same configuration. I tried to upgrade it with patch file
bugzilla-3.2.2-to-3.2.3.diff.gz, and my steps are:
1) Shut down your Bugzilla installation by putting some HTML or text
in the shutdownhtml parameter
2) untar the .diff file and use unix2dos.exe to  replace Unix line
feed characters with Windows carriage returns
3) run the command: path -p1 < bugzilla-3.2.2-to-3.2.3.diff
4) run the command: perl checksetup.pl
5) remove the text of shutdownhtml parameter from \data\params file

The weird is it was fine on my test machine but it failed on my
production one. I got the following error when connect to Bugzilla in
browser:
[[[
Software error:
Can't locate Bugzilla/Constants.pm in @INC (@INC contains: . lib C:/
perl/site/lib C:/perl/lib) at Bugzilla/Config.pm line 36.
BEGIN failed--compilation aborted at Bugzilla/Config.pm line 36.
Compilation failed in require at Bugzilla.pm line 38.
BEGIN failed--compilation aborted at Bugzilla.pm line 38.
Compilation failed in require at C:\Inetpub\wwwroot
\bugzilla-3.2.2\index.cgi line 34.
BEGIN failed--compilation aborted at C:\Inetpub\wwwroot
\bugzilla-3.2.2\index.cgi line 34.
]]]

Could anybody help me how to solve this problem? The Bugzilla/
Constants.pm file is phsically there but seems can't be load.
_______________________________________________
support-bugzilla mailing list
[hidden email]
https://lists.mozilla.org/listinfo/support-bugzilla
PLEASE put [hidden email] in the To: field when you reply.
Reply | Threaded
Open this post in threaded view
|

Re: error after upgrading Bugzilla from 3.2.2 to 3.2.3

Max Kanat-Alexander
J X wrote:
> Software error:
> Can't locate Bugzilla/Constants.pm in @INC (@INC contains: . lib C:/
> perl/site/lib C:/perl/lib) at Bugzilla/Config.pm line 36.

        That means that the webserver doesn't have permission to read the file.
Perhaps its permissions got reset when you did the "patch" command
(which you specified as "path" above, but I assume that was a typo).

        -Max
--
http://www.everythingsolved.com/
Competent, Friendly Bugzilla and Perl Services. Everything Else, too.
_______________________________________________
support-bugzilla mailing list
[hidden email]
https://lists.mozilla.org/listinfo/support-bugzilla
PLEASE put [hidden email] in the To: field when you reply.
Reply | Threaded
Open this post in threaded view
|

Re: error after upgrading Bugzilla from 3.2.2 to 3.2.3

Marc Schumann
In reply to this post by J X
J,

2009/7/16 J X <[hidden email]>:
> Can't locate Bugzilla/Constants.pm in @INC (@INC contains: . lib C:/

do you use Cygwin? Cygwin's patch.exe does evil things to Windows
permissions which checksetup.pl is unable to fix. Compare permissions
on patched files to those on unpatched files and repair the broken
ones.

   Kind regards
      Marc
_______________________________________________
support-bugzilla mailing list
[hidden email]
https://lists.mozilla.org/listinfo/support-bugzilla
PLEASE put [hidden email] in the To: field when you reply.
J X
Reply | Threaded
Open this post in threaded view
|

Re: error after upgrading Bugzilla from 3.2.2 to 3.2.3

J X
In reply to this post by J X
On Jul 15, 11:21 pm, Marc Schumann <[hidden email]> wrote:

> J,
>
> 2009/7/16 J X <[hidden email]>:
>
> > Can't locate Bugzilla/Constants.pm in @INC (@INC contains: . lib C:/
>
> do you use Cygwin? Cygwin's patch.exe does evil things to Windows
> permissions which checksetup.pl is unable to fix. Compare permissions
> on patched files to those on unpatched files and repair the broken
> ones.
>
>    Kind regards
>       Marc

I think I used GnuWin32 patch.exe to do the patch. I would examine the
file permissions as you suggested to see if any clue. The weird is I
used same version of utility tools doing the same procedure twice, one
successful and another fail.
_______________________________________________
support-bugzilla mailing list
[hidden email]
https://lists.mozilla.org/listinfo/support-bugzilla
PLEASE put [hidden email] in the To: field when you reply.
J X
Reply | Threaded
Open this post in threaded view
|

Re: error after upgrading Bugzilla from 3.2.2 to 3.2.3

J X
On Jul 16, 10:10 am, J X <[hidden email]> wrote:

> On Jul 15, 11:21 pm, Marc Schumann <[hidden email]> wrote:
>
> > J,
>
> > 2009/7/16 J X <[hidden email]>:
>
> > > Can't locate Bugzilla/Constants.pm in @INC (@INC contains: . lib C:/
>
> > do you use Cygwin? Cygwin's patch.exe does evil things to Windows
> > permissions which checksetup.pl is unable to fix. Compare permissions
> > on patched files to those on unpatched files and repair the broken
> > ones.
>
> >    Kind regards
> >       Marc
>
> I think I used GnuWin32 patch.exe to do the patch. I would examine the
> file permissions as you suggested to see if any clue. The weird is I
> used same version of utility tools doing the same procedure twice, one
> successful and another fail.

Hi Marc,

I've fixed my problem! You are right, the actual cause is the Windows
permissions of those patched files. I did upgrading on my test machine
with a local account, but upgraded production server with a Remote
Desktop account. I noticed the patched files have different
permissions with the rest, and I then manually fixed them, and it
works!

Thank you for your helpful advice!
JX
_______________________________________________
support-bugzilla mailing list
[hidden email]
https://lists.mozilla.org/listinfo/support-bugzilla
PLEASE put [hidden email] in the To: field when you reply.