Cannot start system-log on Solaris 10


 
Thread Tools Search this Thread
Operating Systems Solaris Cannot start system-log on Solaris 10
# 1  
Old 06-19-2018
Cannot start system-log on Solaris 10

Hi everyone,
I hope you are doing well..

I am having the following issue that need your advice.
I am configuring syslog on Solaris 10. I have edited the /etc/syslog.conf by adding the following entry:
Code:
*.err;kern.debug;daemon.notice;mail.crit;auth.debug;user.debug;local6.info @<IP Address of Syslog server>

which the facility and address of syslog server is dividing by tab, not spaces.

However, when restarting system-log, this service is not started again and entering the maintenance mode.
The following command has been used:
Code:
svcadm restart system-log

After that, I checked the state of this service using the following command:
Code:
svcs -a | grep system-log

The output indicates that this service is in Maintenance mode.

Then, I do the following commands:
Code:
svcadm clear svc:/system/system-log:default

Code:
svcadm enable svc:/system/system-log:default

However, after enable, the system-log is in offline* state. By 10', it enters the maintenance mode again.

I found the following error in /var/svc/log/svc.startd.log:
Code:
May 16 08:39:56/4: svc:/system/system-log:default: Method or service exit timed out. Killing contract 793539.
May 16 08:39:56/390 ERROR: svc:/system/system-log:default: Method "/lib/svc/method/system-log" failed due to signal KILL.
May 16 08:49:57/4: svc:/system/system-log:default: Method or service exit timed out. Killing contract 793551.
May 16 08:49:57/390 ERROR: svc:/system/system-log:default: Method "/lib/svc/method/system-log" failed due to signal KILL.
May 16 08:59:58/4: svc:/system/system-log:default: Method or service exit timed out. Killing contract 793563.
May 16 08:59:58/390 ERROR: svc:/system/system-log:default: Method "/lib/svc/method/system-log" failed due to signal KILL.
May 16 08:59:58/390: system/system-log:default failed: transitioned to maintenance (see 'svcs -xv' for details)
Jun 19 09:15:53/4: svc:/system/system-log:default: Method or service exit timed out. Killing contract 842840.
Jun 19 09:15:53/397: system/system-log:default failed: transitioned to maintenance (see 'svcs -xv' for details)
Jun 19 09:29:50/4: svc:/system/system-log:default: Method or service exit timed out. Killing contract 842856.
Jun 19 09:29:50/400: system/system-log:default failed: transitioned to maintenance (see 'svcs -xv' for details)
Jun 19 09:40:24/4: svc:/system/system-log:default: Method or service exit timed out. Killing contract 842869.
Jun 19 09:40:24/402: system/system-log:default failed: transitioned to maintenance (see 'svcs -xv' for details)
Jun 19 12:29:53/4: svc:/system/system-log:default: Method or service exit timed out. Killing contract 843041.
Jun 19 12:29:53/405: system/system-log:default failed: transitioned to maintenance (see 'svcs -xv' for details)


I believe this issue starting from 16/05/2018, when we modified the syslog.conf by adding the mentioned entry.
However, the same entry has been added to another similar Solaris 10 server and it was working fine.

Is there anyone can give me some advice in this situation? Rebooting server is not possible because this is a critical server.

Regards,
Michael

Last edited by DukeNuke2; 06-19-2018 at 05:54 AM..
# 2  
Old 06-19-2018
To keep the forums high quality for all users, please take the time to format your posts correctly.

First of all, use Code Tags when you post any code or data samples so others can easily read your code. You can easily do this by highlighting your code and then clicking on the # in the editing menu. (You can also type code tags [code] and [/code] by hand.)


Second, avoid adding color or different fonts and font size to your posts. Selective use of color to highlight a single word or phrase can be useful at times, but using color, in general, makes the forums harder to read, especially bright colors like red.

Third, be careful when you cut-and-paste, edit any odd characters and make sure all links are working property.

Thank You.

The UNIX and Linux Forums
This User Gave Thanks to DukeNuke2 For This Post:
# 3  
Old 06-19-2018
I would be looking long and hard for possible formating errors in syslog.conf.

Also did you remember to:

Code:
# svcadm refresh system/system-log

# 4  
Old 06-19-2018
Quote:
Originally Posted by hicksd8
I would be looking long and hard for possible formating errors in syslog.conf.

Also did you remember to:

Code:
# svcadm refresh system/system-log

thanks hicksd8 for your reply.
i am also concerning about syslog.conf format. However, we have reverted the changes by replacing the backup file. Then the system-log still in maintenance mode.
I have done the svcadm refresh system-log but issue still persists.
Is there any different between svcadm refresh system-log and svcadm refresh system/system-log?


Regards
Michael
# 5  
Old 06-19-2018
I would say the issue is in space char.
syslog uses tabs as separators, be sure to check for those.
Code:
*.err;kern.debug;daemon.notice;mail.crit;auth.debug;user.debug;local6.info<tab>@<IP Address of Syslog server>

Personaly, i use disable/enable with svcadm, when restarting stuff.

During startup, also syslog should log a line or two why it failed in /var/log/ suggesting some course of action.

Hope that helps
Regards
Peasant.
# 6  
Old 06-20-2018
Dear Peasant,
Thank you for your response.


I have double checked the syslog.conf but it is ok.
Is there any debugging command like checking the configuration or tracing start-up command? I want to identify which step is getting stuck and leading to timeout execution.


Regards,
Michael
# 7  
Old 06-20-2018
Quote:
Originally Posted by michael_hoang
Dear Peasant,
Thank you for your response.


I have double checked the syslog.conf but it is ok.
Is there any debugging command like checking the configuration or tracing start-up command? I want to identify which step is getting stuck and leading to timeout execution.


Regards,
Michael
How did you check your syslog.conf?

As noted earlier: syslog.conf uses tabs as separators, not spaces.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. What is on Your Mind?

How to start in System Administration?

Hi all, I wonder if you guys could give me some advice on this. I have messed around with Linux for the last few years, and I'm at the point where I would like to become a system administrator - as a career. I already have a bachelor's degree, but it is in the humanities (art history) so... (2 Replies)
Discussion started by: ScottLew
2 Replies

2. Solaris

How to start system console in ELOM?

Hi, The system is Sun x4150. I use putty ssh to access to it. I can't start system console: (hung) Any help will be greatly appreciated! (5 Replies)
Discussion started by: aixlover
5 Replies

3. UNIX for Advanced & Expert Users

Adding hdparm to system start-up

Hi, I have read about a vulnerability that allows to lock any IDE/SATA hard drive with a password, unless the BIOS "freezes" the drive's (no-password) status. Even though less secure, this protection can also be archieved by software (only few BIOSes have that feature). hdparm offers a... (4 Replies)
Discussion started by: Gunther
4 Replies

4. AIX

Q: how to start a service when system start

As topic, assume we have a service called "blahservice" and we can start it by: startsrc -s blahservice what is the best practice to run such command when system start? - directly use mkitab to add it into /etc/inittab or - drop startup scripts in /etc/rc.d/rcX.d I know they... (4 Replies)
Discussion started by: acerlinux
4 Replies

5. UNIX for Advanced & Expert Users

Xend cannot start in my system

Hi all,,i'm sorry if my post is repost..but i'm need help about my problem... My specifications is : Sony Vaio VGN CR-323 Intel Dual-Core T2390(1.86 GHz) Memory 2GB DDR Harddisk 200GB with Debian lenny 2.6.26-1-686 i'm install xen via apt-get install xen blah..blah blah root@hell:~#... (4 Replies)
Discussion started by: demhyt
4 Replies

6. UNIX for Dummies Questions & Answers

How can i reinstall unix or solaris if i can't log into the system?

I just got a Sun solaris workstation from my friend but i don't know the password to his username. I have all the software but i dont know how to reinstall the operating system without logging in first. I dont need any of the info already on the system. Someone please help :) (5 Replies)
Discussion started by: Hoops31237
5 Replies

7. Shell Programming and Scripting

Cron job at system start up

I want to know if there is a way to make a certain set of programs start in order at system startup with cron or something else i dont know about. (3 Replies)
Discussion started by: rcunn87
3 Replies

8. SCO

System will not start

I am running OpenServer 5.0.5a on a Compaq Proliant 800. When trying to start the system it goes through loading everything and at the end I get the following message. WARNING: hd: no root disk controller was found H iinit ime Loadable Driver May be requiredG drain8042 PANIC: srmontfun -... (1 Reply)
Discussion started by: karlb1
1 Replies

9. HP-UX

how to start the x window system

hi, am new to hp-ux, i just bought an hp-ux with the hp-ux 11.0 os, is very old, and i wnat to start the x window system but it send an error that said that couldn't open the x server, i try startx, xinit, and nothing, and also where i can find tutorials for hp-ux os for beginners (7 Replies)
Discussion started by: nobody
7 Replies

10. UNIX for Dummies Questions & Answers

System Log for Sun Solaris 2.6

G'day. I have some questions on the Sun Solaris 2.6 OS. I would appreciate if you could refer me some write up or information on the following questions. 1. Terminal Time Out feature ? - Is this OS capable of doing this ? If the terminal is idle for a certain time of period. The system should... (2 Replies)
Discussion started by: tbtan
2 Replies
Login or Register to Ask a Question