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

Attribution Reporting Demo: Firebase fails to start up due to "Extensions Emulator is running but Functions emulator is not" #63

Open
andrei-m opened this issue Nov 20, 2024 · 0 comments

Comments

@andrei-m
Copy link

Expected Behavior

Following the Attribution Reporting demo setup instructions as documented: Step 2 in "Running locally" should start up the demo as documented.

Actual Behavior

The firebase command firebase emulators:start --project none fails with this error:

(node:76916) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
⚠  emulators: You are not currently authenticated so some features may not work correctly. Please run firebase login to authenticate the CLI.
i  emulators: Starting emulators: functions, hosting, extensions
⬢  extensions: Unable to look up project number for none.
 If this is a real project, ensure that you are logged in and have access to it.
 If this is a fake project, please use a project ID starting with 'demo-' to skip production calls.
 Continuing with a fake project number - secrets and other features that require production access may behave unexpectedly.
⚠  emulators: It seems that you are running multiple instances of the emulator suite for project none. This may result in unexpected behavior.
⚠  functions: The functions emulator is configured but there is no functions source directory. Have you run firebase init functions?
⚠  hosting: Could not fetch web app configuration and there is no cached configuration on this machine. Check your internet connection and make sure you are authenticated. To continue, you must call firebase.initializeApp({...}) in your code before using Firebase.
i  hosting[arapi-home]: Serving hosting files from: sites/home
✔  hosting[arapi-home]: Local server: http://127.0.0.1:8080
i  hosting[arapi-adtech]: Serving hosting files from: sites/adtech
✔  hosting[arapi-adtech]: Local server: http://127.0.0.1:8085
i  hosting[arapi-advertiser]: Serving hosting files from: sites/advertiser
✔  hosting[arapi-advertiser]: Local server: http://127.0.0.1:8086
i  hosting[arapi-publisher]: Serving hosting files from: sites/publisher
✔  hosting[arapi-publisher]: Local server: http://127.0.0.1:8087

Error: Extensions Emulator is running but Functions emulator is not. This should never happen.

Having trouble? Try firebase [command] --help

Steps to Reproduce the Problem

  1. Install Node through NVM as documented in the attribution-reporting README
  2. npm install -g firebase-tools
  3. npm install in the attribution-reporting/functions folder
  4. firebase emulators:start --project none in the attribution-reporting folder

There might also be a mismatch between newer firebase (requires Node 18 or newer) and attribution-reporting/functions, which produces this error when attempting to npm install with Node 22:

npm warn old lockfile
npm warn old lockfile The package-lock.json file was created with an old version of npm,
npm warn old lockfile so supplemental metadata must be fetched from the registry.
npm warn old lockfile
npm warn old lockfile This is a one-time fix-up, please be patient...
npm warn old lockfile
npm warn EBADENGINE Unsupported engine {
npm warn EBADENGINE   package: '[email protected]',
npm warn EBADENGINE   required: { node: '14' },
npm warn EBADENGINE   current: { node: 'v22.11.0', npm: '10.9.0' }
npm warn EBADENGINE }

I can build attribution-reporting/functions with node 14, but cannot run the firebase CLI with that node version.

Specifications

  • Version: trust-safety-demo commit 9deee75
  • Platform: Node 14 for attribution-reporting/functions ; Node 22 for Firebase; Ubuntu 20.x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant