Unable to install any application on the AppWorks server

Options

Hello, I am unable to install any application or package on the Appworks gateway server. The installation progress indicator does not indicate what is going on but upon inspection of the browser console I see 404 and 500 error.

Screenshot attached

Could someone please point me in the right direction to troubleshoot this error.

I was trying to install the Tempo box and Appworks addon packages to the server.

Thanks and appreciate the help.

Comments

  • Hi,

    Could you supply the logs from the gateway and more details of your install

    Is it a standalone install with the embedded Derby DB and internal OTDS

    Thanks

    Simon

  • Its a single server standalone install with local instance of MySQL database and external OTDS. Here are some additional log information:

    gateway.log file

    2015-01-17 12:18:28.867 INFO   com.opentext.otag.rest.util.JsonpFilter  - A warning about POST requests is expected due to jsonp filtering, 
    and can be safely ignored.
    2015-01-17 12:18:36.120 INFO   com.opentext.otag.rest.util.JsonpFilter  - A warning about POST requests is expected due to jsonp filtering, 
    and can be safely ignored.
    2015-01-17 12:18:45.427 INFO   com.opentext.otag.rest.impl.AppsImpl  - otag@otag uploaded a bundle named tempobox_10.5.12.otag
    2015-01-17 12:18:45.428 INFO   com.opentext.otag.rest.impl.AppsImpl  - otag@otag uploaded content, version 10.5.12
    2015-01-17 12:18:45.428 INFO   com.opentext.otag.rest.impl.AppsImpl  - otag@otag uploaded favoritesfeature, version 1.0.0
    2015-01-17 12:18:45.428 INFO   com.opentext.otag.rest.impl.AppsImpl  - otag@otag uploaded favorites, version 1.0.0
    2015-01-17 12:18:45.428 INFO   com.opentext.otag.rest.impl.AppsImpl  - otag@otag uploaded objectdetailsview, version 10.5.12
    2015-01-17 12:18:45.428 INFO   com.opentext.otag.rest.impl.AppsImpl  - otag@otag uploaded shares, version 1.0.0
    2015-01-17 12:18:45.428 INFO   com.opentext.otag.rest.impl.AppsImpl  - otag@otag uploaded tempoboxhelp-app, version 10.5.12
    2015-01-17 12:18:45.428 INFO   com.opentext.otag.rest.impl.AppsImpl  - otag@otag uploaded tempobox, version 10.5.12
    2015-01-17 12:18:45.428 INFO   com.opentext.otag.rest.impl.AppsImpl  - otag@otag uploaded tempocontent, version 1.0.02015-01-17 12:18:48.004 INFO   com.opentext.otag.rest.util.JsonpFilter  - A warning about POST requests is expected due to jsonp filtering, and can be safely ignored.2015-01-17 12:18:48.357 INFO   com.opentext.otag.rest.apps.App      - Deploying app content
    2015-01-17 12:18:48.357 INFO   com.opentext.otag.rest.apps.App      - ====deployment removed. Moving from staging.2015-01-17 12:18:48.363 INFO   com.opentext.otag.rest.apps.App      - ====move failed; retrying.
    2015-01-17 12:18:48.363 ERROR  com.opentext.otag.rest.v1.Apps       - java.nio.file.DirectoryNotEmptyException: /usr/share/tomcat/otagtmp/content
    

    catalina.out file

    Jan 20, 2015 10:59:18 AM com.sun.jersey.spi.container.servlet.WebComponent filterFormParameters
    WARNING: A servlet request, to the URI https://appworksgw:8443/gateway/v1/auth, contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected.
    Jan 20, 2015 11:03:37 AM com.sun.jersey.spi.container.servlet.WebComponent filterFormParameters
    WARNING: A servlet request, to the URI https://appworksgw:8443/gateway/v1/stagedapps/content, contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected.
    

    localhost.log file

    Jan 20, 2015 10:58:19 AM org.apache.catalina.core.StandardContext listenerStop
    SEVERE: Exception sending context destroyed event to listener instance of class com.opentext.otag.rest.OTAGServletContextListener
    java.lang.NullPointerException
            at com.opentext.otag.common.notifications.Cluster.stop(Cluster.java:77)
            at com.opentext.otag.common.notifications.NotificationService.stop(NotificationService.java:191)
            at com.opentext.otag.rest.OTAGServletContextListener.contextDestroyed(OTAGServletContextListener.java:44)
            at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4831)
            at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5478)
            at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
            at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1575)
            at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1564)
            at java.util.concurrent.FutureTask.run(FutureTask.java:262)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
            at java.lang.Thread.run(Thread.java:745)
    
  • Hi

    This is certainly a file system permissions issue for the user running tomcat

    What happens if you do a quick test of running the tomcat with a user with higher permissions ,such as root

    I did a quick test on Centos 7 with MySQL 5.5 and hit no issues

    Can you try it as root

    Simon