Skip to content
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

BPM appears to be breaking Logstash #172

Closed
amhuber opened this issue Feb 28, 2020 · 5 comments
Closed

BPM appears to be breaking Logstash #172

amhuber opened this issue Feb 28, 2020 · 5 comments
Assignees

Comments

@amhuber
Copy link

amhuber commented Feb 28, 2020

Trying to deploy the latest version and the ingestor_syslog job won't start with this error:

ERROR: File /var/vcap/data/packages/logstash/b3b793f4fb442bc8955f9bca9f21a4487f75d630/Gemfile does not exist or is not writable, aborting

This appears to be due to bpm.yml not giving access to /var/vcap/packages/logstash. I've tried adding various variations of that path to bpm.yml but I can never get everything working completely, I suspect due to the symlink to the /var/vcap/data/packages/logstash/ directory. I can get the "Gemfile" error to disappear but then I get an error installing plugins:

In Gemfile:
  logstash-output-syslog
Error Bundler::InstallError, retrying 4/10
Errno::EACCES: Permission denied - /var/vcap/data/packages/logstash/b3b793f4fb442bc8955f9bca9f21a4487f75d630/vendor/bundle/jruby/2.5.0/cache/logstash-output-syslog-3.0.4.gem
@axelaris axelaris self-assigned this Feb 29, 2020
@axelaris
Copy link
Member

Hi @amhuber
Are you deploying v211.0.1 from scratch or upgrading an earlier version?

@axelaris
Copy link
Member

axelaris commented Mar 1, 2020

Could you please also describe your use case a bit?
Why do you need to install logstash-output-syslog plugin when it's already shipped out of the box?

@amhuber
Copy link
Author

amhuber commented Mar 2, 2020

I'm updating an existing cluster but with a new stemcell so it's being installed on a clean VM. I missed #163 last month that added the plugin by default, so I'll try again without it in our config file.

@amhuber
Copy link
Author

amhuber commented Mar 10, 2020

I retested after removing the logstash-output-syslog plugin and the deployment did work. I suspect the functionality to add any plugin (https://github.com/cloudfoundry-community/logsearch-boshrelease/blob/develop/jobs/ingestor_syslog/spec#L61-L65) is broken due to the BPM permissions but since the one I need is already included technically that isn't an issue for me. I'll leave this open in case someone can reproduce that or if you want to try to fix the permissions..

@axelaris
Copy link
Member

Hi @amhuber,
the issue has been fixed.
Could you please check and confirm?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants