Files
2012-02-21 01:15:00 -05:00

1 line
1.7 KiB
JSON

[{"user_id": 15929, "stars": [], "topic_id": 16279, "date_created": 1301506249.982899, "message": "the result:\n\n{ stack: [Getter/Setter],\n arguments: [ 'pid', undefined ],\n type: 'non_object_property_load',\n message: [Getter/Setter] }\nundefined", "group_id": 1020, "id": 483344}, {"user_id": 15929, "stars": [], "topic_id": 16279, "date_created": 1301506213.4328201, "message": "the code:\ntry {\n\tvar pidfile = fs.openSync(\"/var/tmp/app3.pid\", \"w\");\n\tfs.writeSync(pidfile, process.pid + \"\");\n\tfs.closeSync(pidfile);\n} catch(e) {\n\tconsole.log(e);\n}\n\nconsole.log(process);", "group_id": 1020, "id": 483342}, {"user_id": 15929, "stars": [], "topic_id": 16279, "date_created": 1301506324.045825, "message": "I'm basically just need to write the pid to file so I can use monit to monitor the app", "group_id": 1020, "id": 483352}, {"user_id": 15929, "stars": [], "topic_id": 16279, "date_created": 1301506386.7720871, "message": "and That exact code ran just fine on 2 other apps in the same box,.. any idea why this happened?", "group_id": 1020, "id": 483355}, {"user_id": 7080, "stars": [], "topic_id": 16279, "date_created": 1301658207.1587429, "message": "Try console.log (e.stack)", "group_id": 1020, "id": 500685}, {"user_id": 15929, "stars": [], "topic_id": 16279, "date_created": 1301659233.6326671, "message": "TypeError: Cannot read property 'pid' of undefined\n at Object.<anonymous> (/home/admin/app3/server.js:12:31)\n at Module._compile (module.js:302:26)\n at Object..js (module.js:308:10)\n at Module.load (module.js:234:31)\n at Function._load (module.js:201:10)\n at Array.0 (module.js:321:10)\n at EventEmitter._tickCallback (node.js:108:26)", "group_id": 1020, "id": 500722}]