-
Notifications
You must be signed in to change notification settings - Fork 11
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
Niether MasscanWrapper or the discoveryAPI works. #2
Comments
Although it should be quite easy to have both versions installed, I do agree that it is quite stupid that two different versions of .NET are used. I'll fix this asap, hopefully this weekend if I can find the time. Feel free to open a PR to fix it yourself
The scanner should prompt ask for a location to the Masscan.exe compiled binary. Do you have a functional Masscan.exe file and are you pointing to this file correctly when asked by the scanner? |
I'm unsure. I couldn't get the compiler to work for the Masscan zip, so I used https://github.com/Arryboom/MasscanForWindows instead. This could be the problem, but I don't have the knowlage to compile it myself 😞. (Im on windows 11 so doing this stuff is kinda hard, I managed to get the Masscan to work on my ubuntu laptop however, but I just get a shared library file instead, not a .exe) |
That should actually just work. You can try to run the file yourself to check if it executes. |
I got it to work! For some reason it just worked this time, it was probably because I renamed the masscan.exe. (I'll leave the issue open, If that's okay. I will probably come across more problems in the future, but thanks for the support.) |
Nice (: Ill close the issue once I fixed the .NET versions. Feel free to open a new issue if you need any help on another topic. |
Having a database is a requirement and you have to set the database string manually. It tries to pull it from your env variables by default and expects a MySQL database. All of this is configurable here: https://github.com/SieBRUM/minecraft-server-discovery/blob/main/backend/MinecraftServerDiscoveryApi/Contexts/DatabaseContext.cs#L20 I myself run a local docker container with MySQL in it, but you can use whatever setup you like obviously |
Regardless of what I put in there I get I set up a mySQL database, and changed the Env to match my credentials. What is wrong? |
Your scanner is not running in this picture. The scanner fills the database with information. You will see text in the window of the scanner saying it has found a server. At that point it should sent a message to the API. The API will probably log to console that it received a message. It will then write it to the DB. |
Looks like the API is not receiving any requests. You should do some debugging yourself to try and fix this. |
How does the API get the data from the wrapper? I'm not good enough to make this work 😠 |
Ok so I made some changes so it SHOULD be more easy to run everything (see PR #3) How to run with Docker:
I tried to make it as easy as possible for ya (: I also changes the .NET versions so they are the same |
The different programs need different versions of .NET, so I don't even see how you would be able to run both of them at the same time in a simple way. So I started with only trying to get the MasscanWrapper to work.
It doesn't work 😢. Please help, I don't understand what's wrong.
![image](https://user-images.githubusercontent.com/72663115/201406368-b7a33ed3-4e99-460a-86cf-718a1b9e7fc7.png)
The text was updated successfully, but these errors were encountered: