This board has been archived, no new registrations are allowed. Please come join us on our discord!

setup problems: ubuntu aws ec2

Can't figure out how to get a specific feature working? Ask for help here.
chris1
Registered User
Posts: 12
Joined: Sun Oct 04, 2015 3:54 pm

setup problems: ubuntu aws ec2

Postby chris1 » Tue Nov 28, 2017 8:05 am

Moved from the general forums viewtopic.php?f=9&t=1643&start=10

I can no longer get to the web interface of my installation after successfully activating it.

Ubuntu 16.04 64bit AWS c5.2xlarge (8 core)

I got through a stalled 'connecting' page / invalid license key issue by forwarding both 8090 and 8092

tunneling via

Code: Select all

ssh -L 8090:localhost:8090 -L 8092:localhost:8092 [email protected][REMOTEIP] -i ~/MyPEM.pem


I put in my activation code successfully, picked an initial exchange (bitstamp), but then it went to:
This page isn’t working

127.0.0.1 didn’t send any data.
ERR_EMPTY_RESPONSE


Server side I get:

Code: Select all

channel 5: open failed: connect failed: Connection refused
channel 6: open failed: connect failed: Connection refused
channel 7: open failed: connect failed: Connection refused
channel 8: open failed: connect failed: Connection refused
channel 9: open failed: connect failed: Connection refused
channel 10: open failed: connect failed: Connection refused


I restarted the server with no improvement, however the log now ONLY says:

Code: Select all

11/28/2017 12:56:56 AM:
2017-28-11 00:56:55    |Info|  CurrencyPriceSourceDriver started.


There is no mono process running, even after:

Code: Select all

sudo killall mono && bash Haasbot.sh


if I run via sudo the log is the same, and I still get no web response, BUT the process exists on ps:
sudo bash Haasbot.sh && ps -axfS |grep mono

Code: Select all

 2178 pts/1    Sl     0:00 /usr/bin/mono /usr/lib/mono/4.5/mono-service.exe /home/ubuntu/haas/bin/HTS.exe


bash Haasbot.sh

Code: Select all

+ rm /tmp/HTS.exe.lock
+++ dirname Haasbot.sh
++ cd .
++ pwd
+ DIR=/home/ubuntu/haas
+ EXE_PATH=/home/ubuntu/haas/bin/HTS.exe
+ PROCESS_NAME=appname
+ APPNAME=Haasbot
+ MONO_FRAMEWORK_PATH=/usr/lib/mono/
+ export DYLD_FALLBACK_LIBRARY_PATH=/home/ubuntu/haas:/usr/lib/mono//lib:/lib:/usr/lib
+ DYLD_FALLBACK_LIBRARY_PATH=/home/ubuntu/haas:/usr/lib/mono//lib:/lib:/usr/lib
+ export PATH=/usr/lib/mono//bin:/home/ubuntu/bin:/home/ubuntu/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
+ PATH=/usr/lib/mono//bin:/home/ubuntu/bin:/home/ubuntu/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
+ REQUIRED_MAJOR=4
+ REQUIRED_MINOR=2
+ VERSION_TITLE='Cannot launch Haasbot'
+ VERSION_MSG='Haasbot requires the Mono Framework version 4.2 or later.'
+ DOWNLOAD_URL=http://www.go-mono.com/mono-downloads/download.html
++ mono --version
++ grep 'Mono JIT compiler version '
++ cut -f5 '-d '
+ MONO_VERSION=5.0.1.1
++ echo 5.0.1.1
++ cut -f1 -d.
+ MONO_VERSION_MAJOR=5
++ echo 5.0.1.1
++ cut -f2 -d.
+ MONO_VERSION_MINOR=0
+ '[' -z 5.0.1.1 ']'
+ '[' 5 -lt 4 ']'
+ '[' 5 -eq 4 -a 0 -lt 2 ']'
+ test x = x
+ TMPDIR=/tmp
+ LOG_FILE=/home/ubuntu/Library/Logs/Haasbot/Haasbot.log
++ dirname /home/ubuntu/Library/Logs/Haasbot/Haasbot.log
+ mkdir -p /home/ubuntu/Library/Logs/Haasbot
+ mono-service /home/ubuntu/haas/bin/HTS.exe


HTS/Settings/MainSettings.XML

Code: Select all

<TradeServerInstanceSettings xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ForcePriceServer />
  <RelayServerURL />
  <RelaySecret1 />
  <RelaySecret2 />
  <IsBetaTester>false</IsBetaTester>
  <RunAtLowPower>false</RunAtLowPower>
  <BackTestingPriceType>0</BackTestingPriceType>
  <BetaReportEmailAdres />
  <LastBetaVersionCheck>2017-11-27T23:24:43.012131Z</LastBetaVersionCheck>
  <ExecuteEncryptProcedure>false</ExecuteEncryptProcedure>
  <ReallyExecuteEncryptProcedure>false</ReallyExecuteEncryptProcedure>
  <Username>D41D8CD[..................]</Username>
  <Password>D41D8CD[..................]</Password>
  <OpenInterfaceOnStartup>false</OpenInterfaceOnStartup>
  <HaasbotEnabledOnStartup>false</HaasbotEnabledOnStartup>
  <BotsEnabledOnStartup>false</BotsEnabledOnStartup>
  <HostingAdres>127.0.0.1</HostingAdres>
  <ExternalAdres />
  <HostingPort>8090</HostingPort>
  <HubPort>8092</HubPort>
  <TFAEnabled>false</TFAEnabled>
  <LocalAPIAdres />
  <LocalAPIPort>0</LocalAPIPort>
  <LocalAPIToken />
  <AutoLogOutMinutes>10</AutoLogOutMinutes>
  <MaxMonthsBack>12</MaxMonthsBack>
</TradeServerInstanceSettings>



sudo dpkg -s mono-complete

Code: Select all

Package: mono-complete
Status: install ok installed
Priority: optional
Section: cli-mono
Installed-Size: 45
Maintainer: Debian Mono Group <[email protected]>
Architecture: amd64
Source: mono
Version: 5.0.1.1-0xamarin5+ubuntu1604b1
Depends: mono-runtime (= 5.0.1.1-0xamarin5+ubuntu1604b1), mono-runtime-sgen (= 5.0.1.1-0xamarin5+ubuntu1604b1), libmono-2.0-1 (= 5.0.1.1-0xamarin5+ubuntu1604b1), libmono-profiler (= 5.0.1.1-0xamarin5+ubuntu1604b1), mono-utils (= 5.0.1.1-0xamarin5+ubuntu1604b1), mono-jay (= 5.0.1.1-0xamarin5+ubuntu1604b1), mono-devel (= 5.0.1.1-0xamarin5+ubuntu1604b1), mono-mcs (= 5.0.1.1-0xamarin5+ubuntu1604b1), mono-roslyn (= 5.0.1.1-0xamarin5+ubuntu1604b1), mono-csharp-shell (= 5.0.1.1-0xamarin5+ubuntu1604b1), mono-4.0-gac (= 5.0.1.1-0xamarin5+ubuntu1604b1), mono-4.0-service (= 5.0.1.1-0xamarin5+ubuntu1604b1), monodoc-base (= 5.0.1.1-0xamarin5+ubuntu1604b1), monodoc-manual (= 5.0.1.1-0xamarin5+ubuntu1604b1), libmono-cil-dev (= 5.0.1.1-0xamarin5+ubuntu1604b1), ca-certificates-mono (= 5.0.1.1-0xamarin5+ubuntu1604b1)
...
Last edited by chris1 on Tue Nov 28, 2017 10:58 am, edited 3 times in total.

chris1
Registered User
Posts: 12
Joined: Sun Oct 04, 2015 3:54 pm

Re: setup problems: ubuntu aws ec2

Postby chris1 » Wed Nov 29, 2017 7:00 pm

I have to say, I'm getting a bit frustrated here. For a $500/mo subscription you would think that there would be at least 1 employee fielding the 'help and support' forum. I'm just sitting here watching my sub fees tick by without even having an installed system. It's not like there's a lot of volume on this forum. Is there no employee out there that can even weigh in on this? or at least acknowledge that the question has been asked? After all:
We pride ourselves on our customer support and most of our users can attest to this.

coinflipper
Registered User
Posts: 13
Joined: Thu Nov 16, 2017 11:51 am

Re: setup problems: ubuntu aws ec2

Postby coinflipper » Wed Nov 29, 2017 7:32 pm

It could be that your Mono version is too old. I'm running the bot under Debian 9 with MONO_VERSION=5.4.1.6. So far, I did not observe such an issue.
The Linux installation page of the bot states that Mono v5.0.1.1 is sufficient. Maybe that's outdated because the changelog of the bot version 3.0.21 states "[Framework] For Linux and OSX Mono dependency upgraded to 4.2".

Try upgrading your Mono, hope that helps.

chris1
Registered User
Posts: 12
Joined: Sun Oct 04, 2015 3:54 pm

Re: setup problems: ubuntu aws ec2

Postby chris1 » Wed Nov 29, 2017 10:14 pm

Thanks, will give that a try. when I run

Code: Select all

bash Hassbot.sh
I get:
+ REQUIRED_MAJOR=4
+ REQUIRED_MINOR=2
+ VERSION_TITLE='Cannot launch Haasbot'
+ VERSION_MSG='Haasbot requires the Mono Framework version 4.2 or later.'
+ DOWNLOAD_URL=http://www.go-mono.com/mono-downloads/download.html
++ mono --version
++ grep 'Mono JIT compiler version '
++ cut -f5 '-d '
+ MONO_VERSION=5.0.1.1

I figured that was confirmation that I had a higher-than-needed version, but do you think its a complaint that Im lookin at the wrong version #? Do it print that out to CLI when you run Hassbot.sh?

chris1
Registered User
Posts: 12
Joined: Sun Oct 04, 2015 3:54 pm

Re: setup problems: ubuntu aws ec2

Postby chris1 » Thu Nov 30, 2017 12:55 am

Thanks for the help, but no difference when using mono 5.4.1.6. I can see the website, submit license #, pick an exchange, but as soon as I click out of the exchange-picking page the screen goes white, HTS crashes, and when I restart it I still cant get back in.

coinflipper
Registered User
Posts: 13
Joined: Thu Nov 16, 2017 11:51 am

Re: setup problems: ubuntu aws ec2

Postby coinflipper » Thu Nov 30, 2017 6:37 am

IMHO the greatest weakness of the bot is that it is made for insiders. The feedback of what it is doing or in case something goes wrong is very little or non-existent. The documentation is also quite thin and mostly lists the available features. It often misses to describe what the features exactly do and how to achieve a certain result. This makes it hard to get the desired output (or get the bot even running in your case).

My bot prints out this at startup:

Code: Select all

+ REQUIRED_MAJOR=4
+ REQUIRED_MINOR=2
+ VERSION_TITLE='Cannot launch Haasbot'
+ VERSION_MSG='Haasbot requires the Mono Framework version 4.2 or later.'
+ DOWNLOAD_URL=http://www.go-mono.com/mono-downloads/download.html
++ mono --version
++ grep 'Mono JIT compiler version '
++ cut -f5 '-d '
+ MONO_VERSION=5.4.1.6
++ echo 5.4.1.6
++ cut -f1 -d.
+ MONO_VERSION_MAJOR=5
++ echo 5.4.1.6
++ cut -f2 -d.
+ MONO_VERSION_MINOR=4


Regarding your issue: I don't know where the bot stores its config, but maybe it got messed up by the old mono version. And now when using the newer mono, the bot loads a damaged config and behaves weird. So my next step would be cleaning the bot config.

You also should check the log file of the bot, it should be located in the folder /Library/Logs/Haasbot/Haasbot.log of the user which started it. My logfile has a size of 0 bytes, maybe yours contains some hint what goes wrong.

BTW - what user are you using for starting the bot? I'm using a normal user (not root).


Return to “Help and Support”

Who is online

Users browsing this forum: No registered users and 1 guest