question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
yuchenshicommented, Feb 8, 2022

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!

0reactions
yuchenshicommented, May 16, 2022

Consolidating the discussion to #3962.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found