Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16979] CLI: Error thrown when analytics event file no longer exists

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2014-05-16T23:30:22.000+0000
Affected Version/sn/a
Fix Version/s2014 Sprint 10, 2014 Sprint 10 Tooling, Release 3.3.0
ComponentsCLI
Labelsn/a
ReporterChris Barber
AssigneeChris Barber
Created2014-05-16T23:27:00.000+0000
Updated2014-06-12T23:51:26.000+0000

Description

Somehow, analytics events are being removed while being processed. It's as if another process is trying to send analytics at the same time. This is probably a very difficult issue to reproduce.
Error: ENOENT, no such file or directory '/Users/ayeung/.titanium/events/2014-05-16T22:49:16.351Z_757.json'
    at Object.fs.unlinkSync (fs.js:760:18)
    at Request._callback (/usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/analytics.js:274:9)
    at Request.self.callback (/usr/local/lib/node_modules/titanium/node_modules/request/request.js:129:22)
    at Request.EventEmitter.emit (events.js:98:17)
    at Request.<anonymous> (/usr/local/lib/node_modules/titanium/node_modules/request/request.js:873:14)
    at Request.EventEmitter.emit (events.js:117:20)
    at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/titanium/node_modules/request/request.js:824:12)
    at IncomingMessage.EventEmitter.emit (events.js:117:20)
    at _stream_readable.js:920:16
    at process._tickCallback (node.js:415:13)
As a fix, ensure that the file exists before trying to delete the file.

Comments

  1. Chris Barber 2014-05-16

    Pull request: https://github.com/appcelerator/node-appc/pull/90
  2. Chris Barber 2014-05-19

    More fixes: https://github.com/appcelerator/node-appc/pull/91
  3. Olga Romero 2014-06-12

    Tested and closing as part of testing TIMOB-16960. No error, building the app. Events folder is empty. Mac osx 10.9.3 Mavericks Appcelerator Studio, build: 3.3.0.201406111156 Titanium SDK, build: 3.3.0.v20140611084912 Node.JS Version: v0.10.13 NPM Version: 1.3.2 acs@1.0.14 alloy@1.4.0-rc npm@1.3.2 titanium@3.3.0-rc titanium-code-processor@1.1.1

JSON Source