[DAEMON-270] Appcd Deamon not working
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | High |
| Status | Resolved |
| Resolution | Fixed |
| Resolution Date | 2019-01-25T04:35:40.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Appc Daemon 2.0.0 |
| Components | appcd |
| Labels | n/a |
| Reporter | Keerthi Mahalingam |
| Assignee | Chris Barber |
| Created | 2019-01-24T19:45:04.000+0000 |
| Updated | 2019-01-25T11:37:00.000+0000 |
Description
*Steps To Reproduce:*
1.Run appcd command in terminal
appc appcd restart
*Expected:*
Daemon should be restarted
*Actual:*
The daemon refuses to start and throws error
An uncaught exception was thrown!
Cannot destructure property filesize of 'undefined' or 'null'.
Cannot destructure property filesize of 'undefined' or 'null'.
*Note1:*
For me when I changed the cli to 7.0.9 ,it worked fine.
*Note 2:*
For Josh Quick ,this happens with CLI v7.0.9 also and he tried with node v8.9.3 and v10.15.0
It also causes Appc Studio to beach ball forever
This error stems from
snooplogg@2.xwhich removedhumanize,moment,figures, andpluralizedependencies because there were never used bysnooploggother than simply re-exported. This bloatedsnooploggand hence why there were removed. When the Appc Daemon was updated tosnooplogg@2.x, the various packages which depended on those formersnooploggdependencies were updated.appcd-loggeris the only package that directly depends onsnooplogg. Whenappcd-loggerwas updated tosnooplogg@2.x, it should have been bumped a major version, but instead was only bumped a minor version. Because of this, older versions of the daemon would useappcd-logger@1.1.4and in turn pulled insnooplogg@2.0.1which was the version the stripped unused dependencies. To resolve this,appcd-logger@1.xneeded to revert the upgrade tosnooplogg@2.x. The commit is here: https://github.com/appcelerator/appc-daemon/commit/4814d93a373f47fc6602361c34b0a53d3ea500e2.appcd-logger@1.1.4has been republished asappcd-logger@2.0.0Sinceappcd-logger@1.1.4cannot be unpublished, soappcd-logger@1.1.3was re-published asappcd-logger@1.1.5, which makesappcd@1.xhappy.New appc cli @ 7.0.10-master.6 in preprod should contain these fixes . Will verify later
Verified in 7.0.10-master.6. Unable to se the above uncaught exception and Activity Monitor shows the 'appcd' process.