Skip to content
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

emulator import file seems to fail on ci / ubuntu based systems #2433

Closed
LanderBeeuwsaert opened this issue Jul 8, 2020 · 4 comments
Closed

Comments

@LanderBeeuwsaert
Copy link

[REQUIRED] Environment info

firebase-tools:

  • firebase-tools@8.4.3

Platform:
Ubuntu

[REQUIRED] Test case

[REQUIRED] Steps to reproduce

this command:
firebase emulators:start --import=./emulator_data

works locally but gives the following error on our CI build and ubuntu local systems (that is using an ubuntu image):

`> e2e_tests@1.0.0 run-clientapp /opt/atlassian/pipelines/agent/build/e2e_tests

concurrently "firebase emulators:start --import=./emulator_data" "cd .. && cd clientapp && npm run start-em"
[1]
[1] > clientapp@ start-em /opt/atlassian/pipelines/agent/build/clientapp
[1] > ng serve --configuration emulator
[1]
[0] ⚠ emulators: You are not currently authenticated so some features may not work correctly. Please run firebase login to authenticate the CLI.
[0] i emulators: Starting emulators: functions, firestore, database, hosting
[0] ⚠ Your requested "node" version "10" doesn't match your global version "12"
[0] i firestore: Importing data from /opt/atlassian/pipelines/agent/build/e2e_tests/emulator_data/firestore_export/firestore_export.overall_export_metadata
[0] ⚠ It appears you are running in a CI environment. You can avoid downloading the Firestore Emulator repeatedly by caching the /root/.cache/firebase/emulators directory.
[0] i firestore: downloading cloud-firestore-emulator-v1.11.4.jar...
[0]
[0] i firestore: Firestore Emulator logging to firestore-debug.log
[0]
[0] Error: firestore: Firestore Emulator has exited with code: 1
[0] firebase emulators:start --import=./emulator_data exited with code 1
[1] ****************************************************************************************
[1] This is a simple server for use in testing or debugging Angular applications locally.
[1] It hasn't been reviewed for security issues.
[1]
[1] DON'T USE IT FOR PRODUCTION!
***************************************`

the underlying cause seems to be:

Caused by: java.io.FileNotFoundException: /home/tvermeir/devel/confero-cloud/e2e_tests/emulator_data/firestore_export/all_namespaces\all_kinds\all_namespaces_all_kinds.export_metadata (No such file or directory
=> see the directory slashes that first are / and then are \

[REQUIRED] Expected behavior

that this doesn't happen.

[REQUIRED] Actual behavior

@google-oss-bot
Copy link
Contributor

This issue does not have all the information required by the template. Looks like you forgot to fill out some sections. Please update the issue with more information.

@samtstern
Copy link
Contributor

@LanderBeeuwsaert this looks similar to this issue:
#2421

I see both \ and / in the path from your FileNotFoundException ... did you maybe do your export on Windows and then attempt to import it on Linux?

@samtstern samtstern added Needs: Author Feedback Issues awaiting author feedback emulator-suite labels Jul 8, 2020
@LanderBeeuwsaert
Copy link
Author

@samtstern yes indeed, the export was done on a windows (my local computer) and the import is done during CI on a Linux. So I agree that it's related to 2421 most probably, and that the emulator import/export fails between different platforms.
If you prefer we can close this issue and I'll just subscribe to 2421?

@google-oss-bot google-oss-bot added Needs: Attention and removed Needs: Author Feedback Issues awaiting author feedback labels Jul 8, 2020
@samtstern
Copy link
Contributor

@LanderBeeuwsaert thanks for the quick response. As you said, let's consolidate on #2421

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants