Hi Michael,

on hpux test does not allow the "==" operator, it has to be '='. There's one occurence in relative_ln_s.sh at line 52.

It just sits there, no cpu usage whatsoever. Hitting Ctrl-C exits the script and keeps 1 occurence of openca_start running. I think it is either waiting for some resource or the fork isn't working.

I found the xml_cache.log, the last entries are :
OpenCA::XML::Cache> Thu Aug  4 10:14:16 2005 UTC message:
OpenCA::XML::Cache> startDaemon successfull at Thu Aug 4 10:14:16 2005 UTC PID: 29862

OpenCA::XML::Cache> Thu Aug  4 11:09:08 2005 UTC message:
OpenCA::XML::Cache> startDaemon successfull at Thu Aug 4 11:09:08 2005 UTC PID: 590

I already set the DEBUG to 1 in the initServer, globally ( line 67 ), but apparently this is not passed on ... I've added the DEBUG line and I now get debugging output. The output ends with :

OpenCA::XML::Cache->IPCLOOP: answer: /opt/openca-0.9.2.2/OpenCA/var/log/stderr.log
OpenCA::XML::Cache->IPCLOOP: write answer to socket
OpenCA::XML::Cache->IPCLOOP: request completed
OpenCA::XML::Cache->IPCLOOP: wait for clients

I saw the next init is initTools and that DEBUG is passed on, but I get no output, so I assume the script is hanging on "wait for clients" ...

I searched for the XML::Cache but can't find it. During compilation there was a warning that sax was not installed, but the warning stated that if I don't use xml export, the package was optional so I didn't install it. Do I need it ? Could this be the problem ?

Kindest regards,

Peter.

Michael Bell wrote:
Hi Peter,

Peter Van Biesen wrote:

I've downloaded, compiled and installed openca 0.9.2.2 on an hpux 11i ( pa-risc 64bit ) machine. All went well ( except for a syntax error in the relative_ln_s.sh, where a "==" operator is used with test ).


That's a new OS. I don't know a user which uses HP-UX until now. Nevertheless it should work. First a question from me, how do you fixed the wrong "=="? If this is an error then we should fix it even if other shells support this feature.

When I try to start the daemon with 'openca_rc start', I get :
-n Starting OpenCA ...


Looks like your echo does not know the -n option.

... and the rc script hangs.


Sounds like the fork is not clean. Can you give some more details about the "hangs" please? Is it an endless loop or buzy wait?

The pstree is :
-+- 02135 root -ksh
\-+- 29155 root /bin/sh ./openca_rc start
\-+- 29156 root /usr/bin/perl /opt/openca-0.9.2.2/OpenCA/etc/openca_start \--- 29158 www /usr/bin/perl /opt/openca-0.9.2.2/OpenCA/etc/openca_start


OpenCA 0.9.2 starts a XML cache daemon first and then the real openca daemon starts. If the XML cache work correctly then there must be a file xml_cache.log on your machine.

The /opt/openca/OpenCA/var/tmp contains :
srwxrwxrwx    1 www      other           0 Aug  4 10:11 openca_xml_cache
-rw-r--r--    1 root     sys             5 Aug  4 10:11 xml_cache.pid


Is the cache log missing? This would mean that there is a problem with startup of the XML cache.

Running the ca/index.html yields :
OpenCA Error: Server is not online or does not accept requests (/opt/openca-0.9.2.2/OpenCA/var/tmp/openca_socket - /opt/openca-0.9.2.2/OpenCA/var/tmp/openca_socket ). 0

The file /opt/openca-0.9.2.2/OpenCA/var/tmp/openca_socket does not exist ( /opt/openca is symbolic link to /opt/openca-0.9.2.2 ).

The stderr.log file is empty.


First we should try to find the xml_cache.log. A missing socket can be caused by several things.

I turned the debug flag to 1 in the log.xml, but I can't seem to find anything extra in any of the logs.


If OPENCADIR/var/log/stderr.log is empty then there is a basic problem.

If you use HP-UX then I think that you are a little bit familiar with script language. So you can activet the debugging of the XML cache too. There is a file lib/functions/initServer. This file contains a function initXMLcache. If you add "DEBUG => 1" to OpenCA::XML::Cache->new then the cache outputs several debug infos. Perhaps this shows some useful infos.

Michael


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Openca-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openca-users

Reply via email to