EGit - not authorized message on "Pull" - egit

I've just created a local clone successfully (using my credentials),
but when I try doing "Pull" I get an error message:
(changed repos address manually to an abstract one)
http:_//username#url:port/git/proj/team_repos.git: not authorized
org.eclipse.jgit.api.errors.TransportException
This is more detailed from the log:
java.version=1.7.0_10 java.vendor=Oracle Corporation BootLoader
constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_SG Framework
arguments: -vm /usr/java/jdk1.7.0_10/jre/bin Command-line arguments:
-os linux -ws gtk -arch x86_64 -vm /usr/java/jdk1.7.0_10/jre/bin
Error Sun Apr 14 19:00:11 IDT 2013
http_://username#url:port/git/proj/team_repos.git:
not authorized
org.eclipse.jgit.api.errors.TransportException:
http_://username#url:port/git/proj/team_repos.git:
not authorized
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:137)
at org.eclipse.jgit.api.PullCommand.call(PullCommand.java:245)
at org.eclipse.egit.core.op.PullOperation$1.run(PullOperation.java:90)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2326)
at org.eclipse.egit.core.op.PullOperation.execute(PullOperation.java:121)
at org.eclipse.egit.ui.internal.pull.PullOperationUI.execute(PullOperationUI.java:115)
at org.eclipse.egit.ui.internal.pull.PullOperationUI$1.run(PullOperationUI.java:90)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53) Caused by: org.eclipse.jgit.errors.TransportException:
http_://username#url:port/git/proj/team_repos.git:
not authorized
at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:476)
at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:305)
at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:136)
at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:122)
at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1104)
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:128)
... 8 more
Didn't find any solution for that..
Anyone?

I managed to solve it.
In Eclipse, go to:
Git Repository Exploring (Perspective) --> Your git repository clone
--> Remotes
Find the URLs for fetch & push.
Right click each one --> Clear Credentials
.
Now try to push / pull, and enter your password manually,
unmarking the "Store in Secure Store" option.
After a lot of searching this seems to solve it:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=356233

org.eclipse.jgit.api.errors.TransportException: <repo_path>: not authorized
One of the reason you will get the above error while communicating with the remote repo if your 2FA is enabled. In that case you need to create your personal access token
GitHub -> Go to profile -> developer settings -> Personal Access Token -> Generate one (copy the token, as it will be available for you only right now) -> (optional) Enable SSO -> Authorize (if the repo is linked with an organization)
That's it! Use the copied PAT in place of password for cloning repos. That should take you through.

Just login to your Bitbucket account and then try to take pull. This may clear this exception.

Related

What password is the browser asking with the message ' This site says : Spring '?

I have few Spring Boot projects (developed by other team members). Suddenly after downloading the latest changes (by other developers) from the repository, i started getting the following problem when submitting the form in the application. The browser keeps showing a prompt with the following message and asking for a username and password.
The site says: "Spring"
Rest of the developers are saying they don't get this error, i tried creating a new workspace from the latest code in repo and still getting the same error. What User Name and Password is the browser asking for ? Surely this is not my proxy server credentials, because i've tried it but still the prompt keeps coming.
I can see the following error in my Eclipse Console:
2015-06-03 04:17:18.736 INFO 5760 --- [ XNIO-1 task-2] o.s.b.a.audit.listener.AuditListener : AuditEvent [timestamp=Wed Jun 03 04:17:18 EDT 2015, principal=anonymousUser, type=AUTHORIZATION_FAILURE, data={type=org.springframework.security.access.AccessDeniedException, message=Access is denied}]

ATG Commerce v11 CRS install Error:

I have installed Oracle ATG v11 with the commerce reference store, when I startup the production server and go to the url domain/crs/storeus I see the blank white page, and have the following error in the console:
Oct 13, 2014 1:56:37 PM com.endeca.infront.site.SiteManager getSite
SEVERE: Unable to retrieve site definition for site id: /storeSiteUS
com.endeca.store.exceptions.PathNotFoundException: No node found at
path: [pages].
at com.endeca.store.configuration.InternalNode.getNode(InternalNode.java:153)
at com.endeca.store.configuration.InternalNode.getNodeInfo(InternalNode.java:221)
at com.endeca.store.configuration.InternalNode.getNode(InternalNode.java:150)
at com.endeca.store.configuration.InternalNode.getNode(InternalNode.java:61)
........................................
**** Error Mon Oct 13 13:00:47 +00:00 2014 1413205247448 /atg/endeca/assembler/droplet/InvokeAssembler A problem occurred
assembling the content for content item /content/Web/Home Pages. The
response received was {#type=ContentSlot,
atg:currentSiteProductionURL=/crs/storeus,
canonicalLink=com.endeca.infront.cartridge.model.NavigationAction#2b35e9c6,
ruleLimit=1, #error=com.endeca.infront.content.ContentException:
com.endeca.navigation.ENEConnectionException: Error establishing
connection to retrieve Navigation Engine request
http://localhost:15000/graph?node=0&profiles=sitegroup.siteGroupUS|NoPriceRange|site.storeSiteUS&offset=0&nbins=0&irversion=640'.
Tried all: '2' addresses, but could not connect over HTTP to server:
'localhost', port: '15000' Check MDEX Logs and specified query
parameters. , contentCollection=/content/Web/Home Pages}. Servicing
the error open parameter.
I am assuming this error is related to endeca? I have downloaded CAS, Tools And Frameworks with experience manager and MDX, and Platform Services. Do I need to start these or have I missed a part of the endeca install?
The value of the configurationPath attribute in the DefaultFileStoreFactory.properties located at \localconfig\atg\endeca\assembler\cartridge\manager may be incorrect.
In OOTB CRS, we normally provide the following value for configurationPath attribute :
/ToolsAndFrameworks/11.1.0/server/workspace/state/repository/CRS
Could you please verify the .zip is present at path provided in DefaultFileStoreFactory.properties.
Just check if you are able to connect the below url:
host:15000/admin?op=stats
If you are able to connect this URL, then MDEX is running. Also, you can login to the experience manager and check if the dgraphs and dgidx are running.
If you are not able to connect then check all the services are(tools and http) running and accessible. You can check the endeca logs to debug further.
Your DGraph is not (yet) started.
(Hit this URL in your browser and verify: http://localhost:15000/graph?node=0&profiles=sitegroup.siteGroupUS|NoPriceRange|site.storeSiteUS&offset=0&nbins=0&irversion=640&format=xml)
Possible reasons are:
You did not run baseline update from ATG (from
ProductCatalogSimpleIndexingAdmin dyn/admin component).
You did not run promote content (from your Endeca App's control folder).
Your Services are not working properly (or not started at all). Check that Platform Services and Tools And Frameworks are started.
The solution is to properly define the value for the property configurationPath=E:/Endeca/Apps/CRS/data/workbench/application_export_archive/CRS in "DefaultFileStoreFactory.properties"
If you are using the OS as Windows then define this path as Unix style as shown above.

TeamCity is failing to checkout github repository

I'm having following errors from TeamCity when it updates working directory.
I'm using TeamCity 8.1.3 and checking out github repository on agent.
Looks like it happened all of a sudden. This was working yesterday.
I'm not sure how I can investigate this issue... Could someone help me?
[19:11:33]Checking for changes
[19:11:34]Failed to register agent parameters for: class jetbrains.buildServer.agent.impl.buildFiles.RecentlyFailedTestsFileWriter. Error: Permission denied
[19:11:34]Failed to register agent parameters for: class jetbrains.buildServer.agent.impl.buildFiles.ChangedFilesListFileWriter. Error: Permission denied
[19:11:34]Failed to register agent parameters for: class jetbrains.buildServer.agent.impl.buildFiles.RunnerParametersFileWriter. Error: Permission denied
[19:11:34]Failed to register agent parameters for: class jetbrains.buildServer.agent.impl.buildFiles.BuildParametersFileWriter. Error: Permission denied
[19:11:34]Failed to register agent parameters for: class jetbrains.buildServer.agent.impl.buildFiles.ConfigurationParametersFileWriter. Error: Permission denied
[19:11:34]Failed to publish build.start.properties.gz file. /Users/iosdevelopment/Documents/buildAgent/temp/agentTmp/build.start.properties.gz (Permission denied)
[19:11:34]Clearing temporary directory: /Users/iosdevelopment/Documents/buildAgent/temp/buildTmp
[19:11:34]Failed to delete empty directory: /Users/iosdevelopment/Documents/buildAgent/temp/buildTmp
[19:11:34]Checkout directory: /Users/iosdevelopment/Documents/buildAgent/work/ios_build_dir
[19:11:34]Updating sources: agent side checkout
[19:11:34][Updating sources] Will perform clean checkout. Reason: Checkout directory is empty or doesn't exist
[19:11:34][Updating sources] Cleaning /Users/iosdevelopment/Documents/buildAgent/work/ios_build_dir
[19:11:34][Updating sources] Using vcs information from server. Reason: no revision information for buildtype iPhone_CI and checkout directory /Users/iosdevelopment/Documents/buildAgent/work/ios_build_dir on agent
[19:11:34][Updating sources] VCS Root: git#github.com:taichino/iOS.git
[19:11:34][Updating sources] Failed to perform checkout on agent: Permission denied
[19:11:34]Publishing artifacts
[19:11:34]Failed to generate coverage report, error: java.io.FileNotFoundException: /Users/iosdevelopment/Documents/buildAgent/work/ios_build_dir/coverage.ic file does not exist
[19:11:34]Failed to publish build.finish.properties.gz file. /Users/iosdevelopment/Documents/buildAgent/temp/agentTmp/build.finish.properties.gz (Permission denied)
[19:11:34]Build failed to start. Artifacts will not be published for this build
I meet this similar issue, it is because of permission restriction.
I chmod -R 777 for the entire Teamcity installation, it works.
Hope it helps.
It might because you run teamcity agent under root (or other users) before, chmod -R 777 should solve the problem, but before that, you can do a "ll" on your agent's install dir, especially the ~/yourAgent/temp folder, make sure it is not owned by root.
I switched to check out on the server, ran the build and once it finished successfully I switched back to checkout on the agent, and it worked!

eclipse not starting because p4eclipse is throwing AccessException

I was running Eclipse Junos on Mac and had installed p4eclipse plugin. After system restart I am trying to restart Eclipse, but it is throwing exceptions (as seen in logs).
com.perforce.p4java.exception.AccessException: Your session has expired, please login again.
at com.perforce.p4java.impl.mapbased.server.Server.handleErrorStr(Server.java:4453)
at com.perforce.p4java.impl.mapbased.server.Server.getDepots(Server.java:2673)
at com.perforce.team.core.p4java.P4Connection$2.run(P4Connection.java:1057)
at com.perforce.team.core.p4java.P4Resource.runOperation(P4Resource.java:90)
at com.perforce.team.core.p4java.P4Connection.refresh(P4Connection.java:1060)
at com.perforce.team.core.p4java.P4Connection.isSandbox(P4Connection.java:1015)
at com.perforce.team.ui.decorator.PerforceDecorator.updateSandBoxAndStreamDecoration(PerforceDecorator.java:288)
at com.perforce.team.ui.decorator.PerforceDecorator.decorateProjectWithConnection(PerforceDecorator.java:275)
at com.perforce.team.ui.decorator.PerforceDecorator.getProjectText(PerforceDecorator.java:848)
at com.perforce.team.ui.decorator.PerforceDecorator.decorateProject(PerforceDecorator.java:562)
at com.perforce.team.ui.decorator.PerforceDecorator.decorateText(PerforceDecorator.java:812)
at org.eclipse.ui.internal.decorators.FullDecoratorDefinition.decorateText(FullDecoratorDefinition.java:134)
Also, below stack trace:
!ENTRY org.eclipse.equinox.security 4 0 2013-05-31 11:14:09.882
!MESSAGE Secure storage was unable to retrieve the master password from the OS keyring.
Make sure that this application has access to the OS keyring.
If the error persists, the password recovery feature could be used, or secure storage can be deleted and re-created.
java.lang.SecurityException: Could not obtain password. Result: -25300
at org.eclipse.equinox.internal.security.osx.OSXProvider.getPassword(Native Method)
at org.eclipse.equinox.internal.security.osx.OSXProvider.getPassword(OSXProvider.java:45)
at org.eclipse.equinox.internal.security.storage.PasswordProviderModuleExt.getPassword(PasswordProviderModuleExt.java:35)
at org.eclipse.equinox.internal.security.storage.SecurePreferencesRoot.getModulePassword(SecurePreferencesRoot.java:259)
at org.eclipse.equinox.internal.security.storage.SecurePreferencesRoot.getPassword(SecurePreferencesRoot.java:224)
at org.eclipse.equinox.internal.security.storage.SecurePreferences.get(SecurePreferences.java:262)
at org.eclipse.equinox.internal.security.storage.SecurePreferencesWrapper.get(SecurePreferencesWrapper.java:106)
at com.perforce.team.core.P4SecureStore.get(P4SecureStore.java:36)
at com.perforce.team.core.ConnectionParameters.getPassword(ConnectionParameters.java:265)
at com.perforce.team.ui.P4ConnectionManager.handleLoginError(P4ConnectionManager.java:374)
at com.perforce.team.ui.P4ConnectionManager.internalRetry(P4ConnectionManager.java:803)
at com.perforce.team.ui.P4ConnectionManager.shouldRetry(P4ConnectionManager.java:833)
at com.perforce.team.core.p4java.P4Connection.handleError(P4Connection.java:1649)
at com.perforce.team.core.p4java.P4Resource.runOperation(P4Resource.java:94)
at com.perforce.team.core.p4java.P4Connection.refresh(P4Connection.java:1060)
I have seen this issue before also, and at that time I was left with no other option but to reinstall Eclipse.
Please help me resolve this issue. Also, how to avoid hitting this issue again.
Thanks in advance.
UW.
This looks like Eclipse bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=391455
The bug suggests you go to 'Preferences / General / Security / Secure Storage' and turn of 'OS X Keystore Integration'

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.