[ic] 4.9.7 Start Scripts

Brian Rogers interchange-users@icdevgroup.org
Thu May 8 15:49:00 2003


> -----Original Message-----
> From: interchange-users-admin@icdevgroup.org
> [mailto:interchange-users-admin@icdevgroup.org]On Behalf Of Brian Rogers
> Sent: Tuesday, May 06, 2003 6:51 PM
> To: interchange-users@icdevgroup.org
> Subject: [ic] 4.9.7 Start Scripts
>
>
> I'm working on a fresh installation of 4.9.7 on a Redhat Linux 7.3 box.
>
> All of my previous installations have been from rpm, so this is my first
> fresh install from tar.
>
> Everything seems to be set up properly, and I can start and run my catalog
> using /usr/lib/interchange/bin/[interchange|restart]:
>
>
> [root@server1 bin]# su interch -c /usr/lib/interchange/bin/interchange
> Vend::Payment::AuthorizeNet payment module initialized, using LWP and
> Crypt::SSLeay
> Sending debug to /tmp/icdebug.
> RPC traffic settings.
> Calling UI......UI is loaded...
> Interchange V4.9.7-200304112314
> Configuring catalog grok...Using PostgreSQL,
> DSN=dbi:Pg:dbname=grok...Local
> usertag history_scan overrides global definition
> In line 278 of the configuration file 'catalog.cfg':
>
>
> done.
> Interchange server started in UNIX mode(s) (process id 28332)
> [root@server1 bin]# ps -ef | grep inter
> interch  26565 26561  0 16:14 ?        00:00:00 /usr/sbin/sshd
> interch  26566 26565  0 16:14 pts/0    00:00:00 -bash
> interch  28381     1  0 20:25 ?        00:00:00 /usr/bin/perl
> /usr/lib/interchan
> interch  28389     1  0 20:25 ?        00:00:00 /usr/bin/perl
> /usr/lib/interchan
> interch  28391     1  0 20:25 ?        00:00:00 /usr/bin/perl
> /usr/lib/interchan
> interch  28393     1  0 20:25 ?        00:00:00 /usr/bin/perl
> /usr/lib/interchan
> interch  28395     1  0 20:25 ?        00:00:00 /usr/bin/perl
> /usr/lib/interchan
> interch  28397     1  0 20:25 ?        00:00:00 /usr/bin/perl
> /usr/lib/interchan
> interch  28399     1  0 20:25 ?        00:00:00 /usr/bin/perl
> /usr/lib/interchan
> root     28403 27215  0 20:25 pts/0    00:00:00 grep inter
>
>
>
> Even though those pids don't match up, I can browse my catalog through a
> browser, and all seems swell.
>
>
> However, when I try to use /usr/sbin/interchange to start it (either
> manually or with /etc/init.d/interchange start) it doesn't work.  It does
> give me the same startup feedback as before:
>
>
>
> [root@server1 bin]# /usr/sbin/interchange
> Vend::Payment::AuthorizeNet payment module initialized, using LWP and
> Crypt::SSLeay
> Sending debug to /tmp/icdebug.
> RPC traffic settings.
> Calling UI......UI is loaded...
> Interchange V4.9.7-200304112314
> Configuring catalog grok...Using PostgreSQL,
> DSN=dbi:Pg:dbname=grok...Local
> usertag history_scan overrides global definition
> In line 278 of the configuration file 'catalog.cfg':
>
>
> done.
> Interchange server started in UNIX mode(s) (process id 28500)
> [root@server1 logs]# ps -ef | grep inter
> interch  26565 26561  0 16:14 ?        00:00:00 /usr/sbin/sshd
> interch  26566 26565  0 16:14 pts/0    00:00:00 -bash
> interch  28500     1  1 20:32 ?        00:00:00 /usr/bin/perl
> /usr/lib/interchan
> interch  28508     1  0 20:32 ?        00:00:00 /usr/bin/perl
> /usr/lib/interchan
> interch  28510     1  0 20:32 ?        00:00:00 /usr/bin/perl
> /usr/lib/interchan
> interch  28512     1  0 20:32 ?        00:00:00 /usr/bin/perl
> /usr/lib/interchan
> interch  28514     1  0 20:32 ?        00:00:00 /usr/bin/perl
> /usr/lib/interchan
> interch  28516     1  0 20:32 ?        00:00:00 /usr/bin/perl
> /usr/lib/interchan
> interch  28518     1  0 20:32 ?        00:00:00 /usr/bin/perl
> /usr/lib/interchan
> root     28520 27215  0 20:33 pts/0    00:00:00 grep inter
>
>
> And now the pids do match up, but I can't browse the catalog, I get the
> dreaded "We're sorry, but the Interchange server is not
> available..." page.
>
> There's nothing helpful in the logs.  Permissions and locations are
> identical to my other systems that were upgraded to 4.9.7 from earlier rpm
> installations, including the linking cgi script:
>
> [root@server1 logs]# ls -l /var/www/cgi-bin/grok
> -rwsr-xr-x    1 interch  interch      7500 Apr 18 14:07
> /var/www/cgi-bin/grok
>
>
> It would seem that all /usr/sbin/interchange does is run
> /usr/lib/interchange/bin/interchange with some arguments (all of which I
> checked permissions on) as interch, so I would think that if the latter
> worked, the former would work as well, as they do on my other
> installations.
>
> Am I missing something?
>
> Anyone have any ideas?
>
> Any advice would be greatly appreciated.
>
> Thanks in advance.
>

I found out that my linking cgi script was looking for the socket (for UNIX
mode) in the wrong place because it was created with makecat from my tar
installation, while /usr/sbin/interchange was specifying the standard socket
location from an rpm installation.  viewing the output of strings on my
linking script revealed the discrepancy.

Thanks for the help, Mike.


---------------------
Brian Rogers
Software Developer
Groxis, Inc.
415. 331 0550 x109
www.groxis.com