-
Notifications
You must be signed in to change notification settings - Fork 30
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
Attempting to run the agent on linux using mono results in zero output. #51
Comments
Can confirm the same issue on Debian 8 with Mono 3.2.8 (also tested with 2.0). Tested with v0.9.8 of hashtopus.exe and had no problems. Everything is updated, .NET 2.0 environment is installed correctly. Here is a sample: I get the same output when I run with verbosity enabled. |
This is very strange. I suspect this has something to do with the new feature of running as Windows service. |
The exit code is not printed on the screen but is returned everytime an executable exits. |
So it exits normally.
|
IIRC, the problem is the "Environment.UserInteractive" check, which always returns false on Linux. Somewhere I read that you can circumvent it by checking if you are running Linux and then calling Mono.Unix.Native.Syscall.isatty(0) to see if you have a terminal available. I didn't try it though. |
i have just published a fix, please try. |
This does produce output now, but after requesting the server URL it exits.
Running with mono 3.2.8 on Debian 8. Still exits 0. |
Try to run this with the debug option. Please note that the command line options were now replaced with XML configuration file so you need to add a "debug" option to the xml. |
Same configuration on Windows works perfectly fine. |
maybe you have bad line endings in the xml? not sure if that would affect anything but still... |
Double checked everything, that doesn't appear to be the problem. |
i have pushed a new commit that outputs http requests in debug mode. please try that to see if it gets to that point. |
Doesn't look like much. This may be a problem on my end so before you try anything else let me do a fresh Debian 8 install and see if the problem is remedied. |
you could try to wireshark if the http transfer actually happens. also, you should compile the code for debug and not release, if you are not already doing that. the debug code prints out verbose error messages. |
it would seem im having this problem as well but on a windows 10 machine... |
did you try wiresharking the network traffic to verify if it comes through? looks to me like you have a server problem instead |
yup i have wireshark running and not reporting anything to the server ip but when i setup hashtopus agent 0.9.8 and hashtopus server 0.10 and compile that agent binary everything works so i dont believe it is a server issue as older versions work i am getting the same results in mono on ubuntu how do i enable debug exactly? |
so this means the http request doesn't even get through? that would point out to some .NET (mono) related problem |
Hello guys, can you give me any hints what i can do? linux verson: root@dx2903:/home/user/hashtopus# cat /proc/version |
I'm having an odd issue here, attempting to run the hashtopus agent using mono with the correct runtime environment installed. Application leaves no output just simply closes when run in the terminal.
Any ideas?
Command output when run with -v for verbose:
The text was updated successfully, but these errors were encountered: