All Apps and Add-ons

Unable to update apps from splunkbase

midemeyer
Engager

Im trying to update Splunk DB Connect but im getting error.

An error occurred while downloading the app: [HTTP 404] https://127.0.0.1:8089/services/apps/local/splunk_app_cloudgateway/update; [{'code': None, 'type': 'ERROR', 'text': 'Error downloading update from https://splunkbase.splunk.com/app/4250/release/1.10.0/download/?origin=cfu: Not Found'}]

If I download the app from splunkbase and upload from file, will I lose all config in the app?

Kind Regards,
Michiel

0 Karma
1 Solution

dindu
Contributor

Hi,
You could specify to overwrite if the app already exists.Download and install app from zip file.

Did you tried checking the check box " Upgrade app. Checking this will overwrite the app if it already exists."
Apps-->Manage Apps-->Install App from file.

Please have a backup copy of the app directory before trying out this method.

View solution in original post

0 Karma

PavelP
Motivator

checking manually the url (https://splunkbase.splunk.com/app/4250/release/1.10.0/download/?origin=cfu) the real reason for the first error is that there is not such app version 1.10.0 currently available (as of today 21 Mar 2020). The last available Cloud Gateway version is 1.9.1. This can be a temporary issue (for example Splunk removed this version). You can restart Splunk and try again.

The second error caused by a process accessing the file you trying to update, could be a Windows-specific.... 😞

0 Karma

woodcock
Esteemed Legend

There is no difference loading directly from Splunkbase and using the file.

0 Karma

dindu
Contributor

Hi,
You could specify to overwrite if the app already exists.Download and install app from zip file.

Did you tried checking the check box " Upgrade app. Checking this will overwrite the app if it already exists."
Apps-->Manage Apps-->Install App from file.

Please have a backup copy of the app directory before trying out this method.

View solution in original post

0 Karma

midemeyer
Engager

Thanks, simply overwriting the files works perfect.

0 Karma

dindu
Contributor

Thanks for confirming!!!!!!!
Could you please upvote so that it may help others.

0 Karma

broberg
Communicator

Hi.
Make sure that you take backup of all the files and i would upload it via CLI if i were you, then you can make sure that all files in your app/local folders are staying intact.

0 Karma

midemeyer
Engager

Throws even more errors...

I tried using the CLI but got errors, then tried with the UI and the "Upgrade' flag, and got the same results.

I wouldn't know what process other then splunk itself would be accessing those files?

Would it work if i just overwrite the files at \etc\apps and then move the contents of a backed-up local folder?

There was an error processing the upload. In handler 'localapps': Error installing application: Failed to copy: D:\SPL\var\run\splunk\bundle_tmp\c44a0dff15a2c5cc\splunk_app_db_connect to D:\SPL\etc\apps\splunk_app_db_connect. 4 errors occurred. Description for first 4: [{operation:"renaming .tmp file to destination file", error:"The process cannot access the file because it is being used by another process.", src:"D:\SPL\var\run\splunk\bundle_tmp\c44a0dff15a2c5cc\splunk_app_db_connect\jars\dbxquery.jar", dest:"D:\SPL\etc\apps\splunk_app_db_connect\jars\dbxquery.jar"}, {operation:"renaming .tmp file to destination file", error:"The process cannot access the file because it is being used by another process.", src:"D:\SPL\var\run\splunk\bundle_tmp\c44a0dff15a2c5cc\splunk_app_db_connect\jars\server.jar", dest:"D:\SPL\etc\apps\splunk_app_db_connect\jars\server.jar"}, {operation:"copying contents from source to destination", error:"There are no more files.", src:"D:\SPL\var\run\splunk\bundle_tmp\c44a0dff15a2c5cc\splunk_app_db_connect\jars", dest:"D:\SPL\etc\apps\splunk_app_db_connect\jars"}, {operation:"copying contents from source to destination", error:"There are no more files.", src:"D:\SPL\var\run\splunk\bundle_tmp\c44a0dff15a2c5cc\splunk_app_db_connect", dest:"D:\SPL\etc\apps\splunk_app_db_connect"}]

0 Karma
Register for .conf21 Now! Go Vegas or Go Virtual!

How will you .conf21? You decide! Go in-person in Las Vegas, 10/18-10/21, or go online with .conf21 Virtual, 10/19-10/20.