GitHub user nickwallen opened a pull request:

    https://github.com/apache/incubator-metron/pull/80

    METRON-111 Using 'restart' works whether its running or not

    Deployment fails if the Metron UI is already running.  Using 'restart' 
instead of 'start' works whether its is running or not.
    
    ```
    TASK [metron_ui : Install Node dependencies] 
***********************************
    ok: [ec2-52-38-107-175.us-west-2.compute.amazonaws.com]
    
    TASK [metron_ui : Install Metron UI] 
*******************************************
    ok: [ec2-52-38-107-175.us-west-2.compute.amazonaws.com]
    
    TASK [metron_ui : Start Metron UI] 
*********************************************
    fatal: [ec2-52-38-107-175.us-west-2.compute.amazonaws.com]: FAILED! => 
{"changed": true, 
    "cmd": "pm2 start /usr/metron/0.1BETA/metron-ui/lib/metron-ui.js --name 
metron", 
    "delta": "0:00:00.234542", "end": "2016-04-15 18:31:19.971101", "failed": 
true, "rc": 1, 
    "start": "2016-04-15 18:31:19.736559", 
    "stderr": "[PM2][ERROR] Script already launched, add -f option to force 
re-execution", 
    "stdout":
    
"┌──────────┬────┬──────┬───────┬────────┬─────────┬────────┬──────────────┬──────────┐\n
    │ App name │ id │ mode │ pid   │ status │ restart │ uptime 
│ memory       │ watching │\n
    
├──────────┼────┼──────┼───────┼────────┼─────────┼────────┼──────────────┼──────────┤\n
    │ metron   │ 0  │ fork │ 16884 │ online │ 0       │ 47h    
│ 105.633 MB   │ disabled │\n
    
└──────────┴────┴──────┴───────┴────────┴─────────┴────────┴──────────────┴──────────┘\n
     Use `pm2 show <id|name>` to get more details about an app",... , 
"warnings": []}
    
    ```

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/nickwallen/incubator-metron METRON-111

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-metron/pull/80.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #80
    
----
commit 3c5a8dc7f1d406387589b5a2668859db764ba267
Author: Nick Allen <[email protected]>
Date:   2016-04-15T19:11:01Z

    METRON-111 Using 'restart' works whether its running or not

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to