Skip to content

CKAN cannot find KSP version #2042

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

Closed
Topspeedboy21 opened this issue May 7, 2017 · 18 comments
Closed

CKAN cannot find KSP version #2042

Topspeedboy21 opened this issue May 7, 2017 · 18 comments

Comments

@Topspeedboy21
Copy link

Hi, I'm new to CKAN and just installed the latest version, Georgy along with the latest version of mono. CKAN instantly crashes as soon as I open it and the code can be seen here.

150225 [1] ERROR CKAN.URLHandlers (null) - There was an error while registering the URL handler for ckan:// - Could not find a part of the path "/Users/(my name)/.local/share/applications/mimeapps.list".
150239 [1] ERROR CKAN.URLHandlers (null) - at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x001cf] in :0
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options, System.String msgPath, System.Boolean bFromProxy, System.Boolean useLongPath, System.Boolean checkHost) [0x00000] in :0
at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions,string,bool,bool,bool)
at System.IO.StreamWriter.CreateFile (System.String path, System.Boolean append, System.Boolean checkHost) [0x00022] in :0
at System.IO.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding, System.Int32 bufferSize, System.Boolean checkHost) [0x00061] in :0
at System.IO.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding, System.Int32 bufferSize) [0x00000] in :0
at System.IO.StreamWriter..ctor (System.String path) [0x00008] in :0
at (wrapper remoting-invoke-with-check) System.IO.StreamWriter:.ctor (string)
at System.IO.File.WriteAllLines (System.String path, System.String[] contents) [0x00000] in :0
at CKAN.URLHandlers.RegisterURLHandler_Linux () [0x00055] in :0
at CKAN.URLHandlers.RegisterURLHandler (CKAN.Configuration config, CKAN.IUser user) [0x0000d] in :0
150280 [1] ERROR CKAN.KSP (null) - Could not find KSP version
CKAN.NotKSPDirKraken: Could not find KSP version in readme.txt
at CKAN.KSP.DetectVersion (System.String directory) [0x00048] in :0
at CKAN.KSP.Version () [0x00026] in :0
at CKAN.Main.m__B () [0x00012] in :0
at CKAN.Util.Invoke[T] (T obj, System.Action action) [0x00035] in :0
at CKAN.Main.CurrentInstanceUpdated () [0x00001] in :0
at CKAN.Main.OnLoad (System.EventArgs e) [0x00248] in :0
at System.Windows.Forms.Form.OnLoadInternal (System.EventArgs e) [0x00029] in :0

Can someone please help me, I'm on a Mac running Sierra 10.12.1 and KSP 1.2.2

Thanks!

@Topspeedboy21
Copy link
Author

Nevermind, but I have found a problem within this. I know why it is crashing. It says that the KSP version couldn't be found within the readme.txt

However, I went into the readme.txt and found the version right away, anyway I could fix this?

@Olympic1
Copy link
Member

Olympic1 commented May 7, 2017

CKAN now reads the version from the buildID.txt file. Navigate to your KSP install directory and check if there is one.

In the future, check the wiki before opening a support ticket.

@Topspeedboy21
Copy link
Author

I tried editing the buildID.txt file and there is a file. It doesn't say the version so I put it in there and it says that ckan could not find ksp version within readme.txt

Please help...

@Olympic1
Copy link
Member

Olympic1 commented May 7, 2017

You don't need to edit anything! In your readme should be Version 1.2.2 and your buildID should look like this:

build id = 01622
2016.12.06 at 08:30:17 CET
Branch: master

Just point CKAN to the buildID

@Topspeedboy21
Copy link
Author

how do I do that?

@Topspeedboy21
Copy link
Author

The command that I used is mono ckan.exe

@politas
Copy link
Member

politas commented May 7, 2017

What operating system are you using?

@Topspeedboy21
Copy link
Author

macOS Sierra 10.12.1

@Topspeedboy21
Copy link
Author

would you like to know my specs @politas ?

@Topspeedboy21
Copy link
Author

Okay, so I been experimenting with the command mono ckan.exe putting extra commands at the end like compat or gui, and I got this message when I tried mono ckan.exe compat

Unhandled Exception:
System.NullReferenceException: Object reference not set to an instance of an object
at CommandLine.HelpVerbOptionAttribute.InvokeMethod (System.Object target, CommandLine.Infrastructure.Pair2[TLeft,TRight] helpInfo, System.String verb, System.String& text) [0x00003] in <db7f644cef3d44268a3a52ddab219b4b>:0 at CommandLine.Parser.DisplayHelpVerbText (System.Object options, CommandLine.Infrastructure.Pair2[TLeft,TRight] helpInfo, System.String verb) [0x00003] in :0
at CommandLine.Parser.DoParseArgumentsVerbs (System.String[] args, System.Object options, System.Object& verbInstance) [0x00023] in :0
at CommandLine.Parser.ParseArgumentsStrict (System.String[] args, System.Object options, System.Action2[T1,T2] onVerbCommand, System.Action onFail) [0x00032] in <db7f644cef3d44268a3a52ddab219b4b>:0 at CKAN.CmdLine.Action.CompatSubCommand.RunSubCommand (CKAN.CmdLine.SubCommandOptions options) [0x0002a] in <db7f644cef3d44268a3a52ddab219b4b>:0 at CKAN.CmdLine.MainClass.RunAction (CKAN.CmdLine.Options cmdline, CKAN.CmdLine.CommonOptions options, System.String[] args, CKAN.IUser user, CKAN.KSPManager manager) [0x0031a] in <db7f644cef3d44268a3a52ddab219b4b>:0 at CKAN.CmdLine.MainClass.Main (System.String[] args) [0x003bb] in <db7f644cef3d44268a3a52ddab219b4b>:0 [ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object at CommandLine.HelpVerbOptionAttribute.InvokeMethod (System.Object target, CommandLine.Infrastructure.Pair2[TLeft,TRight] helpInfo, System.String verb, System.String& text) [0x00003] in :0
at CommandLine.Parser.DisplayHelpVerbText (System.Object options, CommandLine.Infrastructure.Pair2[TLeft,TRight] helpInfo, System.String verb) [0x00003] in <db7f644cef3d44268a3a52ddab219b4b>:0 at CommandLine.Parser.DoParseArgumentsVerbs (System.String[] args, System.Object options, System.Object& verbInstance) [0x00023] in <db7f644cef3d44268a3a52ddab219b4b>:0 at CommandLine.Parser.ParseArgumentsStrict (System.String[] args, System.Object options, System.Action2[T1,T2] onVerbCommand, System.Action onFail) [0x00032] in :0
at CKAN.CmdLine.Action.CompatSubCommand.RunSubCommand (CKAN.CmdLine.SubCommandOptions options) [0x0002a] in :0
at CKAN.CmdLine.MainClass.RunAction (CKAN.CmdLine.Options cmdline, CKAN.CmdLine.CommonOptions options, System.String[] args, CKAN.IUser user, CKAN.KSPManager manager) [0x0031a] in :0
at CKAN.CmdLine.MainClass.Main (System.String[] args) [0x003bb] in :0

I don't know if this means anything, but I think it means that the compatibility of the KSP I am using isn't working with the ckan.exe file.

Can someone confirm?

@Topspeedboy21
Copy link
Author

I think I may have found the problem, if not...

When I look at my Readme.txt or my buildID.txt, I get a message saying that there is not enough iCloud storage. I could be wrong but I think that ckan needs the files to be on iCloud as well as on the desktop inside the KSP folder.

@Topspeedboy21
Copy link
Author

Nevermind, it doesn't work

@Topspeedboy21 Topspeedboy21 changed the title Instant Crash on open CKAN cannot find KSP version May 7, 2017
@Topspeedboy21
Copy link
Author

Anyone have a solution

@politas
Copy link
Member

politas commented May 8, 2017

Go buy a copy of KSP.

@politas politas closed this as completed May 8, 2017
@ofetios
Copy link

ofetios commented Feb 7, 2018

@politas I'm also having this issue and I do have a legal copy of KSP

@Rammix
Copy link

Rammix commented Mar 13, 2018

It seems this software just can't handle it if KSP folder is moved elsewhere.
When my KSP was in steam location ckan worked fine (relatively fine, that is for a non-native app on linux), when I moved KSP to another drive (ssd) ckan started crashing with CKAN.NotKSPDirKraken: Could not find KSP version in buildID.txt or readme.txt
It's funny that when I start ckan with wine64, it starts, allows to point at the KSP directory and even works - until I try to refresh the mods list. But it just crashes with the mentioned error when I start it in the intended way with mono.

Sorry, something went wrong.

@Rammix
Copy link

Rammix commented Mar 13, 2018

Is there some configuration file to edit to point CKAN at the correct directory?

Sorry, something went wrong.

@HebaruSan
Copy link
Member

@Rammix, can you please create a new issue report for your problem? I'd rather not trying to investigate it in the comments of this old unrelated issue.

Sorry, something went wrong.

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

6 participants