KSP-CKAN / CKAN

The Comprehensive Kerbal Archive Network
https://forum.kerbalspaceprogram.com/index.php?/topic/197082-*
Other
1.97k stars 347 forks source link

Downloads failed dialog doesn't appear #3901

Closed P1XZL closed 1 year ago

P1XZL commented 1 year ago

Every time I try to start CKAN it keeps being stuck on the repositories. I have reinstalled ckan multiple times, even tried an older version and it still crashed. What do I do? image_2023-09-10_173546516

HebaruSan commented 1 year ago

Sorry to be the bearer of bad news, but in previous cases of this the cause was that the user's PC was infected with crypto mining malware that changed the hosts file, see #3802 and #3814. But at least now you know and can clean it up!

HebaruSan commented 1 year ago

Although, now I'm curious what this is about:

image

Did you add that repository yourself? If so, why and what is it for?

Looking at that repo:

https://github.com/ckan/ckanext-apihelper

... it's from the "other CKAN" (a data management system that has nothing to do with Kerbal mods)! So it would have nothing to do with KSP-CKAN and shouldn't be used this way. Wow, we've had crossovers of users of that CKAN asking questions here and vice versa, but this is the first time I've seen someone actually attempt to mix the two projects in some way!

So which project are you intending to use? The database management system, or the Kerbal mod installer?

P1XZL commented 1 year ago

I'm trying to just use the kerbal mod installer. Also, do you have any idea on how I could fix that malware issue and completely reset the ckan configs?

HebaruSan commented 1 year ago

@P1XZL, can you please answer this question?

Did you add that repository yourself? If so, why and what is it for?

You may not have malware; that was my first guess before I squinted more closely at that screenshot and saw that weird repository.

You don't need to completely reset the CKAN configs. Just go to the settings and remove the extra repo.

P1XZL commented 1 year ago

Sorry for that, yes I added the repository myself. I thought that was like a plugin for ckan. Btw I cannot access the settings because it keeps freezing.

HebaruSan commented 1 year ago

Btw I cannot access the settings because it keeps freezing.

Ahh, I see. In that case you can reset that config by going to your <KSP folder>/CKAN folder and deleting registry.json.

P1XZL commented 1 year ago

I'll try that, thanks. I'll come back if something went wrong or not

P1XZL commented 1 year ago

Ay man, thanks. It works again! Now I can go bombard my gamedata folder with mods again

P1XZL commented 1 year ago

Oh and something else completely, what is the best version for modding?

HebaruSan commented 1 year ago

This is just my personal opinion, but I would use 1.12.5 with a compatible version range of 1.10–1.12. Most mods released for that range still work.

https://github.com/KSP-CKAN/CKAN/wiki/User-guide#Choosing-compatible-game-versions

P1XZL commented 1 year ago

I'll try that, one thing tho, I use 1.11.1 now just to try and I see a lot of mods there that I never saw on ckan KSP version 1.12.5

HebaruSan commented 1 year ago

Yeah, if you click that link, it will tell you how to make those mods appear for 1.12.5 as well.

HebaruSan commented 1 year ago

... aaand there's also a bug here. It should be popping this up instead of freezing.

image

Reopening to fix. (The cause seems to be the usual Winforms threading stuff.)