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

App upgrade blocked by busy file #32

Open
dp-42 opened this issue Mar 8, 2023 · 0 comments
Open

App upgrade blocked by busy file #32

dp-42 opened this issue Mar 8, 2023 · 0 comments

Comments

@dp-42
Copy link

dp-42 commented Mar 8, 2023

Hello 1Password folks,

first, I really appreciate the efforts put into this app - it is written professionally, the documentation is fantastic and it is pretty! 👍

However, unfortunately I am currently facing an issue when I try to update the app:
As you utilize a scripted input that starts a Go binary the binary runs as a process on my Splunk instance - all good!
However, when I try to upload a new version of the app Splunk under the hood seems to store the uploaded app in a temporary location and then it will copy over the files to the actual app installation directory ($SPLUNK_HOME/etc/apps).
However, as the binary is currently in use, Splunk is not able overwrite it.

image

Here is also a more verbose output of the error message:

<?xml version="1.0" encoding="UTF-8"?>
<response>
  <messages>
    <msg type="ERROR">
      In handler 'localapps': Error installing application:
      Failed to copy: /opt/splunk/var/run/splunk/bundle_tmp/130a41b27f0becbe/onepassword_events_api
      to
      /opt/splunk/etc/apps/onepassword_events_api. 4 errors occurred. Description for first 4:
      [{operation:"copying source to destination", error:"Text file busy",
      src:"/opt/splunk/var/run/splunk/bundle_tmp/130a41b27f0becbe/onepassword_events_api/bin/signin_attempts",
      dest:"/opt/splunk/etc/apps/onepassword_events_api/bin/signin_attempts"}, {operation:"copying
      source to destination", error:"Text file busy",
      src:"/opt/splunk/var/run/splunk/bundle_tmp/130a41b27f0becbe/onepassword_events_api/bin/item_usages",
      dest:"/opt/splunk/etc/apps/onepassword_events_api/bin/item_usages"}, {operation:"transfering
      contents from source to destination", error:"Text file busy",
      src:"/opt/splunk/var/run/splunk/bundle_tmp/130a41b27f0becbe/onepassword_events_api/bin",
      dest:"/opt/splunk/etc/apps/onepassword_events_api/bin"}, {operation:"transfering contents from
      source to destination", error:"No such file or directory",
      src:"/opt/splunk/var/run/splunk/bundle_tmp/130a41b27f0becbe/onepassword_events_api",
      dest:"/opt/splunk/etc/apps/onepassword_events_api"}]</msg>
  </messages>
</response>

Therefore, I have to disable the inputs in the inputs.conf, do a debug/refresh, update the app and afterwards enable the inputs again.
That is a bit of a hassle - is this the intended way? 😊

Usually, many other apps work around this (as far as I know) with scheduling, so basically instead of just starting the script "permanently" they run it every X minutes, fetch the data generated after the last run and stop again.

Many thanks!

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

1 participant