-
Notifications
You must be signed in to change notification settings - Fork 0
/
firebase-debug.log
172 lines (166 loc) · 20.4 KB
/
firebase-debug.log
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
[debug] [2022-05-15T19:04:05.381Z] ----------------------------------------------------------------------
[debug] [2022-05-15T19:04:05.388Z] Command: /usr/local/bin/node /usr/local/bin/firebase --project=codee-club-emu emulators:start --only auth,firestore,functions,storage
[debug] [2022-05-15T19:04:05.388Z] CLI Version: 10.2.2
[debug] [2022-05-15T19:04:05.388Z] Platform: darwin
[debug] [2022-05-15T19:04:05.389Z] Node Version: v15.0.0
[debug] [2022-05-15T19:04:05.392Z] Time: Mon May 16 2022 02:04:05 GMT+0700 (Indochina Time)
[debug] [2022-05-15T19:04:05.393Z] ----------------------------------------------------------------------
[debug]
[debug] [2022-05-15T19:04:05.566Z] > 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] [2022-05-15T19:04:05.566Z] > authorizing via signed-in user ([email protected])
[info] i emulators: Starting emulators: auth, functions, firestore, storage {"metadata":{"emulator":{"name":"hub"},"message":"Starting emulators: auth, functions, firestore, storage"}}
[warn] ⚠ emulators: It seems that you are running multiple instances of the emulator suite for project codee-club-emu. This may result in unexpected behavior.
[debug] [2022-05-15T19:04:05.746Z] [hub] writing locator at /var/folders/d6/f156_qx93jq7f7068_r3y_940000gn/T/hub-codee-club-emu.json
[warn] ⚠ functions: The following emulators are not running, calls to these services from the Functions emulator will affect production: database, hosting, pubsub {"metadata":{"emulator":{"name":"functions"},"message":"The following emulators are not running, calls to these services from the Functions emulator will affect production: \u001b[1mdatabase, hosting, pubsub\u001b[22m"}}
[warn] ⚠ Your requested "node" version "12" doesn't match your global version "15". Using node@15 from host. {"metadata":{"emulator":{"name":"functions"},"message":"Your requested \"node\" version \"12\" doesn't match your global version \"15\". Using node@15 from host."}}
[debug] [2022-05-15T19:04:06.020Z] defaultcredentials: writing to file /Users/jitarapholpotiwihok/.config/firebase/kannaphongi62_nu_ac.th_application_default_credentials.json
[debug] [2022-05-15T19:04:06.070Z] Setting GAC to /Users/jitarapholpotiwihok/.config/firebase/kannaphongi62_nu_ac.th_application_default_credentials.json {"metadata":{"emulator":{"name":"functions"},"message":"Setting GAC to /Users/jitarapholpotiwihok/.config/firebase/kannaphongi62_nu_ac.th_application_default_credentials.json"}}
[debug] [2022-05-15T19:04:06.084Z] >>> [apiv2][query] GET https://firebase.googleapis.com/v1beta1/projects/codee-club-emu/adminSdkConfig [none]
[debug] [2022-05-15T19:04:06.521Z] <<< [apiv2][status] GET https://firebase.googleapis.com/v1beta1/projects/codee-club-emu/adminSdkConfig 200
[debug] [2022-05-15T19:04:06.521Z] <<< [apiv2][body] GET https://firebase.googleapis.com/v1beta1/projects/codee-club-emu/adminSdkConfig {"projectId":"codee-club-emu","storageBucket":"codee-club-emu.appspot.com","locationId":"us-central"}
[debug] [2022-05-15T19:04:06.716Z] Ignoring unsupported arg: projectId {"metadata":{"emulator":{"name":"firestore"},"message":"Ignoring unsupported arg: projectId"}}
[debug] [2022-05-15T19:04:06.717Z] Ignoring unsupported arg: auto_download {"metadata":{"emulator":{"name":"firestore"},"message":"Ignoring unsupported arg: auto_download"}}
[debug] [2022-05-15T19:04:06.717Z] Starting Firestore Emulator with command {"binary":"java","args":["-Dgoogle.cloud_firestore.debug_log_level=FINE","-Duser.language=en","-jar","/Users/jitarapholpotiwihok/.cache/firebase/emulators/cloud-firestore-emulator-v1.13.1.jar","--host","localhost","--port",4001,"--rules","/Users/jitarapholpotiwihok/Downloads/project/codee-club/common/src/rules/firestore.rules","--functions_emulator","localhost:5001"],"optionalArgs":["port","webchannel_port","host","rules","functions_emulator","seed_from_export"],"joinArgs":false} {"metadata":{"emulator":{"name":"firestore"},"message":"Starting Firestore Emulator with command {\"binary\":\"java\",\"args\":[\"-Dgoogle.cloud_firestore.debug_log_level=FINE\",\"-Duser.language=en\",\"-jar\",\"/Users/jitarapholpotiwihok/.cache/firebase/emulators/cloud-firestore-emulator-v1.13.1.jar\",\"--host\",\"localhost\",\"--port\",4001,\"--rules\",\"/Users/jitarapholpotiwihok/Downloads/project/codee-club/common/src/rules/firestore.rules\",\"--functions_emulator\",\"localhost:5001\"],\"optionalArgs\":[\"port\",\"webchannel_port\",\"host\",\"rules\",\"functions_emulator\",\"seed_from_export\"],\"joinArgs\":false}"}}
[info] i firestore: Firestore Emulator logging to firestore-debug.log {"metadata":{"emulator":{"name":"firestore"},"message":"Firestore Emulator logging to \u001b[1mfirestore-debug.log\u001b[22m"}}
[debug] [2022-05-15T19:04:14.367Z] May 16, 2022 2:04:14 AM com.google.cloud.datastore.emulator.firestore.websocket.WebSocketServer start
INFO: Started WebSocket server on ws://localhost:57640
{"metadata":{"emulator":{"name":"firestore"},"message":"May 16, 2022 2:04:14 AM com.google.cloud.datastore.emulator.firestore.websocket.WebSocketServer start\nINFO: Started WebSocket server on ws://localhost:57640\n"}}
[debug] [2022-05-15T19:04:14.498Z] API endpoint: http:// {"metadata":{"emulator":{"name":"firestore"},"message":"API endpoint: http://"}}
[debug] [2022-05-15T19:04:14.499Z] localhost: {"metadata":{"emulator":{"name":"firestore"},"message":"localhost:"}}
[debug] [2022-05-15T19:04:14.499Z] 4001
If you are using a library that supports the FIRESTORE_EMULATOR_HOST environment variable, run:
export FIRESTORE_EMULATOR_HOST=localhost:4001 {"metadata":{"emulator":{"name":"firestore"},"message":"4001\nIf you are using a library that supports the FIRESTORE_EMULATOR_HOST environment variable, run:\n\n export FIRESTORE_EMULATOR_HOST=localhost:4001"}}
[debug] [2022-05-15T19:04:14.499Z]
Dev App Server is now running.
{"metadata":{"emulator":{"name":"firestore"},"message":"\n\nDev App Server is now running.\n\n"}}
[debug] [2022-05-15T19:04:56.206Z] Ignoring unsupported arg: port {"metadata":{"emulator":{"name":"storage"},"message":"Ignoring unsupported arg: port"}}
[debug] [2022-05-15T19:04:58.987Z] Temp file directory for storage emulator: /var/folders/d6/f156_qx93jq7f7068_r3y_940000gn/T/firebase/storage/blobs {"metadata":{"emulator":{"name":"storage"},"message":"Temp file directory for storage emulator: /var/folders/d6/f156_qx93jq7f7068_r3y_940000gn/T/firebase/storage/blobs"}}
[warn] ⚠ Ruleset uses old version (version [1]). Please update to the latest version (version [2]) in /Users/jitarapholpotiwihok/Downloads/project/codee-club/common/src/rules/storage.rules:0 {"metadata":{"emulator":{"name":"storage"},"message":"Ruleset uses old version (version [1]). Please update to the latest version (version [2]) in /Users/jitarapholpotiwihok/Downloads/project/codee-club/common/src/rules/storage.rules:0"}}
[debug] [2022-05-15T19:05:04.844Z] Ignoring unsupported arg: auto_download {"metadata":{"emulator":{"name":"ui"},"message":"Ignoring unsupported arg: auto_download"}}
[debug] [2022-05-15T19:05:04.844Z] Ignoring unsupported arg: port {"metadata":{"emulator":{"name":"ui"},"message":"Ignoring unsupported arg: port"}}
[debug] [2022-05-15T19:05:04.845Z] Starting Emulator UI with command {"binary":"node","args":["/Users/jitarapholpotiwihok/.cache/firebase/emulators/ui-v1.6.5/server.bundle.js"],"optionalArgs":[],"joinArgs":false} {"metadata":{"emulator":{"name":"ui"},"message":"Starting Emulator UI with command {\"binary\":\"node\",\"args\":[\"/Users/jitarapholpotiwihok/.cache/firebase/emulators/ui-v1.6.5/server.bundle.js\"],\"optionalArgs\":[],\"joinArgs\":false}"}}
[info] i ui: Emulator UI logging to ui-debug.log {"metadata":{"emulator":{"name":"ui"},"message":"Emulator UI logging to \u001b[1mui-debug.log\u001b[22m"}}
[debug] [2022-05-15T19:05:05.274Z] Web / API server started at localhost:4000
{"metadata":{"emulator":{"name":"ui"},"message":"Web / API server started at localhost:4000\n"}}
[info] i functions: Watching "/Users/jitarapholpotiwihok/Downloads/project/codee-club/functions" for Cloud Functions... {"metadata":{"emulator":{"name":"functions"},"message":"Watching \"/Users/jitarapholpotiwihok/Downloads/project/codee-club/functions\" for Cloud Functions..."}}
[debug] [2022-05-15T19:05:05.409Z] Validating nodejs source
[warn] ⚠ functions: package.json indicates an outdated version of firebase-functions. Please upgrade using npm install --save firebase-functions@latest in your functions directory.
[debug] [2022-05-15T19:05:09.649Z] > [functions] package.json contents: {
"name": "@codee-club/functions",
"version": "0.0.10",
"private": true,
"license": "UNLICENSED",
"description": "Server-side web app",
"main": "dist/index.js",
"engines": {
"node": "12"
},
"scripts": {
"build": "tsc -b",
"clean": "rimraf ./dist",
"deploy": "firebase deploy --only functions",
"fix": "eslint . --fix && prettier --loglevel warn --write \"{**/,.}*.{html,css,scss,js,json}\"",
"lint": "eslint . && prettier --check \"{**/,.}*.{html,css,scss,js,json}\"",
"logs": "firebase functions:log",
"rebuild": "yarn clean && yarn build",
"watch": "tsc -w"
},
"dependencies": {
"@codee-club/common": "^0.0.10",
"express": "^4.17.1",
"firebase-admin": "9.9.0",
"firebase-functions": "^3.14.1",
"phin": "3.5.1"
},
"devDependencies": {
"firebase-functions-test": "^0.3.0"
}
}
[debug] [2022-05-15T19:05:09.649Z] Building nodejs source
[debug] [2022-05-15T19:05:09.650Z] Analyzing nodejs backend spec
[info] ✔ functions[us-central1-authNUConnectURL]: http function initialized (http://localhost:5001/codee-club-emu/us-central1/authNUConnectURL). {"metadata":{"emulator":{"name":"functions"},"message":"\u001b[1mhttp\u001b[22m function initialized (http://localhost:5001/codee-club-emu/us-central1/authNUConnectURL)."}}
[info] ✔ functions[us-central1-authNUConnectToken]: http function initialized (http://localhost:5001/codee-club-emu/us-central1/authNUConnectToken). {"metadata":{"emulator":{"name":"functions"},"message":"\u001b[1mhttp\u001b[22m function initialized (http://localhost:5001/codee-club-emu/us-central1/authNUConnectToken)."}}
[info] ✔ functions[us-central1-courseUserImport]: http function initialized (http://localhost:5001/codee-club-emu/us-central1/courseUserImport). {"metadata":{"emulator":{"name":"functions"},"message":"\u001b[1mhttp\u001b[22m function initialized (http://localhost:5001/codee-club-emu/us-central1/courseUserImport)."}}
[debug] [2022-05-15T19:05:14.041Z] addFirestoreTrigger "{\"eventTrigger\":{\"eventType\":\"providers/cloud.firestore/eventTypes/document.update\",\"resource\":\"projects/codee-club-emu/databases/(default)/documents/users/{userId}\",\"service\":\"firestore.googleapis.com\"}}"
[debug] [2022-05-15T19:05:14.042Z] >>> HTTP REQUEST PUT http://localhost:4001/emulator/v1/projects/codee-club-emu/triggers/us-central1-userUpdate-0
{"eventTrigger":{"eventType":"providers/cloud.firestore/eventTypes/document.update","resource":"projects/codee-club-emu/databases/(default)/documents/users/{userId}","service":"firestore.googleapis.com"}}
[debug] [2022-05-15T19:05:14.099Z] May 16, 2022 2:05:14 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
INFO: Detected non-HTTP/2 connection.
{"metadata":{"emulator":{"name":"firestore"},"message":"May 16, 2022 2:05:14 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead\nINFO: Detected non-HTTP/2 connection.\n"}}
[debug] [2022-05-15T19:05:15.632Z] May 16, 2022 2:05:15 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
INFO: Detected HTTP/2 connection.
{"metadata":{"emulator":{"name":"firestore"},"message":"May 16, 2022 2:05:15 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead\nINFO: Detected HTTP/2 connection.\n"}}
[debug] [2022-05-15T19:05:21.872Z] <<< HTTP RESPONSE 200 {"content-type":"application/json","content-length":"4"}
[info] ✔ functions[us-central1-userUpdate]: firestore function initialized. {"metadata":{"emulator":{"name":"functions"},"message":"\u001b[1mfirestore\u001b[22m function initialized."}}
[debug] [2022-05-15T19:05:21.875Z] addFirestoreTrigger "{\"eventTrigger\":{\"eventType\":\"providers/cloud.firestore/eventTypes/document.create\",\"resource\":\"projects/codee-club-emu/databases/(default)/documents/runners/{runnerId}\",\"service\":\"firestore.googleapis.com\"}}"
[debug] [2022-05-15T19:05:21.875Z] >>> HTTP REQUEST PUT http://localhost:4001/emulator/v1/projects/codee-club-emu/triggers/us-central1-runnerUpdate-0
{"eventTrigger":{"eventType":"providers/cloud.firestore/eventTypes/document.create","resource":"projects/codee-club-emu/databases/(default)/documents/runners/{runnerId}","service":"firestore.googleapis.com"}}
[debug] [2022-05-15T19:05:21.933Z] May 16, 2022 2:05:21 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
INFO: Detected non-HTTP/2 connection.
{"metadata":{"emulator":{"name":"firestore"},"message":"May 16, 2022 2:05:21 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead\nINFO: Detected non-HTTP/2 connection.\n"}}
[debug] [2022-05-15T19:05:22.070Z] <<< HTTP RESPONSE 200 {"content-type":"application/json","content-length":"4"}
[info] ✔ functions[us-central1-runnerUpdate]: firestore function initialized. {"metadata":{"emulator":{"name":"functions"},"message":"\u001b[1mfirestore\u001b[22m function initialized."}}
[debug] [2022-05-15T19:05:22.075Z] addFirestoreTrigger "{\"eventTrigger\":{\"eventType\":\"providers/cloud.firestore/eventTypes/document.create\",\"resource\":\"projects/codee-club-emu/databases/(default)/documents/submissionJobs/{submissionId}\",\"service\":\"firestore.googleapis.com\"}}"
[debug] [2022-05-15T19:05:22.075Z] >>> HTTP REQUEST PUT http://localhost:4001/emulator/v1/projects/codee-club-emu/triggers/us-central1-submissionCreate-0
{"eventTrigger":{"eventType":"providers/cloud.firestore/eventTypes/document.create","resource":"projects/codee-club-emu/databases/(default)/documents/submissionJobs/{submissionId}","service":"firestore.googleapis.com"}}
[debug] [2022-05-15T19:05:22.153Z] May 16, 2022 2:05:22 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
INFO: Detected non-HTTP/2 connection.
{"metadata":{"emulator":{"name":"firestore"},"message":"May 16, 2022 2:05:22 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead\nINFO: Detected non-HTTP/2 connection.\n"}}
[debug] [2022-05-15T19:05:22.159Z] <<< HTTP RESPONSE 200 {"content-type":"application/json","content-length":"4"}
[info] ✔ functions[us-central1-submissionCreate]: firestore function initialized. {"metadata":{"emulator":{"name":"functions"},"message":"\u001b[1mfirestore\u001b[22m function initialized."}}
[info] i functions[us-central1-everyDay]: function ignored because the pubsub emulator does not exist or is not running. {"metadata":{"emulator":{"name":"functions"},"message":"function ignored because the pubsub emulator does not exist or is not running."}}
[info] ✔ functions[us-central1-everyDayTest]: http function initialized (http://localhost:5001/codee-club-emu/us-central1/everyDayTest). {"metadata":{"emulator":{"name":"functions"},"message":"\u001b[1mhttp\u001b[22m function initialized (http://localhost:5001/codee-club-emu/us-central1/everyDayTest)."}}
[info]
┌─────────────────────────────────────────────────────────────┐
│ ✔ All emulators ready! It is now safe to connect your app. │
│ i View Emulator UI at http://localhost:4000 │
└─────────────────────────────────────────────────────────────┘
┌────────────────┬────────────────┬─────────────────────────────────┐
│ Emulator │ Host:Port │ View in Emulator UI │
├────────────────┼────────────────┼─────────────────────────────────┤
│ Authentication │ localhost:9099 │ http://localhost:4000/auth │
├────────────────┼────────────────┼─────────────────────────────────┤
│ Functions │ localhost:5001 │ http://localhost:4000/functions │
├────────────────┼────────────────┼─────────────────────────────────┤
│ Firestore │ localhost:4001 │ http://localhost:4000/firestore │
├────────────────┼────────────────┼─────────────────────────────────┤
│ Storage │ localhost:9199 │ http://localhost:4000/storage │
└────────────────┴────────────────┴─────────────────────────────────┘
Emulator Hub running at localhost:4400
Other reserved ports: 4500
Issues? Report them at https://github.com/firebase/firebase-tools/issues and attach the *-debug.log files.
[debug] [2022-05-15T19:12:39.838Z] Received signal SIGHUP 1
[info]
[info] i emulators: Received SIGHUP for the first time. Starting a clean shutdown.
[info] i emulators: Please wait for a clean shutdown or send the SIGHUP signal again to stop right now.
[info] i emulators: Shutting down emulators. {"metadata":{"emulator":{"name":"hub"},"message":"Shutting down emulators."}}
[info] i ui: Stopping Emulator UI {"metadata":{"emulator":{"name":"ui"},"message":"Stopping Emulator UI"}}
[debug] [2022-05-15T19:12:39.868Z] Ignoring signal SIGHUP due to short delay of 34ms
[warn] ⚠ Emulator UI has exited upon receiving signal: SIGINT
[info] i functions: Stopping Functions Emulator {"metadata":{"emulator":{"name":"functions"},"message":"Stopping Functions Emulator"}}
[info] i firestore: Stopping Firestore Emulator {"metadata":{"emulator":{"name":"firestore"},"message":"Stopping Firestore Emulator"}}
[debug] [2022-05-15T19:12:39.889Z] *** shutting down gRPC server since JVM is shutting down
{"metadata":{"emulator":{"name":"firestore"},"message":"*** shutting down gRPC server since JVM is shutting down\n"}}
[debug] [2022-05-15T19:12:40.350Z] *** server shut down
{"metadata":{"emulator":{"name":"firestore"},"message":"*** server shut down\n"}}
[error]
[error] Error: Storage Emulator Rules runtime exited unexpectedly.
[debug] [2022-05-15T19:12:40.422Z] Error: write EIO
at afterWriteDispatched (node:internal/stream_base_commons:162:15)
at writeGeneric (node:internal/stream_base_commons:153:3)
at WriteStream.Socket._writeGeneric (node:net:764:11)
at WriteStream.Socket._write (node:net:776:8)
at writeOrBuffer (node:internal/streams/writable:382:12)
at WriteStream.Writable.write (node:internal/streams/writable:333:10)
at Console.log (/usr/local/lib/node_modules/firebase-tools/node_modules/winston/lib/winston/transports/console.js:79:23)
at Console._write (/usr/local/lib/node_modules/firebase-tools/node_modules/winston-transport/index.js:103:17)
at doWrite (/usr/local/lib/node_modules/firebase-tools/node_modules/winston-transport/node_modules/readable-stream/lib/_stream_writable.js:428:64)
at writeOrBuffer (/usr/local/lib/node_modules/firebase-tools/node_modules/winston-transport/node_modules/readable-stream/lib/_stream_writable.js:417:5)
at Console.Writable.write (/usr/local/lib/node_modules/firebase-tools/node_modules/winston-transport/node_modules/readable-stream/lib/_stream_writable.js:334:11)
at DerivedLogger.ondata (/usr/local/lib/node_modules/firebase-tools/node_modules/readable-stream/lib/_stream_readable.js:681:20)
at DerivedLogger.emit (node:events:339:22)
at DerivedLogger.EventEmitter.emit (node:domain:486:12)
at addChunk (/usr/local/lib/node_modules/firebase-tools/node_modules/readable-stream/lib/_stream_readable.js:298:12)
at readableAddChunk (/usr/local/lib/node_modules/firebase-tools/node_modules/readable-stream/lib/_stream_readable.js:280:11)
[error]
[error] Error: An unexpected error has occurred.