You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@metron.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/04/15 21:14:25 UTC

[jira] [Commented] (METRON-111) "Start Metron UI" Fails When Already Started

    [ https://issues.apache.org/jira/browse/METRON-111?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15243437#comment-15243437 ] 

ASF GitHub Bot commented on METRON-111:
---------------------------------------

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 <ni...@nickallen.org>
Date:   2016-04-15T19:11:01Z

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

----


> "Start Metron UI" Fails When Already Started
> --------------------------------------------
>
>                 Key: METRON-111
>                 URL: https://issues.apache.org/jira/browse/METRON-111
>             Project: Metron
>          Issue Type: Bug
>            Reporter: Nick Allen
>
> 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", "stdout_lines": ["┌──────────┬────┬──────┬───────┬────────┬─────────┬────────┬──────────────┬──────────┐", "│ App name │ id │ mode │ pid   │ status │ restart │ uptime │ memory       │ watching │", "├──────────┼────┼──────┼───────┼────────┼─────────┼────────┼──────────────┼──────────┤", "│ metron   │ 0  │ fork │ 16884 │ online │ 0       │ 47h    │ 105.633 MB   │ disabled │", "└──────────┴────┴──────┴───────┴────────┴─────────┴────────┴──────────────┴──────────┘", " Use `pm2 show <id|name>` to get more details about an app"], "warnings": []}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)