Error 81 when launching web app on Gear S2 device - certificate

I am using Tizen SDK (2.4.0_Rev5) to launch the demo app HelloTizen (wearable-2.3) on my Gear S2 but it fails, with the following error:
Unknown Error [81]
Unknown Error [81]
When I try to install it with sdb install HelloTizen.wgt I get the following output:
pushed HelloTizen.wgt 100% 36KB 0KB/s
1 file(s) pushed. 0 file(s) skipped.
/home/user/tizen/HelloTizen/HelloTizen.wgt 114KB/s (37179 bytes in 0.318s)
path is /opt/usr/apps/tmp/HelloTizen.wgt
__return_cb req_id[138540002] pkg_type[wgt] pkgid[RFZKe67scd] key[start] val[install]
__return_cb req_id[138540002] pkg_type[wgt] pkgid[RFZKe67scd] key[install_percent] val[3]
__return_cb req_id[138540002] pkg_type[wgt] pkgid[RFZKe67scd] key[install_percent] val[22]
__return_cb req_id[138540002] pkg_type[wgt] pkgid[RFZKe67scd] key[install_percent] val[25]
__return_cb req_id[138540002] pkg_type[wgt] pkgid[RFZKe67scd] key[install_percent] val[33]
__return_cb req_id[138540002] pkg_type[wgt] pkgid[RFZKe67scd] key[error] val[81] error message: Non trusted certificate is used. Register valid certificate
__return_cb req_id[138540002] pkg_type[wgt] pkgid[RFZKe67scd] key[end] val[fail]
processing result : Unknown Error [81] failed
spend time for pkgcmd is [1385]ms
There is the output from sdb dlog:
W/WRT_INSTALLER(20115): task_certify.cpp: StartStep(619) > --------- <TaskCertify> : START ----------
E/WMS ( 490): wms_event_handler.c: _wms_event_handler_cb_log_package(4560) > package [_________] callback : [INSTALL, PROCESSING]
E/WMS ( 490): wms_event_handler.c: _wms_event_handler_cb_log_package(4560) > package [_________] callback : [INSTALL, PROCESSING]
E/WMS ( 490): wms_event_handler.c: _wms_event_handler_cb_log_package(4560) > package [_________] callback : [INSTALL, PROCESSING]
E/WMS ( 490): wms_event_handler.c: _wms_event_handler_cb_log_package(4560) > package [_________] callback : [INSTALL, PROCESSING]
W/CERT_SVC(20115): OCSPCertMgrUtil.cpp: getCertFromStore(97) > Error during certificate search
W/CERT_SVC(20115): WrtSignatureValidator.cpp: check(365) > signature1.xml has got unrecognized Root CA certificate. Signature will be disregarded.
W/WRT_INSTALLER(20115): task_certify.cpp: throwCertificateInvalidException(373) > Certificate is Invalid [-34]
E/WRT_INSTALLER(20115): task_certify.cpp: stepSignature(350) > Error occured in signature validator: 81
E/APP2EXT (20115): job_widget_install.cpp: SendFinishedFailure(370) > Error number: 81
E/APP2EXT (20115): job_widget_install.cpp: SendFinishedFailure(371) > Message: Non trusted certificate is used. Register valid certificate
W/WRT_INSTALLER(20115): pkgmgr_signal.cpp: sendSignal(275) > Success to send pkgmgr signal: error - 81:Non trusted certificate is used. Register valid certificate
W/WRT_INSTALLER(20115): pkgmgr_signal.cpp: sendSignal(275) > Success to send pkgmgr signal: end - fail
E/WRT_INSTALLER(20115): wrt-installer.cpp: staticWrtStatusCallback(1102) > Step failed
So, it seems to be a certificate related error. I did generate my certificate in Security Profiles with one generate author certificate and the automatic certificate for distributor. I also used Register Certificate but I do not know if it worked because when I clicked on OK, nothing happened.
The other thing I did was to enable Permit to install applications for my device. But, as for the certificate registration, I do not know if it worked because nothing happened. I checked in /home/developer and there is no device-profile.xml file.

If you run app in Emulator, then IDE generated certificate will work. But you are running app in Gear S2 which has user binary, that's why you need to get author certificate from samsung. Below link will show you the way of installing extension sdk for certificate for both emulator and device.
https://developer.tizen.org/ko/community/tip-tech/issuing-tizen-certificate-certificate-extension-ver-1.2

Related

How can I connect to MongoDB Atlas through Python 3.6 on my Macbook Air without SSL handshake error?

I've set up a test MongoDb Atlas account, just one of the free ones and using the below code on my Ubuntu box I can successfully create users and also search for them.
When I try the exact same thing on my MacBook Air I get an SSL handshake as below.
pymongo.errors.ServerSelectionTimeoutError: SSL handshake failed: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833),SSL handshake failed: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833),SSL handshake failed: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)
import pymongo
client = pymongo.MongoClient("mongodb+srv://MYUSERNAME:MYPASSWORD#cluster0-ABCDEF.mongodb.net/test")
db = client.johnny
collection = db.myjohnnytest
example = {'name' : 'Johnny',
'email' : 'johnny#test.net'}
user_id = collection.insert_one(example).inserted_id
I found this answer which seemed like it was the key:
Stack Overflow Answer
But I have since tried this and whether I follow it exactly or activate my virtualenv I get the following error:
Could not find an activated virtualenv (required).
Traceback (most recent call last):
File "", line 44, in
File "", line 25, in main
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 291, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6', '-E', '-s', '-m', 'pip', 'install', '--upgrade', 'certifi']' returned non-zero exit status 3.
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
By default, PyMongo is configured to require a certificate from the server when TLS is enabled. This is configurable using the ssl_cert_reqs option. To disable this requirement pass ssl.CERT_NONE as a keyword parameter:
>>> uri = 'mongodb://example.com/?ssl=true&ssl_cert_reqs=CERT_NONE'
>>> client = pymongo.MongoClient(uri)
Have you update the CA bundle for Python?
From a bash shell/ terminal:
open "/Applications/Python 3.6/Install Certificates.command"
or Python 3.7 etc
MongoDB Documentation for Python
Stackoverflow article on MacOS, Python and CA
I am showing 2 ways of solving this:
(easiest)
Adding ...&ssl=true&ssl_ca_certs=/path/to/cert.pem to the mongodb url
(recommended)
Configuring python SSL connection.
$ python3 -c "import ssl; print(ssl.get_default_verify_paths())
DefaultVerifyPaths(cafile='/Library/Frameworks/Python.framework/Versions/3.6/etc/openssl/cert.pem', capath=None, openssl_cafile_env='SSL_CERT_FILE', openssl_cafile='/Library/Frameworks/Python.framework/Versions/3.6/etc/openssl/cert.pem', openssl_capath_env='SSL_CERT_DIR', openssl_capath='/Library/Frameworks/Python.framework/Versions/3.6/etc/openssl/certs')
Then make sure you add your cert.pem file to the specified path. In my case, I should add it to the folder /Library/Frameworks/Python.framework/Versions/3.6/etc/openssl/

Unable to add user properties in LDAP Server using Apache Directory Studio on my eclipse using LDAP browser

I have configured LDAP Server From Apache Directory Studio on my eclipse. I have created user and set the password as well.
Now I have to add the user properties and their values from eclipse- LDAP Browser like userName,userFaxNumber,userPhoneNo,userDesignation....
Please find the attached step:
while trying to add it I am getting below error:
Error while executing LDIF - [LDAP: error code 16 - NO_SUCH_ATTRIBUTE:
failed for MessageType : MODIFY_REQUES java.lang.Exception:
[LDAP:
error code 16 - NO_SUCH_ATTRIBUTE: failed for
MessageType : MODIFY_REQUEST Message ID : 20 Modify Request Object :
'uid=user1,ou=system' Modification[0] Operation : add Modification
userFaxNumber:
222222org.apache.directory.api.ldap.model.message.ModifyRequestImpl#a224a2db:
ERR_04269 ATTRIBUTE_TYPE for OID userfaxnumber does not exist!] at
org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.checkResponse(DirectoryApiConnectionWrapper.java:1374)
at
org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.access$9(DirectoryApiConnectionWrapper.java:1342)
at
org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper$4.run(DirectoryApiConnectionWrapper.java:736)
at
org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.runAndMonitor(DirectoryApiConnectionWrapper.java:1269)
at
org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.checkConnectionAndRunAndMonitor(DirectoryApiConnectionWrapper.java:1205)
at
org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.modifyEntry(DirectoryApiConnectionWrapper.java:758)
at
org.apache.directory.studio.ldapbrowser.core.jobs.ImportLdifRunnable.importLdifRecord(ImportLdifRunnable.java:515)
at
org.apache.directory.studio.ldapbrowser.core.jobs.ImportLdifRunnable.importLdif(ImportLdifRunnable.java:272)
at
org.apache.directory.studio.ldapbrowser.core.jobs.ExecuteLdifRunnable.executeLdif(ExecuteLdifRunnable.java:157)
at
org.apache.directory.studio.ldapbrowser.core.jobs.ExecuteLdifRunnable.run(ExecuteLdifRunnable.java:123)
at
org.apache.directory.studio.ldapbrowser.core.jobs.UpdateEntryRunnable.run(UpdateEntryRunnable.java:59)
at
org.apache.directory.studio.connection.ui.RunnableContextRunner$1.run(RunnableContextRunner.java:116)
at
org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)
[LDAP: error code 16 - NO_SUCH_ATTRIBUTE: failed for MessageType :
MODIFY_REQUEST Message ID : 20 Modify Request Object :
'uid=gridcomm22,ou=system' Modification[0] Operation : add
Modification rlSubmitterFaxNumber:
222222org.apache.directory.api.ldap.model.message.ModifyRequestImpl#a224a2db:
ERR_04269 ATTRIBUTE_TYPE for OID userfaxnumber does not exist!]
Please help.. Thanks in advance..

"Cannot set property 'msg' of null" error when running “webdriver-manager update”

Operating System: Windows7 x64
npm:3.10.10
webdriver-manager:12.0.5
protractor:5.1.1
nodejs:6.10.0
Error info:
C:\Users\Administrator\AppData\Roaming\npm>webdriver-manager update --ignore_ssl
[14:34:48] I/http_utils - ignoring SSL certificate
[14:34:48] I/http_utils - ignoring SSL certificate
[14:34:48] I/http_utils - ignoring SSL certificate
[14:34:52] I/http_utils - ignoring SSL certificate
[14:34:53] I/http_utils - ignoring SSL certificate
[14:35:06] I/http_utils - ignoring SSL certificate
[14:35:57] I/update - chromedriver: unzipping chromedriver_2.29.zip
C:\Users\Administrator\AppData\Roaming\npm\node_modules\protractor\node_modules\webdriver-manager\built\lib\files\downloader.js:53
error.msg = 'Error: corrupt download for ' + fileName +
^
TypeError: Cannot set property 'msg' of null
at fs.stat (C:\Users\Administrator\AppData\Roaming\npm\node_modules\protractor\node_modules\webdriver-manager\built\lib\files\downloader.js:53:47)
at FSReqWrap.oncomplete (fs.js:123:15)
It's ok yesterday and I think this error is caused by the new webdriver-manager 12.0.5
webdriver-manager#12.0.5 did not change the way the files were downloaded. The only new thing is that it does not download a new cache on webdriver-manager start. What could be the problem is that you might have cancelled the job when the file was writing the cached response.
You could do is navigate to your webdriver-manager/selenium/ folder and delete the contents or just delete the entire selenium/ directory then retry webdriver-manager update --ignore_ssl

Bluemix liberty runtime handshake failure while accessing dashDB datasource

Suddenly I am getting an SSL error message when I am trying to access a dashDb from an auto-configured liberty server, from somewhere deep in the DB2 driver. I have verified in the deployed files that the default keystore is auto-configured into the liberty server.
What is happening here?
java.security.cert.CertPathValidatorException: The certificate issued by CN=DigiCert Global Root CA, OU=www.digicert.com, O=DigiCert Inc, C=US is not trusted; internal cause is:
[ERROR ] CWPKI0022E: SSL HANDSHAKE FAILURE: A signer with SubjectDN CN=*.services.dal.bluemix.net, O=International Business Machines Corporation, L=Armonk, ST=New York, C=US was sent from the target host. The signer might need to be added to local trust store /home/vcap/app/wlp/usr/servers/BluemixServer/resources/security/key.jks, located in SSL configuration alias defaultSSLConfig. The extended error message from the SSL handshake exception is: PKIX path building failed: java.security.cert.CertPathBuilderException: PKIXCertPathBuilderImpl could not build a valid CertPath.; internal cause is
[err] java.sql.SQLNonTransientException: [jcc][t4][2030][11211][4.19.49] A communication error occurred during operations on the connection's underlying socket, socket input stream,
or socket output stream. Error location: Reply.fill() - socketInputStream.read (-1). Message: java.security.cert.CertificateException: PKIXCertPathBuilderImpl could not build a valid CertPath.. ERRORCODE=-4499, SQLSTATE=08001 DSRA0010E: SQL State = 08001, Error Code = -4,499
[err] at com.ibm.db2.jcc.am.kd.a(Unknown Source)
There was a change to dashDB last Friday which enhanced security requirements for cipher specs of applications accessing dashDB. If your application was working before last week and is not now, you may need to update your cipher.
Please refer to IBM technical report via this link
We can connect to dashDB with one of the following Liberty for java buildpacks. Please try redeploying your application and make sure that database URI has :sslConnection=true at the end.
Build packs
buildpack_liberty-for-java_v3.8-20170308-1507.zip (newest)
buildpack_liberty-for-java_v3.4.1-20161030-2241.zip (oldest)

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.