Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

[mv] Problem report, DEBUG etc.



******    message to minivend-users from Chris Daniel <krskrem@speedfactory.net>     ******

Still having trouble,
I did not know that Spurious PID is server startup, I never saw that before.

i have seen also a reference to this occassionally :
cant clear unreferenced scalar during global destruction
What is this?

Also, I removed all products.*   uploaded a new one after making sure there was not any CR's
Still no go.

I have seen reference to CHILD_MAX in the docs, I will check with server admin.
I removed any large calls to database, I had a select search loop,


Did a DEBUG , This is results

---------------------------------------------------------------------
bash$ ./minivend -serve -DEBUG

##### DEBUG MODE, level=0x1001 #####
It seems your code is contaminated by a library with $', $`, or $&.
 (overhead=0.00, delta=0.02)

Try setting the environment variable PERL5LIB to the MiniVend directory
and see if it doesn't fix it:

        setenv PERL5LIB '/usr/local/httpd/cdaniel/mvend/lib'

                  or

        PERL5LIB='/usr/local/httpd/cdaniel/mvend/lib'; export PERL5LIB

Fixing this will improve the speed of MiniVend by a small percentage. If
you can't do it, don't worry about it.

-----------------------------------------------------------------------

> #### Description of problem
>
> #### Perl version
> Summary of my perl5 (5.0 patchlevel 4 subversion 5) configuration:
>   Platform:
>     osname=freebsd, osvers=2.2.5-release, archname=i386-freebsd
>     uname='freebsd etek4.fsc-int.com 2.2.5-release freebsd 2.2.5-release #0: fri sep 4 12:42:09 gmt 1998
>     hint=recommended, useposix=true, d_sigaction=define
>     bincompat3=y useperlio=define d_sfio=define
>   Compiler:
>     cc='cc', optimize='-O', gccversion=2.7.2.1
>     cppflags='-I/usr/local/include'
>     ccflags ='-I/usr/local/include'
>     stdchar='char', d_stdstdio=undef, usevfork=true
>     intsize=4, longsize=4, ptrsize=undef, doublesize=undef
>     alignbytes=4, usemymalloc=n, prototype=define
>   Linker and Libraries:
>     ld='ld', ldflags =' -L/usr/local/lib'
>     libpth=/usr/local/lib /usr/lib
>     libs=-lsfio -lm -lc -lcrypt
>     libc=/usr/lib/libc.so.3.0, so=so
>     useshrplib=false, libperl=libperl.a
>   Dynamic Linking:
>     dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
>     cccdlflags='-DPIC -fpic', lddlflags='-Bshareable  -L/usr/local/lib'
>
> Characteristics of this binary (from libperl):
>   Built under freebsd
>   Compiled at Jul 14 1999 16:20:52
>   @INC:
>     /usr/local/lib/perl5/i386-freebsd/5.00405
>     /usr/local/lib/perl5
>     /usr/local/lib/perl5/site_perl/i386-freebsd
>     /usr/local/lib/perl5/site_perl
>     .
>
> #### OS version
> FreeBSD etek4.fsc-int.com 2.2.5-RELEASE FreeBSD 2.2.5-RELEASE #0: Fri Sep  4 12:42:09 GMT 1998

>
>
> #### Main server config
> Catalog       xxx /usr/local/httpd/cdaniel/catalogs/xxx /cgi-bin/xxx /xxx
> Variable   MV_NO_CRYPT   1
>
> AllowGlobal _mv_admin
> GlobalSub sub test_global_sub { return 'Test of global subroutine OK.' }
> HammerLock 60
> HouseKeeping 60
> MaxServers 15
> PIDcheck  300
> TcpMap  7786 -
> TolerateGet  Yes
> Variable TEST_VARIABLE Test of global variable OK.
> UserTag loc hasEndTag   1
> UserTag loc Interpolate 1
> UserTag loc Order locale
> UserTag loc Routine <<EOF
> sub {
>     my ($locale, $message) = @_;
>     return $message unless $Vend::Cfg->{Locale};
>     my $ref;
>     if($locale) {
>         return $message
>             unless defined $Vend::Cfg->{Locale_repository}{$locale};
>         $ref = $Vend::Cfg->{Locale_repository}{$locale}
>     }
>     else {
>         $ref = $Vend::Cfg->{Locale};
>     }
>     return defined $ref->{$message} ? $ref->{$message} : $message;
> EOF
> UserTag var Interpolate 1
> UserTag var PosNumber 2
> UserTag var Order name global
> UserTag var Routine <<EOF
> sub {
>     $_[1] and return $Global::Variable->{shift @_};
>     return $Vend::Cfg->{Variable}{shift @_};
> EOF
> UserTag summary Order amount name currency format total reset hide
> UserTag summary PosNumber 6
> UserTag summary Routine <<EOF
> use vars qw/%summary_hash/;
> sub {
>     my ($amount, $name, $currency, $format, $total, $reset, $hide) = @_;
>         unless ($name) {
>                 $name = 'ONLY0000';
>                 %summary_hash = () if Vend::Util::is_yes($reset);
>         else {
>                 $summary_hash{$name} = 0 if Vend::Util::is_yes($reset);
>         $summary_hash{$name} += $amount if length $amount;
>         $amount = $summary_hash{$name} if Vend::Util::is_yes($total);
>         return '' if defined $hide && Vend::Util::is_yes($hide);
>         return sprintf $format, $amount if $format;
>     return Vend::Util::currency($amount) if $currency;
>     return $amount;
> EOF
> UserTag  db-date  Order table format
> UserTag  db-date  PosNumber 2
> UserTag  db-date  Routine <<EOF
> sub {
>     my ($format, $db) = @_;
>     $format = '%A %d %b %Y';
>         $db = 'products' unless $db;
>     my $mtime = (stat($Vend::Cfg->{Database}{'file'}))[9];
>     return POSIX::strftime($format, localtime($mtime));
> EOF
> UserTag  db-count  Order table
> UserTag  db-count  PosNumber 1
> UserTag  db-count  Routine <<EOF
> sub {
>     my ($db) = @_;
>     $db = 'products' unless $db;
>     my $ref = Vend::Data::database_exists_ref($db)
>         or return "Bad table $db";
>     $ref = $ref->ref();
>     my $count;
>     while ($ref->each_record()) {
>         $count++;
>     }
>     return $count;
> EOF
> UserTag bar-button Order page current
> UserTag bar-button PosNumber 2
> UserTag bar-button HasEndTag 1
> UserTag bar-button Routine   <<EOR
> sub {
>         use strict;
>         my ($page, $current, $html) = @_;
>         $current = $Global::Variable->{MV_PAGE}
>                 if ! $current;
>         $html =~ s:\[selected\]([\000-\377]*)\[/selected]::i;
>         my $alt = $1;
>         return $html if $page ne $current;
>         return $alt;
> EOR
>
> #### Catalog config differences
> 3,30c3,30
> < Variable    SERVER_NAME     __MVC_SERVERNAME__
> < Variable    CGI_URL         __MVC_CGIURL__
> < Variable    SECURE_SERVER   http://__MVC_SERVERNAME__
> < Variable    ORDERS_TO       __MVC_MAILORDERTO__
> < Variable    IMAGE_DIR       __MVC_IMAGEURL__
> < Variable    DOCROOT         __MVC_DOCUMENTROOT__
> < Variable    SAMPLEHTML      __MVC_SAMPLEHTML__
> < Variable    SAMPLEURL       __MVC_SAMPLEURL__
> <
> < Variable    COMPANY         __MVC_COMPANY__
> < Variable    ADDRESS         __MVC_ADDRESS__
> < Variable    CITY            __MVC_CITY__
> < Variable    PHONE           __MVC_PHONE__
> < Variable    TOLLFREE        __MVC_TOLLFREE__
> < Variable    FAX             __MVC_FAX__
> < Variable    LOGO            __MVC_LOGO__
> < Variable    SMLOGO          __MVC_SMLOGO__
> < Variable    HEADERBG        __MVC_HEADERBG__
> < Variable    TABLEFG         __MVC_TABLEFG__
> < Variable    HEADERTEXT      __MVC_HEADERTEXT__
> < Variable    BARBG           __MVC_BARBG__
> < Variable    BARTEXT         __MVC_BARTEXT__
> < Variable    BGIMAGE         __MVC_BGIMAGE__
> < Variable    BGCOLOR         __MVC_BGCOLOR__
> < Variable    ENCRYPTOR       __MVC_ENCRYPTOR__
> < Variable    TAXAREA         __MVC_TAXAREA__
> < Variable    TAXRATE         __MVC_TAXRATE__
> < Variable    TAXSHIPPING     __MVC_TAXSHIPPING__
> ---
> > Variable    SERVER_NAME     XXXXXXX
> > Variable    CGI_URL         /cgi-bin/xxx
> > Variable    SECURE_SERVER  XXXXXXXXX
> > Variable    ORDERS_TO       customerservice@phuckvideo.com
> > Variable    IMAGE_DIR       /xxx/images
> > Variable    DOCROOT         /usr/local/httpd/cdaniel/public_html
> > Variable    SAMPLEHTML      /usr/local/httpd/cdaniel/public_html/xxx
> > Variable    SAMPLEURL      XXXXXXXXX
> >
> > Variable    COMPANY         XXXXXXX
> > Variable    ADDRESS         XXXXXXX
> > Variable    CITY            XXXXXXXX
> > Variable    PHONE           XXXXXXX
> > Variable    TOLLFREE        XXXXXXXX
> > Variable    FAX             Call Us
> > Variable    LOGO            banner2.gif
> > Variable    SMLOGO          banner2.gif
> > Variable    HEADERBG
> > Variable    TABLEFG
> > Variable    HEADERTEXT
> > Variable    BARBG
> > Variable    BARTEXT
> > Variable    BGIMAGE
> > Variable    BGCOLOR         red
> > Variable    ENCRYPTOR       none
> > Variable    TAXAREA         none
> > Variable    TAXRATE         none
> > Variable    TAXSHIPPING     none
> 39c39
> < Variable      MV_NO_CRYPT      __MVC_NOCRYPT__
> ---
> > Variable      MV_NO_CRYPT      1
> 171c171,172
> < Database            products     INDEX             category
> ---
> > Database            products     INDEX             store
> > Database          products     EXCEL             1
> 177,180c178,181
> < Database            Ground       Ground.csv        CSV
> < Database            2ndDayAir    2ndDayAir.csv     CSV
> < Database            NextDayAir   NextDayAir.csv    CSV
> <
> ---
> > #Database            Ground       Ground.csv        CSV
> > #Database            2ndDayAir    2ndDayAir.csv     CSV
> > #Database            NextDayAir   NextDayAir.csv    CSV
> > Database           shipping     shipping.asc     TAB
> 258c259
> < # AdminPage       config/menu
> ---
> > AdminPage       config/menu
> 304c305
> < # BackendOrder name,company,address,city,state,zip,country,account,mv_shipmode
> ---
> > BackendOrder name,company,address,city,state,zip,country,account,mv_shipmode
> 435c436
> < CreditCardAuto      Yes
> ---
> > #CreditCardAuto      Yes
> 987c988
> < # PageSelectField    display_page
> ---
> > PageSelectField    display_page
> 1002c1003
> < Password                __MVC_SUPASSWD__
> ---
> > Password               XXXXXX
> 1062c1063
> < PriceField   no_price
> ---
> > PriceField   price
> 1113c1114
> < RemoteUser   __MVC_SUPERUSER__
> ---
> > RemoteUser   cdaniel
> 1134c1135
> < RequiredFields       name
> ---
> > RequiredFields       name,email
> 1245c1246,1247
> < # SendMailProgram
> ---
> > SendMailProgram /usr/sbin/sendmail -f customerservice@XXXXXXX
> >
>
> #### Main MiniVend error.log (last 50 lines)
> - - - [09/February/2000:13:35:07 +0000] - - Spurious PID file for process 23262 supposedly running 2765 seconds
> - - - [09/February/2000:13:36:07 +0000] - - STOP server (23561) on signal TERM
> - - - [09/February/2000:13:38:24 +0000] - - MiniVend V3.14-5
> - - - [09/February/2000:13:38:24 +0000] - - Config '_mv_admin' at server startup
> - - - [09/February/2000:13:38:24 +0000] - - Config 'xxx' at server startup
> - - - [09/February/2000:13:38:25 +0000] - - START server (23593) (INET and UNIX)
> - - - [09/February/2000:13:38:25 +0000] - - Accepting connections from localhost|127\.0\.0\.1
> 205.188.199.53 wvvIo8pz:205.188.199.53 - [09/February/2000:13:38:54 +0000] xxx /cgi-bin/xxx/RHF030 Runtime error: Could not create '/usr/local/httpd/cdaniel/catalogs/xxx/products/new_products.db': Inappropriate file type or format at /usr/local/httpd/cdaniel/mvend/lib/Vend/Table/DB_File.pm line 102, <IN> chunk 1.
> >
> - - - [09/February/2000:13:40:03 +0000] - - STOP server (23593) on signal TERM
> - - - [09/February/2000:13:40:06 +0000] - - MiniVend V3.14-5
> - - - [09/February/2000:13:40:06 +0000] - - Config '_mv_admin' at server startup
> - - - [09/February/2000:13:40:06 +0000] - - Config 'xxx' at server startup
> - - - [09/February/2000:13:40:06 +0000] - - START server (23623) (INET and UNIX)
> - - - [09/February/2000:13:40:06 +0000] - - Accepting connections from localhost|127\.0\.0\.1
> - - - [09/February/2000:13:40:17 +0000] - - Spurious PID file for process 23568 supposedly running 310 seconds
> - - - [09/February/2000:13:44:05 +0000] - - Spurious PID file for process 23596 supposedly running 321 seconds
> - - - [09/February/2000:13:45:52 +0000] - - Spurious PID file for process 23628 supposedly running 335 seconds
> - - - [09/February/2000:13:47:52 +0000] - - Spurious PID file for process 23652 supposedly running 349 seconds
> - - - [09/February/2000:13:49:15 +0000] - - Spurious PID file for process 23661 supposedly running 370 seconds
> - - - [09/February/2000:13:50:15 +0000] - - Spurious PID file for process 23666 supposedly running 323 seconds
> - - - [09/February/2000:13:52:16 +0000] - - STOP server (23623) on signal TERM
> - - - [09/February/2000:13:52:18 +0000] - - MiniVend V3.14-5
> - - - [09/February/2000:13:52:18 +0000] - - Config '_mv_admin' at server startup
> - - - [09/February/2000:13:52:19 +0000] - - Config 'xxx' at server startup
> - - - [09/February/2000:13:52:20 +0000] - - START server (23720) (INET and UNIX)
> - - - [09/February/2000:13:52:20 +0000] - - Accepting connections from localhost|127\.0\.0\.1
> - - - [09/February/2000:13:54:28 +0000] - - Spurious PID file for process 23683 supposedly running 353 seconds
> - - - [09/February/2000:13:54:28 +0000] - - Spurious PID file for process 23689 supposedly running 313 seconds
> - - - [09/February/2000:13:54:34 +0000] - - STOP server (23720) on signal TERM
> - - - [09/February/2000:13:54:36 +0000] - - MiniVend V3.14-5
> - - - [09/February/2000:13:54:36 +0000] - - Config '_mv_admin' at server startup
> - - - [09/February/2000:13:54:37 +0000] - - Config 'xxx' at server startup
> - - - [09/February/2000:13:54:37 +0000] - - START server (23749) (INET and UNIX)
> - - - [09/February/2000:13:54:37 +0000] - - Accepting connections from localhost|127\.0\.0\.1
> - - - [09/February/2000:13:55:26 +0000] - - STOP server (23749) on signal TERM
> - - - [09/February/2000:13:55:34 +0000] - - MiniVend V3.14-5
> - - - [09/February/2000:13:55:34 +0000] - - Config '_mv_admin' at server startup
> - - - [09/February/2000:13:55:35 +0000] - - Config 'xxx' at server startup
> - - - [09/February/2000:13:55:35 +0000] - - START server (23772) (INET and UNIX)
> - - - [09/February/2000:13:55:35 +0000] - - Accepting connections from localhost|127\.0\.0\.1
> - - - [09/February/2000:13:55:36 +0000] - - INET mode server failed to start on port 7786: bind: Address already in use at /usr/local/httpd/cdaniel/mvend/lib/Vend/Server.pm line 764.
> >
> - - - [09/February/2000:13:55:36 +0000] - - Continuing in UNIX MODE ONLY
> - - - [09/February/2000:13:57:53 +0000] - - Spurious PID file for process 23723 supposedly running 325 seconds
> - - - [09/February/2000:14:01:00 +0000] - - Spurious PID file for process 23757 supposedly running 334 seconds
> - - - [09/February/2000:14:01:00 +0000] - - Spurious PID file for process 23779 supposedly running 319 seconds
> - - - [09/February/2000:14:01:00 +0000] - - Spurious PID file for process 23783 supposedly running 309 seconds
> - - - [09/February/2000:14:02:00 +0000] - - Spurious PID file for process 23790 supposedly running 329 seconds
> - - - [09/February/2000:14:02:00 +0000] - - Spurious PID file for process 23795 supposedly running 307 seconds
>
> #### Catalog error.log (last 50 lines)

>
> 205.188.199.53 wvvIo8pz:205.188.199.53 - [09/February/2000:13:38:54 +0000] xxx /cgi-bin/xxx/RHF030 Runtime error: Could not create '/usr/local/httpd/cdaniel/catalogs/xxx/products/new_products.db': Inappropriate file type or format at /usr/local/httpd/cdaniel/mvend/lib/Vend/Table/DB_File.pm line 102, <IN> chunk 1.
> >
>
> #### DBM Status
> Have DB_File.

-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: