1834125 Members
2361 Online
110064 Solutions
New Discussion

Re: system startup

 
Eng. Mohammad
Frequent Advisor

system startup

hi all
i have the following message appears when i start my rp7420 server running hp ux 11i v1
-------------------------
/sbin/rc2.d/S590Rpcd[30]: ^M: not found.
/sbin/rc2.d/S600iforls[34]: ^M: not found.
/sbin/rc2.d/S620xfs[18]: ^M: not found.
/sbin/rc2.d/S648eus[43]: ^M: not found.
/sbin/rc2.d/S700acct[39]: ^M: not found.
/sbin/rc3.d/S823hpws_apache[46]: ^M: not found.
/sbin/rc3.d/S823hpws_tomcat[46]: ^M: not found.
/sbin/rc3.d/S823hpws_webmin[45]: ^M: not found.
/sbin/rc3.d/S823hpws_webproxy[44]: ^M: not found.
/sbin/rc3.d/S823hpws_xmltools[42]: ^M: not found.


HP-UX Start-up in progress Status
__________________________ ______

Configure system crash dumps ....................................[ok]
VxVM device node check .......................................... [ OK ]
VxVM general startup ............................................ [ OK ]
VxVM reconfiguration recovery ................................... [ OK ]
Mount file systems .............................................. [ OK ]



can any body help to find the solution
17 REPLIES 17
Ivan Krastev
Honored Contributor

Re: system startup

All that lines points to /etc/rc.config file.

Check this file for errors.


regards,
ivan
Laurent Menase
Honored Contributor

Re: system startup

did you edit those files on windows? or use ftp with windows to have that:

you have a ^M which is not well interpreted

For each of the files pointed by
/sbin/rc2.d/S590Rpcd
/sbin/rc2.d/S600iforls
/sbin/rc2.d/S620xfs
/sbin/rc2.d/S648eus
/sbin/rc2.d/S700acct
/sbin/rc3.d/S823hpws_apache
/sbin/rc3.d/S823hpws_tomcat
/sbin/rc3.d/S823hpws_webmin
/sbin/rc3.d/S823hpws_webproxy
/sbin/rc3.d/S823hpws_xmltools

copy them for backup
then tr -d "\012" outputfile
Jaime Bolanos Rojas.
Honored Contributor

Re: system startup

Mohammad,

All that looks like third party programs usually ship in the internet express cd, do you use those services and tools usually?
Have you gotten the errors always or you just installed those things in your server?

Regards,

Jaime.
Work hard when the need comes out.
Eng. Mohammad
Frequent Advisor

Re: system startup

hi jaime
these errors appeared from first time i used the server , i didnt install any new software , it is all factory installed

any help plz
Jaime Bolanos Rojas.
Honored Contributor

Re: system startup

Mohammad,

Chances are that you are not even using tomcat or webmin or webproxy, etc, please check on that to see if you need them, if not you might want to just swremove them from the system, and get rid of the problem of having unneccesary software.

Regards,

Jaime.
Work hard when the need comes out.
Peter Godron
Honored Contributor

Re: system startup

Hi,
please see:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=397230
The problem seems to have been best fixed by Sidhars solution.

Check your individual /sbin/rc?.d/S???? scripts.

Check ls -ab /etc/rc.config.d
Check ls -ab /sbin/init.d

Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward any useful answers given to your questions.

So far you have not awarded any points !

Ralph Grothe
Honored Contributor

Re: system startup

Looks someone edited your init scripts with an editor that injected CRs on newlines (e.g. Word etc.).
You should either generally edit any Unix files with common Unix editors like vi, or send them through a filter like tr.

e.g.

# tr -d \\015 < /sbin/init.d/dos_edited_script > cr_stripped_script

Madness, thy name is system administration
Ralph Grothe
Honored Contributor

Re: system startup

Looks someone edited your init scripts with an editor that injected CRs on newlines (e.g. Word etc.).
You should either generally edit any Unix files with common Unix editors like vi, or send them through a filter like tr.

e.g.

# tr -d \\015 < /sbin/init.d/dos_edited_script > cr_stripped_script

Madness, thy name is system administration
Ralph Grothe
Honored Contributor

Re: system startup

Oops, sorry for the double post.
Webserver was nagging me.
Madness, thy name is system administration
Dennis Handly
Acclaimed Contributor

Re: system startup

>Ralph: send them through a filter like tr.

There is a dos2ux(1) command to do this. Or you can do it directly in vi with:
:%s/^VCR//g

(That's control V then Return or Enter.)
Eng. Mohammad
Frequent Advisor

Re: system startup

i tried to copy the corrupted files from nother server having the same OS and settings , but the problem stayes as it is , i edited the files and i didnt find any (^M) , as i read in ascii (the ^M is the CR "015") can any body help me to solve the problem
thanx for all
Peter Godron
Honored Contributor

Re: system startup

Hi,
if you edit all these files, you'll find that the line it is complaining about is
. /etc/rc.config

See line 30 of /sbin/rc2.d/S590Rpcd and
line 34 of /sbin/rc2.d/S600iforls

Can you please check the format/contents of this file. You also did not come back on my other thing to check:
ls -ab /etc/rc.config.d look for a ^M file
Eng. Mohammad
Frequent Advisor

Re: system startup

thnks peter
first i will see the files in rc.config.d and tell you what i find
second i dont understand what you say about CHECK can you please give me the full commands and what they do

i read the threads in the following link :
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=397230
it seems to be the same problem but i cant understand how to run this script:

cd /etc/rc.config.d
for i in `ls`
do
echo $i
. ./$i
done >> /tmp/rc.out

and if it is fully correct or i have to modify it in my case

thanks again
Raj D.
Honored Contributor

Re: system startup

Your all rc script file names are showing filled with control character,

Can you go to /sbin/rc2.d/ and open the files with their name.

Confirm this and debug further.

"not found" is self explanatory and means the files are unable to find during system startup,

check the existance of the files, you can use dos2ux command to correct it , or restore from backup or rename correctly,



hth,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Laurent Menase
Honored Contributor

Re: system startup

just send a file with an error for instance
Laurent Menase
Honored Contributor

Re: system startup

You have probably something in a /etc/rc.config.d file:

In the error you have the line number of where the problem is met:
look at the lines
30 in file /sbin/rc2.d/S590Rpcd[30]
34 /sbin/rc2.d/S600iforls[34]
18 /sbin/rc2.d/S620xfs[18]
......

It is the ". /etc/rc.config which source the rc.config.d

You have probably a ^M in an env variable defined in one of those file

so just do a set -x in S590Rpcd just before line 30 and set +x just after.
Then do a
# /sbin/rc2.d/S590Rpcd donothing
you will see what env variable caused the problem

Re: system startup

You can do:

for i in /sbin/rc2.d/S590Rpcd
> /sbin/rc2.d/S600iforls
> /sbin/rc2.d/S620xfs
> /sbin/rc2.d/S648eus
> /sbin/rc2.d/S700acct
> /sbin/rc3.d/S823hpws_apache
> /sbin/rc3.d/S823hpws_tomcat
> /sbin/rc3.d/S823hpws_webmin
> /sbin/rc3.d/S823hpws_webproxy
> /sbin/rc3.d/S823hpws_xmltools
> do
> cat -vet $i
done

and then just need to verify each line with ^M or another special character.

Regards.