Not able to get conmux working

Asked by Avik Sil

I've installed conmux on lucid from tools PPA and created panda01.cf file in /etc/conmux:

$ cat /etc/conmux/panda01.cf
listener panda01
application console 'panda01 console' 'sg dialout "cu -l ttyUSB0 -s 115200"'

After running conmux service (sudo start conmux), I get following:

$ conmux-console panda01
Conmux::connect aviksil-laptop.in.ibm.com:33287: connect failed - IO::Socket::INET: connect: Connection timed out

$ conmux-console --list
panda01 aviksil-laptop.in.ibm.com:33287

$ sudo stop conmux
conmux stop/waiting

$ sg dialout "cu -l ttyUSB0 -s 115200"
Connected.

Please let me know how to get conmux working.

Question information

Language:
English Edit question
Status:
Answered
For:
LAVA Dispatcher Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Paul Larson (pwlars) said :
#1

try stopping the service first, then starting:
sudo stop conmux
sudo start conmux

Revision history for this message
Avik Sil (aviksil) said :
#2

I've tried restarting the service too.

Revision history for this message
Paul Larson (pwlars) said :
#3

iirc, restart doesn't work properly in conmux because it doesn't support it in the expected way. Instead, you should specifically stop and start it as described above.

Revision history for this message
Avik Sil (aviksil) said :
#4

Sorry, I meant stopping and starting the service, by 'restart'. So even after doing the above steps I still get the error.

Revision history for this message
Dave Pigott (dpigott) said :
#5

Is it possible that something else has got hold of ttyUSB0, and so you're never getting a serial connection established?

Revision history for this message
Dave Pigott (dpigott) said :
#6

Now I come to think of it, I also remember reading on some wiki page (and no, I can't find it again - just looked) that if that command line in the .cf file didn't work, try an alternative. Anyone else any ideas?

Revision history for this message
Avik Sil (aviksil) said :
#7

Dave,

No other application got hold of ttyUSB0. After starting conmux service, I get:

$ ps aux | grep ttyUSB0
root 24032 0.0 0.0 1876 500 ? S 12:17 0:00 sh -c sg dialout "cu -l ttyUSB0 -s 115200"
root 24033 0.0 0.0 2232 820 ? S 12:17 0:00 sg dialout cu -l ttyUSB0 -s 115200
uucp 24034 0.0 0.0 2160 788 ? S 12:17 0:00 cu -l ttyUSB0 -s 115200
uucp 24035 0.0 0.0 2160 116 ? S 12:17 0:00 cu -l ttyUSB0 -s 115200
aviksil 30739 0.0 0.0 3372 728 pts/3 S+ 12:57 0:00 grep --color=auto ttyUSB0

I think the issue is that conmux is referring to INET socket instead of serial port for the connection:

$ conmux-console panda01
Conmux::connect aviksil-laptop.in.ibm.com:40231: connect failed - IO::Socket::INET: Bad hostname 'aviksil-laptop.in.ibm.com:40231'

Revision history for this message
Dave Pigott (dpigott) said :
#8

This is why I think, maybe, the alternative config line is needed. Just wish I could find the reference I remember reading a while back. I'll keep digging my end.

Revision history for this message
Dave Pigott (dpigott) said :
#9

Avik, what happens when you have started the service and do:

ps ax | grep conmux

What output do you get?

Revision history for this message
Avik Sil (aviksil) said :
#10

$ ps ax | grep conmux
 3870 ? Ss 0:00 /usr/bin/perl /usr/sbin/conmux-registry 63000 /var/run/conmux-registry
 3874 ? Ss 0:00 /usr/bin/perl /usr/sbin/conmux /etc/conmux/panda01.cf
23202 pts/3 S+ 0:00 grep --color=auto conmux

Revision history for this message
Loïc Minier (lool) said :
#11

12:23 < aviksil> lool: $ ping aviksil-laptop.in.ibm.com
12:23 < aviksil> ping: unknown host aviksil-laptop.in.ibm.com
12:24 < aviksil> lool: $ cat /etc/hosts
12:24 < aviksil> 127.0.0.1Ilocalhost
12:24 < aviksil> 127.0.1.1Iaviksil-laptop
12:24 < aviksil> ...
12:24 < lool> aviksil: right, that's your problem
12:24 < aviksil> lool: $ cat /etc/resolv.conf
12:24 < lool> aviksil: add aviksil-laptop.in.ibm.com after aviksil-laptop in
              your etc/hosts
[...]

12:25 < lool> second line should look like "127.0.1.1 aviksil-laptop
              aviksil-laptop.in.ibm.com"
12:26 < aviksil> lool: done. now it's pinging

12:27 < lool> aviksil: ok; restart the conmux stuff and it should (hopefully)
              work
12:27 < aviksil> lool: $ conmux-console --status panda01
12:27 < aviksil> connected

Can you help with this problem?

Provide an answer of your own, or ask Avik Sil for more information if necessary.

To post a message you must log in.