Revisit whether CLI should wipe the emulator export directory
See original GitHub issue[REQUIRED] Environment info
firebase-tools:
└ firebase --version
9.16.0
Platform: macOS
[REQUIRED] Test case
- Not sure what I should put here.
[REQUIRED] Steps to reproduce
- Start the emulators with auth and database imports
- Shut down emulators with one ctrl+c
[REQUIRED] Expected behavior
Emulators shut down and data is exported.
[REQUIRED] Actual behavior
Emulators print an error and the WHOLE FOLDER IS DELETED.
I am also unable to see the logs as the logs are deleted together with the working directory.
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 "." please wait for the export to finish...
i Found running emulator hub for project hierfoods-develop at http://localhost:4400
i Exporting data to: /Users/misha/Source/hierfoods-quickfixes/functions
i emulators: Received export request. Exporting data to /Users/misha/Source/hierfoods-quickfixes/functions.
⚠ emulators: Export failed: ENOENT: no such file or directory, link '/Users/misha/Source/hierfoods-quickfixes/functions/firebase-export-1627057765461MzTjpC' -> '/Users/misha/Source/hierfoods-quickfixes/functions'
⚠ Export request failed, see emulator logs for more information.
⚠ Automatic export to "." failed, going to exit now...
i emulators: Shutting down emulators.
i ui: Stopping Emulator UI
⚠ Emulator UI has exited upon receiving signal: SIGINT
i functions: Stopping Functions Emulator
i hosting: Stopping Hosting Emulator
i database: Stopping Database Emulator
i auth: Stopping Authentication Emulator
i hub: Stopping emulator hub
i logging: Stopping Logging Emulator
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Install, configure and integrate Local Emulator Suite - Firebase
Instruct the emulator(s) to export data to a directory when shutdown occurs, as described for the emulators:export command. The export directory can be ......
Read more >Dealing With Problems With Running Tests | Detox
This page is about issues related to executing your Detox tests, typically triggered when running detox test (and not detox build, for example)....
Read more >Could not save data to emulator - "Did not find any running ...
1 Answer 1 · ran sudo firebase emulators:export ./exported and got a new error file not found!! · control c the running firebase...
Read more >Tampering and Reverse Engineering on Android
In order to extract strings from native code used in an Android application, you can use GUI tools such as Ghidra or Cutter...
Read more >Android Platform Guide - Apache Cordova
Note: The directories above are generally located in the Android SDK ROOT. ... If you wish to run your Cordova app on an...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
My two cents: we should go with #4127 in the short term but find a way to do exports without wiping the target directory.
The wiping behavior was introduced in #3511 to solve an unrelated issue but maybe we can find a better solution. Ideas are welcomed!
Consolidating the discussion to #3962.