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/05/03 19:35:12 UTC
[jira] [Commented] (METRON-125) Failure to Start Metron UI
[ https://issues.apache.org/jira/browse/METRON-125?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15269154#comment-15269154 ]
ASF GitHub Bot commented on METRON-125:
---------------------------------------
GitHub user nickwallen opened a pull request:
https://github.com/apache/incubator-metron/pull/102
METRON-125 Failure to Start Metron UI Issue Fix
Installing Metron UI as a CentOS/SysV service that is started on boot. Also addresses bug caused when re-starting the UI. Uses [pm2](http://pm2.keymetrics.io/) functionality to install Metron UI as a SysV service
### Validation
- (Re)deploy to SNV
- (Re)deploy to Amazon EC2
- `service pm2-init.sh status`
- `service pm2-init.sh start`
- `service pm2-init.sh stop`
- `service pm2-init.sh restart`
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/nickwallen/incubator-metron METRON-125
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-metron/pull/102.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 #102
----
commit a3dcf92840f0d87c8550287c9e6e151b62834c07
Author: Nick Allen <ni...@nickallen.org>
Date: 2016-05-03T16:38:02Z
METRON-125 Installing Metron UI as a CentOS/SysV service that is started on boot which also addresses bug caused when re-starting the UI.
----
> Failure to Start Metron UI
> --------------------------
>
> Key: METRON-125
> URL: https://issues.apache.org/jira/browse/METRON-125
> Project: Metron
> Issue Type: Bug
> Environment: amazon-ec2
> Reporter: Nick Allen
> Labels: newbie
>
> Deployment to Amazon EC2 fails when starting Metron UI. Seems to only impact some users and not others.
> TASK [metron_ui : Start Metron UI] *********************************************
> task path: /Users/nallen/tmp/incubator-metron/metron-deployment/roles/metron_ui/tasks/main.yml:55
> fatal: [ec2-52-37-200-66.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.239172", "end": "2016-04-29 13:17:25.070727", "failed": true, "invocation": {"module_args": {"_raw_params": "pm2 start /usr/metron/0.1BETA/metron-ui/lib/metron-ui.js --name metron", "_uses_shell": true, "chdir": null, "creates": null, "executable": null, "removes": null, "warn": true}, "module_name": "command"}, "rc": 1, "start": "2016-04-29 13:17:24.831555", "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 │ 18681 │ online │ 0 │ 40h │ 98.309 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 │ 18681 │ online │ 0 │ 40h │ 98.309 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)