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

Ckan not launching on Ubuntu 18.10 #2611

Closed
suisseWalter opened this issue Dec 15, 2018 · 5 comments
Closed

Ckan not launching on Ubuntu 18.10 #2611

suisseWalter opened this issue Dec 15, 2018 · 5 comments

Comments

@suisseWalter
Copy link

I am trying to launch ckan on my Ubuntu 18.10 machine. It worked before, on 18.4(even though with some slight hickups). Now on 18.10 it fails completely. I also tried to build it myself but that fails aswell, error listed below. the error is listed bellow. the system is as up-to-date as possible but when I run the <sudo apt-get update> command it fails to update the monodevelpo-beta package, error listed below. could that be the source of the problem?

ckan build error:

System.TypeInitializationException: The type initializer for 'System.Console' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.ConsoleDriver' threw an exception. ---> System.Exception: Magic number is wrong: 542
  at System.TermInfoReader.ReadHeader (System.Byte[] buffer, System.Int32& position) [0x0002b] in <8f2c484307284b51944a1a13a14c0266>:0 
  at System.TermInfoReader..ctor (System.String term, System.String filename) [0x00065] in <8f2c484307284b51944a1a13a14c0266>:0 
  at System.TermInfoDriver..ctor (System.String term) [0x00058] in <8f2c484307284b51944a1a13a14c0266>:0 
  at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 
  at System.ConsoleDriver..cctor () [0x00062] in <8f2c484307284b51944a1a13a14c0266>:0 
   --- End of inner exception stack trace ---
  at System.Console.SetupStreams (System.Text.Encoding inputEncoding, System.Text.Encoding outputEncoding) [0x0000a] in <8f2c484307284b51944a1a13a14c0266>:0 
  at System.Console..cctor () [0x000a8] in <8f2c484307284b51944a1a13a14c0266>:0 
   --- End of inner exception stack trace ---
  at NuGet.CommandLine.Program.MainCore (System.String workingDirectory, System.String[] args) [0x00032] in <c5680ae278c945c8aca3a0ceccb58bcc>:0 
  at NuGet.CommandLine.Program.Main (System.String[] args) [0x00005] in <c5680ae278c945c8aca3a0ceccb58bcc>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'System.Console' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.ConsoleDriver' threw an exception. ---> System.Exception: Magic number is wrong: 542
  at System.TermInfoReader.ReadHeader (System.Byte[] buffer, System.Int32& position) [0x0002b] in <8f2c484307284b51944a1a13a14c0266>:0 
  at System.TermInfoReader..ctor (System.String term, System.String filename) [0x00065] in <8f2c484307284b51944a1a13a14c0266>:0 
  at System.TermInfoDriver..ctor (System.String term) [0x00058] in <8f2c484307284b51944a1a13a14c0266>:0 
  at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 
  at System.ConsoleDriver..cctor () [0x00062] in <8f2c484307284b51944a1a13a14c0266>:0 
   --- End of inner exception stack trace ---
  at System.Console.SetupStreams (System.Text.Encoding inputEncoding, System.Text.Encoding outputEncoding) [0x0000a] in <8f2c484307284b51944a1a13a14c0266>:0 
  at System.Console..cctor () [0x000a8] in <8f2c484307284b51944a1a13a14c0266>:0 
   --- End of inner exception stack trace ---
  at NuGet.CommandLine.Program.MainCore (System.String workingDirectory, System.String[] args) [0x00032] in <c5680ae278c945c8aca3a0ceccb58bcc>:0 
  at NuGet.CommandLine.Program.Main (System.String[] args) [0x00005] in <c5680ae278c945c8aca3a0ceccb58bcc>:0 

<mono ckan.exe> error:

Unhandled Exception:
System.TypeInitializationException: The type initializer for 'CommandLine.Parser' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.Console' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.ConsoleDriver' threw an exception. ---> System.Exception: Magic number is wrong: 542
  at System.TermInfoReader.ReadHeader (System.Byte[] buffer, System.Int32& position) [0x0002b] in <8f2c484307284b51944a1a13a14c0266>:0 
  at System.TermInfoReader..ctor (System.String term, System.String filename) [0x00065] in <8f2c484307284b51944a1a13a14c0266>:0 
  at System.TermInfoDriver..ctor (System.String term) [0x00058] in <8f2c484307284b51944a1a13a14c0266>:0 
  at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 
  at System.ConsoleDriver..cctor () [0x00062] in <8f2c484307284b51944a1a13a14c0266>:0 
   --- End of inner exception stack trace ---
  at System.Console.SetupStreams (System.Text.Encoding inputEncoding, System.Text.Encoding outputEncoding) [0x0000a] in <8f2c484307284b51944a1a13a14c0266>:0 
  at System.Console..cctor () [0x000a8] in <8f2c484307284b51944a1a13a14c0266>:0 
   --- End of inner exception stack trace ---
  at CommandLine.Parser.<.ctor>b__1 (CommandLine.ParserSettings with) [0x0000e] in <2c2371fb3f2949b2a6dfae930758e6ee>:0 
  at CommandLine.Parser..ctor (System.Action`1[T] configuration) [0x00028] in <2c2371fb3f2949b2a6dfae930758e6ee>:0 
  at CommandLine.Parser..ctor (System.Boolean singleton) [0x00000] in <2c2371fb3f2949b2a6dfae930758e6ee>:0 
  at CommandLine.Parser..cctor () [0x00000] in <2c2371fb3f2949b2a6dfae930758e6ee>:0 
   --- End of inner exception stack trace ---
  at CKAN.CmdLine.Options..ctor (System.String[] args) [0x00006] in <2c2371fb3f2949b2a6dfae930758e6ee>:0 
  at CKAN.CmdLine.MainClass.Execute (CKAN.KSPManager manager, CKAN.CmdLine.CommonOptions opts, System.String[] args) [0x00116] in <2c2371fb3f2949b2a6dfae930758e6ee>:0 
  at CKAN.CmdLine.MainClass.Main (System.String[] args) [0x00091] in <2c2371fb3f2949b2a6dfae930758e6ee>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'CommandLine.Parser' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.Console' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.ConsoleDriver' threw an exception. ---> System.Exception: Magic number is wrong: 542
  at System.TermInfoReader.ReadHeader (System.Byte[] buffer, System.Int32& position) [0x0002b] in <8f2c484307284b51944a1a13a14c0266>:0 
  at System.TermInfoReader..ctor (System.String term, System.String filename) [0x00065] in <8f2c484307284b51944a1a13a14c0266>:0 
  at System.TermInfoDriver..ctor (System.String term) [0x00058] in <8f2c484307284b51944a1a13a14c0266>:0 
  at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 
  at System.ConsoleDriver..cctor () [0x00062] in <8f2c484307284b51944a1a13a14c0266>:0 
   --- End of inner exception stack trace ---
  at System.Console.SetupStreams (System.Text.Encoding inputEncoding, System.Text.Encoding outputEncoding) [0x0000a] in <8f2c484307284b51944a1a13a14c0266>:0 
  at System.Console..cctor () [0x000a8] in <8f2c484307284b51944a1a13a14c0266>:0 
   --- End of inner exception stack trace ---
  at CommandLine.Parser.<.ctor>b__1 (CommandLine.ParserSettings with) [0x0000e] in <2c2371fb3f2949b2a6dfae930758e6ee>:0 
  at CommandLine.Parser..ctor (System.Action`1[T] configuration) [0x00028] in <2c2371fb3f2949b2a6dfae930758e6ee>:0 
  at CommandLine.Parser..ctor (System.Boolean singleton) [0x00000] in <2c2371fb3f2949b2a6dfae930758e6ee>:0 
  at CommandLine.Parser..cctor () [0x00000] in <2c2371fb3f2949b2a6dfae930758e6ee>:0 
   --- End of inner exception stack trace ---
  at CKAN.CmdLine.Options..ctor (System.String[] args) [0x00006] in <2c2371fb3f2949b2a6dfae930758e6ee>:0 
  at CKAN.CmdLine.MainClass.Execute (CKAN.KSPManager manager, CKAN.CmdLine.CommonOptions opts, System.String[] args) [0x00116] in <2c2371fb3f2949b2a6dfae930758e6ee>:0 
  at CKAN.CmdLine.MainClass.Main (System.String[] args) [0x00091] in <2c2371fb3f2949b2a6dfae930758e6ee>:0 

monodevelop-beta update error:

Get:6 http://security.ubuntu.com/ubuntu cosmic-security InRelease [83.2 kB]    
Err:7 http://ppa.launchpad.net/ermshiperete/monodevelop-beta/ubuntu cosmic Release
  404  Not Found [IP: 91.189.95.83 80]
Reading package lists... Done                                                  
E: The repository 'http://ppa.launchpad.net/ermshiperete/monodevelop-beta/ubuntu cosmic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Background

Operating System:
Ubuntu 18.10

I hope I provided enough data that someone can figure out whats wrong here.

@suisseWalter
Copy link
Author

well was a failed install of mono. reinstalled it and it launches now. and it also corrected many graphical glitches I had in Ubuntu 18.10

@DasSkelett
Copy link
Member

DasSkelett commented Dec 15, 2018

I don't know if it was what you fixed, but it seems that you tried to install a beta version of mono and monodevelop from this repo, but it states that it is no longer maintained. You should go to the official mono (preview) release.
So I think you had an old version of mono installed, and the issue you encountered is fixed since mono 4.10, see this mono/mono#6752 issue.

@suisseWalter
Copy link
Author

suisseWalter commented Dec 15, 2018

I realised that now. but the problem is, in the wiki it still suggests the old way if you follow the guide to build it. https://github.com/KSP-CKAN/CKAN/wiki/Build-Environment

@HebaruSan
Copy link
Member

I just deleted that stuff about the PPA. @suisseWalter, can you check that it's better now?

@suisseWalter
Copy link
Author

I think that should be fine now

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

3 participants