FS#56039 - [logstash] 5.6.3 fails to start, permission issue
Attached to Project:
Community Packages
Opened by Jeremy M. (jskier) - Wednesday, 18 October 2017, 21:31 GMT
Last edited by Massimiliano Torromeo (mtorromeo) - Friday, 17 November 2017, 15:30 GMT
Opened by Jeremy M. (jskier) - Wednesday, 18 October 2017, 21:31 GMT
Last edited by Massimiliano Torromeo (mtorromeo) - Friday, 17 November 2017, 15:30 GMT
|
Details
Description:
Updating to 5.6.3 gives a permission error when trying to start service. Appears that the owner of the /usr/share/logstash/ directory is incorrect (set to root, not logstash). Additional info: * 5.6.3 * Attached systemd and journal of error Steps to reproduce: Update to 5.6.3, restart service, and it fails. Downgrade to 5.6.2 and it works fine. Changing ownership of logstash folder to logstash U/G also seems to workaround permission issue. |
This task depends upon
Closed by Massimiliano Torromeo (mtorromeo)
Friday, 17 November 2017, 15:30 GMT
Reason for closing: Fixed
Additional comments about closing: logstash-6.0.0-1
Friday, 17 November 2017, 15:30 GMT
Reason for closing: Fixed
Additional comments about closing: logstash-6.0.0-1
Can you undo it and test if removing the file /usr/share/logstash/logstash-core/versions-gem-copy.yml solves your issue?
-delete versions-gem-copy.yml
-restart service
-FAILURE MESSAGE
-downgrade to 5.6.2
-restart service
-FAILURE MESSAGE
-downgrade to 5.6.1
-restart service
-FAILURE MESSAGE
/usr/share/logstash's permissions: drwxr-xr-x logstash logstash
/usr/share/logstash/logstash-core's permissions: drwxr-xr-x root root
I tried this on a fresh VM and am able to reproduce what @lemongrab is seeing (remove the file, or change it's permissions; same permission on the same file). Not sure why it works on the box that was an upgrade (that is still running by the way, for days now). The yml file gets recreated if deleted, and I've tried just changing permissions. I'll look into this more when I have time.
@lemongrab, I'll try 5.6.2 again on the new fresh install. Curious, what file system are you running on? My fresh VM is btrfs, other box is ext4. Maybe this problem is bigger than logstash.
I'm just going to use a docker image for this.
touch /usr/share/logstash/logstash-core/versions-gem-copy.yml
chown logstash:logstash /usr/share/logstash/logstash-core/versions-gem-copy.yml