Dev/Error

Firebase - Functions Emulator Error

healthyryu 2022. 2. 10. 10:27

Issue

 

% firebase emulators:start
i  emulators: Starting emulators: functions, firestore
⚠  emulators: It seems that you are running multiple instances of the emulator suite for project ihp-test-6198e. This may result in unexpected behavior.
⚠  functions: The following emulators are not running, calls to these services from the Functions emulator will affect production: auth, database, hosting, pubsub, storage
✔  functions: Using node@16 from host.
i  emulators: Shutting down emulators.
i  functions: Stopping Functions Emulator
i  hub: Stopping emulator hub
⚠  firestore: Port 8080 is not open on localhost, could not start Firestore Emulator.
⚠  firestore: To select a different host/port, specify that host/port in a firebase.json config file:
      {
        // ...
        "emulators": {
          "firestore": {
            "host": "HOST",
            "port": "PORT"
          }
        }
      }
i  emulators: Shutting down emulators.

Error: Could not start Firestore Emulator, port taken.

종료되지 않은 에뮬레이터가 있기 때문에 에뮬레이터를 시작했을때 문제가 되는 것이다. 그래서 기존에 띄운 에뮬레이터를 종료시키고 다시 재기동 시키면 된다.

 

 

solution

lsof -ti tcp:8080 | xargs kill

 

참고

https://fredriccliver.medium.com/port-8080-is-not-open-on-localhost-could-not-start-firestore-emulator-15c8c367d219

 

Port 8080 is not open on localhost, could not start Firestore Emulator.

This error is because of the failed quitting from firebase emulator. You already have the process of previous firebase emulator.

fredriccliver.medium.com

 

반응형