Issue by Ippo343
_Saturday Dec 27, 2014 at 12:20 GMT # Sample: Friday Sep 13, 2013 at 22:58 GMT_
_Originally opened as https://github.com/KSP-CKAN/CKAN-support/issues/21_
_From @Ippo343 on December 9, 2014 17:6_
So, I found a neat way to brick my ckan :)
ckan repair registry did not help. I think that at the very least both the CLI and the GUI should catch it and avoid crashing hard.
_Copied from original issue: KSP-CKAN/CKAN#539_
Comment by Ippo343
_Saturday Dec 27, 2014 at 12:20 GMT # Sample: Friday Sep 13, 2013 at 22:58 GMT_
_From @pjf on December 10, 2014 5:9_
@Ippo343 : Out of curiosity, what happens if you try to install ModuleManager via the CKAN? It _should_ work, because at the end of the operation we're back in a consistent state.
What should our expected behaviour be here?
Comment by Ippo343
_Saturday Dec 27, 2014 at 12:20 GMT # Sample: Friday Sep 13, 2013 at 22:58 GMT_
_From @Postremus on December 10, 2014 5:49_
You can't install ModuleManager via they guy once you had it manuelly
removed. You simply can't select MM.
2014-12-10 6:09 GMT+01:00 Paul Fenwick [email protected]:
@Ippo343 https://github.com/Ippo343 : Out of curiosity, what happens if
you try to install ModuleManager via the CKAN? It _should_ work, because
at the end of the operation we're back in a consistent state.What should our expected behaviour be here?
—
Reply to this email directly or view it on GitHub
https://github.com/KSP-CKAN/CKAN/issues/539#issuecomment-66405451.
Comment by Ippo343
_Saturday Dec 27, 2014 at 12:20 GMT # Sample: Friday Sep 13, 2013 at 22:58 GMT_
_From @DuoDex on December 18, 2014 23:35_
I had this too.
Comment by Ippo343
_Saturday Dec 27, 2014 at 12:20 GMT # Sample: Friday Sep 13, 2013 at 22:58 GMT_
_From @henrybauer on December 23, 2014 18:19_
I just got this in 1.3.7, in the same way. I wanted to switch to the CKAN version of ModuleManager, so manually deleted the modulemanager DLL. Run ckan scan (or the GUI "refresh" button) and it crashes. Put the modulemanager DLL back in, and it runs fine.. but now since it's autodetected, I can't install the CKAN version of ModuleManager.
C:\Program Files (x86)\Steam\SteamApps\common\Kerbal Space Program>ckan scan
Unhandled Exception: CKAN.InconsistentKraken: Exception of type 'CKAN.Inconsiste
ntKraken' was thrown.
at CKAN.SanityChecker.EnforceConsistency(IEnumerable1 modules, IEnumerable1
dlls)
at CKAN.RegistryManager.Save()
at CKAN.KSP.ScanGameData()
at CKAN.CmdLine.MainClass.Scan(KSP current_instance)
at CKAN.CmdLine.MainClass.Main(String[] args)
C:\Program Files (x86)\Steam\SteamApps\common\Kerbal Space Program>
D'oh, I meant to ask what happens if you try to install it via the cmdline. We're seeing either two things here:
This is hopefully the first error (meaning it can at least be worked around by using the command line) and hopefully not the second.
In any case, we should be getting rid of autodetected mods sooner rather than later. They provide _very_ little value now that the CKAN is mature, and continue to provide us with lots and lots of pain.
So I cannot manually remove manually added mods without bricking my entire ckan installation!!!! That is ridiculous and as far as I am concerned makes CKAN useless garbage!
I just removed precisenode and procedural fairings as they were just added to ckan and now my entire 50+ mod installation is f'ing bricked! GG!@
If you manually uninstall a mod that many packages are dependent upon, yes, it will break CKAN. Not your KSP, though. All you need to do is reinstall the mod manually.
It is not ideal to start using CKAN after you have already installed mods, and CKAN is not designed to handle manually installed mods. Its purpose is to get you to the point where you don't have to install mods manually. Your KSP should be fine if you reinstall those mods manually. To fix the problem, find the mods that are dependent on the ones you deleted, uninstall them, then manually delete your manually installed dependencies, then you should be able to go into CKAN and install everything back.
thx. I will track down the dependencies.
The problem not manually adding mods if one uses CKAN is that mods are
constantly being added to the CKAN repository. For instance, Proc
fairings was not in CKAN a couple days ago. I think it is not really
reasonable to ask users to forgo using all mods until they are added to the
CKAN repository.
But now that I know what is causing the crash I can fix it.
https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon
Virus-free.
www.avast.com
https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link
<#DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
On Sun, Apr 24, 2016 at 3:03 AM, Myk Dowling [email protected]
wrote:
If you manually uninstall a mod that many packages are dependent upon,
yes, it will break CKAN. Not your KSP, though. All you need to do is
reinstall the mod manually.It is not ideal to start using CKAN after you have already installed mods,
and CKAN is not designed to handle manually installed mods. Its purpose is
to get you to the point where you don't have to install mods manually. Your
KSP should be fine if you reinstall those mods manually. To fix the
problem, find the mods that are dependent on the ones you deleted,
uninstall them, then manually delete your manually installed dependencies,
then you should be able to go into CKAN and install everything back.—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
https://github.com/KSP-CKAN/CKAN/issues/885#issuecomment-213906149
If you see a mod that you know is released for a specific KSP version, and CKAN doesn't have it, post an issue about that, and we'll fix it.
As of #2674 we are able to install a missing Module Manager dependency. I think this is resolved.