{ "id": "170592", "key": "DAEMON-207", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12519", "key": "DAEMON", "name": "Appcelerator Daemon" }, "fixVersions": [ { "id": "19959", "description": "", "name": "Appc Daemon 1.1.0", "archived": false, "released": true, "releaseDate": "2018-04-09" }, { "id": "20044", "description": "", "name": "Appc Daemon 1.0.1", "archived": false, "released": true, "releaseDate": "2017-12-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-12-12T04:25:28.000+0000", "created": "2017-12-11T18:48:53.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [ { "id": "18407", "description": "", "name": "Appc Daemon 1.0.0", "archived": false, "released": true, "releaseDate": "2017-12-05" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2017-12-19T00:04:09.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "15049", "name": "appcd", "description": "Bootstrap, appcd CLI commands (start, stop, restart, exec, logcat, config, status)" }, { "id": "15614", "name": "appcd-plugin" } ], "description": "h5.Steps to reproduce:\r\n1. Do a {{appc appcd restart}} in the command prompt.\r\n\r\nh5.Actual results:\r\n1. The daemon does not restart (Not sure if it does restart internally, but gives wrong message that it didn't in the terminal).\r\n{code}\r\nITEM-AX44549:QEUtility-Node lchoudhary$ \r\nITEM-AX44549:QEUtility-Node lchoudhary$ appc appcd restart\r\n\r\nAppc Daemon already started\r\nITEM-AX44549:QEUtility-Node lchoudhary$ appc appcd restart\r\n\r\nAppc Daemon already started\r\nITEM-AX44549:QEUtility-Node lchoudhary$ appc appcd restart\r\n\r\nAppc Daemon already started\r\nITEM-AX44549:QEUtility-Node lchoudhary$ appc appcd restart\r\n\r\nAppc Daemon already started\r\nITEM-AX44549:QEUtility-Node lchoudhary$ appc appcd restart\r\n\r\nAppc Daemon already started\r\nITEM-AX44549:QEUtility-Node lchoudhary$ appc appcd restart\r\n\r\nAppc Daemon already started\r\nITEM-AX44549:QEUtility-Node lchoudhary$ appc appcd restart\r\n\r\nAppc Daemon already started\r\nITEM-AX44549:QEUtility-Node lchoudhary$ appc appcd restart\r\n\r\nAppc Daemon already started\r\nITEM-AX44549:QEUtility-Node lchoudhary$ appc appcd restart\r\n\r\nAppc Daemon already started\r\nITEM-AX44549:QEUtility-Node lchoudhary$ appc appcd restart\r\n\r\nAppc Daemon already started\r\n{code}\r\n\r\n2. It also keeps on adding {{appcd-plugin-host}} processes after each restart command run. These processes stay running & consume memory. (Attached a screenshot for reference).\r\n\r\nh5. Expected results:\r\n1. Daemon should restart successfully every time command is run & should not keep on adding new appcd-plugin-host processes or kill/stop the old ones.\r\n", "attachment": [ { "id": "63765", "filename": "appcd_dump.txt", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-12-11T18:48:31.000+0000", "size": 4366678, "mimeType": "text/plain" }, { "id": "63767", "filename": "Screen Shot 2017-12-10 at 5.40.56 PM.png", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-12-11T18:48:10.000+0000", "size": 236089, "mimeType": "image/png" }, { "id": "63768", "filename": "Screen Shot 2017-12-11 at 10.04.12 AM.png", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-12-11T18:47:57.000+0000", "size": 565813, "mimeType": "image/png" }, { "id": "63766", "filename": "Screen Shot 2017-12-11 at 10.37.49 AM.png", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-12-11T18:48:22.000+0000", "size": 559009, "mimeType": "image/png" } ], "flagged": false, "summary": "\"appc appcd restart\" does not restart the daemon but keeps on adding appcd-plugin-host processes which keep running & consume memory", "creator": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Studio Ver: 5.0.0.201712081732\r\nSDK Ver: 7.0.0.GA\r\nOS Ver: 10.12.3\r\nXcode Ver: Xcode 8.3.3\r\nAppc NPM: 4.2.11\r\nAppc CLI: 7.0.0\r\nTi CLI Ver: 5.0.14\r\nAlloy Ver: 1.10.10\r\nNode Ver: 8.9.1\r\nJava Ver: 1.8.0_101\r\nAppcd Ver: 1.0.0", "closedSprints": [ { "id": 977, "state": "closed", "name": "2017 Sprint 25 Tooling", "startDate": "2017-12-03T23:21:41.825Z", "endDate": "2017-12-17T23:21:00.000Z", "completeDate": "2017-12-18T22:30:55.005Z", "originBoardId": 219 } ], "comment": { "comments": [ { "id": "431972", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I am able to reproduce this issue. I need to run:\r\n{code}killall -9 appcd-plugin-host{code}\r\nto successfully kill all the running append-plugin-host processes.", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-12-11T19:14:41.000+0000", "updated": "2017-12-11T19:14:41.000+0000" }, { "id": "431998", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Master PR: https://github.com/appcelerator/appc-daemon/pull/241\r\n1_0_X PR: https://github.com/appcelerator/appc-daemon/pull/242", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2017-12-12T03:57:02.000+0000", "updated": "2017-12-12T03:57:02.000+0000" }, { "id": "432375", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix with Daemon 1.0.1.\r\nDoing a {{appc appcd restart}} does restart daemon & does not spin up extra {{appcd-plugin-host}} processes. The old processes are killed & new ones are started.\r\nClosing.\r\n\r\nStudio Ver: 5.0.0.201712081732\r\nSDK Ver: 7.0.1.v20171218094049\r\nOS Ver: 10.12.3\r\nXcode Ver: Xcode 8.3.3\r\nAppc NPM: 4.2.11\r\nAppc CLI: 7.0.1-master.5\r\nDaemon Ver: 1.0.1\r\nTi CLI Ver: 5.0.14\r\nAlloy Ver: 1.10.10\r\nNode Ver: 8.9.1\r\nJava Ver: 1.8.0_101", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-12-19T00:03:57.000+0000", "updated": "2017-12-19T00:03:57.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }