Did you verify that you can submit STAF requests to the machine that
you're using as the remote log service? Can you do a STAF ping of
testmachine1 on the machine that you're configuring the LOG service to use
testmachine1 as the remote log service machine?
STAF testmachine1 PING PING
You must be able to submit STAF service services to testmachine1 in order
to use it as the remote LOG service machine.
Did you verify that the LOG service is registered on testmachine1? For
example, does the following work?
STAF testmachine1 LOG HELP
Note that the osRC in the error message you provided is 24 (this is the
errno returned by the socket() API).
STAFConnectionProviderConnect: Error creating socket for path
'/tmp/STAFIPC_STAF', socket(), osRC=24
This is the errno for EMFILE which means" too many file descriptors
opened". You can use the lsof command to list the open files on a Linux
system and to see what process opened them. It appearsthe maximum limit
for the number of open files has been exceeded on your machine (this can
be caused for example by a program that opens lots of files and doesn't
close them).
Enabling STAF's remote logging works fine for me on Linux as shown below.
In my example, machine staf4g has the LOG service configured to perform
remote logging on machine staf1e:
First, I made sure that my remote log service machine gives at least trust
level 4 to the machine that is using it to do remote logging. You can
check the trust level using the MISC WHOAMI command and checking the value
for "Trust Level" as follows:
[root@staf4g ~]# STAF staf1e MISC WHOAMI
Response
--------
Instance Name : STAF
Instance UUID : BBDFC24D821500000903D3E361663467
Request Number : 42988
Interface : ssl
Logical ID : staf4g.company.com
Physical ID : 9.3.999.999
Endpoint : ssl://staf4g.company.com@6550
Machine : staf4g.company.com
Machine Nickname: staf4g.company.com
Local Request : No
Handle : 1730
Handle Name : STAF/Client
User : none://anonymous
Trust Level : 5
[root@staf4g ~]# STAF local SERVICE QUERY SERVICE LOG
Response
--------
{
Name : LOG
Library : STAFLog
Executable: <None>
Options : []
Parameters: ENABLEREMOTELOGGING REMOTELOGSERVER staf1e.company.com
}
[root@staf4g ~]# STAF local LOG LOG GLOBAL LOGNAME Test LEVEL info MESSAGE
"Hi"
Response
--------
[root@staf4g ~]# STAF local LOG QUERY GLOBAL LOGNAME Test
Response
--------
Date-Time Level Message
----------------- ----- -------
20110802-11:25:20 Info Hi
--------------------------------------------------------------
Sharon Lucas
IBM Austin, luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313
From: Andrew More <andrewmore2...@hotmail.com>
To: <staf-users@lists.sourceforge.net>
Date: 08/02/2011 02:40 AM
Subject: [staf-users] Rc-21 in using LOG service with
ENABLEREMOTELOGGING configuration
Hi,
I'm using STAF v3.4.5 on an Red Hat 5.6 64bit machine and trying to use
LOG service with ENABLEREMOTELOGGING configuration. I've the below
configuration in STAF.cfg file:
# Turn on tracing of internal errors and deprecated options
trace enable tracepoints "error deprecated"
# Enable TCP/IP connections
interface ssl library STAFTCP option Secure=Yes option Port=6550
interface tcp library STAFTCP option Secure=No option Port=6500
# Set default local trust
trust machine local://local level 5
trust machine testmachine1 level 5
# Add default service loader
serviceloader library STAFDSLS
service log library STAFLog parms "ENABLEREMOTELOGGING REMOTELOGSERVER
testmachine1"
While the testmachine1 has entry in /etc/hosts file:
10.176.59.196 testmachine1
When I try to use the log service! I get the below error:
[root@ip-10-176-59-197 ~]# staf local log help
Error submitting request, RC: 21
Additional info
---------------
STAFConnectionProviderConnect: Error creating socket for path
'/tmp/STAFIPC_STAF', socket(), osRC=24
Seems there is definitely some problem in the STAF.cfg file as when I use
the below entry log service works fine:
service log library STAFLog
Please suggest what is that my missing ?
--Andrew
------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts.
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users
------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts.
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users