Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 86877

Summary: Readme - Cannot import log file
Product: z_Archived Reporter: Radu Negulescu <rnegu>
Component: HyadesAssignee: Kari Halsted <khalsted>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 Keywords: Documentation
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Solaris   
Whiteboard:

Description Radu Negulescu CLA 2005-02-28 16:26:02 EST
Uses: 3.0.2_20050225_1641

Assume RAServer configured and running on the remote machine

Steps:
File
> Import
> Log file
> Add
> Specify selected log files (e.g. Common Base Event XML log)
> Host name: add host (e.g. constellation)
> Details: Specify path (e.g. /export/home/rnegu/logs/cbeXML.log)
   Specify version (1.0.1 rules)
> Click Finish

SYMTPOM: empty log file



Similar steps import the same log file properly under Windows
locally and from a remote machine.



Error message is issued on the Solaris console:
 sh: sysdef: not found
(two messages for each attempt to import a log file)



Error signal is recorded in hs*.log files /var/temp/
(could not determine a pattern)

Unexpected Signal : 11 occurred at PC=0xFECF1EE0
Function=[Unknown. Nearest: JVM_GetClassLoader+0x724]
Library=/usr/j2se/jre/lib/sparc/client/libjvm.so

Current Java thread:
        at org.eclipse.hyades.internal.execution.remote.RemoteComponentSkeleton.
logMessageUTF80(Native Method)
        at org.eclipse.hyades.internal.execution.remote.RemoteComponentSkeleton.
logMessageUTF8(Unknown Source)
        - locked <f2c268a8> (a org.eclipse.hyades.internal.execution.remote.Remo
teComponentSkeleton)
        at org.eclipse.hyades.logging.core.LoggingAgent.write(Unknown Source)
        at org.eclipse.hyades.logging.parsers.RemoteLogParserLoader.main(RemoteL
ogParserLoader.java)
Comment 1 Radu Negulescu CLA 2005-02-28 16:29:17 EST
More precisely, the symptom is:
A log view opens with no log records in it.
Reopening the log view after the import operation terminates also displays no 
log records.
Comment 2 Valentina Popescu CLA 2005-02-28 16:34:01 EST
Dave, please take a look
Comment 3 Dave Smith CLA 2005-03-02 17:32:45 EST
This problem is a known problem when the Agent Controller is not started with 
root privileges.  Radu started Agent Controller with his own user ID.  When 
doing remote import, the Generic Log Adapter parses the log file and logs any 
error messages to a file called hgla.log in the current directory which on 
Solaris is /var/tmp.  If this file already exists and cannot be overwritten, 
say because Generic Log Adpater process does not have write permission to the 
file, the log import operation will fail.  In this case, /var/tmp/hgla.log 
existed and was created by root with 644 permissions.  The Agent Controller 
launches the Generic Log Adapter process under the same user privileges as it 
was started with so Generic Log Adapter cannot overwrite the /var/tmp/hgla.log 
file.  

I will re-assign this to the doc component to have a readme item added for this 
case.  This problem has been fixed in later releases with bugzilla 69772.

Here is the explanation of the two symptoms mentioned:

1) Error message is issued on the Solaris console:
 sh: sysdef: not found
This is another known unrelated problem that is already documented in the 
Hyades 3.0.1 Release Notes.

2) Error signal is recorded in hs*.log files /var/temp/

Unexpected Signal : 11 occurred at PC=0xFECF1EE0
Function=[Unknown. Nearest: JVM_GetClassLoader+0x724]
Library=/usr/j2se/jre/lib/sparc/client/libjvm.so

This exception is generated as a result of GLA not being able to create the 
hgla.log file and the error is not being handled properly.  Fixing this will 
have no effect on the original problem of not being able to create the hgla.log 
file.  The remote log import operation will still fail.  Again, this problem is 
fixed in subsequent releases with bugzilla 69772. 
Comment 4 Dave Smith CLA 2005-03-02 18:14:09 EST
The following readme item should be added to the Hyades v3.0.1 and v3.0.2 
readmes under Log and Trace Analyzer:

Problem:  Cannot import a log file from a remote system.

Sometimes when importing a log file from a remote system no data is shown in 
the Log View and no error message is displayed.  Error messages may be logged 
on the remote system in a file called hgla.log.  The hgla.log file will be 
located on the remote system in the /tmp or /var/tmp directory if running on a 
UNIX or Linux system or in c:\Documents and Settings\userid\Local Settings\Temp 
if running on a Windows system.  

Please note, the remote log import operation will fail if the hgla.log file 
cannot be created or written to.  If hgla.log exists on the remote system 
before the remote log import operation begins, it must have the necessary 
permissions for the user that started Agent Controller on the remote system to 
write to the file, in order for the log import operation to be successful.  To 
ensure this condition exists, either delete the hgla.log file on the remote 
system or restart the Agent Controller on the remote system as root user before 
importing the remote log file.

Comment 5 Kari Halsted CLA 2005-03-03 10:23:05 EST
Added to 301 and 302 readmes
Comment 6 Harm Sluiman CLA 2005-03-16 08:28:31 EST
setting target based on last change date, please adjust if not correct
Comment 7 Radu Negulescu CLA 2005-04-01 17:27:26 EST
Closing based on comments