Click here to register.
      
Bazaar


    

Can't locate object method "server"

User ddjones
Date 1/26/2007 5:21 pm
Views 2770
Rating 2    Rate [
|
]
Previous · Next
User Message
ddjones

Trying to get WebGUI installed and running on Debian unstable.  Running testEnvironment.pl gives me an error that the WebGUI modules can't be found.  A previous thread on here indicated I need to run preload.perl first.  Doing that gives the following error:

  Can't locate object method "server" via package "Apache2::ServerUtil" at preload.perl line 57.

Google doesn't provide any info on this error that I can find.  (There's one hit and it's a question with no response.)  Any ideas or suggestions appreciated.

--- (Edited on 1/26/2007 5:21 pm [GMT-0600] by ddjones) ---



Back to Top
Rate [
|
]
 
 
crythias

It's probably correct, but we need more info to assist you. The most likely cause of your error is that preload.perl points to a different path than reality suggests.


--
Maintainer of an unofficial WebGUI FAQ Please contribute questions or answers!
When asking questions on this forum, please indicate (at least) which version of WebGUI you are using. Optional, but sometimes helpful, are your Operating System name and version, PERL version, and Apache version. The little icons next to my picture indicate my IM status. Yes, you are welcome to IM me. I am not an employee of Plain Black. My offers of assistance are subject to the general disclaimer of this discussion board that my answer may be completely wrong. Have a great day!

www.gwy.org Crythias' Skype status U2U crythias on #webgui on irc.freenode.net

--- (Edited on 1/26/2007 7:57 pm [GMT-0500] by crythias) ---



Back to Top
Rate [
|
]
 
 
ddjones

Thanks for the response.  It seems to me that everything is pointing correctly, although I'm far from expert and could be missing something.

Luke:/usr/share/webgui/sbin# head preload.perl
my $webguiRoot;

BEGIN {
        $webguiRoot = "/usr/share/webgui";
        unshift (@INC, $webguiRoot."/lib");
}

$webguiRoot is correctly pointing to the location where webgui is installed.

 Luke:/# locate ServerUtil.pm
/usr/lib/perl5/Apache2/ServerUtil.pm

Luke:/# perl -e 'print "@INC\n";'
/etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .

Apache2/ServerUtil.pm is on the system, and the directory is included in @INC.

I'll be happy to post any other info you need if you'll let me know what that is.

--- (Edited on 1/27/2007 7:44 am [GMT-0600] by ddjones) ---



Back to Top
Rate [
|
]
 
 
speedness

I have exactly the same issue.  I have ServerUtil.pm, and it's in @INC. I'm trying to install WebGUI 7.3.8 on a Gentoo system.

testEnvironment.pl gives me all OKs, no errors! but when I run preload.perl, I get the "Cannot locate object method "server" via package "Apache2::ServerUtil" at preload.perl line 57.

 

One thing I noticed was that any mention of  "server" is after the __END__ tag . . .

Here is the file before the __END__ tag:

#
# /*
#  * *********** WARNING **************
#  * This file generated by ModPerl::WrapXS/0.01
#  * Any changes made here will be lost
#  * ***********************************
#  * 01: lib/ModPerl/Code.pm:709
#  * 02: lib/ModPerl/WrapXS.pm:625
#  * 03: lib/ModPerl/WrapXS.pm:1174
#  * 04: Makefile.PL:423
#  * 05: Makefile.PL:325
#  * 06: Makefile.PL:56
#  */
#


package Apache2::ServerUtil;

use strict;
use warnings FATAL => 'all';



use Apache2::XSLoader ();
our $VERSION = '2.000003';
Apache2::XSLoader::load __PACKAGE__;



1;
__END__
 

--- (Edited on 2/13/2007 8:06 pm [GMT-0600] by speedness) ---



Back to Top
Rate [
|
]
 
 
fishingfan

May or  may not be related.

Saw testEnvironment.pl fail on the webGUI modules until the apache2::request works.

On windows I resolved by adding the apreq.so to the $PATH. 

Chris

CA-Dev.co.uk 

--- (Edited on 2/14/2007 4:41 am [GMT-0600] by fishingfan) ---



Back to Top
Rate [
|
]
 
 
sstanvir

I am also having the same problem,

when I try to run apache it shows started and in the /apache2/logs/error_log  there is no error message

in /var/log/webgui.log :

spectre.conf - POE::Kernel::_dispatch_event[1012] - ADMIN: Couldn't connect to WebGUI site www.domain.com.conf
 

but when I execute the following (from /data/WebGUI/sbin/)

# perl preload.perl

it shows:

Starting WebGUI 7.3.13
Can't locate object method "server" via package "Apache2::ServerUtil" at preload.perl line 57..

I checked the Apache2::ServerUtil is installed, also I did the following:

# perl testEnvironment.pl

output:

***********************************************

# perl testEnvironment.pl

WebGUI is checking your system environment:

Operating System:                            Linuxish
WebGUI Root:                                      ..
Perl Interpreter:                                    OK
Checking for module LWP:                     OK
Checking for module HTTP::Request:     OK
Checking for module HTTP::Headers:     OK
Checking for module Test::More:           OK
Checking for module Test::MockObject: Not Installed

The perl module Test::MockObject is not installed, do you want to install it now? {y|n} [y] y
Attempting to install Test::MockObject...
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
  Database was generated on Wed, 04 Apr 2007 03:09:19 GMT
Test::MockObject is up to date.
Checking for module Test::MockObject:        OK
Checking for module Test::Deep:              Not Installed

The perl module Test::Deep is not installed, do you want to install it now? {y|n} [y] y
Attempting to install Test::Deep...
Test::Deep is up to date.
Checking for module Test::Deep:              OK
Checking for module Pod::Coverage:        OK
Checking for module Text::Balanced:         OK
Checking for module Digest::MD5:             OK
Checking for module DBI:                           OK
Checking for module DBD::mysql:              OK
Checking for module HTML::Parser:            OK
Checking for module Archive::Tar:              OK
Checking for module Archive::Zip:            Not Installed

The perl module Archive::Zip is not installed, do you want to install it now? {y|n} [y] y
Attempting to install Archive::Zip...
Archive::Zip is up to date.
Checking for module Archive::Zip:            OK
Checking for module IO::Zlib:                   OK
Checking for module Compress::Zlib:       Outdated - Current:  / Required: 1.34

The perl module Compress::Zlib is outdated, do you want to upgrade it now? {y|n} [y] y
Attempting to install Compress::Zlib...
Compress::Zlib is up to date.
Checking for module Compress::Zlib:        OK
Checking for module Net::SMTP:               OK
Checking for module MIME::Tools:             OK
Checking for module Net::POP3:               OK
Checking for module Tie::IxHash:              OK
Checking for module Tie::CPHash:             OK
Checking for module XML::Simple:             OK
Checking for module SOAP::Lite:               OK
Checking for module DateTime:                 OK
Checking for module Time::HiRes:              OK
Checking for module DateTime::Format::Strptime: OK
Checking for module DateTime::Format::Mail:  OK
Checking for module Image::Magick:          Not Installed

The perl module Image::Magick is not installed, do you want to install it now? {y|n} [y] y
Attempting to install Image::Magick...
Image::Magick is up to date.
Checking for module Image::Magick:            OK
Checking for module Log::Log4perl:             OK
Checking for module Net::LDAP:                   OK
Checking for module HTML::Highlight:           OK
Checking for module HTML::TagFilter:           OK
Checking for module HTML::Template:          OK
Checking for module HTML::Template::Expr: OK
Checking for module Parse::PlainConfig:        OK
Checking for module XML::RSSLite:               OK
Checking for module JSON:                           OK
Checking for module Net::Subnets:               OK
Checking for module Finance::Quote:            OK
Checking for module POE:                              OK
Checking for module POE::Component::IKC::Server: OK
Checking for module POE::Component::Client::HTTP: OK
Checking for module Data::Structure::Util:     OK
Checking for module Apache2::Request:         OK
Checking for module Cache::Memcached:       OK
Checking for module URI::Escape:                  OK
Checking for module POSIX:                           OK
Checking for module List::Util:                        OK
Checking for module Color::Calc:                   OK
Checking for module Text::Aspell:                  OK
Checking for module Locale::US:                    OK
Checking for module Weather::Com::Finder:    Not Installed

The perl module Weather::Com::Finder is not installed, do you want to install it now? {y|n} [y] y
Attempting to install Weather::Com::Finder...
Weather::Com::Finder is up to date.
Checking for module Weather::Com::Finder:    OK
WebGUI modules:                                            OK
Getting current WebGUI version:                       OK
Your version:                                You are using 7.3.13-stable and 7.3.14-stable is available.
Locating WebGUI configs:                     OK

Checking config file:                        www.domain.com.conf
Verifying uploads folder:                        OK
Verifying DSN:                                      OK
Verifying database connection:              OK

Testing complete!

************************************************

as everything looks ok I can't figure it out!

when i try:

# /usr/local/apache2/bin/apachectl start

or  

# /usr/local/apache2/bin/httpd -k start

it shows:

Starting WebGUI 7.3.13
        Loading www.domain.com.conf
WebGUI Started!
/usr/local/apache2/bin/apachectl: line 78:  5622 終了しました            $HTTPD -k $ARGV

I would highly appreciate if anybody can help me out, thanks! 

 

--- (Edited on 4/4/2007 9:42 pm [GMT-0500] by sstanvir) ---



Back to Top
Rate [
|
]
 
 
sstanvir

Solved!

Added the following to : /usr/local/apache2/conf/httpd.conf

user daemon

group daemon
 

and then restarted apache,now it's working!

(note: When I have the <VirtualHost > part in httpd.conf the above user/group was required, but when I deleted the <VirtualHost> part for testing and there was no such user/group the apache was running)

 

--- (Edited on 4/5/2007 4:16 am [GMT-0500] by sstanvir) ---



Back to Top
Rate [
|
]
 
 
sstanvir

well. actually that didn't work.. i don't know how it was running, after restarting apache again it started showing the same error..

but finally I solved it out.

it was totally problem with perl modules,

I wrote in details:

http://www.plainblack.com/install/upgrade_help/fresh-installation-of-webgui-7.3.13#lOK_myX1AqKV_SeSmHWhZw

After installing all the broken modules now apache and webGUI are running fine,

but if i execute #perl preload.perl it shows the same message "can't locater server..." though the WebGUI is running fine!! I am now just ignoriing that.

--- (Edited on 4/6/2007 5:05 am [GMT-0500] by sstanvir) ---



Back to Top
Rate [
|
]
 
 
    



Recent Discussions Color Key

Design:

Development:

Et Cetera:

Install/Upgrade:  

Smoketest:

Template Group:


Re: Navigation links by techwriter - Fri @ 03:23pm

Re: Best way to make files available to webgui comunity by bernd - Fri @ 02:50pm

Re: User event history by knowmad - Fri @ 02:02pm

Re: Best way to make files available to webgui comunity by lctn2 - Fri @ 01:55pm

Re: Strategic Roadmap by JT - Fri @ 01:55pm

Re: Navigation links by rogier - Fri @ 01:55pm

Re: 2009 Presidents Meeting by JT - Fri @ 01:10pm

Re: navigation new window by rogier - Fri @ 01:03pm

Re: navigation new window by rogier - Fri @ 12:53pm

Re: WUC 2009 by JT - Fri @ 12:50pm

Re: Best way to make files available to webgui comunity by preaction - Fri @ 12:35pm

Re: Pagination markup by rogier - Fri @ 12:35pm

Re: Best way to make files available to webgui comunity by kristi - Fri @ 12:29pm

Debian and Ubuntu Packaging Status by jmarsden - Fri @ 12:12pm