Firebase主机部署失败,出现“0”;服务器错误。“插座挂起”;

Firebase主机部署失败,出现“0”;服务器错误。“插座挂起”;,firebase,firebase-hosting,Firebase,Firebase Hosting,控制台输出 firebase-debug.log [debug][2017-11-22T14:36:06.359Z]---------------------------------------------------------------------- [debug][2017-11-22T14:36:06.362Z]命令:/Users/Sanket/.nvm/versions/node/v7.10.0/bin/node/Users/Sanket/.nvm/versions/node/v7.

控制台输出

firebase-debug.log

[debug][2017-11-22T14:36:06.359Z]----------------------------------------------------------------------
[debug][2017-11-22T14:36:06.362Z]命令:/Users/Sanket/.nvm/versions/node/v7.10.0/bin/node/Users/Sanket/.nvm/versions/node/v7.10.0/bin/firebase deploy
[调试][2017-11-22T14:36:06.362Z]CLI版本:3.15.2
[调试][2017-11-22T14:36:06.362Z]平台:达尔文
[调试][2017-11-22T14:36:06.362Z]节点版本:v7.10.0
[调试][2017-11-22T14:36:06.363Z]时间:2017年11月22日星期三20:06:06 GMT+0530(IST)
[调试][2017-11-22T14:36:06.363Z]----------------------------------------------------------------------
[调试]
[debug][2017-11-22T14:36:06.376Z]>命令需要作用域:[“email”、“openid”和https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
[调试][2017-11-22T14:36:06.376Z]>通过登录用户进行授权
[debug][2017-11-22T14:36:06.378Z]>正在刷新作用域为:[“电子邮件”的访问令牌https://www.googleapis.com/auth/cloud-platform","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase“,“openid”]
[调试][2017-11-22T14:36:06.378Z]>>>HTTP请求发布https://www.googleapis.com/oauth2/v3/token {刷新令牌:'************',
客户端id:“***-***.apps.googleusercontent.com”,
客户机密:'***',
授予类型:“刷新令牌”,
范围:'电子邮件https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/cloudplatformprojects.readonly https://www.googleapis.com/auth/firebase openid'}
2017年11月22日星期三20:06:06 GMT+0530(IST)
[调试][2017-11-22T14:36:06.772Z]>HTTP请求获取https://admin.firebase.com/v1/projects/stulz-monitor  
2017年11月22日星期三20:06:06 GMT+0530(IST)
[调试][2017-11-22T14:36:09.144Z]>HTTP请求获取https://admin.firebase.com/v1/database/stulz-monitor/tokens  
2017年11月22日星期三20:06:09 GMT+0530(IST)
[调试][2017-11-22T14:36:10.275Z]>HTTP请求放置https://stulz-monitor.firebaseio.com/.settings/rules.json?dryRun=true {
“规则”:{
“.read”:“true”,
.write:“false”
}
}
2017年11月22日星期三20:06:13 GMT+0530(IST)
[调试][2017-11-22T14:36:14.696Z]>HTTP请求获取https://appengine.googleapis.com/v1/apps/stulz-monitor  
2017年11月22日星期三20:06:14 GMT+0530(IST)
[调试][2017-11-22T14:36:16.644Z]>HTTP请求发布https://firebaserules.googleapis.com/v1/projects/stulz-monitor:test {源:{文件:[[Object]]}
2017年11月22日星期三20:06:16 GMT+0530(IST)
[调试][2017-11-22T14:36:18.967Z]>HTTP请求发布https://firebaserules.googleapis.com/v1/projects/stulz-monitor:test {源:{文件:[[Object]]}
2017年11月22日星期三20:06:18 GMT+0530(IST)
[调试][2017-11-22T14:36:20.087Z]>>HTTP请求获取https://servicemanagement.googleapis.com/v1/services/cloudfunctions.googleapis.com/projectSettings/stulz-monitor?view=CONSUMER_VIEW  
2017年11月22日星期三20:06:20 GMT+0530(IST)
[调试][2017-11-22T14:36:20.091Z]>>>>HTTP请求获取https://servicemanagement.googleapis.com/v1/services/runtimeconfig.googleapis.com/projectSettings/stulz-monitor?view=CONSUMER_VIEW  
2017年11月22日星期三20:06:20 GMT+0530(IST)
[调试][2017-11-22T14:36:22.106Z]>>HTTP请求获取https://apikeys.googleapis.com/v1/projects/stulz-monitor/apiKeys  
2017年11月22日星期三20:06:22 GMT+0530(IST)
[调试][2017-11-22T14:36:24.197Z]HTTP请求帖子https://firebaserules.googleapis.com/v1/projects/stulz-monitor/rulesets {源:{文件:[[Object]]}
2017年11月22日星期三20:06:25 GMT+0530(IST)
[调试][2017-11-22T14:36:25.995Z]>>>HTTP请求获取https://firestore.googleapis.com/v1beta1/projects/stulz-monitor/databases/(默认)/索引
2017年11月22日星期三20:06:25 GMT+0530(IST)
[debug][2017-11-22T14:36:27.258Z]HTTP请求获取https://www.googleapis.com/storage/v1/b/staging.stulz-monitor.appspot.com  
2017年11月22日星期三20:06:48 GMT+0530(IST)
[调试][2017-11-22T14:36:48.865Z]>HTTP请求发布https://www.googleapis.com/upload/storage/v1/b/staging.stulz-monitor.appspot.com/o?uploadType=media&name=firebase-函数源读取流{
_可读状态:
可读状态{
objectMode:false,
高水印:65536,
缓冲区:缓冲区列表{head:[Object],tail:[Object],长度:1},
长度:63292,
管道:null,
管道:0,
流:null,
结束:对,
提交:错误,
阅读:错,
同步:假,
答案:错,
对,对,
可读性听力:错误,
resumeScheduled:false,
defaultEncoding:'utf8',
拉诺:错,
时间:0,,
阅读更多:错误,
解码器:空,
编码:null},
可读性:对,
域:空,
_事件:{end:[函数]},
_事件提示:1,
_maxListeners:未定义,
路径:'/var/folders/n3/h9nbc_ys2732s35_9jlgh98c000gn/T/firebase-functions-6515Ngn1HNgoFfUM.zip',
fd:19,
旗帜:“r”,
模式:438,
开始:未定义,
结束:未定义,
自动关闭:是的,
位置:未定义,
字节读取:63292}
2017年11月22日星期三20:06:48 GMT+0530(IST)
[调试][2017-11-22T14:36:50.768Z]>HTTP请求放置https://deploy.firebase.com/v1/hosting/stulz-monitor/uploads/-KzZ98-Ef8hX6Lqfgw2J?fileCount=16&message=  
2017年11月22日星期三20:06:50 GMT+0530(IST)
[调试][2017-11-22T14:37:52.379Z]错误:套接字挂起
在TLSSocket.onHangUp(_tls_wrap.js:1120:19)
在Object.onceWrapper(events.js:293:19)
在emitNone(events.js:91:20)
在TLSSocket.emit(events.js:188:7)
在endReadableNT(_stream_readable.js:975:12)
at _combinedTickCallback(内部/流程/下一步_tick.js:80:11)
在进程中。_tickDomainCallback(internal/process/next_tick.js:128:9)
[错误]
[错误]错误:服务器错误。插座挂断
[调试][2017-11-22T14:38:33.433Z]------------------------------------------------
$ firebase deploy

=== Deploying to '***'...

i  deploying database, storage, firestore, functions, hosting
i  database: checking rules syntax...
✔  database: rules syntax for database stulz-monitor is valid
i  storage: checking storage.rules for compilation errors...
✔  storage: rules file storage.rules compiled successfully
i  firestore: checking firestore.rules for compilation errors...
✔  firestore: rules file firestore.rules compiled successfully
i  functions: ensuring necessary APIs are enabled...
i  runtimeconfig: ensuring necessary APIs are enabled...
✔  runtimeconfig: all necessary APIs are enabled
✔  functions: all necessary APIs are enabled
i  storage: uploading rules storage.rules...
i  firestore: uploading rules firestore.rules...
i  functions: preparing functions directory for uploading...
i  functions: packaged functions (61.81 KB) for uploading
✔  functions: functions folder uploaded successfully
i  hosting: preparing public directory for upload...

Error: Server Error. socket hang up
[debug] [2017-11-22T14:36:06.359Z] ----------------------------------------------------------------------
[debug] [2017-11-22T14:36:06.362Z] Command:       /Users/Sanket/.nvm/versions/node/v7.10.0/bin/node /Users/Sanket/.nvm/versions/node/v7.10.0/bin/firebase deploy
[debug] [2017-11-22T14:36:06.362Z] CLI Version:   3.15.2
[debug] [2017-11-22T14:36:06.362Z] Platform:      darwin
[debug] [2017-11-22T14:36:06.362Z] Node Version:  v7.10.0
[debug] [2017-11-22T14:36:06.363Z] Time:          Wed Nov 22 2017 20:06:06 GMT+0530 (IST)
[debug] [2017-11-22T14:36:06.363Z] ----------------------------------------------------------------------
[debug] 
[debug] [2017-11-22T14:36:06.376Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
[debug] [2017-11-22T14:36:06.376Z] > authorizing via signed-in user
[debug] [2017-11-22T14:36:06.378Z] > refreshing access token with scopes: ["email","https://www.googleapis.com/auth/cloud-platform","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","openid"]
[debug] [2017-11-22T14:36:06.378Z] >>> HTTP REQUEST POST https://www.googleapis.com/oauth2/v3/token { refresh_token: '**********',
  client_id: '***-***.apps.googleusercontent.com',
  client_secret: '***',
  grant_type: 'refresh_token',
  scope: 'email https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/cloudplatformprojects.readonly https://www.googleapis.com/auth/firebase openid' } 
 Wed Nov 22 2017 20:06:06 GMT+0530 (IST)
[debug] [2017-11-22T14:36:06.772Z] <<< HTTP RESPONSE 200
[debug] [2017-11-22T14:36:06.786Z] >>> HTTP REQUEST GET https://admin.firebase.com/v1/projects/stulz-monitor  
 Wed Nov 22 2017 20:06:06 GMT+0530 (IST)
[debug] [2017-11-22T14:36:09.144Z] <<< HTTP RESPONSE 200
[debug] [2017-11-22T14:36:09.145Z] >>> HTTP REQUEST GET https://admin.firebase.com/v1/database/stulz-monitor/tokens  
 Wed Nov 22 2017 20:06:09 GMT+0530 (IST)
[debug] [2017-11-22T14:36:10.275Z] <<< HTTP RESPONSE 200
[info] 
[info] === Deploying to 'stulz-monitor'...
[info] 
[info] i  deploying database, storage, firestore, functions, hosting
[info] i  database: checking rules syntax...
[debug] [2017-11-22T14:36:13.405Z] >>> HTTP REQUEST PUT https://stulz-monitor.firebaseio.com/.settings/rules.json?dryRun=true {
  "rules": {
    ".read": "true",
    ".write": "false"
  }
}

 Wed Nov 22 2017 20:06:13 GMT+0530 (IST)
[debug] [2017-11-22T14:36:14.696Z] <<< HTTP RESPONSE 200
[info] ✔  database: rules syntax for database stulz-monitor is valid
[debug] [2017-11-22T14:36:14.698Z] >>> HTTP REQUEST GET https://appengine.googleapis.com/v1/apps/stulz-monitor  
 Wed Nov 22 2017 20:06:14 GMT+0530 (IST)
[debug] [2017-11-22T14:36:16.644Z] <<< HTTP RESPONSE 200
[info] i  storage: checking storage.rules for compilation errors...
[debug] [2017-11-22T14:36:16.651Z] >>> HTTP REQUEST POST https://firebaserules.googleapis.com/v1/projects/stulz-monitor:test { source: { files: [ [Object] ] } } 
 Wed Nov 22 2017 20:06:16 GMT+0530 (IST)
[debug] [2017-11-22T14:36:18.967Z] <<< HTTP RESPONSE 200
[info] ✔  storage: rules file storage.rules compiled successfully
[info] i  firestore: checking firestore.rules for compilation errors...
[debug] [2017-11-22T14:36:18.974Z] >>> HTTP REQUEST POST https://firebaserules.googleapis.com/v1/projects/stulz-monitor:test { source: { files: [ [Object] ] } } 
 Wed Nov 22 2017 20:06:18 GMT+0530 (IST)
[debug] [2017-11-22T14:36:20.087Z] <<< HTTP RESPONSE 200
[info] ✔  firestore: rules file firestore.rules compiled successfully
[debug] [2017-11-22T14:36:20.089Z] > [functions] package.json contents: {
  "name": "functions",
  "description": "Cloud Functions for Firebase",
  "scripts": {
    "serve": "firebase serve --only functions",
    "shell": "firebase experimental:functions:shell",
    "start": "npm run shell",
    "deploy": "firebase deploy --only functions",
    "logs": "firebase functions:log"
  },
  "dependencies": {
    "cors": "^2.8.4",
    "express": "^4.16.2",
    "firebase-admin": "~5.4.2",
    "firebase-functions": "^0.7.1"
  },
  "private": true
}
[info] i  functions: ensuring necessary APIs are enabled...
[info] i  runtimeconfig: ensuring necessary APIs are enabled...
[debug] [2017-11-22T14:36:20.091Z] >>> HTTP REQUEST GET https://servicemanagement.googleapis.com/v1/services/cloudfunctions.googleapis.com/projectSettings/stulz-monitor?view=CONSUMER_VIEW  
 Wed Nov 22 2017 20:06:20 GMT+0530 (IST)
[debug] [2017-11-22T14:36:20.091Z] >>> HTTP REQUEST GET https://servicemanagement.googleapis.com/v1/services/runtimeconfig.googleapis.com/projectSettings/stulz-monitor?view=CONSUMER_VIEW  
 Wed Nov 22 2017 20:06:20 GMT+0530 (IST)
[debug] [2017-11-22T14:36:22.106Z] <<< HTTP RESPONSE 200
[info] ✔  runtimeconfig: all necessary APIs are enabled
[debug] [2017-11-22T14:36:22.403Z] <<< HTTP RESPONSE 200
[info] ✔  functions: all necessary APIs are enabled
[debug] [2017-11-22T14:36:22.405Z] >>> HTTP REQUEST GET https://appengine.googleapis.com/v1/apps/stulz-monitor  
 Wed Nov 22 2017 20:06:22 GMT+0530 (IST)
[debug] [2017-11-22T14:36:22.406Z] >>> HTTP REQUEST GET https://apikeys.googleapis.com/v1/projects/stulz-monitor/apiKeys  
 Wed Nov 22 2017 20:06:22 GMT+0530 (IST)
[debug] [2017-11-22T14:36:24.197Z] <<< HTTP RESPONSE 200
[debug] [2017-11-22T14:36:24.610Z] <<< HTTP RESPONSE 200
[info] i  storage: uploading rules storage.rules...
[debug] [2017-11-22T14:36:24.615Z] >>> HTTP REQUEST POST https://firebaserules.googleapis.com/v1/projects/stulz-monitor/rulesets { source: { files: [ [Object] ] } } 
 Wed Nov 22 2017 20:06:24 GMT+0530 (IST)
[debug] [2017-11-22T14:36:25.990Z] <<< HTTP RESPONSE 200
[debug] [2017-11-22T14:36:25.990Z] [rules] created ruleset projects/stulz-monitor/rulesets/98ac1f07-a129-4ff1-ac20-1638fb3c2e30
[info] i  firestore: uploading rules firestore.rules...
[debug] [2017-11-22T14:36:25.994Z] >>> HTTP REQUEST POST https://firebaserules.googleapis.com/v1/projects/stulz-monitor/rulesets { source: { files: [ [Object] ] } } 
 Wed Nov 22 2017 20:06:25 GMT+0530 (IST)
[debug] [2017-11-22T14:36:25.995Z] >>> HTTP REQUEST GET https://firestore.googleapis.com/v1beta1/projects/stulz-monitor/databases/(default)/indexes  
 Wed Nov 22 2017 20:06:25 GMT+0530 (IST)
[debug] [2017-11-22T14:36:27.258Z] <<< HTTP RESPONSE 200
[debug] [2017-11-22T14:36:27.259Z] [rules] created ruleset projects/stulz-monitor/rulesets/591c5d82-24bd-4146-8b75-4f672c24671a
[debug] [2017-11-22T14:36:28.077Z] <<< HTTP RESPONSE 200
[info] i  functions: preparing functions directory for uploading...
[debug] [2017-11-22T14:36:40.095Z] >>> HTTP REQUEST GET https://runtimeconfig.googleapis.com/v1beta1/projects/stulz-monitor/configs  
 Wed Nov 22 2017 20:06:40 GMT+0530 (IST)
[debug] [2017-11-22T14:36:40.685Z] <<< HTTP RESPONSE 200
[info] i  functions: packaged functions (61.81 KB) for uploading
[debug] [2017-11-22T14:36:48.198Z] >>> HTTP REQUEST GET https://www.googleapis.com/storage/v1/b/staging.stulz-monitor.appspot.com  
 Wed Nov 22 2017 20:06:48 GMT+0530 (IST)
[debug] [2017-11-22T14:36:48.865Z] <<< HTTP RESPONSE 200
[debug] [2017-11-22T14:36:48.866Z] >>> HTTP REQUEST POST https://www.googleapis.com/upload/storage/v1/b/staging.stulz-monitor.appspot.com/o?uploadType=media&name=firebase-functions-source ReadStream {
  _readableState: 
   ReadableState {
     objectMode: false,
     highWaterMark: 65536,
     buffer: BufferList { head: [Object], tail: [Object], length: 1 },
     length: 63292,
     pipes: null,
     pipesCount: 0,
     flowing: null,
     ended: true,
     endEmitted: false,
     reading: false,
     sync: false,
     needReadable: false,
     emittedReadable: true,
     readableListening: false,
     resumeScheduled: false,
     defaultEncoding: 'utf8',
     ranOut: false,
     awaitDrain: 0,
     readingMore: false,
     decoder: null,
     encoding: null },
  readable: true,
  domain: null,
  _events: { end: [Function] },
  _eventsCount: 1,
  _maxListeners: undefined,
  path: '/var/folders/n3/h9nbc_ys2732s35_9jlgh98c0000gn/T/firebase-functions-6515Ngn1HNgoFfUM.zip',
  fd: 19,
  flags: 'r',
  mode: 438,
  start: undefined,
  end: undefined,
  autoClose: true,
  pos: undefined,
  bytesRead: 63292 } 
 Wed Nov 22 2017 20:06:48 GMT+0530 (IST)
[debug] [2017-11-22T14:36:50.768Z] <<< HTTP RESPONSE 200
[info] ✔  functions: functions folder uploaded successfully
[info] i  hosting: preparing public directory for upload...
[debug] [2017-11-22T14:36:50.944Z] >>> HTTP REQUEST PUT https://deploy.firebase.com/v1/hosting/stulz-monitor/uploads/-KzZ98-Ef8hX6Lqfgw2J?fileCount=16&message=  
 Wed Nov 22 2017 20:06:50 GMT+0530 (IST)
[debug] [2017-11-22T14:37:52.379Z] Error: socket hang up
    at TLSSocket.onHangUp (_tls_wrap.js:1120:19)
    at Object.onceWrapper (events.js:293:19)
    at emitNone (events.js:91:20)
    at TLSSocket.emit (events.js:188:7)
    at endReadableNT (_stream_readable.js:975:12)
    at _combinedTickCallback (internal/process/next_tick.js:80:11)
    at process._tickDomainCallback (internal/process/next_tick.js:128:9)
[error] 
[error] Error: Server Error. socket hang up
[debug] [2017-11-22T14:38:33.433Z] ----------------------------------------------------------------------
[debug] [2017-11-22T14:38:33.436Z] Command:       /Users/Sanket/.nvm/versions/node/v7.10.0/bin/node /Users/Sanket/.nvm/versions/node/v7.10.0/bin/firebase deploy --only hosting
[debug] [2017-11-22T14:38:33.437Z] CLI Version:   3.15.2
[debug] [2017-11-22T14:38:33.437Z] Platform:      darwin
[debug] [2017-11-22T14:38:33.437Z] Node Version:  v7.10.0
[debug] [2017-11-22T14:38:33.437Z] Time:          Wed Nov 22 2017 20:08:33 GMT+0530 (IST)
[debug] [2017-11-22T14:38:33.437Z] ----------------------------------------------------------------------
[debug] 
[debug] [2017-11-22T14:38:33.452Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
[debug] [2017-11-22T14:38:33.452Z] > authorizing via signed-in user
[debug] [2017-11-22T14:38:33.455Z] >>> HTTP REQUEST GET https://admin.firebase.com/v1/projects/stulz-monitor  
 Wed Nov 22 2017 20:08:33 GMT+0530 (IST)
[debug] [2017-11-22T14:38:34.805Z] <<< HTTP RESPONSE 200
[debug] [2017-11-22T14:38:34.807Z] >>> HTTP REQUEST GET https://admin.firebase.com/v1/database/stulz-monitor/tokens  
 Wed Nov 22 2017 20:08:34 GMT+0530 (IST)
[debug] [2017-11-22T14:38:36.037Z] <<< HTTP RESPONSE 200
[info] 
[info] === Deploying to 'stulz-monitor'...
[info] 
[info] i  deploying hosting
[info] i  hosting: preparing public directory for upload...
[debug] [2017-11-22T14:38:38.871Z] >>> HTTP REQUEST PUT https://deploy.firebase.com/v1/hosting/stulz-monitor/uploads/-KzZ9djhjEHEc1iN3KTI?fileCount=16&message=  
 Wed Nov 22 2017 20:08:38 GMT+0530 (IST)
[debug] [2017-11-22T14:41:44.756Z] ----------------------------------------------------------------------
[debug] [2017-11-22T14:41:44.759Z] Command:       /Users/Sanket/.nvm/versions/node/v7.10.0/bin/node /Users/Sanket/.nvm/versions/node/v7.10.0/bin/firebase deploy
[debug] [2017-11-22T14:41:44.759Z] CLI Version:   3.15.2
[debug] [2017-11-22T14:41:44.759Z] Platform:      darwin
[debug] [2017-11-22T14:41:44.759Z] Node Version:  v7.10.0
[debug] [2017-11-22T14:41:44.760Z] Time:          Wed Nov 22 2017 20:11:44 GMT+0530 (IST)
[debug] [2017-11-22T14:41:44.760Z] ----------------------------------------------------------------------
[debug] 
[debug] [2017-11-22T14:41:44.775Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
[debug] [2017-11-22T14:41:44.775Z] > authorizing via signed-in user
[debug] [2017-11-22T14:41:44.778Z] >>> HTTP REQUEST GET https://admin.firebase.com/v1/projects/stulz-monitor  
 Wed Nov 22 2017 20:11:44 GMT+0530 (IST)
[debug] [2017-11-22T14:41:47.277Z] <<< HTTP RESPONSE 200
[debug] [2017-11-22T14:41:47.278Z] >>> HTTP REQUEST GET https://admin.firebase.com/v1/database/stulz-monitor/tokens  
 Wed Nov 22 2017 20:11:47 GMT+0530 (IST)
[debug] [2017-11-22T14:41:49.540Z] <<< HTTP RESPONSE 200
[info] 
[info] === Deploying to 'stulz-monitor'...
[info] 
[info] i  deploying database, storage, firestore, functions, hosting
[info] i  database: checking rules syntax...
[debug] [2017-11-22T14:41:52.281Z] >>> HTTP REQUEST PUT https://stulz-monitor.firebaseio.com/.settings/rules.json?dryRun=true {
  "rules": {
    ".read": "true",
    ".write": "false"
  }
}

 Wed Nov 22 2017 20:11:52 GMT+0530 (IST)
[debug] [2017-11-22T14:41:53.550Z] <<< HTTP RESPONSE 200
[info] ✔  database: rules syntax for database stulz-monitor is valid
[debug] [2017-11-22T14:41:53.552Z] >>> HTTP REQUEST GET https://appengine.googleapis.com/v1/apps/stulz-monitor  
 Wed Nov 22 2017 20:11:53 GMT+0530 (IST)
[debug] [2017-11-22T14:41:55.852Z] <<< HTTP RESPONSE 200
[info] i  storage: checking storage.rules for compilation errors...
[debug] [2017-11-22T14:41:55.859Z] >>> HTTP REQUEST POST https://firebaserules.googleapis.com/v1/projects/stulz-monitor:test { source: { files: [ [Object] ] } } 
 Wed Nov 22 2017 20:11:55 GMT+0530 (IST)
[debug] [2017-11-22T14:41:57.208Z] <<< HTTP RESPONSE 200
[info] ✔  storage: rules file storage.rules compiled successfully
[info] i  firestore: checking firestore.rules for compilation errors...
[debug] [2017-11-22T14:41:57.216Z] >>> HTTP REQUEST POST https://firebaserules.googleapis.com/v1/projects/stulz-monitor:test { source: { files: [ [Object] ] } } 
 Wed Nov 22 2017 20:11:57 GMT+0530 (IST)
[debug] [2017-11-22T14:41:58.592Z] <<< HTTP RESPONSE 200
[info] ✔  firestore: rules file firestore.rules compiled successfully
[debug] [2017-11-22T14:41:58.598Z] > [functions] package.json contents: {
  "name": "functions",
  "description": "Cloud Functions for Firebase",
  "scripts": {
    "serve": "firebase serve --only functions",
    "shell": "firebase experimental:functions:shell",
    "start": "npm run shell",
    "deploy": "firebase deploy --only functions",
    "logs": "firebase functions:log"
  },
  "dependencies": {
    "cors": "^2.8.4",
    "express": "^4.16.2",
    "firebase-admin": "~5.4.2",
    "firebase-functions": "^0.7.1"
  },
  "private": true
}
[info] i  functions: ensuring necessary APIs are enabled...
[info] i  runtimeconfig: ensuring necessary APIs are enabled...
[debug] [2017-11-22T14:41:58.599Z] >>> HTTP REQUEST GET https://servicemanagement.googleapis.com/v1/services/cloudfunctions.googleapis.com/projectSettings/stulz-monitor?view=CONSUMER_VIEW  
 Wed Nov 22 2017 20:11:58 GMT+0530 (IST)
[debug] [2017-11-22T14:41:58.600Z] >>> HTTP REQUEST GET https://servicemanagement.googleapis.com/v1/services/runtimeconfig.googleapis.com/projectSettings/stulz-monitor?view=CONSUMER_VIEW  
 Wed Nov 22 2017 20:11:58 GMT+0530 (IST)
[debug] [2017-11-22T14:42:00.952Z] <<< HTTP RESPONSE 200
[info] ✔  runtimeconfig: all necessary APIs are enabled
[debug] [2017-11-22T14:42:01.185Z] <<< HTTP RESPONSE 200
[info] ✔  functions: all necessary APIs are enabled
[debug] [2017-11-22T14:42:01.186Z] >>> HTTP REQUEST GET https://appengine.googleapis.com/v1/apps/stulz-monitor  
 Wed Nov 22 2017 20:12:01 GMT+0530 (IST)
[debug] [2017-11-22T14:42:01.186Z] >>> HTTP REQUEST GET https://apikeys.googleapis.com/v1/projects/stulz-monitor/apiKeys  
 Wed Nov 22 2017 20:12:01 GMT+0530 (IST)
[debug] [2017-11-22T14:42:02.850Z] <<< HTTP RESPONSE 200
[debug] [2017-11-22T14:42:02.902Z] <<< HTTP RESPONSE 200
[info] i  storage: uploading rules storage.rules...
[debug] [2017-11-22T14:42:02.908Z] >>> HTTP REQUEST POST https://firebaserules.googleapis.com/v1/projects/stulz-monitor/rulesets { source: { files: [ [Object] ] } } 
 Wed Nov 22 2017 20:12:02 GMT+0530 (IST)
[debug] [2017-11-22T14:42:07.651Z] <<< HTTP RESPONSE 200
[debug] [2017-11-22T14:42:07.652Z] [rules] created ruleset projects/stulz-monitor/rulesets/ab4b440f-7ced-48f1-ac72-fd53aaf85597
[info] i  firestore: uploading rules firestore.rules...
[debug] [2017-11-22T14:42:07.655Z] >>> HTTP REQUEST POST https://firebaserules.googleapis.com/v1/projects/stulz-monitor/rulesets { source: { files: [ [Object] ] } } 
 Wed Nov 22 2017 20:12:07 GMT+0530 (IST)
[debug] [2017-11-22T14:42:07.657Z] >>> HTTP REQUEST GET https://firestore.googleapis.com/v1beta1/projects/stulz-monitor/databases/(default)/indexes  
 Wed Nov 22 2017 20:12:07 GMT+0530 (IST)
[debug] [2017-11-22T14:42:09.570Z] <<< HTTP RESPONSE 200
[debug] [2017-11-22T14:42:13.542Z] <<< HTTP RESPONSE 200
[debug] [2017-11-22T14:42:13.543Z] [rules] created ruleset projects/stulz-monitor/rulesets/bfab570a-f997-41b8-a6d3-1c77a41572c5
[info] i  functions: preparing functions directory for uploading...
[debug] [2017-11-22T14:42:25.884Z] >>> HTTP REQUEST GET https://runtimeconfig.googleapis.com/v1beta1/projects/stulz-monitor/configs  
 Wed Nov 22 2017 20:12:25 GMT+0530 (IST)
[debug] [2017-11-22T14:42:31.838Z] <<< HTTP RESPONSE 200
[info] i  functions: packaged functions (61.81 KB) for uploading
[debug] [2017-11-22T14:42:39.537Z] >>> HTTP REQUEST GET https://www.googleapis.com/storage/v1/b/staging.stulz-monitor.appspot.com  
 Wed Nov 22 2017 20:12:39 GMT+0530 (IST)
[debug] [2017-11-22T14:42:40.019Z] <<< HTTP RESPONSE 200
[debug] [2017-11-22T14:42:40.020Z] >>> HTTP REQUEST POST https://www.googleapis.com/upload/storage/v1/b/staging.stulz-monitor.appspot.com/o?uploadType=media&name=firebase-functions-source ReadStream {
  _readableState: 
   ReadableState {
     objectMode: false,
     highWaterMark: 65536,
     buffer: BufferList { head: [Object], tail: [Object], length: 1 },
     length: 63292,
     pipes: null,
     pipesCount: 0,
     flowing: null,
     ended: true,
     endEmitted: false,
     reading: false,
     sync: false,
     needReadable: false,
     emittedReadable: true,
     readableListening: false,
     resumeScheduled: false,
     defaultEncoding: 'utf8',
     ranOut: false,
     awaitDrain: 0,
     readingMore: false,
     decoder: null,
     encoding: null },
  readable: true,
  domain: null,
  _events: { end: [Function] },
  _eventsCount: 1,
  _maxListeners: undefined,
  path: '/var/folders/n3/h9nbc_ys2732s35_9jlgh98c0000gn/T/firebase-functions-6597f3AGZ4D601g7.zip',
  fd: 19,
  flags: 'r',
  mode: 438,
  start: undefined,
  end: undefined,
  autoClose: true,
  pos: undefined,
  bytesRead: 63292 } 
 Wed Nov 22 2017 20:12:40 GMT+0530 (IST)
[debug] [2017-11-22T14:42:47.020Z] <<< HTTP RESPONSE 200
[info] ✔  functions: functions folder uploaded successfully
[info] i  hosting: preparing public directory for upload...
[debug] [2017-11-22T14:42:47.219Z] >>> HTTP REQUEST PUT https://deploy.firebase.com/v1/hosting/stulz-monitor/uploads/-KzZAQa7e_nVP17jXgzQ?fileCount=16&message=  
 Wed Nov 22 2017 20:12:47 GMT+0530 (IST)
[debug] [2017-11-22T14:44:39.346Z] Error: socket hang up
    at createHangUpError (_http_client.js:302:15)
    at TLSSocket.socketOnEnd (_http_client.js:394:23)
    at emitNone (events.js:91:20)
    at TLSSocket.emit (events.js:188:7)
    at endReadableNT (_stream_readable.js:975:12)
    at _combinedTickCallback (internal/process/next_tick.js:80:11)
    at process._tickDomainCallback (internal/process/next_tick.js:128:9)
[error] 
[error] Error: Server Error. socket hang up