haxball / haxball-issues

115 stars 43 forks source link

Headless host on a headless browser #642

Closed lashagosh closed 5 years ago

lashagosh commented 5 years ago

I'm trying to make a headless host work for 3 days on a headless browser (on an AWS instance, Ubuntu 18.04). I've tried using Headless Chrome, PhantomJS and what not.

But, I couldn't make any of the methods work and to send the .JS script I have of the host to the https://www.haxball.com/headless

What is the best method? Could anyone help me please?

olehmisar commented 5 years ago

340 Check this issue if you have problems with connection between your computer and aws.

lashagosh commented 5 years ago

@olegmisar Thank you! I could have sworn I've seen all the articles related to this, but seems I was wrong. Thanks

lashagosh commented 5 years ago

But when I close the remote chrome on my local computer (not the aws), the host closes as well. Is this supposed to be like this? :/

olehmisar commented 5 years ago

Do you close the Chrome browser or SSH connection? What SSH program do you use?

lashagosh commented 5 years ago

Just the Chrome browser. But if this is nonsense (and I think it is), I think the problem is something different. I saw logs on terminal (I am using Terminal on Mac) and this is what it says: [1203/1928.4211:ERROR:peerconnection.cc(5069)] AddSctpDataStream called when sctp_transport_ is NULL. [1203/1928.4211:WARNING:stunport.cc(411)] Port[0x169e25252900:data:1:0:local:Net[any:0:0:0:x:x:x:x:x/0:Wildcard:id=0]]: StunPort: stun host lookup received error 0 packet_write_wait: Connection to 52.30.50.60 port 22: Broken pipe Have you maybe experienced anything like that?

lashagosh commented 5 years ago

@olegmisar Hi again, as I see you have some experience in this so let me ask you one question. How can I leave the host open, even if I close the SSH connection on my computer that started the remote debugging chrome on an AWS instance? Is this possible at all? Thanks

olehmisar commented 5 years ago

Use tmux. "A Gentle Introduction to tmux” by Alek Shnayder

lashagosh commented 5 years ago

Thank you, I appreciate it