Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Mods found #732

Closed
basbebe opened this issue Jan 5, 2015 · 7 comments
Closed

No Mods found #732

basbebe opened this issue Jan 5, 2015 · 7 comments

Comments

@basbebe
Copy link

basbebe commented Jan 5, 2015

Hi! Since Friday (I think) my CKAN doesn't find any mods any more.
I'm on a Mac. The problem persists with every CKAN version from 1.5.0 to 1.5.3 (haven't tried earlier versions).
I'm only using the mirrors from http://api.ksp-ckan.org/mirrors since the regular Repo doesn't work for me (I'm on the latest Mono Hotfix (3.10.0.31) but I get a certificate error anyways). Both mirrors have the same effect for me.

mono ckan.exe update --repo="http://amsterdam.ksp-ckan.org/master.zip" -v
129 [1] INFO CKAN.CmdLine.MainClass (null) - Verbose logging enabled
163 [1] INFO CKAN.CmdLine.MainClass (null) - Using KSP install at XXXX/Library/Application Support/Steam/SteamApps/common/Kerbal Space Program
Downloading updates...
320 [1] INFO CKAN.Repo (null) - Downloading http://amsterdam.ksp-ckan.org/master.zip
Downloading http://amsterdam.ksp-ckan.org/master.zip
Updated information on 0 available modules

A refresh in the GUI has the same effect.

The mirror homepages (e.g. http://amsterdam.ksp-ckan.org) seem to throw some errors, their ZIP files are empty.

Is there a method to update manually from a local file?

@basbebe
Copy link
Author

basbebe commented Jan 5, 2015

I managed to manually update from a manually downloaded Repo:

mono ckan.exe update --repo="XXX/Desktop/CKAN-meta-master.zip"
Downloading updates...
Updated information on 252 available modules

Then I'm getting an error while upgrading:

mono ckan.exe upgrade --all

Upgrading modules...

Downloading "https://github.com/KSP-RO/RealismOverhaul/releases/download/v7.0.5/RealismOverhaul7_0_5.zip"
Failed to download "https://github.com/KSP-RO/RealismOverhaul/releases/download/v7.0.5/RealismOverhaul7_0_5.zip" - error: Error: SendFailure (Error writing headers)

Unhandled Exception:
Uh oh, the following things went wrong when downloading...

System.Net.WebException: Error: SendFailure (Error writing headers) ---> System.Net.WebException: Error writing headers ---> System.IO.IOException: The authentication or decryption has failed. ---> Mono.Security.Protocol.Tls.TlsException: Invalid certificate received from server. Error code: 0x5
  at Mono.Security.Protocol.Tls.Handshake.Client.TlsServerCertificate.RemoteValidation (Mono.Security.Protocol.Tls.ClientContext context, AlertDescription description) [0x00000] in <filename unknown>:0 
  at Mono.Security.Protocol.Tls.Handshake.Client.TlsServerCertificate.validateCertificates (Mono.Security.X509.X509CertificateCollection certificates) [0x00000] in <filename unknown>:0 
  at Mono.Security.Protocol.Tls.Handshake.Client.TlsServerCertificate.ProcessAsTls1 () [0x00000] in <filename unknown>:0 
  at Mono.Security.Protocol.Tls.Handshake.HandshakeMessage.Process () [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) Mono.Security.Protocol.Tls.Handshake.HandshakeMessage:Process ()
  at Mono.Security.Protocol.Tls.ClientRecordProtocol.ProcessHandshakeMessage (Mono.Security.Protocol.Tls.TlsStream handMsg) [0x00000] in <filename unknown>:0 
  at Mono.Security.Protocol.Tls.RecordProtocol.InternalReceiveRecordCallback (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at Mono.Security.Protocol.Tls.SslClientStream.EndNegotiateHandshake (IAsyncResult result) [0x00000] in <filename unknown>:0 
  at Mono.Security.Protocol.Tls.SslStreamBase.AsyncHandshakeCallback (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  --- End of inner exception stack trace ---
  at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0 
  at System.Net.HttpWebRequest.GetResponse () [0x00000] in <filename unknown>:0 
  at System.Net.WebClient.GetWebResponse (System.Net.WebRequest request) [0x00000] in <filename unknown>:0 
  at System.Net.WebClient.DownloadFileCore (System.Uri address, System.String fileName, System.Object userToken) [0x00000] in <filename unknown>:0 
  at System.Net.WebClient.<DownloadFileAsync>m__1 (System.Object state) [0x00000] in <filename unknown>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: Uh oh, the following things went wrong when downloading...

System.Net.WebException: Error: SendFailure (Error writing headers) ---> System.Net.WebException: Error writing headers ---> System.IO.IOException: The authentication or decryption has failed. ---> Mono.Security.Protocol.Tls.TlsException: Invalid certificate received from server. Error code: 0x5
  at Mono.Security.Protocol.Tls.Handshake.Client.TlsServerCertificate.RemoteValidation (Mono.Security.Protocol.Tls.ClientContext context, AlertDescription description) [0x00000] in <filename unknown>:0 
  at Mono.Security.Protocol.Tls.Handshake.Client.TlsServerCertificate.validateCertificates (Mono.Security.X509.X509CertificateCollection certificates) [0x00000] in <filename unknown>:0 
  at Mono.Security.Protocol.Tls.Handshake.Client.TlsServerCertificate.ProcessAsTls1 () [0x00000] in <filename unknown>:0 
  at Mono.Security.Protocol.Tls.Handshake.HandshakeMessage.Process () [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) Mono.Security.Protocol.Tls.Handshake.HandshakeMessage:Process ()
  at Mono.Security.Protocol.Tls.ClientRecordProtocol.ProcessHandshakeMessage (Mono.Security.Protocol.Tls.TlsStream handMsg) [0x00000] in <filename unknown>:0 
  at Mono.Security.Protocol.Tls.RecordProtocol.InternalReceiveRecordCallback (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at Mono.Security.Protocol.Tls.SslClientStream.EndNegotiateHandshake (IAsyncResult result) [0x00000] in <filename unknown>:0 
  at Mono.Security.Protocol.Tls.SslStreamBase.AsyncHandshakeCallback (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  --- End of inner exception stack trace ---
  at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0 
  at System.Net.HttpWebRequest.GetResponse () [0x00000] in <filename unknown>:0 
  at System.Net.WebClient.GetWebResponse (System.Net.WebRequest request) [0x00000] in <filename unknown>:0 
  at System.Net.WebClient.DownloadFileCore (System.Uri address, System.String fileName, System.Object userToken) [0x00000] in <filename unknown>:0 
  at System.Net.WebClient.<DownloadFileAsync>m__1 (System.Object state) [0x00000] in <filename unknown>:0

@hakan42
Copy link
Member

hakan42 commented Jan 5, 2015

Are you possibly behind a certificate rewriting proxy? The ssl errors would suggest that.

You did run the mozimport thing from the wiki, right?

@basbebe
Copy link
Author

basbebe commented Jan 5, 2015

I did run the mozimport.
I'm not behind any proxy. I also tested at different internet access points from different ISPs.
I don't have any problems with any other kind of TLS / SSL handshakes (outside of Mono).

@hakan42
Copy link
Member

hakan42 commented Jan 5, 2015

Seems to be an interesting problem on github's part

curl -v  https://github.com/KSP-RO/RealismOverhaul/releases/download/v7.0.5/RealismOverhaul7_0_5.zip

gives me a "HTTP/1.1 302 Found"

Then again, this is the exact link that is being shown on the releases page of that github project...

No clue as of yet, still investigating.

@basbebe
Copy link
Author

basbebe commented Jan 5, 2015

The link works for me (OS X, Safari 8.0.2)

@Wizarth
Copy link
Contributor

Wizarth commented Jan 5, 2015

HTTP 302 is a form of redirect (it returns an alternate location header). Will probably need to enable following redirects (most HTTP implementations leave it off by default).

(For example, with curl it's the -L flag ).

@AlexanderDzhoganov
Copy link
Member

This was a bug in mirrorkan, it should be fixed and the mirrors back online soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants