-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Writing to sincedb fails on arm64 nodes #281
Comments
The write_atomically function calls chown, which makes no sense. It assumes the code is running as root, since only a privileged process can chown a file. Perhaps it should chgrp (and ignore a failure)? write_atomically is not used on Windows, and otherwise is only used if sincedb_path points to something that is neither a character nor a block device. I have no idea how a filesystem could be neither a character nor a block device, but it seems to happen. |
My personal (and likely bad) solution to this problem is to modify the ruby file that handles this process. The file in question is: On line 18 (if memory serves) you'll find this line: Change that to: and everything works fine... at least until you update Logstash... |
Update on this issue: This is being caused by an upstream jruby issue where I have opened issues and PR's in the repositories to attempt to fix this issue: Issues: |
Surely the chown is never going to work unless logstash is running as root. Regular users cannot use chown on any UNIX variant I am familiar with. |
@TheVastyDeep I tend to agree - That being said... even with this PR (or even removing the |
Hello, What is the status of this issue since the jruby issue has been adressed? Do you have an idea in which Logstash version the fix will be included? Thanks a lot |
Hi @arnaudmm - thanks for the reminder. I'm going to close this issue as it should have been addressed, both by the PR I mentioned earlier, and by the upstream jruby fixes. The latest version of Logstash ( |
Running a simple logstash file input pipeline:
on a newly provisioned
t4g.micro
AWS graviton2 equipped EC2 instance results in the following error:This same pipeline works correctly on a similarly newly provisioned
t2.micro
instanceThe text was updated successfully, but these errors were encountered: