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.

[firestore:export] Error: write after end

See original GitHub issue

Environment info

firebase-tools: 8.4.3 Platform: Windows Nodejs version: 10.16.0 Terminal: Hyper

Test case

I get this error when I run more than one export with an instance of firestore emulator running. See this screen capture for more details : image

Steps to reproduce

  1. Run the firestore emulator :
firebase emulators:export ./data
  1. Run a first export :
firebase emulators:export ./data

The export should be work fine.

  1. Run an another export :
firebase emulators:export ./data

This export throw an error.

Expected behavior

I want made more than one export.

Actual behavior

When I try to open the firebase-debug.log file, I get an error. image I think the trouble is due to the logging which is lock by one of the two command. When I run the second export the logger can’t write into the firebase-debug.log.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
samtsterncommented, Aug 10, 2020

@andirayo thank you for confirming it’s fixed! That’s great news, since I really had no good ideas on how to solve this problem haha.

1reaction
samtsterncommented, Aug 7, 2020

Has anyone tried this with 8.7.0 and see if it still fails? I am wondering if https://github.com/firebase/firebase-tools/issues/2464 helped at all, even though it was a fix for a different issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Export and import data | Firestore - Firebase
On failure, the page displays an error message. Use the firestore export command to export all the documents in your database, replacing [BUCKET_NAME]...
Read more >
Error importing .json file to Firestore with firestore-import
I exported my Firestore database using firestore-export and wrote it to a json file. I had to read this thread in order to...
Read more >
Exporting and Importing Entities - Datastore - Google Cloud
This page describes how to export and import Firestore in Datastore mode entities using the managed export and import service. The managed export...
Read more >
How to fix Firestore Error: PERMISSION_DENIED - Medium
That's by far the most common and annoying error that you can get when you try to perform a Query against a Cloud...
Read more >
How to use the firebase-functions.firestore function in ... - Snyk
database().ref(START_DOCUMENT_NAME); await ref.set({ start: new Date().toISOString() }); ref.once("value", (snap) => { res.json({ data: snap }); }); }); exports ...
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