Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

StandAlone app Server profile - WAS 6.1

Posted on 2010-11-24
8
Medium Priority
?
2,729 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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
 
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 2000 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

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

-Xmx and -Xms are the two JVM options often used to tune JVM heap size.   Here are some common mistakes made when using them:   Assume BigApp is a java class file for the below examples. 1.         Missing m, M, g or G at the end …
Upgrading Tomcat – There are a couple of methods to upgrade Tomcat is to use The Apache Installer is to download and unzip and run the services.bat remove|install Tomcat6 Because of the App that we are working with, we can only use Tomcat 6.…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

783 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