Akopia Akopia Services

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

Re: [mv] Undefined catalog:



******    message to minivend-users from Lester Herran-Venables <lesterhv@home.com>     ******

Hi folks,

I'm still getting undefined catalog errors despite applying the fix mentioned below.

Here's my saga so far:

1. I deleted all previous installs of minivend, even removing the user account, so
that I had a pure virgin system.  (I had version 3 running well)
2. Installed the .rpm of 4.03 -- minivend created a user 'minivend' on my machine
3. Tried to run it. -- got an error, -- minivend couldn't read /usr/local/error.log
4. Changed permissions on that file to user minivend
5. Got a permission denied to /usr/local/minivend/etc/minivend.pid -- changed
permissions of directory

at this point I got a little careless about documenting my efforts, but basically went
about  changing permissions as errors came up until I had a system that would load the
simple catalog.  But it wouldn't load more than the first page -- all of the links
were not to the server that I specified, but to crdva1.bc.wave.home.com -- a host name
that I have to have in my system for my internet connection to work.

I added the line

variable SERVER_NAME  lesterhv.dhs.org to my /usr/local/minivend/minivend.cnf file and
restarted.  Still no change.

At this point I read your post and edited /urs/local/bin/minivend to point to
/usr/local/minivend/minivend/cfg

Wonderful -- this got the simple demo going.

So I ran makecat and made another new catalog -- calling it test2

I type in lesterhv.dhs.org/cgi-bin/test2, and still get

-------->Undefined catalog /cgi-bin/test2

Any ideas, anyone?

Thanks
Lester.


==================================================
Here's my file /usr/local/bin/minivend
=================================================
#!/bin/sh

RUNSTRING="/usr/local/minivend/bin/minivend -q \
 -configfile /usr/local/minivend/minivend.cfg \
 -pidfile /var/run/minivend/minivend.pid \
 -logfile /var/log/minivend/error.log \
 ErrorFile=/var/log/minivend/error.log \
 PIDfile=/var/run/minivend/minivend.pid \
 -confdir /var/run/minivend \
 SocketFile=/var/run/minivend/socket"

USER=`whoami`
if test $USER = "root"
then
 exec su minivend -c "$RUNSTRING $*"
else
 exec $RUNSTRING $*
fi

==================================================
==== and /usr/local/minivend/minvend/cfg                   ===========
==================================================

#Catalog   simple /home/mike/catalogs/simple /cgi-bin/simple /secure-bin/simple
Catalog       basic /var/lib/minivend/basic /cgi-bin/basic /basic
Catalog       simple /var/lib/minivend/simple /cgi-bin/simple /simple
Catalog       test1 /var/lib/minivend/test1 /cgi-bin/test1 /test1
Catalog       test2 /var/lib/minivend/test2 /cgi-bin/test2 /test2

# Set to 1 to include MiniMate
Variable   MINIMATE   1
Variable   SERVER_NAME    lesterhv.dhs.org

# Set to "low" or "high" to get different server parameters
Variable   TRAFFIC    low
#Variable   TRAFFIC    high

[snip]

===========================================================
===== here's my /var/lib/minivend/test2/catalog.cfg   ===================
============================================================

# Define the site-specific information
#
Variable    SERVER_NAME     lesterhv.dhs.org
Variable    CGI_URL         /cgi-bin/test2
Variable    SECURE_SERVER   http://lesterhv.dhs.org
Variable    ORDERS_TO       les
Variable    IMAGE_DIR       /test2/images
Variable    DOCROOT         /home/httpd/html
Variable    SAMPLEHTML      /home/httpd/html/test2
Variable    SAMPLEURL       http://lesterhv.dhs.org/test2

Variable    TEMPLATE        blue1
Variable    COMPANY         test2
Variable    ADDRESS         123 Any St.
Variable    CITY            Anytown, USA 00000
Variable    PHONE           (555) 555-5555
Variable    TOLLFREE        (888) 555-5555
Variable    FAX             (555) 555-5556
Variable    LOGO            template/logo.png
Variable    SMLOGO
Variable    ENCRYPTOR       none
Variable    TAXAREA         OH IL
Variable    TAXRATE         OH=6, IL=7.25
Variable    TAXSHIPPING     OH
Variable    MULTIORDER

# Set single-page order style
Variable      ORDER_STYLE   ord

# Set multi-page order style if MULTIORDER variable set
#ifdef MULTIORDER
Variable      ORDER_STYLE   multi
#endif

## END SITE CONFIGURATION

## Whether to encrypt passwords in UserDB
UserDB    default    crypt         0
## Change a field to something that doesn't conflict in MySQL
UserDB    default    time_field    mod_time
[snip]
 -----basically everything default for this test.
====================================================================
=== and finally, my /var/log/minivend/error.log  ===============================
====================================================================
- - - [30/March/2000:09:13:33 -0800] - - Low traffic settings.
- - - [30/March/2000:09:13:34 -0800] - - Calling MiniMate....
- - - [30/Марта/2000:09:13:38 -0800] - - Minimate is loaded.
- - - [30/Марта/2000:09:13:38 -0800] - - MiniVend V4.03
- - - [30/March/2000:09:13:42 -0800] - - START server (6043) (INET and UNIX)
- - - [30/March/2000:09:13:43 -0800] - - Accepting connections from
localhost|127\.0\.0\.1
- - - [30/March/2000:09:13:43 -0800] - - START server (6073) (INET and UNIX)
24.113.133.108 - - [30/March/2000:09:38:49 -0800] - /cgi-bin/test1 Undefined catalog:
/cgi-bin/test1
24.113.133.108 - - [30/March/2000:09:40:17 -0800] - /cgi-bin/test1 Undefined catalog:
/cgi-bin/test1
24.113.133.108 - - [30/March/2000:10:32:08 -0800] - /cgi-bin/test1 Undefined catalog:
/cgi-bin/test1
- - - [30/March/2000:10:58:30 -0800] - - STOP server (6073) on signal TERM
- - - [30/March/2000:21:10:12 -0800] - - Low traffic settings.
- - - [30/March/2000:21:10:12 -0800] - - Calling MiniMate....
- - - [30/Марта/2000:21:10:15 -0800] - - Minimate is loaded.
- - - [30/Марта/2000:21:10:15 -0800] - - MiniVend V4.03
- - - [30/March/2000:21:10:16 -0800] - - START server (589) (INET and UNIX)
- - - [30/March/2000:21:10:17 -0800] - - Accepting connections from
localhost|127\.0\.0\.1
- - - [30/March/2000:21:10:17 -0800] - - START server (615) (INET and UNIX)
24.113.133.108 - - [31/March/2000:10:28:13 -0800] - /cgi-bin/test1 Undefined catalog:
/cgi-bin/test1
24.113.133.108 - - [31/March/2000:10:36:03 -0800] - /cgi-bin/test2 Undefined catalog:
/cgi-bin/test2











Mike Heins wrote:

> ******    message to minivend-users from Mike Heins <mikeh@minivend.com>     ******
>
> Quoting Fred Romito (fred@fabrikant.com):
> > Hi,
> >
> > I am new to this product but, after looking
> > at this problem for a few days I could use
> > some help.
> >
> > I have installed MiniVend
> > on an Netfinity running Linux 6.1
> >
> > I used the rpm version to install and all seems fine.
> > Both the basic and simple catalogs work
> >
> > Overtime I try to run a catalog constructed with bin/makecat
> > I get the Undefined catalog: message
> >
>
> I just realized this the other day. The makecat facility is placing the
> catalog definition in /usr/local/minivend/minivend.cfg, and the minivend
> program is using /etc/minivend.cfg. Move the catalog definitions there
> and all should be OK; you could also edit /usr/local/bin/minivend to
> use /usr/local/minivend/minivend.cfg.
>
> I will do something about this in the next release.
>
> --
> Internet Robotics, 131 Willow Lane, Floor 2, Oxford, OH  45056
> phone +1.513.523.7621 fax 7501 <mikeh@minivend.com>
>
> Be patient. God isn't finished with me yet.  -- unknown
> -
> 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

-
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: