Netdex / Seppuku

A self-hosted digital deadman's switch installation with an extensible .NET module system.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Module WebAPI is Misbehaving

marvintvnet opened this issue · comments

I got the following error: https://prnt.sc/sdv09z

Can anybody help

This error happens when the application fails to start the web server that hosts the API. The most likely reason this could happen is when the port you select (19007 by default) is already bound by another application, or you have two instances of the application open and they both try to bind to the same port.

To be certain, try debugging the application and setting a breakpoint here, the exception thrown should give you and idea of what went wrong.

Hello.

I tryed on a Windows Machine (No Ports already used)

Is there a good Linux Install Guide ?

I'd suggest looking in task manager to see if there are any hidden instances of Seppuku.exe that may have been launched in the background accidentally. Otherwise, I'd still recommend setting a breakpoint on that line (or making it print e.Message), which would make diagnosing the issue much easier.
You can run the application like any other .NET binary under Linux using Mono.

File does not contain a valid CIL image. (On Linux with Mono)

You need to build the application on Linux with msbuild or xbuild (e.g. msbuild Seppuku.sln). It will create a binary bin/Debug/Seppuku.exe, which you can run with mono bin/Debug/Seppuku.exe.

Make sure you restore NuGet dependencies before the build. Under Linux you must download the NuGet binary first, then restore packages with mono nuget restore Seppuku.sln.

Oh Thanks forgot now it works, one last thing. Is it not configureable on web? https://prnt.sc/sdwpe3

Glad you got it working. There is no web configuration, the application creates a handful of configuration files (seppuku.json, and under Configuration/) which contain any configurable options.