Advertisement
Guest User

Firebase Emulator Startup Issue

a guest
Sep 5th, 2023
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.26 KB | None | 0 0
  1. [REQUIRED] Environment info firebase-tools: 12.5.2
  2.  
  3. Platform: macOS Big Sur version 11.4, Node v18.16.0
  4.  
  5. [REQUIRED] Problem Description
  6.  
  7. When running the command firebase emulators:start --only functions,firestore, the following error occurs:
  8.  
  9. i emulators: Starting emulators: functions, firestore ⚠ functions: The following emulators are not running, calls to these services from the Functions emulator will affect production: auth, database, hosting, pubsub, storage ⚠ firestore: Cloud Firestore Emulator does not support multiple databases yet. ⚠ firestore: Did not find a Cloud Firestore rules file specified in a firebase.json config file. ⚠ firestore: The emulator will default to allowing all reads and writes. Learn more about this option: https://firebase.google.com/docs/emulator-suite/install_and_configure#security_rules_configuration. i firestore: Firestore Emulator logging to firestore-debug.log ✔ firestore: Firestore Emulator UI websocket is running on 9150. i ui: Emulator UI logging to ui-debug.log i functions: Watching "/Users/jasonbourne/Desktop/fhir-server" for Cloud Functions... ✔ functions: Using node@18 from host. Serving at port 8751
  10.  
  11. node:events:491 throw er; // Unhandled 'error' event ^
  12.  
  13. Error: listen EADDRINUSE: address already in use :::8751 at Server.setupListenHandle [as _listen2] (node:net:1740:16) at listenInCluster (node:net:1788:12) at Server.listen (node:net:1876:7) at Server.listen (/Users/jasonbourne/Desktop/fhir-server/node_modules/@asymmetrik/node-fhir-server-core/dist/server/server.js:322:14) at Object. (/Users/jsonbourne/Desktop/fhir-server/index.js:83:12) at Module._compile (node:internal/modules/cjs/loader:1254:14) at Module._extensions..js (node:internal/modules/cjs/loader:1308:10) at Module.load (node:internal/modules/cjs/loader:1117:32) at Module._load (node:internal/modules/cjs/loader:958:12) at Module.require (node:internal/modules/cjs/loader:1141:19) Emitted 'error' event on Server instance at: at emitErrorNT (node:net:1767:8) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { code: 'EADDRINUSE', errno: -48, syscall: 'listen', address: '::', port: 8751 }
  14.  
  15. Node.js v18.16.0
  16.  
  17. ⬢ functions: Failed to load function definition from source: FetchError: request to http://127.0.0.1:8751/__/functions.yaml failed, reason: socket hang up
  18.  
  19. [REQUIRED] Firebase Configuration (firebase.json)
  20.  
  21. { "functions": { "source": ".", "runtime": "nodejs18" }, "hosting": { "public": "public", "ignore": [ "firebase.json", "/.*", "/node_modules/" ], "rewrites": [ { "source": "", "destination": "/index.html" } ] }, "emulators": { "auth": { "port": 5001 }, "functions": { "port": 34197 }, "firestore": { "port": 8080 }, "database": { "port": 9000 }, "hosting": { "port": 5004 }, "pubsub": { "port": 8085 }, "storage": { "port": 9199 }, "eventarc": { "port": 9299 }, "ui": { "enabled": true }, "singleProjectMode": true } }
  22.  
  23. [REQUIRED] Problem I Am Solving
  24.  
  25. I am working on integrating a Fast Healthcare Interoperability Resources (FHIR) server with Firebase services to create a robust and scalable backend for healthcare applications. The specific challenges I am addressing are as follows:
  26.  
  27. Scalable Database Services
  28. Handling FHIR API Requests
  29. User Authentication and Security
  30. Testing in Firebase Emulator Environment
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement