Topic
5 replies Latest Post - ‏2011-05-28T07:43:10Z by SystemAdmin
SystemAdmin
SystemAdmin
9224 Posts
ACCEPTED ANSWER

Pinned topic Can not stop application.App stop error: 405

‏2011-05-27T04:49:48Z |
NOTE: this thread was migrated from projectzero.org. Some content and formatting may have been lost in the move.


Originally posted by projectzero userid: ygnhzeus - f=4&t=2314#p9387
Hi,when I try to stop an application in app builder.It returns App stop error: 405 , how to solve this problem,thanks!
Updated on 2011-05-28T07:43:10Z at 2011-05-28T07:43:10Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    9224 Posts
    ACCEPTED ANSWER

    Re: Can not stop application.App stop error: 405

    ‏2011-05-27T06:07:03Z  in response to SystemAdmin

    Originally posted by projectzero userid: EricWang - f=4&t=2314#p9388
    would you please try "zero stop" on the command line?
  • SystemAdmin
    SystemAdmin
    9224 Posts
    ACCEPTED ANSWER

    Re: Can not stop application.App stop error: 405

    ‏2011-05-27T06:13:39Z  in response to SystemAdmin

    Originally posted by projectzero userid: ygnhzeus - f=4&t=2314#p9389
    Ok, but I got "CWPZC0019E: Cannot find handler for task stop".


    color=#FF0000:31jqzxf2soso@linux-1owe:~/zero> ./zero[/color:31jqzxf2]
    color=#0000FF:31jqzxf2
    Usage: zero main-opts <task> task-args
    main-opts:
    -d enable minimal logging
    -v enable all logging
    -l=<file> use the given file to output log to

    compile Compiles all Java source files under the module's /java
    directory.
    create Creates a new module in the current directory.
    help Prints the documentation for the given command.
    modulegroup Manage modulegroups.
    package Packages the module as a zip file.
    publish Publish the module to your local repository.
    repository Manage repositories.
    resolve Determine the module's dependencies.
    rollback Reverts the effects of the last resolve or update.
    search Finds and prints all matching modules in the repository.
    switch Switch the module group.
    update Resolves a module to its latest dependencies.
    version Displays version information
    [/color:31jqzxf2]

    It seems that "stop" is not supported here...
  • SystemAdmin
    SystemAdmin
    9224 Posts
    ACCEPTED ANSWER

    Re: Can not stop application.App stop error: 405

    ‏2011-05-27T14:39:39Z  in response to SystemAdmin

    Originally posted by projectzero userid: jeffo - f=4&t=2314#p9392
    for 'zero stop' from command line, you will have to navigate into the application directory tree before issuing the command.

    > cd /zero/<my_app> (wherever your app was created)
    > zero stop


    Still trying to think of a reason for the AppBuilder stop to have failed.
  • SystemAdmin
    SystemAdmin
    9224 Posts
    ACCEPTED ANSWER

    Re: Can not stop application.App stop error: 405

    ‏2011-05-27T15:07:49Z  in response to SystemAdmin

    Originally posted by projectzero userid: jeffo - f=4&t=2314#p9393
    Just a guess: In following the directions for remote operations, you might have created some security issues with issuing the administrative commands from the appbuilder. I would suggest editing those additions to zero.config and only enable the one for remote appbuilder operation to start with:

    # Disable localhost restriction
    /config/http/ipAddress = "*"


    comment/disable the 4 security related protections to start with, just to see AppBuilder operate. They require setting up a secret key and userid combination to be correct and could be interfering. I suspect this is why you are getting the 405 error.


    Another thing to try is opening your running app in AppBuilder, go to the Console tab, select Command Line, and issue the zero stop and zero start commands there.
  • SystemAdmin
    SystemAdmin
    9224 Posts
    ACCEPTED ANSWER

    Re: Can not stop application.App stop error: 405

    ‏2011-05-28T07:43:10Z  in response to SystemAdmin

    Originally posted by projectzero userid: ygnhzeus - f=4&t=2314#p9394
    Thanks jeffo ,it works now!