Solved

StandAlone app Server profile - WAS 6.1

Posted on 2010-11-24
8
2,550 Views
Last Modified: 2012-06-22
This is something intersting and wierd.

Well as a specific user I  created a StandAlone app server profile on WAS 6.1 binaries. I Twas working fine till I applied a an upgrade package.

Well I had to apply a fixpack to the integrated solution console for the same profile. So I applied this fixpack and augmented this profile to this fixpack . All the fixpack process and augmenting was doen as a root user. Since Root was the only who could run the update installer, well I got what I wanted in the integrated solution console. But when I try to restart the server as the same user who created binaries and profile from the WASHOME/bin directory it gives me an error

"WCMD0002E: Command "startServer.sh" requires a profile. No default profile exists and a profile name was not specified. Ensure that a default profile exists or use the -profileName parameter to specify the name of an existing profile." Root was able to start the server from the same directory

I was able to start the server with the same user id from  WASHOME/profiles/Appserver/bin/


So I want to know what got changed when I augmented the profile using root . Is ther any way I can let the user ID gain control of the profile . If you are wondering what the hell am I doing " I am working on IBM license metric tool and it needs some upgrades to the integrated solution console"

Thanks
Maddy
0
Comment
Question by:maddy939
  • 5
  • 3
8 Comments
 
LVL 41

Expert Comment

by:HonorGod
ID: 34217178
Apparently the "default" profile information got lost somehow.

To verify what profiles exist:

- "cd" to the AppServer bin directory
  e.g., something like:
  # cd /opt/IBM/WebSphere/AppServer/bin

- Use the manageprofiles command to list the available profiles:
  e.g., something like:
  # ./manageprofiles.sh -listProfiles

- Use the manageprofiles command to list the current default:
 e.g., something like:
  # ./manageprofiles.sh -getDefaultName

- if the default profile name is missing, or not what you want, change the default using something like:
  # ./manageprofiles.sh -setDefaultName -profileName AppSrv01
0
 

Author Comment

by:maddy939
ID: 34217733
Hi HonorGod ,

When I try to run the manageprofiles command as the user who originally created the profile, I get the following Errors


./manageprofiles.sh -listProfiles
Nov 26, 2010 9:13:16 AM com.ibm.wsspi.profile.WSProfileCLI getMaskableArgs
INFO: Maskable Action Arguments: { "winservicePassword" ,"adminPassword" ,"dmgrA                    dminPassword" ,"samplesPassword" ,"password" ,"adminPwd" }
Nov 26, 2010 9:13:16 AM com.ibm.wsspi.profile.WSProfileCLI invokeWSProfile
INFO: Incoming command line is: { "-listProfiles" }
Nov 26, 2010 9:13:16 AM com.ibm.ws.profile.cli.WSProfileCLIModeInvoker getArgume                    ntValue
WARNING: Could not resolve templatePath from command line
Nov 26, 2010 9:13:16 AM com.ibm.ws.profile.cli.WSProfileCLIModeInvoker getArgume                    ntValue
WARNING: Could not resolve profileName from command line
Nov 26, 2010 9:13:16 AM com.ibm.ws.profile.cli.WSProfileCLIModeInvoker getArgume                    ntValue
 WARNING: Could not resolve profileName from command line
Nov 26, 2010 9:13:16 AM com.ibm.ws.profile.cli.WSProfileCLIModeInvoker getModeInvoker
INFO: Identified WSProfile mode invoker to be: com.ibm.ws.profile.cli.WSProfileC                    LIListProfilesInvoker
Nov 26, 2010 9:13:16 AM com.ibm.wsspi.profile.WSProfileCLI isLogReInitialization                    Necessary
INFO: Log re-initialization is necessary: false
Nov 26, 2010 9:13:16 AM com.ibm.ws.profile.cli.WSProfileCLIModeInvoker getArgume                    ntValue
WARNING: Could not resolve templatePath from command line
Nov 26, 2010 9:13:16 AM com.ibm.ws.profile.cli.WSProfileCLIModeInvoker getArgume                    ntValue
WARNING: Could not resolve templatePath from command line
Nov 26, 2010 9:13:16 AM com.ibm.ws.profile.cli.WSProfileCLIModeInvoker getArgume                    ntValue
WARNING: Could not resolve profileName from command line
Nov 26, 2010 9:13:16 AM com.ibm.ws.profile.cli.WSProfileCLIModeInvoker getArgume                    ntValue
WARNING: Could not resolve profileName from command line
Nov 26, 2010 9:13:16 AM com.ibm.ws.profile.cli.WSProfileCLIModeInvoker getArgume                    ntValue
WARNING: Could not resolve profileName from command line
Nov 26, 2010 9:13:16 AM com.ibm.ws.profile.cli.WSProfileCLIModeInvoker getArgume                    ntValue
WARNING: Could not resolve profileName from command line
Nov 26, 2010 9:13:16 AM com.ibm.ws.profile.cli.WSProfileCLIModeInvoker getArgume                    ntValue
WARNING: Could not resolve profileName from command line
Nov 26, 2010 9:13:16 AM com.ibm.ws.profile.cli.WSProfileCLIModeInvoker getArgume                    ntValue
WARNING: Could not resolve profileName from command line
Nov 26, 2010 9:13:16 AM com.ibm.ws.profile.cli.WSProfileCLIModeInvoker getModeIn                    voker
INFO: Identified WSProfile mode invoker to be: com.ibm.ws.profile.cli.WSProfileC                    LIListProfilesInvoker
Nov 26, 2010 9:13:16 AM com.ibm.ws.profile.cli.WSProfileCLIModeInvoker areComman                    dLineArgumentsValid
INFO: Validating command line arguments.
Nov 26, 2010 9:13:16 AM com.ibm.ws.install.configmanager.utils.SystemPropertiesU                    tils setValue
INFO: Set System property listProfiles with an empty value
Nov 26, 2010 9:13:16 AM com.ibm.ws.profile.utils.ValidationManagerUtils determin                    eCurrentMode
INFO: Mode was determined to be: null
Nov 26, 2010 9:13:16 AM com.ibm.ws.profile.cli.WSProfileCLIModeInvoker getArgume                    ntValue
WARNING: Could not resolve registry from command line
Nov 26, 2010 9:13:16 AM com.ibm.wsspi.profile.WSProfile getRegistryFile
INFO: Return profile registry location as: /opt/WAS/6.1/f/properties/profileRegistry.xml
Nov 26, 2010 9:13:16 AM com.ibm.ws.profile.cli.WSProfileCLIModeInvoker getProfil                    eRegistryPath
INFO: Profile registry being used is: /opt/WAS/6.1/f/properties/profileRegistry.xml
Nov 26, 2010 9:13:16 AM com.ibm.ws.install.configmanager.osutils.PlatformConstants getCurrentPlatform
INFO: Current platform was detected as AIX
Nov 26, 2010 9:13:16 AM com.ibm.ws.profile.utils.FileUtils getNormalizedPath
INFO: The path /opt/WAS/6.1/f/profiles/saILMT was sucessfully normalized to /                    opt/WAS/6.1/f/profiles/saILMT
Nov 26, 2010 9:13:16 AM com.ibm.ws.profile.utils.FileUtils getNormalizedPath
INFO: The path /opt/WAS/6.1/f/profileTemplates/default was sucessfully normalized to /opt/WAS/6.1/f/profileTemplates/default
Nov 26, 2010 9:13:16 AM com.ibm.ws.profile.utils.FileUtils getNormalizedPath
Nov 26, 2010 9:13:16 AM com.ibm.ws.profile.registry.FSProfileRegistry getScriptP                    athForThisProfile
INFO: The script path for this profile: saILMT:/opt//WAS/6.1/f/profiles/saILMT:truefalse, is: /opt/WAS/6.1/f/properties/fsdb/saILMT.sh
[]
Nov 26, 2010 9:13:16 AM com.ibm.wsspi.profile.WSProfileCLI invokeWSProfile
INFO: Returning with return code: INSTCONFSUCCESS
0
 
LVL 41

Expert Comment

by:HonorGod
ID: 34219701
Yeah, apparently the update, as root, means that you have to either run the manageprofiles script as root,
or you have to do something like chown on the files to change the ownership.

If you use a recursive long list, you will probably find some number of files still owned by the non-root user (is it doen?).

ls -lAR | grep doen | wc -l

You might just be able to use something like this from the AppServer directory:

chown -R doen:doen *

BEFORE YOU DO THOUGH, BACKUP UP THE WHOLE DIRECTORY (e.g., use something like tar & gzip), just in case things go wrong.
0
 

Author Comment

by:maddy939
ID: 34231449
ok i  ran the command from the WAS home directory "ls -lAR | grep root | wc -l" It did show me there were 511 files .

Now how will I be able to display those  files so that I Can change the permissions.
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
LVL 41

Expert Comment

by:HonorGod
ID: 34231502
no, you should be able to use the recursive chown command, something like that shown above...
0
 

Author Comment

by:maddy939
ID: 34232905
so is it like chown -R user:user opt/IBM/WebSphere/Apsperver home
0
 
LVL 41

Accepted Solution

by:
HonorGod earned 500 total points
ID: 34233590
Instead of user:user  it should be user:group

What ever user and group "own" the other WebSphere Application Server files.

When you did the "ls -lAR" many (most?) of the files should be owned by this user:group
0
 
LVL 41

Expert Comment

by:HonorGod
ID: 34337641
Thanks for the grade & points

Good luck & have a great day
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This exercise is about for the following scenario: Dmgr and One node with 2 application server. Each application server contains it owns application. Application server name as follows server1 contains app1 server2 contains app1 Prereq…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now