firebase / firebase/firebase-tools

Emulator export fails for Dataconnect

Open
#8,612 3 comments 0 reactions 0 assignees View on GitHub
emulator: dataconnect type: bug
Dominant language
TypeScript
Stars
4.5k
Forks
1.3k
Avg merge
1d 12h
Merged PRs (30d)
84

Description

### [REQUIRED] Environment info

**firebase-tools:** v14.4.0

**Platform:** macOS

### [REQUIRED] Test case

NA

### [REQUIRED] Steps to reproduce

1. Create new firebase project with `dataconnect` enabled
2. Run following command:

```bash
firebase emulators:start --export-on-exit=./emulator-data
```

3. Give exit command with `Ctrl + C`
4. See error while exporting emulator data

### [REQUIRED] Expected behavior

All the `dataconnect` emulator data to be stored inside the `emulator-data/dataconnect_export/postgres.tar.gz`

### [REQUIRED] Actual behavior

```console
i emulators: Received SIGINT (Ctrl-C) for the first time. Starting a clean shutdown.
i emulators: Please wait for a clean shutdown or send the SIGINT (Ctrl-C) signal again to stop right now.
i Automatically exporting data using --export-on-exit "./emulator-data" please wait for the export to finish...
i Found running emulator hub for project development-smileit at http://127.0.0.1:4400
i Exporting data to: /usr/fproject/functions/emulator-data
i emulators: Received export request. Exporting data to /usr/fproject/functions/emulator-data.
⚠ emulators: Export failed: ENOENT: no such file or directory, open '/usr/fproject/firebase-export-1747382123869exTRTX/dataconnect_export/postgres.tar.gz'
⚠ FirebaseError: Export request failed, see emulator logs for more information.
⚠ Automatic export to "./emulator-data" failed, going to exit now...
i emulators: Shutting down emulators.
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.