22.12.10

SAP Note 15291 - SysLog daemons terminate immediately

Symptom:

SysLog deamons terminate immediately.
Their names: rslgcoll = co.sap....
rslgsend = se.sap....

Diagnosis:

Check the "stderr1", "stderr2", etc. files in the work directory (UNIX more or transaction ST11). The first three lines show the program the file refers to. A reason for the termination should appear at the end of the line. Some of the possible messages:

With exit code 0 :
I become a daemon.
With exit code 1 :
Assertion failed: ...
Central SysLog file has wrong format. ...
Central SysLog file has many format errors. ...
rslgcoll(3).read: ...
I read half of a record.
rslgcoll(8): socket: ...
rslgcoll(9): bind: ...
rslgcoll(10): listen: ...
With exit code 2 :
other daemon is still alive.
PId-file does not contain a number.
PId-file seems to be empty.
rslgsmcc(72).rslgsm1_write_pid_file: open(,O_RDONLY,0)

For messages with exit code 1 or 2 :
If the stderr files do not contain enough information, you can start the corresponding daemon again in logging mode. The stderr file lists the command used to start the daemon. Copy this command, copy it to a single line, and add "-v" at the end. The daemon will then start in logging mode.

For messages with exit code 2 :
Check files "rslgcpid" and "rslgspid" in the data directory. When a daemon is active, its process number should appear therein. A negative value means that the corresponding daemon is blocked. Empty files are not allowed.

Cause and prerequisites

Exit code 0 and "I become a daemon." :
Option "-F" missing in the command line (see STARTUP profile)

Exit Code 1 :
Various.

Exit code 2 and empty PID file:
Disk full when daemon was started.

Exit code 2 and negative number in PID file on AIX:
When the process number is greater than 32768, the number is sometimes entered in an incorrect format.

Solution
Exit code 0 and "I become a daemon." :
Add option "-F" to the STARTUP profile.

Exit code 1 :
Read the entire error message. Check the SysLog. Check whether the involved SysLog files display documentation when F2 is pressed.

Exit code 2 and empty PID file :
Wait a minut. It it stays empty: delete it.
Should work again during the next system start.

With exit code 2 and PID file with negative number:
Delete the file.
Should work again during the next system start.

No comments:

Post a Comment