Hi,
I don't know if this belongs here. But latest release of PubSub emulator is broken. It was working fine for years until today. We're using google/cloud-sdk:emulators image, specifically the broken one is google/cloud-sdk:496.0.0-emulators.
pubsub-emulator-1 | Sleeping
pubsub-emulator-1 | DEBUG: (gcloud.beta.emulators.pubsub.start) To use the Google Cloud Pub/Sub emulator, a Java 7+ JRE must be installed and on your system PATH
pubsub-emulator-1 | Traceback (most recent call last):
pubsub-emulator-1 | File "/google-cloud-sdk/lib/googlecloudsdk/calliope/cli.py", line 998, in Execute
pubsub-emulator-1 | resources = calliope_command.Run(cli=self, args=args)
pubsub-emulator-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pubsub-emulator-1 | File "/google-cloud-sdk/lib/googlecloudsdk/calliope/backend.py", line 837, in Run
pubsub-emulator-1 | self._parent_group.RunGroupFilter(tool_context, args)
pubsub-emulator-1 | File "/google-cloud-sdk/lib/googlecloudsdk/calliope/backend.py", line 731, in RunGroupFilter
pubsub-emulator-1 | self._common_type().Filter(context, args)
pubsub-emulator-1 | File "/google-cloud-sdk/lib/surface/emulators/pubsub/__init__.py", line 77, in Filter
pubsub-emulator-1 | java.RequireJavaInstalled(pubsub_util.PUBSUB_TITLE)
pubsub-emulator-1 | File "/google-cloud-sdk/lib/googlecloudsdk/command_lib/util/java.py", line 52, in RequireJavaInstalled
pubsub-emulator-1 | raise JavaError('To use the {for_text}, a Java {v}+ JRE must be installed '
pubsub-emulator-1 | googlecloudsdk.command_lib.util.java.JavaError: To use the Google Cloud Pub/Sub emulator, a Java 7+ JRE must be installed and on your system PATH
pubsub-emulator-1 | ERROR: (gcloud.beta.emulators.pubsub.start) To use the Google Cloud Pub/Sub emulator, a Java 7+ JRE must be installed and on your system PATH
Solved! Go to Solution.
Hi @MiroslavS,
Welcome to Google Cloud Community!
I understand how frustrating it is to run into this issue with the Pub/Sub emulator, especially when it was working fine before.
Upon reviewing the situation, I can confirm that this issue was previously reported as a bug and has already been addressed by our Engineering Team.
You can try running the emulator again and see if it now works. If that doesn’t work, you can still file an issue request so that our Engineering Team can look into it. Before filing, please take note on what to expect when opening an issue.
I hope the above information is helpful.
Hi @MiroslavS,
Welcome to Google Cloud Community!
I understand how frustrating it is to run into this issue with the Pub/Sub emulator, especially when it was working fine before.
Upon reviewing the situation, I can confirm that this issue was previously reported as a bug and has already been addressed by our Engineering Team.
You can try running the emulator again and see if it now works. If that doesn’t work, you can still file an issue request so that our Engineering Team can look into it. Before filing, please take note on what to expect when opening an issue.
I hope the above information is helpful.