guysoft / mod-ui-docker

Docker container that attaches to jack and runs mod-ui
GNU General Public License v3.0
6 stars 1 forks source link

Custom audio interface? #1

Closed SrMouraSilva closed 5 years ago

SrMouraSilva commented 5 years ago

Hello, when I try to execute the container, shows

~/mod-ui ~
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
[W 181214 16:10:48 iostream:1126] Connect error on fd 10: ECONNREFUSED
[W 181214 16:10:48 iostream:1126] Connect error on fd 9: ECONNREFUSED
WARN: Missing file /home/moduser/mod-ui/data/mod_api_key.pub with the public API KEY
ERROR: Failed to open HMI serial port, error was:
__init__() got an unexpected keyword argument 'write_timeout'
Using HMI => False
cc start socket missing
Host failed to initialize, is the backend running?
jack client deactivated NOT
jack client deactivated NOT

In the Dockerfile there is a audio interface that I don't have https://github.com/guysoft/mod-ui-docker/blob/master/Dockerfile#L123

About the missing mod-ui mod_api_key.pub, it's ok https://github.com/moddevices/mod-ui/blob/03ede9bbfac9d42010f010e59dacf66ac54fa8b3/server.py#L49

guysoft commented 5 years ago

You must start jack2 server outside the container. The reason is because Jack uses features in the kernel that can't translate in to the container.