Skip to content

Emulator UI has exited with code: 1 #939

@arturosanz

Description

@arturosanz

Describe the bug

The Emulator UI can't start.

To Reproduce

Follow the steps of the Local Development with the Firebase Emulator Suite codelab. Running the emulators with $ firebase emulators:start --import=./seed on step 3 fails because of the UI emulator. The rest seem to work fine.

Expected behavior

┌─────────────────────────────────────────────────────────────┐
│ ✔  All emulators ready! It is now safe to connect your app. │
└─────────────────────────────────────────────────────────────┘

┌────────────────┬────────────────┐
│ Emulator       │ Host:Port      │
├────────────────┼────────────────┤
│ Authentication │ 127.0.0.1:9099 │
├────────────────┼────────────────┤
│ Functions      │ 127.0.0.1:5001 │
├────────────────┼────────────────┤
│ Firestore      │ 127.0.0.1:8080 │
├────────────────┼────────────────┤
│ Hosting        │ 127.0.0.1:5000 │
└────────────────┴────────────────┘
  Emulator Hub running at 127.0.0.1:4400
  Other reserved ports: 4500, 9150

Screenshots

❯ firebase emulators:start --import=./seed
i  emulators: Starting emulators: auth, functions, firestore, hosting
⚠  functions: The following emulators are not running, calls to these services from the Functions emulator will affect production: database, pubsub, storage
i  firestore: Importing data from /$MY_LOCAL_PATH/emulators-codelab/codelab-initial-state/seed/firestore_export/firestore_export.overall_export_metadata
i  firestore: Firestore Emulator logging to firestore-debug.log
✔  firestore: Firestore Emulator UI websocket is running on 9150.
i  hosting[$MY_PROJECT_ID]: Serving hosting files from: public
✔  hosting[$MY_PROJECT_ID]: Local server: http://127.0.0.1:5000
i  ui: Emulator UI logging to ui-debug.log
⚠  ui: Fatal error occurred:
   Emulator UI has exited with code: 1,
   stopping all running emulators
i  ui: Stopping Emulator UI
⚠  ui: Error stopping Emulator UI
i  functions: Stopping Functions Emulator
i  hosting: Stopping Hosting Emulator
i  firestore: Stopping Firestore Emulator
i  auth: Stopping Authentication Emulator
i  eventarc: Stopping Eventarc Emulator
i  hub: Stopping emulator hub
i  logging: Stopping Logging Emulator

ui-debug.log

Desktop (please complete the following information):

  • node v16.20.0
  • npm 8.19.4
  • firebase CLI 11.26.0
  • OS: MacOS Monterey 12.6.3
  • Browser: Brave
  • Version: 1.49.120 Chromium: 111.0.5563.64

Additional context

I was able to temporarily "ignore" the problem by adding "ui": { "enabled": false } to the firebase.json file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions