cancel
Showing results for 
Search instead for 
Did you mean: 

Urgent: Error when Installing SMD_AGENT?

Former Member
0 Kudos

Hi,

I doing installation with a root access and I don't know why is it not creating user smdadm. Can someone help me?

ERROR 2008-03-20 13:16:30.920 [syuxcuser.cpp:1704]

CSyUserImpl::addToOS(const CUserData& data, ISyProgressObserver* )

FSL-01002 Unable to create account user="smdadm". UX: /usr/sbin/useradd: ERROR: Unable to create the home directory: Operation not applicable. (return code 12)

This urgent, I would really appreciate your fast reply.

Thanks,

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Markus,

I was able to install SMD AGENT successfully. Now the problem i'm getting is when I start smd agent, i get the following error.

cd /usr/sap/SMD/J98/scripts

>> ./smdstart.sh

./smdstart.sh

_________________________________________________________________________

SAP Solution Manager - Diagnostics Agent - Copyright (c) 2007 SAP AG

_________________________________________________________________________

[-] Prerequisites

----


Max open files limit .. OK

/usr/sap/SMD/exe/smdstart.sh: usage: ulimit [ -HSacdfnstv ] [ limit ]

/usr/sap/SMD/exe/smdstart.sh: test: argument expected

sap-*1:smdadm 13% ^C

sap-*1:smdadm 13% ./smdstart.sh

Also, Even when I try to stop it. I get the following errors.

./smdstop.sh

________________________________________________________________________

SAP Solution Manager - Diagnostics Agent - Copyright (c) 2007 SAP AG

_________________________________________________________________________

[-] Stopping SAP HOST CONTROL

----


27.03.2008 16:17:11

StopService

FAIL: NIECONN_REFUSED (Connection refused), NiRawConnect failed in plugin_fopen()

[-] Shutdown Diagnostics Agent SMD /98 with user smdadm

----


!! ERROR !! Diagnostics agent is not running.

_________________________________________________________________________

SAP Solution Manager - Diagnostics Agent - Copyright (c) 2007 SAP AG

_________________________________________________________________________

[-] Prerequisites

-


Max open files limit .. OK

/usr/sap/SMD/exe/smdstart.sh: usage: ulimit [ -HSacdfnstv ] [ limit ]

/usr/sap/SMD/exe/smdstart.sh: test: argument expected

How can I solve this problem?

Thanks,

markus_doehr2
Active Contributor
0 Kudos

Note 1109366 - Diagnostics Agent SPS 13 Installation issues describes the problem (and a solution)

Markus

Answers (9)

Answers (9)

Former Member
0 Kudos

Hi Markus,

That was Excellent reply. I was able to fix it quickly. But I'm having one more problem, I guess I'm having hard luck with it. Now the problem is, I can see the agent in solution manager, but the status is showing START_FAILED.

Here are some logs.

*jvm_SMDAgent.out* : this showing that the Agent is Running, but question is is it pointing the right way? since the pointing to sapms://******.com' on port 8100. Is it not should be like this >> http://****.com' on port 8100? 

*Starting SMDAgent ...*

*Running SMD Agent ...*
*Establishing connection to server 'sapms://**********.com' on port 8100*

I have also found some warnings here as well.

Log: Dev_jcontrol

[Thr  1] Thu Mar 27 16:51:57 2008
[Thr  1] *** *WARNING => Key profile parameters not set /usr/sap/SMD/SYS/profile/DEFAULT.PFL*:
 j2ee/scs/host=
 j2ee/scs/system= [jcntrxx_mt.c 1459]
[Thr  1] *** *WARNING => Can't open default profile [/usr/sap/SMD/SYS/profile/DEFAULT.PFL] for migration* [jcntrxx_mt.c 1460]
[Thr  1] SigISetDefaultAction : default handling for signal 18
[Thr  1] JControlExecuteBootstrap: jcontrol runs in 6.20 compatible mode
[Thr  1] JControlExecuteBootstrap: jcontrol runs in 6.20 compatible mode
[Thr  1] JControlIBuildProcessList: Maximum error count is set to 4
[Thr  2] JControlRequestFunc: Thread 2 started as listener thread for np messages.
[Thr  1] [Node: SMDAgent] java home is set by profile parameter
        Java Home: /opt/j2sdk1.4.2_12
[Thr  1] *JStartupICheckFrameworkPackage: can't find framework package /usr/sap/SMD/exe/jvmx.jar*

I was not able to find jvmx.jar file in /USR/SAP/SMD/EXE. Do you think this could have a problem? If yes, Any idea how can I fill this file there?

I really appreciate your help.

Thanks,

Former Member
0 Kudos

Hi Markus,

I will have to create a ticket for OS team. So far, I kinda have understood the what you are saying and it makes sense. Now for detail that I have to provide for OS team, how should I explain them? I can tell them to create user (smdadm) and the group would be (sapsys). Is there anything else do they need to do or I have to provide them in order work this thing out properly?

I really appreciate your quick replies.

Thanks a lot.

markus_doehr2
Active Contributor
0 Kudos

Nothing else required.

Just make sure the user exists, has a valid shell and home directory and is in the project and user_attr file. Everything else should be fine

Markus

Former Member
0 Kudos

Hi,

But when I use user jesadm instead smdadm, I get the following error. I think there should be some other user other than sid<adm> for agent.

The user jesadm is not a dedicated agent user: LD_LIBRARY_PATH environment variable does not contain path to Diagnostics agent binaries (/usr/sap/SMD/exe).

Thanks,

markus_doehr2
Active Contributor
0 Kudos

The SMD agent needs a separate user and (at best) a separate JDK. You can´t start/stop the agent with the normal adm (in your case jesadm).

Markus

Former Member
0 Kudos

Hi,

when I type ID, This is what I get >> uid=2712(jesadm) gid=202(sapsys)

When I launched SMD_AGENT, it takes smdadm user by default.

Thanks,

Former Member
0 Kudos

May be, there could be some security settings on your, which is not allowing you to create the default user.

Former Member
0 Kudos

Hi Markus,

Thanks for your reply. yes it is solaris but i did not get it what do you mean by is it auto mounted directory? can you please tell me more about it?

Thanks,

Edited by: Afi C on Mar 20, 2008 4:24 PM

markus_doehr2
Active Contributor
0 Kudos

Usually by default, user directories are create under /export/home/<username> and then mounted on login to /home/<username>.

Since /home is not existing and sapinst tries to create that directory there, it fails. That problem is odd, long known but never fixed.

I always create the users before the installation with the correct home directory like


useradd -c "SMD Agent" -m -g sapsys -s /bin/tcsh -u 500 -d /export/home/<agentSID>adm <agentSID>am

Sapinst will then use that user.

Make sure you adapt the project in /etc/project and add the user to /etc/user_attr too.

Markus

markus_doehr2
Active Contributor
0 Kudos

What OS are you using? You use an automounter? In case it´s Solaris, is /home an automounted directory?

Markus

Former Member
0 Kudos

Hi,

Create <sid>adm in your case 'smdadm' - SAP user

I already have <sid>adm user exists. my sid is JES.

From Guide:

The user has to be a user dedicated to SMD Agent installation (with enough privileges). I*f you*
*have no dedicated user enter a new user name and SAPinst will create this user with all the*
*privileges needed*. By default the user name is set to <sid>adm.

So, as root, when I click next, It does not create user smdadm.

I'm using DB2.

thanks,

Former Member
0 Kudos

So you user is 'jesadm', after you login to 'jesadm' enter 'id' at the command prompt.

and let me know the result.

so instead of smdadm it should be jesadm , i suppose.

Shaji

Former Member
0 Kudos

Hi,

I have given owner ship of sapinst_dir to root:sapsys but still not working. It is giving the same following error. I don't have smdadm user created yet.

INFO[E] 2008-03-20 15:45:30.484 [syuxcuser.cpp:1932]

*CSyUserImpl_getOsInfos(ILogBook m_logBook, iastring sName, iastring sID, tSyUserInfo& msUserinfo)

FSH-00006 Return value of function getpwnam(smdadm) is NULL.

ERROR 2008-03-20 15:45:30.727 [syuxcuser.cpp:1704]

CSyUserImpl::addToOS(const CUserData& data, ISyProgressObserver )*

FSL-01002 Unable to create account user="smdadm". UX: /usr/sbin/useradd: ERROR: Unable to create the home directory: Operation not applicable. (return code 12)

Any other idea?

Thanks,

Former Member
0 Kudos

Yes, that is the problem you need to create OS user for SAP and DB..

Create <sid>adm in your case 'smdadm' - SAP user

Create ora<sid> in your case should be 'orasmd' - oracle DB user, I am presuming you DB to be oracle.

<sid>adm should have users & groups : (smdadm), (sapsys), (dba), (oper), (sapinst)

ora<sid> should have users & groups : (orasmd) (dba) (sapsys),(oper),(sapinst)

Once this is done, your installation will go smooth.

Check the installation manual, very clearly mentioned

Cheers

Shaji

Edited by: Shaji Jacob on Mar 20, 2008 11:08 PM

Former Member
0 Kudos

Hi

Stop and Quit the Installation.

Where is you SAPINST <DIR> created. Give chmod -R 777 <sapinst_dir> and chown -R root:sapsys <sapinst_dir>.

Check your <TMP DIR>, could be running out of diskspace.

Restart the Installation.

Please let me know the user/groups assigned to user 'smdadm'.

Regards

Shaji

Edited by: Shaji Jacob on Mar 20, 2008 9:17 PM