Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 622602 - app-admin/logstash-bin-5.4.1 self installed plugins deleted
Summary: app-admin/logstash-bin-5.4.1 self installed plugins deleted
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tomáš Mózes
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-24 11:34 UTC by WOLfgang Schricker
Modified: 2017-08-25 08:52 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description WOLfgang Schricker 2017-06-24 11:34:09 UTC
After a update (here 5.4.1) self installed plugins deleted.

Reproducible: Always

Steps to Reproduce:
1. install plugins...
2. logstash stop
3. emerge -u logstash-bin
4. logstash start
Actual Results:  
[2017-06-24T11:25:32,945][FATAL][logstash.runner          ] The given configuration is invalid. Reason: Couldn't find any filter plugin named 'translate'. Are you sure this is correct? Trying to load the translate filter plugin resulted in this error: Problems loading the requested plugin named translate of type filter. Error: NameError NameError

Expected Results:  
Installed plugins are present.
Comment 1 Tomáš Mózes 2017-07-09 10:44:23 UTC
Good question. It works the same on Debian for example.. Haven't found an answer yet,also asked on discuss:

https://discuss.elastic.co/t/keeping-user-installed-plugins-after-logstash-update/92272
Comment 2 Tomáš Mózes 2017-07-12 15:53:50 UTC
Ok, here is what we do.

We will not install plugins directly, but use a wrapper script, that will create a list of user installed plugins. Each upgrade will trigger a reinstall on each of those plugins.

Is that ok for your Wolfgang?

https://github.com/gentoo/gentoo/pull/5098
Comment 3 WOLfgang Schricker 2017-07-14 06:15:25 UTC
Yes, this is helpful, thank you!
Comment 4 Tomáš Mózes 2017-08-16 16:43:46 UTC
https://github.com/gentoo/gentoo/commit/15b28a3312f35244dbe093946f127d046555f42a

Please try and reopen if it's still an issue.
Comment 5 massimo 2017-08-25 08:52:14 UTC
This works pretty well. As a side note, when this is used in a proxied environment one has to make sure http_proxy and https_proxy is set in order to be able to install plugins.