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

Debug firebase functions deployment (grpc breaks functions deployment) #77

Closed
rfprod opened this issue Apr 12, 2020 · 0 comments · Fixed by #114
Closed

Debug firebase functions deployment (grpc breaks functions deployment) #77

rfprod opened this issue Apr 12, 2020 · 0 comments · Fixed by #114
Assignees
Labels
Bug Something isn't working. CI/CD Continuous integration and continuous delivery related changes. DevOps Developer operations related changes. Firebase Firebase deployment related changes.

Comments

@rfprod
Copy link
Owner

rfprod commented Apr 12, 2020

Describe the bug
Currently functions are not deployed to firebase both from local setup and from CI.

To Reproduce

  1. Execute command
firebase deploy --only functions:graphql,functions:login,functions:logout,functions:signup

Expected behavior
Functions are deployed to firebase.

Additional context
Terminal log

i  functions: updating Node.js 10 (Beta) function logout(us-central1)...
i  functions: updating Node.js 10 (Beta) function signup(us-central1)...
i  functions: updating Node.js 10 (Beta) function graphql(us-central1)...
⚠  functions[graphql(us-central1)]: Deployment error.
Error setting up the execution environment for your function. Please try deploying again after a few minutes.
⚠  functions[login(us-central1)]: Deployment error.
Error setting up the execution environment for your function. Please try deploying again after a few minutes.
⚠  functions[logout(us-central1)]: Deployment error.
Error setting up the execution environment for your function. Please try deploying again after a few minutes.
⚠  functions[signup(us-central1)]: Deployment error.
Error setting up the execution environment for your function. Please try deploying again after a few minutes.


Functions deploy had errors with the following functions:
	graphql
	login
	logout
	signup


To try redeploying those functions, run:
    firebase deploy --only functions:graphql,functions:login,functions:logout,functions:signup

Check this files which have commented code regarding firebase environment and grpc:

  • apps/api/src/main.ts
  • apps/api/src/app/modules/grpc/grpc-api-client.options.ts

Install required dependencies for grpc support in /functions directory.

Revise .devops directory contents.

@rfprod rfprod added the CI/CD Continuous integration and continuous delivery related changes. label Apr 12, 2020
@rfprod rfprod self-assigned this Apr 12, 2020
@rfprod rfprod added Firebase Firebase deployment related changes. Bug Something isn't working. labels Apr 12, 2020
@rfprod rfprod changed the title Debug firebase functions deployment Debug firebase functions deployment (grpc breaks functions deployment) Apr 12, 2020
@rfprod rfprod added the DevOps Developer operations related changes. label Apr 13, 2020
rfprod added a commit that referenced this issue Jun 11, 2020
removed junk from proto library;
revised main firebase.json located in client app;
updated project
dependencies including jest;
removed unneeded jest jsdom global mocks;
fixed build.sh;

BREAKING CHANGE: reinstall project dependencies; use yarn

fix #107, fix #77
rfprod added a commit that referenced this issue Jun 11, 2020
removed junk from proto library;
revised main firebase.json located in client app;
updated project
dependencies including jest;
removed unneeded jest jsdom global mocks;
fixed build.sh;

BREAKING CHANGE: reinstall project dependencies; use yarn

fix #107, fix #77

fix(shell): build.sh report usage method name was changed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working. CI/CD Continuous integration and continuous delivery related changes. DevOps Developer operations related changes. Firebase Firebase deployment related changes.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant