Advertisement
Guest User

Untitled

a guest
Apr 18th, 2016
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 32.27 KB | None | 0 0
  1. [PM2] Tailing last 20 lines for [all] processes
  2.  
  3. PM2: 2016-04-19 15:11:44: Process with pid 15760 still not killed, retrying...
  4. PM2: 2016-04-19 15:11:44: App name:WW-API id:3 disconnected
  5. PM2: 2016-04-19 15:11:44: App name:WW-API id:3 exited with code 0
  6. PM2: 2016-04-19 15:11:44: [HandleExit] PM2 is being killed, stopping restart procedure...
  7. PM2: 2016-04-19 15:11:44: Process with pid 15760 killed
  8. PM2: 2016-04-19 15:11:44: PM2 is being killed via kill method
  9. PM2: 2016-04-19 15:11:44: RPC socket closed
  10. PM2: 2016-04-19 15:11:44: PUB socket closed
  11. PM2: 2016-04-19 15:11:49: [PM2][WORKER] Started with refreshing interval: 30000
  12. PM2: 2016-04-19 15:11:49: [[[[ PM2/God daemon launched ]]]]
  13. PM2: 2016-04-19 15:11:49: BUS system [READY] on port /Users/amy/.pm2/pub.sock
  14. PM2: 2016-04-19 15:11:49: RPC interface [READY] on port /Users/amy/.pm2/rpc.sock
  15. PM2: 2016-04-19 15:11:49: Starting execution sequence in -cluster mode- for app name:WW-API id:0
  16. PM2: 2016-04-19 15:11:49: App name:WW-API id:0 online
  17. PM2: 2016-04-19 15:11:49: Starting execution sequence in -cluster mode- for app name:WW-API id:1
  18. PM2: 2016-04-19 15:11:49: App name:WW-API id:1 online
  19. PM2: 2016-04-19 15:11:49: Starting execution sequence in -cluster mode- for app name:WW-API id:2
  20. PM2: 2016-04-19 15:11:49: App name:WW-API id:2 online
  21. PM2: 2016-04-19 15:11:49: Starting execution sequence in -cluster mode- for app name:WW-API id:3
  22. PM2: 2016-04-19 15:11:49: App name:WW-API id:3 online
  23.  
  24. WW-API-0 (err): |> [a lifted Sails app on port 1337]
  25. WW-API-0 (err): \___/ For help, see: http://links.sailsjs.org/docs
  26. WW-API-0 (err):
  27. WW-API-0 (err): Tip: Use `sails.config` to access your app's runtime configuration.
  28. WW-API-0 (err):
  29. WW-API-0 (err): 18 Models:
  30. WW-API-0 (err): Client,Day,EmailQDone,EmailQueue,Errors,Graph,Guest,LogDay,LogGuest,LogTrip,Reservations,Signature,Staff,Trip,TripSignature,Users
  31. WW-API-0 (err):
  32. WW-API-0 (err): 32 Controllers:
  33. WW-API-0 (err): AdminController,AmazonSESController,AutomationQueueController,CampaignMonitorController,ClientController,DayController,DevController,EmailCampaignController,EmailQueueController,ErrorController,ExportController,GraphController,GuestController,KountaController,MailchimpController,MandrillController,MobipostController,PDFController,ProcharterController,ResbookController,ReservSafeController,ReservWherewolfController,ReservationsController,RezdyController,SMSBroadcastController,SMSBulletinController,SMSController,ShopController,TimezoneController,TripController,UserController,UtilityController
  34. WW-API-0 (err):
  35. WW-API-0 (err): 15 Hooks:
  36. WW-API-0 (err): moduleloader,logger,request,orm,views,blueprints,responses,controllers,sockets,policies,services,cors,userconfig,http,userhooks
  37. WW-API-0 (err): ,
  38. WW-API-0 (err): port: 1337,
  39. WW-API-0 (err): baseUrl: 'http://localhost:1337',
  40. WW-API-0 (err): validate: [Function: _validate],
  41. WW-API-0 (err): explicitlyAcceptsHTML: false,
  42. WW-API-0 (err): wantsJSON: true,
  43. WW-API-0 (err): _modifiedRouteParams: [] } }
  44.  
  45. WW-API-0 (out): 2016-04-19T02:42:59.486Z - info: To shut down Sails, press <CTRL> + C at any time.
  46. WW-API-0 (out): 2016-04-19T02:42:59.482Z - info: .-..-.
  47. WW-API-0 (out): 2016-04-19T02:42:59.482Z - info:
  48. WW-API-0 (out): 2016-04-19T02:42:59.483Z - info: Sails <| .-..-.
  49. WW-API-0 (out): 2016-04-19T02:42:59.483Z - info: v0.11.4 |\
  50. WW-API-0 (out): 2016-04-19T02:42:59.483Z - info: /|.\
  51. WW-API-0 (out): 2016-04-19T02:42:59.483Z - info: / || \
  52. WW-API-0 (out): 2016-04-19T02:42:59.483Z - info: ,' |' \
  53. WW-API-0 (out): 2016-04-19T02:42:59.484Z - info: .-'.-==|/_--'
  54. WW-API-0 (out): 2016-04-19T02:42:59.484Z - info: `--'-------'
  55. WW-API-0 (out): 2016-04-19T02:42:59.484Z - info: __---___--___---___--___---___--___
  56. WW-API-0 (out): 2016-04-19T02:42:59.484Z - info: ____---___--___---___--___---___--___-__
  57. WW-API-0 (out): 2016-04-19T02:42:59.484Z - info:
  58. WW-API-0 (out): 2016-04-19T02:42:59.485Z - info: Server lifted in `/Users/amy/Code/wherewolf-backend`
  59. WW-API-0 (out): 2016-04-19T02:42:59.485Z - info: To see your app, visit http://localhost:1337
  60. WW-API-0 (out): 2016-04-19T02:42:59.485Z - info: To shut down Sails, press <CTRL> + C at any time.
  61. WW-API-0 (out): info: *** Starting Sails in development ***
  62. WW-API-0 (out): info: *** Starting Sails in development ***
  63. WW-API-0 (out): info: *** Starting Sails in development ***
  64. WW-API-0 (out): info: *** Starting Sails in development ***
  65.  
  66. [PM2] Streaming realtime logs for [all] processes
  67.  
  68. 2016-04-19T15:12:10.509+1200 I NETWORK [initandlisten] connection accepted from 127.0.0.1:52165 #73 (1 connection now open)
  69. 2016-04-19T15:12:10.510+1200 I NETWORK [initandlisten] connection accepted from 127.0.0.1:52166 #74 (2 connections now open)
  70. 2016-04-19T15:12:10.510+1200 I NETWORK [initandlisten] connection accepted from 127.0.0.1:52164 #75 (3 connections now open)
  71. 2016-04-19T15:12:10.514+1200 I NETWORK [initandlisten] connection accepted from 127.0.0.1:52167 #76 (4 connections now open)
  72. 2016-04-19T15:12:10.520+1200 I NETWORK [conn73] end connection 127.0.0.1:52165 (3 connections now open)
  73. 2016-04-19T15:12:10.521+1200 I NETWORK [conn74] end connection 127.0.0.1:52166 (2 connections now open)
  74. 2016-04-19T15:12:10.521+1200 I NETWORK [conn75] end connection 127.0.0.1:52164 (1 connection now open)
  75. 2016-04-19T15:12:10.521+1200 I NETWORK [conn76] end connection 127.0.0.1:52167 (0 connections now open)
  76. 2016-04-19T15:12:10.529+1200 I NETWORK [initandlisten] connection accepted from 127.0.0.1:52168 #77 (1 connection now open)
  77. 2016-04-19T15:12:10.532+1200 I NETWORK [initandlisten] connection accepted from 127.0.0.1:52169 #78 (2 connections now open)
  78. 2016-04-19T15:12:10.532+1200 I NETWORK [initandlisten] connection accepted from 127.0.0.1:52170 #79 (3 connections now open)
  79. 2016-04-19T15:12:10.532+1200 I NETWORK [initandlisten] connection accepted from 127.0.0.1:52171 #80 (4 connections now open)
  80. 2016-04-19T15:12:10.533+1200 I NETWORK [initandlisten] connection accepted from 127.0.0.1:52172 #81 (5 connections now open)
  81. 2016-04-19T15:12:10.535+1200 I NETWORK [initandlisten] connection accepted from 127.0.0.1:52173 #82 (6 connections now open)
  82. 2016-04-19T15:12:10.535+1200 I NETWORK [initandlisten] connection accepted from 127.0.0.1:52174 #83 (7 connections now open)
  83. 2016-04-19T15:12:10.535+1200 I NETWORK [initandlisten] connection accepted from 127.0.0.1:52175 #84 (8 connections now open)
  84. 2016-04-19T15:12:10.536+1200 I NETWORK [initandlisten] connection accepted from 127.0.0.1:52176 #85 (9 connections now open)
  85. 2016-04-19T15:12:10.536+1200 I NETWORK [initandlisten] connection accepted from 127.0.0.1:52177 #86 (10 connections now open)
  86. 2016-04-19T15:12:10.536+1200 I NETWORK [initandlisten] connection accepted from 127.0.0.1:52178 #87 (11 connections now open)
  87. 2016-04-19T15:12:10.536+1200 I NETWORK [initandlisten] connection accepted from 127.0.0.1:52179 #88 (12 connections now open)
  88. 2016-04-19T15:12:10.537+1200 I NETWORK [initandlisten] connection accepted from 127.0.0.1:52180 #89 (13 connections now open)
  89. 2016-04-19T15:12:10.537+1200 I NETWORK [initandlisten] connection accepted from 127.0.0.1:52181 #90 (14 connections now open)
  90. 2016-04-19T15:12:10.537+1200 I NETWORK [initandlisten] connection accepted from 127.0.0.1:52182 #91 (15 connections now open)
  91. 2016-04-19T15:12:10.596+1200 I NETWORK [initandlisten] connection accepted from 127.0.0.1:52183 #92 (16 connections now open)
  92. 2016-04-19T15:12:10.612+1200 I NETWORK [initandlisten] connection accepted from 127.0.0.1:52184 #93 (17 connections now open)
  93. 2016-04-19T15:12:10.622+1200 I NETWORK [initandlisten] connection accepted from 127.0.0.1:52185 #94 (18 connections now open)
  94. 2016-04-19T15:12:10.632+1200 I NETWORK [initandlisten] connection accepted from 127.0.0.1:52186 #95 (19 connections now open)
  95. 2016-04-19T15:12:10.642+1200 I NETWORK [initandlisten] connection accepted from 127.0.0.1:52187 #96 (20 connections now open)
  96. WW-API-3 2016-04-19T03:12:11.725Z - info:
  97. WW-API-3 2016-04-19T03:12:11.726Z - info: .-..-.
  98. WW-API-3 2016-04-19T03:12:11.727Z - info:
  99. WW-API-3 2016-04-19T03:12:11.727Z - info: Sails <| .-..-.
  100. WW-API-3 2016-04-19T03:12:11.727Z - info: v0.11.4 |\
  101. WW-API-1 2016-04-19T03:12:11.726Z - info:
  102. WW-API-3 2016-04-19T03:12:11.727Z - info: /|.\
  103. WW-API-3 2016-04-19T03:12:11.727Z - info: / || \
  104. WW-API-3 2016-04-19T03:12:11.727Z - info: ,' |' \
  105. WW-API-3 2016-04-19T03:12:11.727Z - info: .-'.-==|/_--'
  106. WW-API-3 2016-04-19T03:12:11.728Z - info: `--'-------'
  107. WW-API-1 2016-04-19T03:12:11.727Z - info: .-..-.
  108. WW-API-1 2016-04-19T03:12:11.728Z - info:
  109. WW-API-2 2016-04-19T03:12:11.727Z - info:
  110. WW-API-2 2016-04-19T03:12:11.728Z - info: .-..-.
  111. WW-API-2 2016-04-19T03:12:11.728Z - info:
  112. WW-API-2 2016-04-19T03:12:11.728Z - info: Sails <| .-..-.
  113. WW-API-3 2016-04-19T03:12:11.728Z - info: __---___--___---___--___---___--___
  114. WW-API-3 2016-04-19T03:12:11.728Z - info: ____---___--___---___--___---___--___-__
  115. WW-API-3 2016-04-19T03:12:11.728Z - info:
  116. WW-API-3 2016-04-19T03:12:11.728Z - info: Server lifted in `/Users/amy/Code/wherewolf-backend`
  117. WW-API-3 2016-04-19T03:12:11.729Z - info: To see your app, visit http://localhost:1337
  118. WW-API-1 2016-04-19T03:12:11.728Z - info: Sails <| .-..-.
  119. WW-API-1 2016-04-19T03:12:11.728Z - info: v0.11.4 |\
  120. WW-API-1 2016-04-19T03:12:11.728Z - info: /|.\
  121. WW-API-1 2016-04-19T03:12:11.728Z - info: / || \
  122. WW-API-1 2016-04-19T03:12:11.728Z - info: ,' |' \
  123. WW-API-1 2016-04-19T03:12:11.729Z - info: .-'.-==|/_--'
  124. WW-API-1 2016-04-19T03:12:11.729Z - info: `--'-------'
  125. WW-API-1 2016-04-19T03:12:11.729Z - info: __---___--___---___--___---___--___
  126. WW-API-1 2016-04-19T03:12:11.729Z - info: ____---___--___---___--___---___--___-__
  127. WW-API-1 2016-04-19T03:12:11.729Z - info:
  128. WW-API-1 2016-04-19T03:12:11.729Z - info: Server lifted in `/Users/amy/Code/wherewolf-backend`
  129. WW-API-2 2016-04-19T03:12:11.729Z - info: v0.11.4 |\
  130. WW-API-2 2016-04-19T03:12:11.729Z - info: /|.\
  131. WW-API-2 2016-04-19T03:12:11.729Z - info: / || \
  132. WW-API-2 2016-04-19T03:12:11.729Z - info: ,' |' \
  133. WW-API-2 2016-04-19T03:12:11.729Z - info: .-'.-==|/_--'
  134. WW-API-2 2016-04-19T03:12:11.729Z - info: `--'-------'
  135. WW-API-2 2016-04-19T03:12:11.729Z - info: __---___--___---___--___---___--___
  136. WW-API-2 2016-04-19T03:12:11.730Z - info: ____---___--___---___--___---___--___-__
  137. WW-API-2 2016-04-19T03:12:11.730Z - info:
  138. WW-API-2 2016-04-19T03:12:11.730Z - info: Server lifted in `/Users/amy/Code/wherewolf-backend`
  139. WW-API-2 2016-04-19T03:12:11.730Z - info: To see your app, visit http://localhost:1337
  140. WW-API-2 2016-04-19T03:12:11.730Z - info: To shut down Sails, press <CTRL> + C at any time.
  141. WW-API-3 2016-04-19T03:12:11.729Z - info: To shut down Sails, press <CTRL> + C at any time.
  142. WW-API-1 2016-04-19T03:12:11.730Z - info: To see your app, visit http://localhost:1337
  143. WW-API-1 2016-04-19T03:12:11.730Z - info: To shut down Sails, press <CTRL> + C at any time.
  144. WW-API-3 2016-04-19T03:12:11.733Z - error: TypeError: Cannot read property 'toLowerCase' of undefined
  145. at _parseHTTPBody (/Users/amy/Code/wherewolf-backend/node_modules/skipper/index.js:55:19)
  146. at /Users/amy/Code/wherewolf-backend/node_modules/sails/lib/hooks/http/middleware/defaults.js:121:28
  147. at module.exports (/Users/amy/Code/wherewolf-backend/node_modules/sails/lib/hooks/http/middleware/defaults.js:161:7)
  148. at loadExpress (/Users/amy/Code/wherewolf-backend/node_modules/sails/lib/hooks/http/initialize.js:102:65)
  149. at Hook.initialize (/Users/amy/Code/wherewolf-backend/node_modules/sails/lib/hooks/http/index.js:203:16)
  150. at Hook.bound [as initialize] (/Users/amy/Code/wherewolf-backend/node_modules/sails/node_modules/lodash/dist/lodash.js:729:21)
  151. at /Users/amy/Code/wherewolf-backend/node_modules/sails/lib/hooks/index.js:74:14
  152. at /Users/amy/Code/wherewolf-backend/node_modules/sails/node_modules/async/lib/async.js:451:17
  153. at /Users/amy/Code/wherewolf-backend/node_modules/sails/node_modules/async/lib/async.js:441:17
  154. at _each (/Users/amy/Code/wherewolf-backend/node_modules/sails/node_modules/async/lib/async.js:46:13)
  155. at Immediate.taskComplete (/Users/amy/Code/wherewolf-backend/node_modules/sails/node_modules/async/lib/async.js:440:13)
  156. at processImmediate [as _immediateCallback] (timers.js:383:17) [TypeError: Cannot read property 'toLowerCase' of undefined]
  157. WW-API-1 2016-04-19T03:12:11.734Z - error: TypeError: Cannot read property 'toLowerCase' of undefined
  158. at _parseHTTPBody (/Users/amy/Code/wherewolf-backend/node_modules/skipper/index.js:55:19)
  159. at /Users/amy/Code/wherewolf-backend/node_modules/sails/lib/hooks/http/middleware/defaults.js:121:28
  160. at module.exports (/Users/amy/Code/wherewolf-backend/node_modules/sails/lib/hooks/http/middleware/defaults.js:161:7)
  161. at loadExpress (/Users/amy/Code/wherewolf-backend/node_modules/sails/lib/hooks/http/initialize.js:102:65)
  162. at Hook.initialize (/Users/amy/Code/wherewolf-backend/node_modules/sails/lib/hooks/http/index.js:203:16)
  163. at Hook.bound [as initialize] (/Users/amy/Code/wherewolf-backend/node_modules/sails/node_modules/lodash/dist/lodash.js:729:21)
  164. at /Users/amy/Code/wherewolf-backend/node_modules/sails/lib/hooks/index.js:74:14
  165. at /Users/amy/Code/wherewolf-backend/node_modules/sails/node_modules/async/lib/async.js:451:17
  166. at /Users/amy/Code/wherewolf-backend/node_modules/sails/node_modules/async/lib/async.js:441:17
  167. at _each (/Users/amy/Code/wherewolf-backend/node_modules/sails/node_modules/async/lib/async.js:46:13)
  168. at Immediate.taskComplete (/Users/amy/Code/wherewolf-backend/node_modules/sails/node_modules/async/lib/async.js:440:13)
  169. at processImmediate [as _immediateCallback] (timers.js:383:17) [TypeError: Cannot read property 'toLowerCase' of undefined]
  170. WW-API-1 2016-04-19T03:12:11.735Z - error: Encountered an error when trying to use configured bodyParser.
  171. WW-API-2 2016-04-19T03:12:11.734Z - error: TypeError: Cannot read property 'toLowerCase' of undefined
  172. at _parseHTTPBody (/Users/amy/Code/wherewolf-backend/node_modules/skipper/index.js:55:19)
  173. at /Users/amy/Code/wherewolf-backend/node_modules/sails/lib/hooks/http/middleware/defaults.js:121:28
  174. at module.exports (/Users/amy/Code/wherewolf-backend/node_modules/sails/lib/hooks/http/middleware/defaults.js:161:7)
  175. at loadExpress (/Users/amy/Code/wherewolf-backend/node_modules/sails/lib/hooks/http/initialize.js:102:65)
  176. at Hook.initialize (/Users/amy/Code/wherewolf-backend/node_modules/sails/lib/hooks/http/index.js:203:16)
  177. at Hook.bound [as initialize] (/Users/amy/Code/wherewolf-backend/node_modules/sails/node_modules/lodash/dist/lodash.js:729:21)
  178. at /Users/amy/Code/wherewolf-backend/node_modules/sails/lib/hooks/index.js:74:14
  179. at /Users/amy/Code/wherewolf-backend/node_modules/sails/node_modules/async/lib/async.js:451:17
  180. at /Users/amy/Code/wherewolf-backend/node_modules/sails/node_modules/async/lib/async.js:441:17
  181. at _each (/Users/amy/Code/wherewolf-backend/node_modules/sails/node_modules/async/lib/async.js:46:13)
  182. at Immediate.taskComplete (/Users/amy/Code/wherewolf-backend/node_modules/sails/node_modules/async/lib/async.js:440:13)
  183. at processImmediate [as _immediateCallback] (timers.js:383:17) [TypeError: Cannot read property 'toLowerCase' of undefined]
  184. WW-API-2 2016-04-19T03:12:11.735Z - error: Encountered an error when trying to use configured bodyParser.
  185. WW-API-1 2016-04-19T03:12:11.735Z - error: Usually, this means that it was installed incorrectly.
  186. WW-API-2 2016-04-19T03:12:11.735Z - error: Usually, this means that it was installed incorrectly.
  187. WW-API-1 2016-04-19T03:12:11.735Z - error: A custom bodyParser can be configured without calling the wrapper function- e.g.:
  188. ```
  189. bodyParser: require("connect-busboy")
  190. ```
  191. WW-API-2 2016-04-19T03:12:11.735Z - error: A custom bodyParser can be configured without calling the wrapper function- e.g.:
  192. ```
  193. bodyParser: require("connect-busboy")
  194. ```
  195. WW-API-1 2016-04-19T03:12:11.735Z - error: Alternatively, if you need to provide options:
  196. ```
  197. bodyParser: {
  198. fn: require("connect-busboy"),
  199. options: {/* ... */}
  200. }
  201. ```
  202. WW-API-3 2016-04-19T03:12:11.735Z - error: Encountered an error when trying to use configured bodyParser.
  203. WW-API-3 2016-04-19T03:12:11.736Z - error: Usually, this means that it was installed incorrectly.
  204. WW-API-3 2016-04-19T03:12:11.736Z - error: A custom bodyParser can be configured without calling the wrapper function- e.g.:
  205. ```
  206. bodyParser: require("connect-busboy")
  207. ```
  208. WW-API-3 2016-04-19T03:12:11.736Z - error: Alternatively, if you need to provide options:
  209. ```
  210. bodyParser: {
  211. fn: require("connect-busboy"),
  212. options: {/* ... */}
  213. }
  214. ```
  215. WW-API-0 2016-04-19T03:12:11.736Z - info:
  216. WW-API-0 2016-04-19T03:12:11.737Z - info: .-..-.
  217. WW-API-0 2016-04-19T03:12:11.737Z - info:
  218. WW-API-0 2016-04-19T03:12:11.737Z - info: Sails <| .-..-.
  219. WW-API-0 2016-04-19T03:12:11.737Z - info: v0.11.4 |\
  220. WW-API-0 2016-04-19T03:12:11.737Z - info: /|.\
  221. WW-API-0 2016-04-19T03:12:11.738Z - info: / || \
  222. WW-API-0 2016-04-19T03:12:11.738Z - info: ,' |' \
  223. WW-API-0 2016-04-19T03:12:11.738Z - info: .-'.-==|/_--'
  224. WW-API-0 2016-04-19T03:12:11.738Z - info: `--'-------'
  225. WW-API-0 2016-04-19T03:12:11.738Z - info: __---___--___---___--___---___--___
  226. WW-API-0 2016-04-19T03:12:11.738Z - info: ____---___--___---___--___---___--___-__
  227. WW-API-0 2016-04-19T03:12:11.738Z - info:
  228. WW-API-0 2016-04-19T03:12:11.738Z - info: Server lifted in `/Users/amy/Code/wherewolf-backend`
  229. WW-API-0 2016-04-19T03:12:11.739Z - info: To see your app, visit http://localhost:1337
  230. WW-API-0 2016-04-19T03:12:11.739Z - info: To shut down Sails, press <CTRL> + C at any time.
  231. WW-API-2 2016-04-19T03:12:11.740Z - error: Alternatively, if you need to provide options:
  232. ```
  233. bodyParser: {
  234. fn: require("connect-busboy"),
  235. options: {/* ... */}
  236. }
  237. ```
  238. WW-API-0 2016-04-19T03:12:11.743Z - error: TypeError: Cannot read property 'toLowerCase' of undefined
  239. at _parseHTTPBody (/Users/amy/Code/wherewolf-backend/node_modules/skipper/index.js:55:19)
  240. at /Users/amy/Code/wherewolf-backend/node_modules/sails/lib/hooks/http/middleware/defaults.js:121:28
  241. at module.exports (/Users/amy/Code/wherewolf-backend/node_modules/sails/lib/hooks/http/middleware/defaults.js:161:7)
  242. at loadExpress (/Users/amy/Code/wherewolf-backend/node_modules/sails/lib/hooks/http/initialize.js:102:65)
  243. at Hook.initialize (/Users/amy/Code/wherewolf-backend/node_modules/sails/lib/hooks/http/index.js:203:16)
  244. at Hook.bound [as initialize] (/Users/amy/Code/wherewolf-backend/node_modules/sails/node_modules/lodash/dist/lodash.js:729:21)
  245. at /Users/amy/Code/wherewolf-backend/node_modules/sails/lib/hooks/index.js:74:14
  246. at /Users/amy/Code/wherewolf-backend/node_modules/sails/node_modules/async/lib/async.js:451:17
  247. at /Users/amy/Code/wherewolf-backend/node_modules/sails/node_modules/async/lib/async.js:441:17
  248. at _each (/Users/amy/Code/wherewolf-backend/node_modules/sails/node_modules/async/lib/async.js:46:13)
  249. at Immediate.taskComplete (/Users/amy/Code/wherewolf-backend/node_modules/sails/node_modules/async/lib/async.js:440:13)
  250. at processImmediate [as _immediateCallback] (timers.js:383:17) [TypeError: Cannot read property 'toLowerCase' of undefined]
  251. WW-API-0 2016-04-19T03:12:11.743Z - error: Encountered an error when trying to use configured bodyParser.
  252. WW-API-0 2016-04-19T03:12:11.744Z - error: Usually, this means that it was installed incorrectly.
  253. WW-API-0 2016-04-19T03:12:11.744Z - error: A custom bodyParser can be configured without calling the wrapper function- e.g.:
  254. ```
  255. bodyParser: require("connect-busboy")
  256. ```
  257. WW-API-0 2016-04-19T03:12:11.744Z - error: Alternatively, if you need to provide options:
  258. ```
  259. bodyParser: {
  260. fn: require("connect-busboy"),
  261. options: {/* ... */}
  262. }
  263. ```
  264. WW-API-2 2016-04-19T03:12:34.216Z - error: Client.findOne fail { endpoint: '/user/login/:id?',
  265. pool: 'demo',
  266. error:
  267. Error (E_UNKNOWN) :: Encountered an unexpected error
  268. : ER_BAD_FIELD_ERROR: Unknown column 'client.accommodation' in 'field list'
  269. at Query.Sequence._packetToError (/Users/amy/Code/wherewolf-backend/node_modules/sails-mysql/node_modules/mysql/lib/protocol/sequences/Sequence.js:48:14)
  270. at Query.ErrorPacket (/Users/amy/Code/wherewolf-backend/node_modules/sails-mysql/node_modules/mysql/lib/protocol/sequences/Query.js:83:18)
  271. at Protocol._parsePacket (/Users/amy/Code/wherewolf-backend/node_modules/sails-mysql/node_modules/mysql/lib/protocol/Protocol.js:280:23)
  272. at Parser.write (/Users/amy/Code/wherewolf-backend/node_modules/sails-mysql/node_modules/mysql/lib/protocol/Parser.js:73:12)
  273. at Protocol.write (/Users/amy/Code/wherewolf-backend/node_modules/sails-mysql/node_modules/mysql/lib/protocol/Protocol.js:39:16)
  274. at Socket.<anonymous> (/Users/amy/Code/wherewolf-backend/node_modules/sails-mysql/node_modules/mysql/lib/Connection.js:96:28)
  275. at emitOne (events.js:77:13)
  276. at Socket.emit (events.js:169:7)
  277. at readableAddChunk (_stream_readable.js:146:16)
  278. at Socket.Readable.push (_stream_readable.js:110:10)
  279. at TCP.onread (net.js:523:20)
  280. --------------------
  281. at Protocol._enqueue (/Users/amy/Code/wherewolf-backend/node_modules/sails-mysql/node_modules/mysql/lib/protocol/Protocol.js:141:48)
  282. at PoolConnection.query (/Users/amy/Code/wherewolf-backend/node_modules/sails-mysql/node_modules/mysql/lib/Connection.js:201:25)
  283. at __FIND__ (/Users/amy/Code/wherewolf-backend/node_modules/sails-mysql/lib/adapter.js:838:20)
  284. at afterwards (/Users/amy/Code/wherewolf-backend/node_modules/sails-mysql/lib/connections/spawn.js:84:5)
  285. at /Users/amy/Code/wherewolf-backend/node_modules/sails-mysql/lib/connections/spawn.js:40:7
  286. at Ping.onOperationComplete [as _callback] (/Users/amy/Code/wherewolf-backend/node_modules/sails-mysql/node_modules/mysql/lib/Pool.js:99:5)
  287. at Ping.Sequence.end (/Users/amy/Code/wherewolf-backend/node_modules/sails-mysql/node_modules/mysql/lib/protocol/sequences/Sequence.js:96:24)
  288. at Ping.Sequence.OkPacket (/Users/amy/Code/wherewolf-backend/node_modules/sails-mysql/node_modules/mysql/lib/protocol/sequences/Sequence.js:105:8)
  289. at Protocol._parsePacket (/Users/amy/Code/wherewolf-backend/node_modules/sails-mysql/node_modules/mysql/lib/protocol/Protocol.js:280:23)
  290. at Parser.write (/Users/amy/Code/wherewolf-backend/node_modules/sails-mysql/node_modules/mysql/lib/protocol/Parser.js:73:12)
  291. at Protocol.write (/Users/amy/Code/wherewolf-backend/node_modules/sails-mysql/node_modules/mysql/lib/protocol/Protocol.js:39:16)
  292. at Socket.<anonymous> (/Users/amy/Code/wherewolf-backend/node_modules/sails-mysql/node_modules/mysql/lib/Connection.js:96:28)
  293. at emitOne (events.js:77:13)
  294. at Socket.emit (events.js:169:7)
  295. at readableAddChunk (_stream_readable.js:146:16)
  296. at Socket.Readable.push (_stream_readable.js:110:10)
  297.  
  298. Details: Error: ER_BAD_FIELD_ERROR: Unknown column 'client.accommodation' in 'field list'
  299. ,
  300. req:
  301. IncomingMessage {
  302. _readableState:
  303. ReadableState {
  304. objectMode: false,
  305. highWaterMark: 16384,
  306. buffer: [],
  307. length: 0,
  308. pipes: null,
  309. pipesCount: 0,
  310. flowing: true,
  311. ended: true,
  312. endEmitted: true,
  313. reading: false,
  314. sync: true,
  315. needReadable: false,
  316. emittedReadable: false,
  317. readableListening: false,
  318. defaultEncoding: 'utf8',
  319. ranOut: false,
  320. awaitDrain: 0,
  321. readingMore: false,
  322. decoder: null,
  323. encoding: null,
  324. resumeScheduled: false },
  325. readable: false,
  326. domain: null,
  327. _events: {},
  328. _eventsCount: 0,
  329. _maxListeners: undefined,
  330. socket:
  331. Socket {
  332. _connecting: false,
  333. _hadError: false,
  334. _handle: [Object],
  335. _parent: null,
  336. _host: null,
  337. _readableState: [Object],
  338. readable: true,
  339. domain: null,
  340. _events: [Object],
  341. _eventsCount: 10,
  342. _maxListeners: undefined,
  343. _writableState: [Object],
  344. writable: true,
  345. allowHalfOpen: true,
  346. destroyed: false,
  347. bytesRead: 0,
  348. _bytesDispatched: 0,
  349. _sockname: null,
  350. _pendingData: null,
  351. _pendingEncoding: '',
  352. server: [Object],
  353. _idleTimeout: 120000,
  354. _idleNext: [Object],
  355. _idlePrev: [Object],
  356. _idleStart: 44527,
  357. parser: [Object],
  358. on: [Function: socketOnWrap],
  359. _paused: false,
  360. read: [Function],
  361. _consuming: true,
  362. _httpMessage: [Object],
  363. _peername: [Object] },
  364. connection:
  365. Socket {
  366. _connecting: false,
  367. _hadError: false,
  368. _handle: [Object],
  369. _parent: null,
  370. _host: null,
  371. _readableState: [Object],
  372. readable: true,
  373. domain: null,
  374. _events: [Object],
  375. _eventsCount: 10,
  376. _maxListeners: undefined,
  377. _writableState: [Object],
  378. writable: true,
  379. allowHalfOpen: true,
  380. destroyed: false,
  381. bytesRead: 0,
  382. _bytesDispatched: 0,
  383. _sockname: null,
  384. _pendingData: null,
  385. _pendingEncoding: '',
  386. server: [Object],
  387. _idleTimeout: 120000,
  388. _idleNext: [Object],
  389. _idlePrev: [Object],
  390. _idleStart: 44527,
  391. parser: [Object],
  392. on: [Function: socketOnWrap],
  393. _paused: false,
  394. read: [Function],
  395. _consuming: true,
  396. _httpMessage: [Object],
  397. _peername: [Object] },
  398. httpVersionMajor: 1,
  399. httpVersionMinor: 1,
  400. httpVersion: '1.1',
  401. complete: true,
  402. headers:
  403. { 'user-agent': 'Mozilla/5.0 (iPad; CPU OS 9_3_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Mobile/13E238',
  404. 'content-type': 'application/x-www-form-urlencoded',
  405. origin: 'http://192.168.1.12:8000',
  406. accept: 'text/plain, */*; q=0.01',
  407. referer: 'http://192.168.1.12:8000/wherewolf/index.html',
  408. 'accept-language': 'en-us',
  409. 'x-requested-with': 'XMLHttpRequest',
  410. 'content-length': '20',
  411. host: 'localhost:1337',
  412. connection: 'close' },
  413. rawHeaders:
  414. [ 'User-Agent',
  415. 'Mozilla/5.0 (iPad; CPU OS 9_3_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Mobile/13E238',
  416. 'Content-Type',
  417. 'application/x-www-form-urlencoded',
  418. 'Origin',
  419. 'http://192.168.1.12:8000',
  420. 'Accept',
  421. 'text/plain, */*; q=0.01',
  422. 'Referer',
  423. 'http://192.168.1.12:8000/wherewolf/index.html',
  424. 'Accept-Language',
  425. 'en-us',
  426. 'X-Requested-With',
  427. 'XMLHttpRequest',
  428. 'Content-Length',
  429. '20',
  430. 'Host',
  431. 'localhost:1337',
  432. 'Connection',
  433. 'close' ],
  434. trailers: {},
  435. rawTrailers: [],
  436. upgrade: false,
  437. url: '/user/login',
  438. method: 'POST',
  439. statusCode: null,
  440. statusMessage: null,
  441. client:
  442. Socket {
  443. _connecting: false,
  444. _hadError: false,
  445. _handle: [Object],
  446. _parent: null,
  447. _host: null,
  448. _readableState: [Object],
  449. readable: true,
  450. domain: null,
  451. _events: [Object],
  452. _eventsCount: 10,
  453. _maxListeners: undefined,
  454. _writableState: [Object],
  455. writable: true,
  456. allowHalfOpen: true,
  457. destroyed: false,
  458. bytesRead: 0,
  459. _bytesDispatched: 0,
  460. _sockname: null,
  461. _pendingData: null,
  462. _pendingEncoding: '',
  463. server: [Object],
  464. _idleTimeout: 120000,
  465. _idleNext: [Object],
  466. _idlePrev: [Object],
  467. _idleStart: 44527,
  468. parser: [Object],
  469. on: [Function: socketOnWrap],
  470. _paused: false,
  471. read: [Function],
  472. _consuming: true,
  473. _httpMessage: [Object],
  474. _peername: [Object] },
  475. _consuming: true,
  476. _dumped: false,
  477. originalUrl: '/user/login',
  478. _parsedUrl:
  479. Url {
  480. protocol: null,
  481. slashes: null,
  482. auth: null,
  483. host: null,
  484. port: null,
  485. hostname: null,
  486. hash: null,
  487. search: null,
  488. query: null,
  489. pathname: '/user/login',
  490. path: '/user/login',
  491. href: '/user/login',
  492. _raw: '/user/login' },
  493. query: {},
  494. res:
  495. ServerResponse {
  496. domain: null,
  497. _events: [Object],
  498. _eventsCount: 1,
  499. _maxListeners: undefined,
  500. output: [],
  501. outputEncodings: [],
  502. outputCallbacks: [],
  503. outputSize: 0,
  504. writable: true,
  505. _last: false,
  506. chunkedEncoding: false,
  507. shouldKeepAlive: false,
  508. useChunkedEncodingByDefault: true,
  509. sendDate: true,
  510. _removedHeader: {},
  511. _contentLength: null,
  512. _hasBody: true,
  513. _trailer: '',
  514. finished: false,
  515. _headerSent: false,
  516. socket: [Object],
  517. connection: [Object],
  518. _header: null,
  519. _headers: [Object],
  520. _headerNames: [Object],
  521. _onPendingData: [Function: updateOutgoingData],
  522. req: [Circular],
  523. locals: [Object],
  524. jsonx: [Function: jsonx],
  525. badRequest: [Function: bound],
  526. forbidden: [Function: bound],
  527. notFound: [Function: bound],
  528. ok: [Function: bound],
  529. serverError: [Function: bound],
  530. created: [Function: bound],
  531. negotiate: [Function: bound],
  532. guessView: [Function],
  533. view: [Function] },
  534. next: [Function: next],
  535. _startTime: Tue Apr 19 2016 15:12:34 GMT+1200 (NZST),
  536. file: [Function],
  537. body: { user: 'Jamie', pass: 'duck' },
  538. _body: true,
  539. length: undefined,
  540. read: [Function],
  541. originalMethod: 'POST',
  542. _route_index: 385,
  543. route:
  544. Route {
  545. path: '/user/login/:id?',
  546. method: 'post',
  547. callbacks: [Object],
  548. keys: [Object],
  549. regexp: /^\/user\/login(?:\/([^\/]+?))?\/?$/i,
  550. params: [Object] },
  551. params: [ id: undefined ],
  552. options:
  553. { detectedVerb: [Object],
  554. skipRegex: [],
  555. _middlewareType: 'CORS HOOK: sendHeaders',
  556. action: 'login',
  557. controller: 'user',
  558. actions: true,
  559. rest: false,
  560. shortcuts: false,
  561. index: true,
  562. prefix: '',
  563. restPrefix: '',
  564. pluralize: false,
  565. populate: true,
  566. autoWatch: true },
  567. allParams: [Function],
  568. flash: [Function: _flash],
  569. _sails:
  570.  
  571. |> [a lifted Sails app on port 1337]
  572. \___/ For help, see: http://links.sailsjs.org/docs
  573.  
  574. Tip: Use `sails.config` to access your app's runtime configuration.
  575.  
  576. 18 Models:
  577. Client,Day,EmailQDone,EmailQueue,Errors,Graph,Guest,LogDay,LogGuest,LogTrip,Reservations,Signature,Staff,Trip,TripSignature,Users
  578.  
  579. 32 Controllers:
  580. AdminController,AmazonSESController,AutomationQueueController,CampaignMonitorController,ClientController,DayController,DevController,EmailCampaignController,EmailQueueController,ErrorController,ExportController,GraphController,GuestController,KountaController,MailchimpController,MandrillController,MobipostController,PDFController,ProcharterController,ResbookController,ReservSafeController,ReservWherewolfController,ReservationsController,RezdyController,SMSBroadcastController,SMSBulletinController,SMSController,ShopController,TimezoneController,TripController,UserController,UtilityController
  581.  
  582. 15 Hooks:
  583. moduleloader,logger,request,orm,views,blueprints,responses,controllers,sockets,policies,services,cors,userconfig,http,userhooks
  584. ,
  585. port: 1337,
  586. baseUrl: 'http://localhost:1337',
  587. validate: [Function: _validate],
  588. explicitlyAcceptsHTML: false,
  589. wantsJSON: true,
  590. _modifiedRouteParams: [] } }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement