Package: cereal
Version: 0.24-1
Severity: normal

Thanks for maintaining cereal, I wish I had looked into it sooner!


I'm trying to use cereal with serveral USB tty adapters, but they don't
reliably use the same /dev/ttyUSBn. Some of them have unique symlinks in
/dev/serial/by-id/:

  $ sudo cereal-admin create byid
  /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_AJ03AIG3-if00-port0 115200 vagrant 
adm
  Created session 'byid':
  --f byid /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_AJ03AIG3-if00-port0
  115200 vagrant adm
  Service cereal.byid added.
  $ sudo cereal-admin start --all
  timeout: finish: /var/lib/cereal/sessions/byid: (pid 11557) 0s, normally
  down
  Session 'byid' could not be started.
  $ tail $(cereal f -p byid)
  2015-11-09_18:59:14.36012 lockfile: Try praying, giving up on
  "/var/lock/LCK..serial/by-id/usb-FTDI_FT232R_USB_UART_AJ03AIG3-if00-port0"
  2015-11-09_18:59:15.56556 starting screen session...
  2015-11-09_18:59:15.56893 lockfile: Try praying, giving up on
  "/var/lock/LCK..serial/by-id/usb-FTDI_FT232R_USB_UART_AJ03AIG3-if00-port0"
  2015-11-09_18:59:16.69408 starting screen session...
  2015-11-09_18:59:16.69772 lockfile: Try praying, giving up on
  "/var/lock/LCK..serial/by-id/usb-FTDI_FT232R_USB_UART_AJ03AIG3-if00-port0"
  2015-11-09_18:59:17.85367 starting screen session...
  2015-11-09_18:59:17.85716 lockfile: Try praying, giving up on
  "/var/lock/LCK..serial/by-id/usb-FTDI_FT232R_USB_UART_AJ03AIG3-if00-port0"
  2015-11-09_18:59:18.92299 rm: cannot remove
  '/var/lock/LCK..serial/by-id/usb-FTDI_FT232R_USB_UART_AJ03AIG3-if00-port0':
  No such file or directory
  2015-11-09_18:59:20.01930 starting screen session...
  2015-11-09_18:59:20.02281 lockfile: Try praying, giving up on
  "/var/lock/LCK..serial/by-id/usb-FTDI_FT232R_USB_UART_AJ03AIG3-if00-port0"

Using /dev/ttyUSB0 instead works fine, but this can sometimes change
after a reboot, so the log files would get inconsistant over time, and
it would be harder to be able to name the devices...

It would be nice if cereal could support using the /dev/serial/by-id/
symlinks.

Any other suggestions for reliably having cereal consistantly use the
appropriate /dev/ttyUSBn... which might be better anyways, because not
all the USB adapters used produce a consistant /dev/serial/by-id/

Thanks!


live well,
  vagrant


-- System Information:
Debian Release: 8.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: armhf (armv7l)

Kernel: Linux 3.16.0-4-armmp (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages cereal depends on:
ii  adduser   3.113+nmu3
ii  procmail  3.22-24
ii  runit     2.1.2-3
ii  screen    4.2.1-3+deb8u1

cereal recommends no packages.

cereal suggests no packages.

-- no debconf information

Attachment: signature.asc
Description: PGP signature

Reply via email to