-
Notifications
You must be signed in to change notification settings - Fork 31
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
java.lang.StackOverflowError #29
Comments
Hi @SebScoFr would you mind collecting the following info to help me diagnose the problem? First, the version number of the plugin, you can get that from the list command: ./logstash-plugin list --installed --verbose --group input It'll look something like this:
Second, would you mind including the full error log you're seeing? Quickly looking at the code I don't see anything glaringly obvious but I'm happy to dig deeper with some more info. Cheers! |
I am using 1.0.6 I tried increasing the heap space for logstash in jvm.options by changing
to
Unfortunately that didn't help. Here are the logs when I run logstash:
If I run logstash with debug mode enabled, I get flooded by the PubSub Authorization process apparently, it's sending a lot of those requests before eventually crashing like this:
Many thanks for the help! |
Okay, I think I might know what's going on. The plugin assumes that the only reason an argument error would be thrown is because of a bad access token, but I think it's trying to format your topic and subscription twice so it's recursing until you get the StackOverflowError. That means the topic is going to be changed to Try changing your topic and subscription to just the topic name and subscription name (are they both
You can use the following
If that's still giving you a 404 double check that the service account in the |
So when I specify only logstash for the topic and subscription like you suggested I indeed get the 404 error. Here are the logs for it:
Might it have something to do with the fact that I am using the PubSub emulator instead of the live one? The topic is present on my local PubSub.
|
In fact I am pretty sure that is the case. There is no option in the plugin to configure it for communicating with the PubSub emulator so it must interact with the live one and therefore the topic doesn't exist there. Would it be possible to add a new (optional) host config option? In this case it will be:
|
Hi @SebScoFr I did some digging and it looks like most Google libraries support pulling the host from the If you'll open a feature request in this repository I'd be happy to see what I can do to get it added to this plugin. I have a few community submissions to merge in right now, one of which is moving from that Ruby library to a newer Java to boost performance and will hopefully make this easy to do. |
Thanks @josephlewis42 for this. How do you want me to do this? Can't this issue be used as a feature request? |
I think opening a new one is a good idea so when someone comes in to review the code and the problem they won't have to go through the debugging we did here to figure out what was going on. Or you can edit your original comment/title with the feature request and I can re-tag this issue as an enhancement request. |
Sure thing. Just created #30 |
Thanks! I'm closing this one out and we can re-open if we need to re-visit after the fix. |
I'm running into an issue when trying to start logstash with google_pubsub plugin enabled in the pipeline. I'm using logstash 6.2.2 on Mac (without Docker).
Logstash starts the pipeline correctly, runs for about 30 seconds but eventually fails with
[ERROR][org.logstash.Logstash ] java.lang.StackOverflowError
Here is the plugin configuration:
(I've noticed that if I don't provide the full topic path, it will fail with
Error: Error 404: Resource not found (resource=logstash)
)Any idea what might be going on here?
The text was updated successfully, but these errors were encountered: