-
Notifications
You must be signed in to change notification settings - Fork 902
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Firebase Storage Emulator crashes unexpectedly since v10.3.0 #4326
Comments
Hey guys, I have a similar issue here, in my case happen when clone project in a fresh new folder, in PC or in a pipeline CI/CD process. But in my case, not uploaded any files in my emulated storage eat. So the "storage_export/blob" and "storage_export/metadata" folder are empty and git don't track then. It cause a erro that don't find that directories in storage emulator startup. To solve it for now, i create a "dont-delete-it.md" file inside that folders for git track and create in cloning, and all works fine. |
@DevSchmidtchen Anything you can share about what kind of files / workloads you're doing with the exports? It's hard to reproduce this without the specific files @AlexVFornazieri |
@yuchenshi I'm observing the same behavior. File type is
The error only occurs when you try to request the file (either via the emulator UI or download URL). Seeing the error on every release after
|
@yuchenshi Here is a reproduction: https://github.com/charlesfries/firebase-tools-repro |
My guess is that this is because of #3647 which flattened the emulator directory structure and is not backwards-compatible with previously-exported emulator states prior to v10.3.0. TBH we should have bumped the major version here to note this incompatibility but to help address current users' needs, we can build in backwards compatibility into the importer. @tohhsinpei Could you help with this issue? |
For me this happens even with a newer export...
|
As a temporary workaround, I manually removed the Interestingly, I was encountered with this error. But I have no storage triggers. I only have a single auth trigger in my functions directory. Is this connected?
|
@DibyodyutiMondal Re: bug happening with a newer export, I'll put in an additional fix for it, thanks for pointing this out! Edit: Actually, I believe the fix I put in in #4358 suffices. The reason the newer export also fails is because we needed to URI decode the file name, which I have done. |
[REQUIRED] Environment info
firebase-tools: 10.4.0
Platform: macOS Monterey (12.3)
[REQUIRED] Test case
firebase emulators:start --import ./emulator_data
)[REQUIRED] Steps to reproduce
firebase emulators:start --import ./emulator_data
)2.[REQUIRED] Expected behavior
The storage contents are shown and you can browse through them and upload new files. This works using version
10.2.2
of firebase emulator but since the update it doesn't work anymore.[REQUIRED] Actual behavior
The emulator crashes.
The text was updated successfully, but these errors were encountered: