Auto updater download failure - install4j

We have configured an auto-updater to our service using the ‘updater-with-silent-version-check’ and using the unattended mode.
When we invoked the Updater.exe, it failed with the below error. When we invoked it again, it successfully downloaded the new version from the same URL and upgraded to next version.
What could be the probable reason for the earlier failure?
we passed the URL to the Updater as an argument : -VpatchAgentUpdatesUrl=https://xxxx.company.com:8443/updater-service/updates.xml
[ERROR] com.install4j.runtime.beans.actions.update.CheckForUpdateAction [ID 190]: could not download file
java.net.MalformedURLException: no protocol:
java.net.MalformedURLException: no protocol:
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at com.install4j.runtime.installer.helper.content.HttpRequestHandler.connect(HttpRequestHandler.java:120)
at com.install4j.runtime.installer.helper.content.Downloader.connect(Downloader.java:152)
at com.install4j.runtime.installer.helper.content.Downloader.connect(Downloader.java:25)
at com.install4j.runtime.installer.helper.content.HttpRequestHandler.connect(HttpRequestHandler.java:116)
----Update-----
We are passing the updater URL through command line argument to the Updater.exe.
We did the below changes.
1) In the Installer -> Auto-update options, 'URL for updates.xml' option is set to empty.
2) In the Installer -> Screens & Actions -> 'Updater with silent version check' , defined an installer variable 'updatesUrl' with value as ${compiler:sys.updatesUrl}
3) In the Installer -> Screens & Actions -> 'Updater with silent version check' -> Start up -> Check for Update -> set the 'Update Description Url' as ${installer:updatesUrl}
4) Invoking the Updater.exe with option -VupdatesUrl=https://xxxx.company.com/updater-service/updates.xml
Sometimes it’s working fine with the proper URL and sometimes its failed and URL field is shown as empty in the updater log.
Below is the properties shown in the updater log in the error case.
[INFO] com.install4j.runtime.beans.actions.update.CheckForUpdateAction [ID 190]: Execute action
Property variable: updateDescriptor
Property showError: true
Property rollbackSupported: false
Property connectTimeout: 10000
Property readTimeout: 20000
Property url:
Property askForProxy: true
Property acceptAllCertificates: false
Property connectionFailureScript: null
Property requestHeaders: []

Related

Restart Application Service with install4j

Is it possible to restart a Java application Service with install4j ?
I need to change some configurations in the application and then restart it in unattended mode using the api. (Not doing the complete install or update)
I found this answer that would work if the application is not a service: https://stackoverflow.com/a/65777281/150566
I tried to do the same thing using a Custom Application but using Service call like this:
I've also tried without the request privileges and without sleep with same result or using the stop service commandHalf of it works. The service stops but the Service never restart.
Is there something missing so that the service can start again ? Is there other alternative ?
Updated info:
The config is changed as mentioned to stop the service instead of ShutDown calling launcher:
When using debug as mentioned by Ingo Kegel those output are the result:
Called from mylauncher Service with the Api (not working):
[INFO] com.install4j.runtime.beans.actions.services.StopServiceAction [ID 147]: Execute action
Property executable: null
Property launcherId: 36
Property serviceName: null
Property windowsStopMinimumWaitTime: 30000
Property rollbackSupported: true
usedExecutable: C:\MyInstaller\mylauncher.exe
Stop minimum wait time: 30000
Called from command line (working):
[INFO] com.install4j.runtime.beans.actions.services.StopServiceAction [ID 147]: Execute action
Property executable: null
Property launcherId: 36
Property serviceName: null
Property windowsStopMinimumWaitTime: 30000
Property rollbackSupported: true
usedExecutable: C:\MyInstaller\mylauncher.exe
Stop minimum wait time: 30000
previous state true
Execute action successful after 519 ms
[INFO] com.install4j.runtime.beans.actions.services.StartServiceAction [ID 148]: Execute action
Property executable: null
Property launcherId: 36
Property serviceName: null
Property autostartOnly: false
Property rollbackSupported: true
usedExecutable: C:\MyInstaller\mylauncher.exe
previous state false
Execute action successful after 44 ms
[INFO] com.install4j.runtime.beans.screens.StartupScreen [ID 131]: command: move 1 screens, executing actions, checking condition
[INFO] cleaning up
[INFO] Finished at 2023-02-06 15:06:06
(I've also tried without the request privileges and without sleep with same result or using the stop service command)
Instead of "Shutdown calling launcher" you need the "Stop a service" action. Also, for unattended mode, you don't need the "Finish" screen, you can add all actions to the "Startup" node.
To check if there is a problem, start the executable of the custom application from the command line with the argument -Dinstall4j.log=<path to writable log file.txt> and check the log file.

Sonar scanner github action fails intermittently with “Fail to parse entry in bootstrap index”. Passes on re-run of the job

Which versions am I using
I'm using Sonarqube CE 8.9 hosted in Google cloud VM accessible via an internal domain URL.
Github action runs sonar scanner as part of PR builds on a web app project: SonarSource/sonarqube-scan-action#v1.1.0
what problem am I facing?
Sonar scanner github action intermittently fails with Fail to parse entry in bootstrap index: <!DOCTYPE html>.
If the job is run again, it successfully completes. So I'm not sure what is going wrong.
This is the log from sonar scanner run with verbose=true
INFO: Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties
INFO: Project root configuration file: NONE
06:39:11.701 INFO: SonarScanner 4.7.0.2747
06:39:11.702 INFO: Java 11.0.17 Alpine (64-bit)
06:39:11.703 INFO: Linux 5.15.0-1022-azure amd64
06:39:11.837 DEBUG: keyStore is :
06:39:11.838 DEBUG: keyStore type is : pkcs12
06:39:11.838 DEBUG: keyStore provider is :
06:39:11.839 DEBUG: init keystore
06:39:11.839 DEBUG: init keymanager of type SunX509
06:39:11.981 DEBUG: Create: /opt/sonar-scanner/.sonar/cache
06:39:11.982 INFO: User cache: /opt/sonar-scanner/.sonar/cache
06:39:11.982 DEBUG: Create: /opt/sonar-scanner/.sonar/cache/_tmp
06:39:11.984 DEBUG: Extract sonar-scanner-api-batch in temp...
06:39:11.987 DEBUG: Get bootstrap index...
06:39:11.987 DEBUG: Download: ***/batch/index
06:39:12.678 DEBUG: Get bootstrap completed
06:39:12.681 INFO: ------------------------------------------------------------------------
06:39:12.681 INFO: EXECUTION FAILURE
06:39:12.681 INFO: ------------------------------------------------------------------------
06:39:12.681 INFO: Total time: 1.015s
06:39:12.697 INFO: Final Memory: 4M/17M
06:39:12.698 INFO: ------------------------------------------------------------------------
06:39:12.699 ERROR: Error during SonarScanner execution
org.sonarsource.scanner.api.internal.ScannerException: Unable to execute SonarScanner analysis
at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.lambda$createLauncher$0(IsolatedLauncherFactory.java:85)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.createLauncher(IsolatedLauncherFactory.java:74)
at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.createLauncher(IsolatedLauncherFactory.java:70)
at org.sonarsource.scanner.api.EmbeddedScanner.doStart(EmbeddedScanner.java:185)
at org.sonarsource.scanner.api.EmbeddedScanner.start(EmbeddedScanner.java:123)
at org.sonarsource.scanner.cli.Main.execute(Main.java:73)
at org.sonarsource.scanner.cli.Main.main(Main.java:61)
Caused by: java.lang.IllegalStateException: Fail to parse entry in bootstrap index: <!DOCTYPE html>
at org.sonarsource.scanner.api.internal.BootstrapIndexDownloader.parse(BootstrapIndexDownloader.java:59)
at org.sonarsource.scanner.api.internal.BootstrapIndexDownloader.getIndex(BootstrapIndexDownloader.java:44)
at org.sonarsource.scanner.api.internal.JarDownloader.getScannerEngineFiles(JarDownloader.java:58)
at org.sonarsource.scanner.api.internal.JarDownloader.download(JarDownloader.java:53)
at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.lambda$createLauncher$0(IsolatedLauncherFactory.java:76)
... 7 more
06:39:12.706 ERROR:
06:39:12.706 ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.
what have I tried to debug this issue?
I checked whether there is any issue with the sonar URL but it is fine because the scanner works fine otherwise. Apart from this I'm not sure what else I can check.
Also is there a difference between running the sonar scanner with -X and running it with -Dsonar.verbose=true ?

What path am I missing in vscode web extension?

I am trying to add a basic vscode web extension by hosting it on GitHub. I have hosted the code here, and am trying to run the following command to install in vscode.dev.
> Developer: Install Web Extension...
https://raw.githubusercontent.com/AdamRaichu/vscode-minecraft-lang/5da927a0f42934119198182ec5141f2c676546d2/
However when I do, I get the following error.
[2022-10-27 11:48:07.683] [window] [info] Installing extension: adamraichu.minecraft-lang
[2022-10-27 11:48:07.954] [window] [info] Request to 'https://raw.githubusercontent.com/AdamRaichu/vscode-minecraft-lang/5da927a0f42934119198182ec5141f2c676546d2/package.nls.json' failed with status code 404
[2022-10-27 11:48:07.960] [window] [error] Error while installing the extension: adamraichu.minecraft-lang
[2022-10-27 11:48:07.965] [window] [error] The "path" argument must be of type string. Received type undefined: Error: The "path" argument must be of type string. Received type undefined
at h (https://main.vscode-cdn.net/stable/d045a5eda657f4d7b676dedbfa7aab8207f8a075/out/vs/workbench/workbench.web.main.js:78:11422)
at Object.join (https://main.vscode-cdn.net/stable/d045a5eda657f4d7b676dedbfa7aab8207f8a075/out/vs/workbench/workbench.web.main.js:78:18753)
at h.joinPath (https://main.vscode-cdn.net/stable/d045a5eda657f4d7b676dedbfa7aab8207f8a075/out/vs/workbench/workbench.web.main.js:83:9376)
at C.joinPath (https://main.vscode-cdn.net/stable/d045a5eda657f4d7b676dedbfa7aab8207f8a075/out/vs/workbench/workbench.web.main.js:84:6477)
at K.toWebExtension (https://main.vscode-cdn.net/stable/d045a5eda657f4d7b676dedbfa7aab8207f8a075/out/vs/workbench/workbench.web.main.js:3241:118766)
at async K.addExtension (https://main.vscode-cdn.net/stable/d045a5eda657f4d7b676dedbfa7aab8207f8a075/out/vs/workbench/workbench.web.main.js:3241:114719)
at async u.doRun (https://main.vscode-cdn.net/stable/d045a5eda657f4d7b676dedbfa7aab8207f8a075/out/vs/workbench/workbench.web.main.js:3242:7677)
What path am I missing?
Note that trying to open any of these links from the log gets an error.
<Error>
<Code>BlobNotFound</Code>
<Message>The specified blob does not exist. RequestId:50ecf237-701e-00a5-121b-eadf11000000 Time:2022-10-27T15:50:04.6433646Z</Message>
</Error>
I fixed this problem by adding browser to my package.json, with a path to a typescript file. This in turn showed me other missing things, but this fixed my problem.

Why DreamFactory 2.1.1 LOG_LEVEL .env parameter is ignored?

Since i've upgraded my Dreamfactory DSP from 2.0.2 to 2.1.1-2 , some configuration's parameters seems to be ignored!
DF_LOG_LEVEL is one of them and even if i change it, the value stay to WARNING as defined as the default value in the config/df.php
here is a part of my .env file:
##------------------------------------------------------------------------------
## DreamFactory Settings
##------------------------------------------------------------------------------
## LOG Level. This is hierarchical and goes in the following order.
## DEBUG -> INFO -> NOTICE -> WARNING -> ERROR -> CRITICAL -> ALERT -> EMERGENCY
## If you set log level to WARNING then all WARNING, ERROR, CRITICAL, ALERT, and EMERGENCY
## will be logged. Setting log level to DEBUG will log everything. Default is WARNING.
DF_LOG_LEVEL=DEBUG
(I've check that there is no other line in my .env file about the LOG_LEVEL)
Here is the config/df.php section about LOG_LEVEL: (where default is WARNING)
'version' => '2.1.1',
// General API version number, 1.x was earlier product and may be supported by most services
'api_version' => '2.0',
// Name of this DreamFactory instance. Defaults to server name.
'instance_name' => env('DF_INSTANCE_NAME', gethostname()),
// Log level
'log_level' => env('DF_LOG_LEVEL', 'WARNING'),
When i change the DF_LOG_LEVEL to other value in my .env file, Even after restarting my server nothing change in my Log file and in the Admin section Config/System Info i still have:
DreamFactory Instance
Admin Application Version: 2.1.5
DreamFactory Version: 2.1.1
System Database: mysql
Install Path: /opt/df2/apps/dreamfactory/htdocs/
Log Path: /opt/df2/apps/dreamfactory/htdocs/storage/logs/
Log Mode: single
Log Level: WARNING
I have noticed the same trouble with other parameters like the DF_ALLOW_FOREVER_SESSIONS=true
That is also no more effective !
Any help or suggestion ?
After making changes to the .env file in DreamFactory it is recommended to issue the following commands for the changes to be read from .env file (from htdocs folder or DF2 installation directory):
php artisan config:clear
php artisan cache:clear

Installing GitHub for Windows

I'm trying to install GitHub for Windows. I tried installing it the normal way and got this error:
Application installation did not succeed. Cannot locate application files on the server. Contact the application vendor or your administrator for assistance.
Clicking on Details... gave me this:
PLATFORM VERSION INFO
Windows : 6.1.7601.65536 (Win32NT)
Common Language Runtime : 4.0.30319.18034
System.Deployment.dll : 4.0.30319.17929 built by: FX45RTMREL
clr.dll : 4.0.30319.18034 built by: FX45RTMGDR
dfdll.dll : 4.0.30319.17929 built by: FX45RTMREL
dfshim.dll : 4.0.41209.0 (Main.041209-0000)
SOURCES
Deployment url : http://github-windows.s3.amazonaws.com/GitHub.application
Server : AmazonS3
Application url : http://github-windows.s3.amazonaws.com/Application%20Files/GitHub_1_0_47_0/GitHub.exe.manifest
Server : AmazonS3
IDENTITIES
Deployment Identity : GitHub.application, Version=1.0.47.0, Culture=neutral, PublicKeyToken=317444273a93ac29, processorArchitecture=x86
Application Identity : GitHub.exe, Version=1.0.47.0, Culture=neutral, PublicKeyToken=317444273a93ac29, processorArchitecture=x86, type=win32
APPLICATION SUMMARY
* Installable application.
* Trust url parameter is set.
ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of http://github-windows.s3.amazonaws.com/GitHub.application resulted in exception. Following failure messages were detected:
+ Downloading http://github-windows.s3.amazonaws.com/Application Files/GitHub_1_0_47_0/msvcp100.dll.deploy did not succeed.
+ The remote server returned an error: (403) Forbidden.
COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.
WARNINGS
There were no warnings during this operation.
OPERATION PROGRESS STATUS
* [5/21/2013 8:19:19 AM] : Activation of http://github-windows.s3.amazonaws.com/GitHub.application has started.
* [5/21/2013 8:19:19 AM] : Processing of deployment manifest has successfully completed.
* [5/21/2013 8:19:19 AM] : Installation of the application has started.
* [5/21/2013 8:19:20 AM] : Processing of application manifest has successfully completed.
* [5/21/2013 8:19:24 AM] : Found compatible runtime version 4.0.30319.
* [5/21/2013 8:19:24 AM] : Request of trust and detection of platform is complete.
ERROR DETAILS
Following errors were detected during this operation.
* [5/21/2013 8:19:25 AM] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
- Downloading http://github-windows.s3.amazonaws.com/Application Files/GitHub_1_0_47_0/msvcp100.dll.deploy did not succeed.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
at System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()
at System.Deployment.Application.FileDownloader.Download(SubscriptionState subState)
at System.Deployment.Application.DownloadManager.DownloadDependencies(SubscriptionState subState, AssemblyManifest deployManifest, AssemblyManifest appManifest, Uri sourceUriBase, String targetDirectory, String group, IDownloadNotification notification, DownloadOptions options)
at System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp)
at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
--- Inner Exception ---
System.Net.WebException
- The remote server returned an error: (403) Forbidden.
- Source: System
- Stack trace:
at System.Net.HttpWebRequest.GetResponse()
at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.
I followed the advice on this post and downloaded github-windows.s3.amazonaws.com/GitHub.application with the latest version of Chrome. When I tried to run it, I got this error:
Application cannot be started. Contact the application vendor.
With this detail:
PLATFORM VERSION INFO
Windows : 6.1.7601.65536 (Win32NT)
Common Language Runtime : 4.0.30319.18034
System.Deployment.dll : 4.0.30319.17929 built by: FX45RTMREL
clr.dll : 4.0.30319.18034 built by: FX45RTMGDR
dfdll.dll : 4.0.30319.17929 built by: FX45RTMREL
dfshim.dll : 4.0.41209.0 (Main.041209-0000)
SOURCES
Deployment url : file:///C:/Users/SESA277661/Downloads/GitHub.application
IDENTITIES
Deployment Identity : GitHub.application, Version=1.0.47.0, Culture=neutral, PublicKeyToken=317444273a93ac29, processorArchitecture=x86
APPLICATION SUMMARY
* Installable application.
* Trust url parameter is set.
ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of C:\Users\SESA277661\Downloads\GitHub.application resulted in exception. Following failure messages were detected:
+ Deployment and application do not have matching security zones.
COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.
WARNINGS
There were no warnings during this operation.
OPERATION PROGRESS STATUS
* [5/21/2013 8:29:33 AM] : Activation of C:\Users\SESA277661\Downloads\GitHub.application has started.
* [5/21/2013 8:29:33 AM] : Processing of deployment manifest has successfully completed.
* [5/21/2013 8:29:33 AM] : Installation of the application has started.
ERROR DETAILS
Following errors were detected during this operation.
* [5/21/2013 8:29:33 AM] System.Deployment.Application.InvalidDeploymentException (Zone)
- Deployment and application do not have matching security zones.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, IDownloadNotification notification, DownloadOptions options, Uri& appSourceUri, String& appManifestPath)
at System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, Uri& appSourceUri, String& appManifestPath)
at System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp)
at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.
From here I'm stuck. Any advice would be much appreciated.
I'm on a work computer, so there may be some security settings blocking something, but I don't know about all that.
Thanks,
Chris
Setup was stalling at around 85MB for me, after repeated attempts. After trying all these answers with no success, the one found here is the one that finally worked for me. I canceled, killed dfsvc.exe from Task Manager (I'm using Windows 10), deleted C:\Users\{username}\AppData\Local\Apps\2.0, opened up Internet Explorer (not Chrome or Firefox) and navigated to this exact URL:
https://github-windows.s3.amazonaws.com/GitHub.application
I had the exact same problem and it turned out that a Web Content Filtering system was getting errors for many of the git client files, some of them are included below.
Spoofed files
http://github-windows.s3.amazonaws.com/Application Files/GitHub_1_0_48_0/msvcp100.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_1_0_48_0/sqlite3.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_1_0_48_0/7za.exe.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_1_0_48_0/RestSharp.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_1_0_48_0/git2.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_1_0_48_0/ReactiveUI.Xaml.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_1_0_48_0/zh-Hant/Microsoft.Expression.Interactions.resources.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_1_0_48_0/GitHub.UI.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_1_0_48_0/GitHub.exe.deploy
Missing Digital Signature
http://github-windows.s3.amazonaws.com/Application Files/GitHub_1_0_48_0/chromium-pack.7z.deploy
Number of contained files exceeds limit
http://github-windows.s3.amazonaws.com/Application Files/GitHub_1_0_48_0/PortableGit.7z.deploy
I suppose you should contact your network admin and get him to set up exceptions for these files, or even better for the whole http://github-windows.s3.amazonaws.com. Still, IMHO, this shouldn't be happening. I'll try to get in touch with Github support.
I was just having this same problem, I was able to download the installer but after the installer (GitHubSetup.exe) finished doing it's downloading, the program wouldn't launch, it crashed with an error log.
I'm using Windows 8.1; I have never had any trouble in Windows 7.
So I tried right-clicking and "Run as Administrator", it again did it's downloading thing and then launched just fine.
Introduction
I have had a similar problem: after 75% of the file was downloaded, it just got stuck.
Then 5 minutes later or so, I've received the exact same error message you did.
How I've fixed it
As Geogrgios mentioned above, you need to add an exception to the firewall.
Go to "Control Panel" and click on "System and Security" (make sure that "View by:" is set to "Category" and not to "Large icons" or "Small icons").
Choose Windows Firewall (the second option in the right menu). Then, "Allow a program or a feature through Windows Firewall" in the left menu will be displayed, please click on it.
Click on "Change settings" to add exceptions.
Click on "Allow another program ..", which has gotten enabled, and in the new window click on "Browse..".
Choose the "GithubSetup.exe" file, press "Open" and then "Add" and "OK".
Run "GithubSetup.exe" and hope for the best.
Better instructions (with screenshots) can be found here
I opened Microsoft edge and navigated to:
https://github-windows.s3.amazonaws.com/GitHub.application
worked first time !
might also work in internet explorer
got the idea from:
stimpy77
https://stackoverflow.com/a/33021657/606724
I too faced a similar issue. The root cause was two fold.
1. Proxy: I was behind a corporate proxy, which prevented me from connecting to the download center.
2. Firewall: I was using a corporate laptop in which Symantec network access control was enabled (Firewall related settings are present here)
I disabled the Symantec network access control and used my personal internt connection to download and install. Did not face any issues after that.
Just switching to Internet Explorer from Chrome did the trick for me =) I don't know why, but it really helped. After 95%(!!) of the file was downloaded, it just got stuck.
If you're using Kaspersky, disable Protection and Control first. Kaspersky Antivirus deletes all deploy files silently, giving erros like this (from install.log):
Launching Application.
URLDownloadToCacheFile failed with HRESULT '-2146697211'
Error: An error occurred trying to download 'http://github-windows.s3.amazonaws.com/GitHub.application'.
Or like this (downloading http://github-windows.s3.amazonaws.com/GitHub.application and launching manually):
* [15/09/2015 11:58:50] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
- Unsuccessfull download at file:///C:/Users/user/Downloads/Application Files/GitHub_3_0_5_2/GitHub.exe.manifest.
- Source: System.Deployment
- Stack trace:
in System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
in System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()
in System.Deployment.Application.FileDownloader.Download(SubscriptionState subState)
in System.Deployment.Application.DownloadManager.DownloadManifestAsRawFile(Uri& sourceUri, String targetPath, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
in System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, IDownloadNotification notification, DownloadOptions options, Uri& appSourceUri, String& appManifestPath)
in System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp)
in System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
in System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
in System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
--- Internal exception ---
If you use Windows 10:
Kill dfsvc.exe
Delete this folder: %LocalAppData%\Apps\2.0
Type in Internet Explorer: https://github-windows.s3.amazonaws.com/GitHub.application
I had a same problem, and got the isse like 20+ times while I was trying to intsall the github on my Windows 8 Pro.
Solutions found unknowingly is - Login into the Github account, then download the package, and try to install without logout till the installation complition.
It work for me.. Please try and provide if you have any more better way to handle this.
thanks.
Turns out the problem for me was that my corporate network was blocking the download on the network level. This problem was solved for me by going outside of my corporation's network policies via a personal VPN.
When I tried to download GitHub, the ClickOnce app would install with the following error:
ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of C:\Users\Judah\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\GitHub, Inc\GitHub.appref-ms| resulted in exception. Following failure messages were detected:
+ Downloading http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_1_1_4/libGLESv2.dll.deploy did not succeed.
+ Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
+ An existing connection was forcibly closed by the remote host
The error message says it was unable to download http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_1_1_4/libGLESv2.dll.deploy. Trying to directly download that file with Chrome, IE, and Edge all failed.
I began to suspect it was a corporate network policy that was blocking the download.
So, I connected to a personal VPN, downloaded again, and it worked. You could use a VPN, or tethering on your phone, or some other network outside of your corporate network to download as well.
I too faced the same issue when I tried to install it. Even though I'm using VPN I couldn't install it because of network configuration matters. So I turned off the firewall and tried installing it. It didn't work for me in one go coz of some vendor issues and I tried reinstalling it. Finally, it worked for me.
Thanks to this post, I just used Internet Explorer and navigated to:
https://github-windows.s3.amazonaws.com/GitHub.application
And it completely installed Github for Windows (I have Windows 8.1).
Prior to this, with the installer I downloaded using Chrome I couldn't install Github for Windows (I used to get the above "did not succeed" error).
A little more elaboration on the previous answers:
1- Open Windows Explorer (press "Windows+E")
2- Type %LocalAppData%\Apps in its address bar and press Enter.
3- It should find a folder "2". Delete the Folder "2".
4- Open Task Manager (Start menu, then type Task manager and select it.
Alternatively press Ctrl+Alt+Delete and select Task Manager).
5- Click on "Details" tab.
6- Kill all the files named dfsvc.exe (for me there were two).
7- Open Internet Explorer (IE)
8- Paste this address in the address bar and press Enter:
https://github-windows.s3.amazonaws.com/GitHub.application
9- It will start installing Github for Wiindows.
To resolve this issue :
Goto Windows Firewall => Advanced section
Goto Action > Properties
set firwall state to off in domain, private and public.
Disable windows defender or any other antivirus.
Open run window by clicking Windows + R button
Paste "%LocalAppData%\Apps"
Delete the folder named "2.0".
Open Microsoft edge or Internet Explorer
Open "https://github-windows.s3.amazonaws.com/GitHub.application"
Click on Install.
This process will be slower than usual but let it run for as long as it takes. And then you should have an Github icon and Shell window icon in your desktop when it ends.