WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Application Deployment on cluster

    Posted Tue December 27, 2011 05:48 AM
    Hi All,

    I deployed one appliction in cluster. Deployement has been completed successfully with sychronization.

    When i am starting application, its not starting in one of the cluster member.

    Because, deployed aplication WAR file not there in /installedApps.

    i am getting the following error in nodeagent logs.


    AppSyncUtils  E   ADMA7005E: An unexpected exception occurred while loading resour
    ce cells/12APPTR21VCell01/nodes/12APPTR27VNode01/serverindex.xml from the repository.  This error causes problems in using th
    is resource for application synchronization logic.

    please help me.

    When i googling this error,

    www-304.ibm.com/support/docview.wss?uid=...

    Applications information is there in serverindex.xml and applications folder.

    Thanks,
    Chinna


  • 2.  Application Deployment on cluster

    Posted Tue December 27, 2011 11:31 AM

    Chinna


    When you go to System administration > Nodes are all nodes synchronized and showing online?


    In Servers > Cluster > “cluster name” > Cluster Members do bout nodes appear for this cluster?


    In applications > Enterprise Applications > “application name” > Manage modules > is the app deployed to the cluster name?


    Also try the syncnode from all nodes in the article below. During this process you may get a question related to a cert this is not imported, if you do select yes.


    publib.boulder.ibm.com/infocenter/wasinf...



  • 3.  Application Deployment on cluster

    Posted Wed December 28, 2011 11:28 AM
    check the nodeagent SystemOut.log file during a sync operation.

    if this is NOT a synchronization issue, double-check your file permissions.


  • 4.  Application Deployment on cluster

    Posted Thu December 29, 2011 01:13 AM
    Hi Alexie,

    We have four nodes in cluster. All  WAS services are started with one user id(wasadmin), Dmgr services is started with root id.

    I am not facing any problem in rest of the three nodes.

    When i executed synode command manualy for this node.

    i am getting following exception.

    com.ibm.websphere.management.exception.DocumentIOException: Unable to create temp file for document: cells/12APPTR21VCell01/nodes/12APPTR27VNode01/serverindex.xml
            at com.ibm.ws.management.repository.FileDocument.createTempFile
    (FileDocument.java:564)
            at com.ibm.ws.management.repository.FileDocument.read
    (FileDocument.java:493)
            at com.ibm.ws.management.repository.FileRepository.extract
    Internal(FileRepository.java:1034)
            at com.ibm.ws.management.repository.FileRepository.extract
    (FileRepository.java:1006)
            at com.ibm.ws.management.repository.FileRepository.extract
    (FileRepository.java:964)
            at com.ibm.ws.management.repository.FileRepository.extract
    (FileRepository.java:954)
            at com.ibm.ws.management.application.sync.AppSyncUtils.get
    Resource (AppSyncUtils.java:117)
            at com.ibm.ws.management.application.sync.AppSyncUtils.build
    SIMap(AppSyncUtils.java:183)
            at com.ibm.ws.management.application.sync.AppBinaryProcessor.
    checkForFailedEars(AppBinaryProcessor.java:551)
            at com.ibm.ws.management.application.sync.AppBinaryProcessor.
    handleNotification(AppBinaryProcessor.java:515)
            at com.ibm.ws.management.sync.NodeSync.sendLocalEvent
    (NodeSync.java:792)
            at com.ibm.ws.management.sync.NodeSync.sendCompletionEvent
    (NodeSync.java:
    820)
            at com.ibm.ws.management.sync.NodeSyncTask.doSync
    (NodeSyncTask.java:368)
            at com.ibm.ws.management.sync.NodeSyncTask.run
    (NodeSyncTask.java:181)
            at java.lang.Thread.run(Thread.java:811)
    Caused by: java.io.IOException: The file access permissions do not allow the specified action.
            at java.io.File.checkAndCreate(File.java:1380)
            at java.io.File.createTempFile(File.java:1468)
            at com.ibm.ws.management.repository.FileDocument.createTempFile
    (FileDocument.java:557)
            ... 14 more
    ADMU0402I: The configuration for node 12APPTR27VNode01 has been synchronized
               with Deployment Manager 12apptr21v: 8879

    Is there any problem with Dmgr its started with root. I think it should not be a problem, bcoz rest three nodes are working.


    Please correct me.

    Thanks,
    Chinna.


  • 5.  Application Deployment on cluster

    Posted Thu December 29, 2011 11:11 AM
    Hi chinna,

    The message there shows exactly what I told you: file permissions.

    You said "root" user, so I am assuming you you are on a Unix/Linux environment. If so, open a terminal shell in the offending node, change direcftory to the root of the profile directory ( {WAS_INSTALL}/profiles/12APPTR27VNode01   ??? ) and run the exact following command:

    find . !  -user wasadmin -print | xargs -n 1 ls -ld

    (this will look for files, starting on the current directory (that is the dot), that do NOT (!) belong to the user wasadmin, and print the results. For more info, run "man find" to read find's manual page)

    If that returns anything at all, meaning that some files do not belong to the user wasadmin and this id might not be able to overwrite them, you will need to fix it. For that, you have to run (as root) the following command:

    chown -R wasadmin .

    (changing the ownership, recursively into subdirectories, to the id wasadmin, of the current directory (dot)), provided that you also run that command after changing the directory to the root of the profile.

    UPDATED: I forgot to mention that you must stop all the processes (if there is any WAS process running at all) before running the chown command.

    If you are in doubt, feel free to post here or get in touch directly.

    Cheers,
    Alexei


  • 6.  Application Deployment on cluster

    Posted Tue January 03, 2012 09:17 AM
    Hi Alexie,

    Thanks for your valuable inputs.

    I hava executed,  find command to know the files permission inside directory.

    Inside the profiles some files are owned by root id. The below files are owned by root.

    Now i got solution what to do.

    Thanks a lot to all.

    drwxr-xr-x    3 root     system          256 Dec 24 11:33 AppServer03/confi
    /temp/
    download/cells
    drwxr-xr-x    3 root     system          256 Dec 24 11:33 AppServer03/config/temp/
    download/cells/12APPTR21VCell01
    drwxr-xr-x    3 root     system          256 Dec 24 11:33 AppServer03/config/temp/
    download/cells/12APPTR21VCell01/nodes
    drwxr-xr-x    2 root     system          256 Dec 24 11:33 AppServer03/config/temp/
    download/cells/12APPTR21VCell01/nodes/12APPTR27VNode01
    /usr/
    ibm/WebSphere/AppServer1/profiles/AppServer03/etc>:
      : The file access permissions do not allow the specified action.
    -rw-r--r--    1 root     system            0 Dec 24 11:33 AppServer03/configuration
    /.lastTouched
    drwxr-xr-x    3 root     system          256 Dec 24 11:33 AppServer03/configuration
    /org.eclipse.osgi
    drwxr-xr-x    2 root     system          256 Dec 24 11:33 AppServer03/configuration
    /org.eclipse.osgi/.manager
    -rw-r--r--    1 root     system            0 Dec 24 11:33 AppServer03/configuration
    /org.eclipse.osgi/.manager/.fileTableLock
    -rw-r--r--    1 root     system         1049 Dec 24 11:33 AppServer03/configuration
    /org.eclipse.update/platform.xml
    find: 0652-081 cannot change directory to :
      : The file access permissions do not allow the specified action.
    find: 0652-081 cannot change directory to :
      : The file access permissions do not allow the specified action.
    -rw-r--r--    1 root     system       834049 Sep 12 16:12 AppServer03/logs/mem3/mem3



    Thanks,
    Chinna