simondotm / nx-firebase

Firebase plugin for Nx Monorepos
https://www.npmjs.com/package/@simondotm/nx-firebase
MIT License
175 stars 31 forks source link

NX 17.0.0 not finding the workspace libraries #163

Closed pikilon closed 8 months ago

pikilon commented 8 months ago

Steps to reproduce

Current behavior

Console output

Could not create or update Cloud Run service searchevents, Container Healthcheck failed. Revision 'searchevents-00001-bay' is not ready and cannot serve traffic. The user-provided container failed to start and listen on the port defined provided by the PORT=8080 environment variable. Logs for this revision might contain more information.
Logs URL: https://console.cloud.google.com/logs/viewer?project=my-project-core&resource=cloud_run_revision/service_name/searchevents/revision_name/searchevents-00001-bay&advancedFilter=resource.type%3D%22cloud_run_revision%22%0Aresource.labels.service_name%3D%22searchevents%22%0Aresource.labels.revision_name%3D%22searchevents-00001-bay%22 
For more troubleshooting guidance, see https://cloud.google.com/run/docs/troubleshooting#container-failed-to-start

Could not create or update Cloud Run service onmessagecreated, Container Healthcheck failed. Revision 'onmessagecreated-00001-yoh' is not ready and cannot serve traffic. The user-provided container failed to start and listen on the port defined provided by the PORT=8080 environment variable. Logs for this revision might contain more information.
Logs URL: https://console.cloud.google.com/logs/viewer?project=my-project-core&resource=cloud_run_revision/service_name/onmessagecreated/revision_name/onmessagecreated-00001-yoh&advancedFilter=resource.type%3D%22cloud_run_revision%22%0Aresource.labels.service_name%3D%22onmessagecreated%22%0Aresource.labels.revision_name%3D%22onmessagecreated-00001-yoh%22 
For more troubleshooting guidance, see https://cloud.google.com/run/docs/troubleshooting#container-failed-to-start

Could not create or update Cloud Run service onparticipationwritten, Container Healthcheck failed. Revision 'onparticipationwritten-00001-juv' is not ready and cannot serve traffic. The user-provided container failed to start and listen on the port defined provided by the PORT=8080 environment variable. Logs for this revision might contain more information.
Logs URL: https://console.cloud.google.com/logs/viewer?project=my-project-core&resource=cloud_run_revision/service_name/onparticipationwritten/revision_name/onparticipationwritten-00001-juv&advancedFilter=resource.type%3D%22cloud_run_revision%22%0Aresource.labels.service_name%3D%22onparticipationwritten%22%0Aresource.labels.revision_name%3D%22onparticipationwritten-00001-juv%22 
For more troubleshooting guidance, see https://cloud.google.com/run/docs/troubleshooting#container-failed-to-start

Could not create or update Cloud Run service oneventwritten, Container Healthcheck failed. Revision 'oneventwritten-00001-mez' is not ready and cannot serve traffic. The user-provided container failed to start and listen on the port defined provided by the PORT=8080 environment variable. Logs for this revision might contain more information.
Logs URL: https://console.cloud.google.com/logs/viewer?project=my-project-core&resource=cloud_run_revision/service_name/oneventwritten/revision_name/oneventwritten-00001-mez&advancedFilter=resource.type%3D%22cloud_run_revision%22%0Aresource.labels.service_name%3D%22oneventwritten%22%0Aresource.labels.revision_name%3D%22oneventwritten-00001-mez%22 
For more troubleshooting guidance, see https://cloud.google.com/run/docs/troubleshooting#container-failed-to-start

Could not create or update Cloud Run service onuserwritten, Container Healthcheck failed. Revision 'onuserwritten-00001-gih' is not ready and cannot serve traffic. The user-provided container failed to start and listen on the port defined provided by the PORT=8080 environment variable. Logs for this revision might contain more information.
Logs URL: https://console.cloud.google.com/logs/viewer?project=my-project-core&resource=cloud_run_revision/service_name/onuserwritten/revision_name/onuserwritten-00001-gih&advancedFilter=resource.type%3D%22cloud_run_revision%22%0Aresource.labels.service_name%3D%22onuserwritten%22%0Aresource.labels.revision_name%3D%22onuserwritten-00001-gih%22 
For more troubleshooting guidance, see https://cloud.google.com/run/docs/troubleshooting#container-failed-to-start

Functions deploy had errors with the following functions:
        cloud-functions:onEventWritten(us-central1)
        cloud-functions:onMessageCreated(us-central1)
        cloud-functions:onParticipationWritten(us-central1)
        cloud-functions:onUserWritten(us-central1)
        cloud-functions:searchEvents(us-central1)
i  functions: cleaning up build files...

Firebase functions web console

image

Google cloud log explorer for onParticipationWritten

image

It seems to me that is not finding the libraries on deploy

simondotm commented 8 months ago

This might be related to another issue we're seeing with Nx 17 Please could you try the suggestion in this post here: https://github.com/simondotm/nx-firebase/issues/161#issuecomment-1773873219

pikilon commented 8 months ago

This might be related to another issue we're seeing with Nx 17 Please could try the suggestion in this post here: #161 (comment)

Yes, this did the trick for me, thank you again Simon.