Need help geting rasp pi cam and logictech usb cam working on pi 3 at the same time

need complete setup help for 1 rasp pi cam and 1 logictech 270 usb cam working on a pi 3 at the same time unable to find idproduct or idvendor for pi cam

octopi 1.3.7 jessie img have 2 instances of octopi running a MK3 and CR10 printers each cam when plugged in alone work when both are connected only the pi cam works

this guide did not work http://thomas-messmer.com/index.php/howtos/14-free-knowledge/howtos/79-setting-up-octoprint-for-multiple-printers

this guide speaks of a webcamDaemon script which I cannot find on my pi https://printoid.net/2017/04/29/trick-12-support-two-cameras-in-printoid-premium/

normaly you have to use the udev rules and then it should work.

I am using a Baytrail board with ubuntu Mate and Docker
Set the udev rules for my two printers and 2 webcams.
I setup 2 ip's for the ethernet card / different ports are a bad idea in my opinion.
then i bind the first ip, first camera and printer to the first container.
and the rest to the other.
In addition i run also a caddy instance with a overview page which displays the webcam-stream of both printers and the printerstatus.
If i click on one printer i get to the octoprint instance.

Try to use a active USB hub for the camera maybe the pi has not enough power.

i need instructional guide that works the 2 i found do not work

maybe you could past your dmesg and lsusb output to pastebin and link it here ?!?

Which device is the pi cam looking for a way to enter pi cam info into 99usb file like idproduct id vendor

If i type this in the usb cam will work just cannot get it to work automatically

cd ~/mjpg-streamer

./mjpg_streamer -i "./input_raspicam.so -fps 10" -o "./output_http.so -p 8081"&

lsusb

pi@octopi:~ pi@octopi:~ lsusb
Bus 001 Device 004: ID 046d:0825 Logitech, Inc. Webcam C270
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
-bash: pi@octopi:~: command not found
pi@octopi:~ Bus 001 Device 004: ID 046d:0825 Logitech, Inc. Webcam C270 -bash: Bus: command not found pi@octopi:~ Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
-bash: Bus: command not found
pi@octopi:~ Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. -bash: Bus: command not found pi@octopi:~ Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
-bash: Bus: command not found
pi@octopi:~ ^C pi@octopi:~

dmesg

pi@octopi:~ $ dmesg
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.9.28-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611) ) #998 SMP Mon May 15 16:55:39 BST 2017
[ 0.000000] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt:Machine model: Raspberry Pi 3 Model B Rev 1.2
[ 0.000000] cma: Reserved 8 MiB at 0x36800000
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] On node 0 totalpages: 225280
[ 0.000000] free_area_init_node: node 0, pgdat 80c6edc0, node_mem_map b603a000
[ 0.000000] Normal zone: 1980 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 225280 pages, LIFO batch:31
[ 0.000000] percpu: Embedded 14 pages/cpu @b5ff4000 s25600 r8192 d23552 u57344
[ 0.000000] pcpu-alloc: s25600 r8192 d23552 u57344 alloc=14*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 223300
[ 0.000000] Kernel command line: 8250.nr_uarts=0 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3dc00000 vc_mem.mem_size=0x3f000000 dwc_otg.lpm_enable=0 console=ttyS0,115200 console=tty1 root=PARTUUID=b17a67a1-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
[ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Memory: 871340K/901120K available (7168K kernel code, 483K rwdata, 2012K rodata, 1024K init, 778K bss, 21588K reserved, 8192K cma-reserved)
[ 0.000000] Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
vmalloc : 0xb7800000 - 0xff800000 (1152 MB)
lowmem : 0x80000000 - 0xb7000000 ( 880 MB)
modules : 0x7f000000 - 0x80000000 ( 16 MB)
.text : 0x80008000 - 0x80800000 (8160 kB)
.init : 0x80b00000 - 0x80c00000 (1024 kB)
.data : 0x80c00000 - 0x80c78f94 ( 484 kB)
.bss : 0x80c7a000 - 0x80d3ca64 ( 779 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] Build-time adjustment of leaf fanout to 32.
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] arm_arch_timer: Architected cp15 timer(s) running at 19.20MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns
[ 0.000008] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
[ 0.000025] Switching to timer-based delay loop, resolution 52ns
[ 0.000324] Console: colour dummy device 80x30
[ 0.001219] console [tty1] enabled
[ 0.001268] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=192000)
[ 0.001338] pid_max: default: 32768 minimum: 301
[ 0.001707] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.001749] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.002772] Disabling cpuset control group subsystem
[ 0.002961] CPU: Testing write buffer coherency: ok
[ 0.003029] ftrace: allocating 22386 entries in 66 pages
[ 0.055946] CPU0: update cpu_capacity 1024
[ 0.056016] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.056113] Setting up static identity map for 0x100000 - 0x100034
[ 0.058347] CPU1: update cpu_capacity 1024
[ 0.058354] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.059074] CPU2: update cpu_capacity 1024
[ 0.059081] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[ 0.059743] CPU3: update cpu_capacity 1024
[ 0.059750] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[ 0.059835] Brought up 4 CPUs
[ 0.060008] SMP: Total of 4 processors activated (153.60 BogoMIPS).
[ 0.060038] CPU: All CPU(s) started in HYP mode.
[ 0.060065] CPU: Virtualization extensions available.
[ 0.060879] devtmpfs: initialized
[ 0.071926] VFP support v0.3: implementor 41 architecture 3 part 40 variant 3 rev 4
[ 0.072246] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.072309] futex hash table entries: 1024 (order: 4, 65536 bytes)
[ 0.072871] pinctrl core: initialized pinctrl subsystem
[ 0.073792] NET: Registered protocol family 16
[ 0.076059] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[ 0.084830] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.084879] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.085054] Serial: AMBA PL011 UART driver
[ 0.086937] bcm2835-mbox 3f00b880.mailbox: mailbox enabled
[ 0.087481] uart-pl011 3f201000.serial: could not find pctldev for node /soc/gpio@7e200000/uart0_pins, deferring probe
[ 0.156531] bcm2835-dma 3f007000.dma: DMA legacy API manager at b780f000, dmachans=0x1
[ 0.158391] SCSI subsystem initialized
[ 0.158573] usbcore: registered new interface driver usbfs
[ 0.158676] usbcore: registered new interface driver hub
[ 0.158790] usbcore: registered new device driver usb
[ 0.165487] raspberrypi-firmware soc:firmware: Attached to firmware from 2017-05-15 17:01
[ 0.166891] clocksource: Switched to clocksource arch_sys_counter
[ 0.213850] VFS: Disk quotas dquot_6.6.0
[ 0.213959] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.214189] FS-Cache: Loaded
[ 0.214454] CacheFiles: Loaded
[ 0.226621] NET: Registered protocol family 2
[ 0.227566] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.227718] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.227929] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.228044] UDP hash table entries: 512 (order: 2, 16384 bytes)
[ 0.228112] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[ 0.228348] NET: Registered protocol family 1
[ 0.228784] RPC: Registered named UNIX socket transport module.
[ 0.228816] RPC: Registered udp transport module.
[ 0.228844] RPC: Registered tcp transport module.
[ 0.228872] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.229821] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 7 counters available
[ 0.232121] workingset: timestamp_bits=14 max_order=18 bucket_order=4
[ 0.248162] FS-Cache: Netfs 'nfs' registered for caching
[ 0.249160] NFS: Registering the id_resolver key type
[ 0.249222] Key type id_resolver registered
[ 0.249251] Key type id_legacy registered
[ 0.251682] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[ 0.251827] io scheduler noop registered
[ 0.251858] io scheduler deadline registered (default)
[ 0.252183] io scheduler cfq registered
[ 0.257851] BCM2708FB: allocated DMA memory f6910000
[ 0.257906] BCM2708FB: allocated DMA channel 0 @ b780f000
[ 0.266596] Console: switching to colour frame buffer device 82x26
[ 0.275035] bcm2835-rng 3f104000.rng: hwrng registered
[ 0.277446] vc-cma: Videocore CMA driver
[ 0.279664] vc-cma: vc_cma_base = 0x00000000
[ 0.281885] vc-cma: vc_cma_size = 0x00000000 (0 MiB)
[ 0.284144] vc-cma: vc_cma_initial = 0x00000000 (0 MiB)
[ 0.286554] vc-mem: phys_addr:0x00000000 mem_base=0x3dc00000 mem_size:0x3f000000(1008 MiB)
[ 0.306144] brd: module loaded
[ 0.317076] loop: module loaded
[ 0.319119] Loading iSCSI transport class v2.0-870.
[ 0.321688] usbcore: registered new interface driver smsc95xx
[ 0.323782] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[ 0.551957] Core Release: 2.80a
[ 0.554020] Setting default values for core params
[ 0.556065] Finished setting default values for core params
[ 0.758529] Using Buffer DMA mode
[ 0.760581] Periodic Transfer Interrupt Enhancement - disabled
[ 0.762731] Multiprocessor Interrupt Enhancement - disabled
[ 0.764898] OTG VER PARAM: 0, OTG VER FLAG: 0
[ 0.767112] Dedicated Tx FIFOs mode
[ 0.769566] WARN::dwc_otg_hcd_init:1034: FIQ DMA bounce buffers: virt = 0xb6904000 dma = 0xf6904000 len=9024
[ 0.774005] FIQ FSM acceleration enabled for :
Non-periodic Split Transactions
Periodic Split Transactions
High-Speed Isochronous Endpoints
Interrupt/Control Split Transaction hack enabled
[ 0.785345] dwc_otg: Microframe scheduler enabled
[ 0.785394] WARN::hcd_init_fiq:459: FIQ on core 1 at 0x8058e63c
[ 0.787699] WARN::hcd_init_fiq:460: FIQ ASM at 0x8058e9ac length 36
[ 0.790021] WARN::hcd_init_fiq:486: MPHI regs_base at 0xb787a000
[ 0.792373] dwc_otg 3f980000.usb: DWC OTG Controller
[ 0.794687] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1
[ 0.797064] dwc_otg 3f980000.usb: irq 62, io mem 0x00000000
[ 0.799380] Init: Port Power? op_state=1
[ 0.801629] Init: Power Port (0)
[ 0.804006] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 0.806317] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.808634] usb usb1: Product: DWC OTG Controller
[ 0.810884] usb usb1: Manufacturer: Linux 4.9.28-v7+ dwc_otg_hcd
[ 0.813155] usb usb1: SerialNumber: 3f980000.usb
[ 0.816240] hub 1-0:1.0: USB hub found
[ 0.818460] hub 1-0:1.0: 1 port detected
[ 0.821189] dwc_otg: FIQ enabled
[ 0.821193] dwc_otg: NAK holdoff enabled
[ 0.821198] dwc_otg: FIQ split-transaction FSM enabled
[ 0.821212] Module dwc_common_port init
[ 0.821447] usbcore: registered new interface driver usb-storage
[ 0.823792] mousedev: PS/2 mouse device common for all mice
[ 0.826961] bcm2835-wdt 3f100000.watchdog: Broadcom BCM2835 watchdog timer
[ 0.829490] bcm2835-cpufreq: min=600000 max=1200000
[ 0.832128] sdhci: Secure Digital Host Controller Interface driver
[ 0.834442] sdhci: Copyright(c) Pierre Ossman
[ 0.836986] sdhost-bcm2835 3f202000.sdhost: could not get clk, deferring probe
[ 0.841550] mmc-bcm2835 3f300000.mmc: could not get clk, deferring probe
[ 0.844091] sdhci-pltfm: SDHCI platform and OF driver helper
[ 0.853825] ledtrig-cpu: registered to indicate activity on CPUs
[ 0.856474] hidraw: raw HID events driver (C) Jiri Kosina
[ 0.859148] usbcore: registered new interface driver usbhid
[ 0.861611] usbhid: USB HID core driver
[ 0.864880] vchiq: vchiq_init_state: slot_zero = 0xb6980000, is_master = 0
[ 0.869100] Initializing XFRM netlink socket
[ 0.871637] NET: Registered protocol family 17
[ 0.874231] Key type dns_resolver registered
[ 0.877085] Registering SWP/SWPB emulation handler
[ 0.880265] registered taskstats version 1
[ 0.883041] vc-sm: Videocore shared memory driver
[ 0.885547] [vc_sm_connected_init]: start
[ 0.888478] [vc_sm_connected_init]: end - returning 0
[ 0.896838] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 87, base_baud = 0) is a PL011 rev2
[ 0.903253] sdhost: log_buf @ b6907000 (f6907000)
[ 0.976920] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[ 0.981570] mmc-bcm2835 3f300000.mmc: mmc_debug:0 mmc_debug2:0
[ 0.984005] mmc-bcm2835 3f300000.mmc: DMA channel allocated
[ 1.036984] Indeed it is in host mode hprt0 = 00021501
[ 1.099432] of_cfs_init
[ 1.101765] of_cfs_init: OK
[ 1.104391] Waiting for root device PARTUUID=b17a67a1-02...
[ 1.109895] mmc0: host does not support reading read-only switch, assuming write-enable
[ 1.116236] mmc0: new high speed SDHC card at address 0001
[ 1.119242] mmcblk0: mmc0:0001 GB1QT 29.8 GiB
[ 1.123185] mmcblk0: p1 p2
[ 1.126038] random: fast init done
[ 1.132283] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[ 1.136109] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 1.139886] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 1.144796] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[ 1.236942] usb 1-1: new high-speed USB device number 2 using dwc_otg
[ 1.238721] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 1.238766] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[ 1.245543] Indeed it is in host mode hprt0 = 00001101
[ 1.247014] devtmpfs: mounted
[ 1.311131] mmc1: new high speed SDIO card at address 0001
[ 1.311678] Freeing unused kernel memory: 1024K (80b00000 - 80c00000)
[ 1.477225] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
[ 1.479691] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 1.482969] hub 1-1:1.0: USB hub found
[ 1.485351] hub 1-1:1.0: 5 ports detected
[ 1.596788] systemd[1]: systemd 215 running in system mode. (+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR)
[ 1.601868] systemd[1]: Detected architecture 'arm'.
[ 1.719536] NET: Registered protocol family 10
[ 1.723487] systemd[1]: Inserted module 'ipv6'
[ 1.727770] systemd[1]: Set hostname to .
[ 1.730529] systemd[1]: Initializing machine ID from random generator.
[ 1.733283] systemd[1]: Installed transient /etc/machine-id file.
[ 1.816963] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[ 1.947270] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[ 1.949767] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 1.955137] smsc95xx v1.0.5
[ 2.050890] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:a3:23:b3
[ 2.094517] systemd[1]: Cannot add dependency job for unit regenerate_ssh_host_keys.service, ignoring: Unit regenerate_ssh_host_keys.service failed to load: No such file or directory.
[ 2.102853] systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory.
[ 2.114326] systemd[1]: Starting Forward Password Requests to Wall Directory Watch.
[ 2.120355] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[ 2.146956] usb 1-1.4: new high-speed USB device number 4 using dwc_otg
[ 2.488978] usb 1-1.4: New USB device found, idVendor=046d, idProduct=0825
[ 2.491124] usb 1-1.4: New USB device strings: Mfr=0, Product=0, SerialNumber=2
[ 2.493241] usb 1-1.4: SerialNumber: 60CF0E60
[ 2.662769] systemd-udevd[143]: starting version 215
[ 2.918709] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000
[ 3.158086] media: Linux media interface: v0.10
[ 3.203006] usbcore: registered new interface driver brcmfmac
[ 3.210419] Linux video capture interface: v2.00
[ 3.339676] brcmfmac: Firmware version = wl0: May 27 2016 00:13:38 version 7.45.41.26 (r640327) FWID 01-df77e4a7
[ 3.357388] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[ 3.811997] systemd-journald[139]: Received request to flush runtime journal from PID 1
[ 4.624040] usb 1-1.4: set resolution quirk: cval->res = 384
[ 4.624860] usbcore: registered new interface driver snd-usb-audio
[ 4.625373] uvcvideo: Found UVC 1.00 device (046d:0825)
[ 4.640830] uvcvideo 1-1.4:1.0: Entity type for entity Extension 4 was not initialized!
[ 4.640852] uvcvideo 1-1.4:1.0: Entity type for entity Extension 6 was not initialized!
[ 4.640863] uvcvideo 1-1.4:1.0: Entity type for entity Extension 7 was not initialized!
[ 4.640875] uvcvideo 1-1.4:1.0: Entity type for entity Processing 2 was not initialized!
[ 4.640885] uvcvideo 1-1.4:1.0: Entity type for entity Extension 3 was not initialized!
[ 4.640898] uvcvideo 1-1.4:1.0: Entity type for entity Camera 1 was not initialized!
[ 4.641461] input: UVC Camera (046d:0825) as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.0/input/input0
[ 4.641684] usbcore: registered new interface driver uvcvideo
[ 4.641689] USB Video Class driver (1.1.1)
[ 5.061621] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 5.061645] brcmfmac: power management disabled
[ 5.448823] uart-pl011 3f201000.serial: no DMA platform data
[ 5.501126] Adding 102396k swap on /var/swap. Priority:-1 extents:3 across:126972k SSFS
[ 6.208433] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[ 6.208683] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 6.445166] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 9.967022] Bluetooth: Core ver 2.22
[ 9.967099] NET: Registered protocol family 31
[ 9.967104] Bluetooth: HCI device and connection manager initialized
[ 9.967851] Bluetooth: HCI socket layer initialized
[ 9.967868] Bluetooth: L2CAP socket layer initialized
[ 9.967900] Bluetooth: SCO socket layer initialized
[ 9.973664] Bluetooth: HCI UART driver ver 2.3
[ 9.973671] Bluetooth: HCI UART protocol H4 registered
[ 9.973673] Bluetooth: HCI UART protocol Three-wire (H5) registered
[ 9.973763] Bluetooth: HCI UART protocol Broadcom registered
[ 10.119324] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 10.119330] Bluetooth: BNEP filters: protocol multicast
[ 10.119341] Bluetooth: BNEP socket layer initialized
[ 14.985734] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 26.241630] random: crng init done
[ 355.253016] vchiq: OPENACK received in state CLOSESENT

You can't. The PiCam isn't connected via USB, it doesn't have USB vendor and product IDs.

how can i get the usb cam to work automatically the pi cam is good but I cannot get the usb cam up unless I type this

cd ~/mjpg-streamer

./mjpg_streamer -i "./input_raspicam.so -fps 10" -o "./output_http.so -p 8081"&

I think this may be the issue haproxy fails to start

pi@octopi:~ $ sudo /etc/init.d/haproxy restart
[....] Restarting haproxy (via systemctl): haproxy.serviceJob for haproxy.service failed. See 'systemctl status haproxy.service' and 'journalctl -xn' for details.
failed!
global
maxconn 4096
user haproxy
group haproxy
log 127.0.0.1 local1 debug

defaults
log global
mode http
option httplog
option dontlognull
retries 3
option redispatch
option http-server-close
option forwardfor
maxconn 2000
timeout connect 5s
timeout client 15min
timeout server 15min

frontend public
bind *:80
bind 0.0.0.0:443 ssl crt /etc/ssl/snakeoil.pem
option forwardfor except 127.0.0.1

    use_backend webcam if { path_beg /webcam/ }

use_backend webcam2 if { path_beg /webcam2/ }
use_backend mkc if { path_beg /mk3/ }
use_backend anet if { path_beg /cr10/ }
default_backend webcam

backend mk3
reqrep ^([^\ :])\ /mk3/(.) \1\ /\2
option forwardfor
server octoprint1 127.0.0.1:5000
acl needs_scheme req.hdr_cnt(X-Scheme) eq 0
reqadd X-Scheme:\ https if needs_scheme { ssl_fc }
reqadd X-Scheme:\ http if needs_scheme !{ ssl_fc }
reqadd X-Script-Name:\ /mk3

backend cr10
reqrep ^([^\ :])\ /cr10/(.) \1\ /\2
option forwardfor
server octoprint1 127.0.0.1:5001
acl needs_scheme req.hdr_cnt(X-Scheme) eq 0
reqadd X-Scheme:\ https if needs_scheme { ssl_fc }
reqadd X-Scheme:\ http if needs_scheme !{ ssl_fc }
reqadd X-Script-Name:\ /cr10

backend webcam
reqrep ^([^\ :])\ /webcam/(.) \1\ /\2
server webcam1 127.0.0.1:8080
errorfile 503 /etc/haproxy/errors/503-no-webcam.http

backend webcam2
        reqrep ^([^\ :]*)\ /webcam2/(.*)     \1\ /\2
        server webcam1  127.0.0.1:8081
        errorfile 503 /etc/haproxy/errors/503-no-webcam.http