Hello there,
I am trying to host a jacktrip hub server on AWS but I am having a difficult time configuring the EC2 server and if you could give me some suggestions it would be very helpful.
The problem that I am having is that after running a server as an EC2 ubuntu instance a client fails to connect but it seems that the log from the server indicates that it recognizes that the client attempts connecting to the server
This is the EC2 instance information:
Details:
- instance type: t2.micro
- os: ubuntu server 20.04 LTS (HVM), SSD 64 bit (x86)
- vCPUs: 1
- Memory (GiB): 1
- Instance Storage(GB) : EBS only
- Network Performance: Low to Moderate
Security:
inbound rules:
outbound rules:
Storage
8gb
By the way, I can ping the server's public IP address from the client.
And this is the log I have from the server:
jackd
ubuntu@ip-172-31-45-254:~$ jackd -R -t500 -ddummy -r48000 -p256
jackdmp 1.9.12
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2016 Grame.
Copyright 2016-2017 Filipe Coelho.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
Cannot create RT messagebuffer thread: Operation not permitted (1)
Retrying messagebuffer thread without RT scheduling
Messagebuffer not realtime; consider enabling RT scheduling for user
no message buffer overruns
Cannot create RT messagebuffer thread: Operation not permitted (1)
Retrying messagebuffer thread without RT scheduling
Messagebuffer not realtime; consider enabling RT scheduling for user
no message buffer overruns
Cannot create RT messagebuffer thread: Operation not permitted (1)
Retrying messagebuffer thread without RT scheduling
Messagebuffer not realtime; consider enabling RT scheduling for user
no message buffer overruns
JACK server starting in realtime mode with priority 10
self-connect-mode is "Don't restrict self connect requests"
Cannot lock down 82280346 byte memory area (Cannot allocate memory)
Cannot use real-time scheduling (RR/10)(1: Operation not permitted)
AcquireSelfRealTime error
JackTimedDriver::Process XRun = 89 usec
jacktrip
ubuntu@ip-172-31-45-254:~$ jacktrip -S
JackTrip MULTI-THREADED SERVER: TCP Server Listening in Port = 4464
JackTrip MULTI-THREADED SERVER: Waiting for client connections...
=======================================================
JackTrip MULTI-THREADED SERVER: Client Connection Received!
JackTrip MULTI-THREADED SERVER: Client Connect Received from Address : ::ffff:125.193.226.118
Reading UDP port from Server...
Ready To Read From Socket!
JackTrip MULTI-THREADED SERVER: Client UDP Port is = 4464
JackTrip MULTI-THREADED SERVER: Client TCP Socket Closed!
---> JackTrip MULTI-THREADED SERVER: Spawning Listener...
---> JackTrip MULTI-THREADED SERVER: Starting Thread...
---> JackTripWorker: Creating jacktip objects...
---> JackTripWorker: Connecting signals and slots...
---> JackTripWorker: setJackTripFromClientHeader...
--->JackTripWorker: getPeerBufferSize = 256
--->JackTripWorker: getPeerSamplingRate = 3
--->JackTripWorker: getPeerBitResolution = 16
--->JackTripWorker: getPeerNumChannels = 1
--->JackTripWorker: getPeerConnectionMode = 0
---> JackTripWorker: startProcess...
Cannot lock down 82280346 byte memory area (Cannot allocate memory)
Setting JACK Process Callback...
SUCCESS
---------------------------------------------------------
The Sampling Rate is: 48000
---------------------------------------------------------
The Audio Buffer Size is: 256 samples
or: 1024 bytes
---------------------------------------------------------
The Number of Channels is: 1
---------------------------------------------------------
Using UDP Protocol
---------------------------------------------------------
WARNING: SERVER mode: Peer Address was set but will be deleted.
Waiting for Connection From Client...
Client Connection Received from IP : ::ffff:125.193.226.118
---------------------------------------------------------
Cannot use real-time scheduling (RR/5)(1: Operation not permitted)
JackClient::AcquireSelfRealTime error
---> JackTripWorker: start...
could not activate scheduling with priority 99
JackTrip MULTI-THREADED SERVER: Total Running Threads: 1
===============================================================
JackTrip MULTI-THREADED SERVER: Waiting for client connections...
=======================================================
terminate called after throwing an instance of 'std::runtime_error'
what(): The Jack Server was shut down!
Aborted (core dumped)
Please let me know if you have any suggestions !
Thanks,
Daisuke