{ "id": "174729", "key": "DAEMON-323", "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": "20871", "description": "", "name": "Appc Daemon 4.0.0", "archived": false, "released": true, "releaseDate": "2021-01-20" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2020-04-14T21:25:23.000+0000", "created": "2020-02-12T22:21:21.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "cb-next" ], "versions": [ { "id": "20899", "description": "", "name": "Appc Daemon 3.2.0", "archived": false, "released": true, "releaseDate": "2020-01-13" } ], "issuelinks": [ { "id": "58190", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "174714", "key": "DAEMON-318", "fields": { "summary": "Investigate upgrading to Yarn 2", "status": { "description": "This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.", "name": "Reopened", "id": "4", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } }, { "id": "58191", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "174628", "key": "DAEMON-311", "fields": { "summary": "Improve appcd plugin management", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } }, { "id": "58397", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "174888", "key": "TISTUD-9214", "fields": { "summary": "Appcelerator Studio Does not Detect iOS / Xcode or Android SDK", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2020-06-03T17:03:13.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "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": "15050", "name": "appcd-core", "description": "Core daemon logic: config, plugin loader, logging, dispatcher" } ], "description": "When trying to run the exec command to fetch android or iOS info the command fails while reporting missing plugins\r\n{code}\r\n$ appc appcd exec /android/latest/info/\r\n{\r\n \"stack\": \"PluginError: Failed to load plugin: Cannot find module 'androidlib'\\n at Function._resolveFilename (internal/modules/cjs/loader.js:636:15)\\n at PluginModule.require (/Users/satyamsekhri/.appcelerator/install/8.0.0-master.6/package/node_modules/appcd-plugin/dist/plugin-module.js:139:22)\\n at require (/Users/satyamsekhri/.appcelerator/install/8.0.0-master.6/package/node_modules/appcd-plugin/dist/plugin-module.js:181:36)\\n at Object.apply (/Users/satyamsekhri/.appcelerator/appcd/plugins/packages/@appcd/plugin-android/2.0.1/dist/android-info-service.js:17:42)\\n at PluginModule._compile (/Users/satyamsekhri/.appcelerator/install/8.0.0-master.6/package/node_modules/appcd-plugin/dist/plugin-module.js:196:19)\\n at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)\\n at PluginModule.load (internal/modules/cjs/loader.js:653:32)\\n at Function.load (/Users/satyamsekhri/.appcelerator/install/8.0.0-master.6/package/node_modules/appcd-plugin/dist/plugin-module.js:71:11)\\n at PluginModule.require (/Users/satyamsekhri/.appcelerator/install/8.0.0-master.6/package/node_modules/appcd-plugin/dist/plugin-module.js:142:23)\\n at require (/Users/satyamsekhri/.appcelerator/install/8.0.0-master.6/package/node_modules/appcd-plugin/dist/plugin-module.js:181:36)\",\r\n \"message\": \"Failed to load plugin: Cannot find module 'androidlib'\",\r\n \"status\": 400,\r\n \"statusCode\": \"400.1\",\r\n \"type\": \"error\"\r\n}\r\n{code}\r\n\r\n{code}\r\n$ appc appcd exec /ios/latest/info/\r\n{\r\n \"stack\": \"PluginError: Failed to load plugin: Cannot find module 'ioslib'\\n at Function._resolveFilename (internal/modules/cjs/loader.js:636:15)\\n at PluginModule.require (/Users/satyamsekhri/.appcelerator/install/8.0.0-master.6/package/node_modules/appcd-plugin/dist/plugin-module.js:139:22)\\n at require (/Users/satyamsekhri/.appcelerator/install/8.0.0-master.6/package/node_modules/appcd-plugin/dist/plugin-module.js:181:36)\\n at Object.apply (/Users/satyamsekhri/.appcelerator/appcd/plugins/packages/@appcd/plugin-ios/2.0.2/dist/ios-info-service.js:17:38)\\n at PluginModule._compile (/Users/satyamsekhri/.appcelerator/install/8.0.0-master.6/package/node_modules/appcd-plugin/dist/plugin-module.js:196:19)\\n at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)\\n at PluginModule.load (internal/modules/cjs/loader.js:653:32)\\n at Function.load (/Users/satyamsekhri/.appcelerator/install/8.0.0-master.6/package/node_modules/appcd-plugin/dist/plugin-module.js:71:11)\\n at PluginModule.require (/Users/satyamsekhri/.appcelerator/install/8.0.0-master.6/package/node_modules/appcd-plugin/dist/plugin-module.js:142:23)\\n at require (/Users/satyamsekhri/.appcelerator/install/8.0.0-master.6/package/node_modules/appcd-plugin/dist/plugin-module.js:181:36)\",\r\n \"message\": \"Failed to load plugin: Cannot find module 'ioslib'\",\r\n \"status\": 400,\r\n \"statusCode\": \"400.1\",\r\n \"type\": \"error\"\r\n}\r\n{code}\r\n\r\nIn this case, access was denied to the {{~/.config}} directory which causes Yarn to error attempting to access the {{~/.config/yarn/link}} directory as evident by the appcd log:\r\n\r\n{code}\r\nappcd:default-plugins Found yarn: /Users/satyamsekhri/.appcelerator/install/8.0.0-master.6/package/node_modules/.bin/yarn\r\nappcd:default-plugins Found lerna: /Users/satyamsekhri/.appcelerator/install/8.0.0-master.6/package/node_modules/.bin/lerna\r\nappcd:default-plugins Found installed plugin @appcd/plugin-android@1.5.2\r\nappcd:default-plugins warn Plugin directory name mismatch: @appcd/plugin-android-2_0_1@2.0.1 found in @appcd/plugin-android, invalidating...\r\nappcd:default-plugins Found installed plugin @appcd/plugin-genymotion@1.6.1\r\nappcd:default-plugins warn Plugin directory name mismatch: @appcd/plugin-ios-1_5_2@1.5.2 found in @appcd/plugin-ios, invalidating...\r\nappcd:default-plugins Found installed plugin @appcd/plugin-ios@2.0.2\r\nappcd:default-plugins Found installed plugin @appcd/plugin-jdk@1.6.1\r\nappcd:default-plugins Found installed plugin @appcd/plugin-system-info@1.5.1\r\nappcd:default-plugins warn Plugin directory name mismatch: @appcd/plugin-system-info-2_0_0@2.0.0 found in @appcd/plugin-system-info, invalidating...\r\nappcd:default-plugins Found installed plugin @appcd/plugin-titanium@1.8.1\r\nappcd:default-plugins warn Skipping incompatible plugin: @appcd/plugin-windows@^1.5.2\r\nappcd:default-plugins Downloading @appcd/plugin-system-info@2.0.0\r\nappcd:default-plugins warn Skipping incompatible plugin: @appcd/plugin-windows@^2.0.1\r\nappcd:default-plugins Downloading @appcd/plugin-android@2.0.1\r\nappcd:default-plugins Downloading @appcd/plugin-ios@1.5.2\r\nappcd:default-plugins Writing plugins/package.json\r\nappcd:default-plugins Writing plugins/lerna.json\r\nappcd:default-plugins Plugins dir: /Users/satyamsekhri/.appcelerator/appcd/plugins\r\nappcd:default-plugins Executing: /Users/satyamsekhri/.appcelerator/appcd/node/v10.16.3/darwin/x64/node /Users/satyamsekhri/.appcelerator/install/8.0.0-master.6/package/node_modules/.bin/lerna bootstrap --no-progress\r\nappcd:default-plugins:lerna cli v3.20.2\r\nappcd:default-plugins:lerna versioning independent\r\nappcd:default-plugins:lerna bootstrap root only\r\nappcd:default-plugins:yarn yarn install v1.21.1\r\nappcd:default-plugins:lerna error An unexpected error occurred: \"EACCES: permission denied, scandir '/Users/satyamsekhri/.config/yarn/link'\".\r\nappcd:default-plugins:yarn info If you think this is a bug, please open a bug report with the information provided in \"/Users/satyamsekhri/.appcelerator/appcd/plugins/yarn-error.log\".\r\nappcd:default-plugins:yarn info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.\r\nappcd:default-plugins:lerna lerna ERR! yarn install --mutex network:42424 --non-interactive --emoji=false --ignore-engines --no-lockfile --no-progress --production exited 1 in 'root'\r\nappcd:default-plugins:lerna lerna ERR! yarn install --mutex network:42424 --non-interactive --emoji=false --ignore-engines --no-lockfile --no-progress --production exited 1 in 'root'\r\nappcd:default-plugins warn lerna exited with code 1\r\nappcd:default-plugins Finished in 1.0 seconds\r\n{code}\r\n\r\nA possible resolution is to check if the {{~/.config/yarn/link}} directory is writable (as well as its parent directories).", "attachment": [], "flagged": false, "summary": "Plugin not found error when running exec to fetch android or ios info", "creator": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Mac OS: 10.15.1\r\nAppc npm: 5.0.0-4\r\nAppc CLI: 8.0.0-master.6\r\nJDK: 11.0.4\r\nNode: 10.16.3", "closedSprints": [ { "id": 43, "state": "closed", "name": "2020 Sprint 7", "startDate": "2020-04-13T17:48:00.000Z", "endDate": "2020-04-24T17:48:00.000Z", "completeDate": "2020-04-23T18:07:57.225Z", "originBoardId": 93 }, { "id": 1181, "state": "closed", "name": "2020 Sprint 5", "startDate": "2020-03-02T18:45:02.513Z", "endDate": "2020-03-13T18:45:00.000Z", "completeDate": "2020-03-13T16:42:04.632Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "454239", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Would yarn 2 really help here? It seems like the pnp stuff would just cause even more headaches for us", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2020-02-13T10:07:53.000+0000", "updated": "2020-02-13T10:07:53.000+0000" }, { "id": "455135", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "This has been resolved by https://github.com/appcelerator/appc-daemon/pull/468.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2020-04-14T21:24:39.000+0000", "updated": "2020-04-14T21:24:39.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }