Closed sergiomiranda closed 6 years ago
When sharing a printer with SMB or Airprint I get the error below that I believe happens when creating the Avahi service.
Other users have reported the same issue in the OMV forums (I used Google Translate): https://forum.openmediavault.org/index.php/Thread/22994-CUPS-config-remote-Printer-Kann-Konfiguration-nicht-bestätigen/
openmediavault 4.1.8.1-1 (x64) openmediavault-cups 3.1.2
Error #0: OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; omv-cups-avahi 2>&1' with exit code '1': Traceback (most recent call last): File "/usr/sbin/omv-cups-avahi", line 298, in <module> files.append(genPrinterService(p, v, False)) File "/usr/sbin/omv-cups-avahi", line 120, in genPrinterService port_no = self.port NameError: global name 'self' is not defined in /usr/share/php/openmediavault/system/process.inc:175 Stack trace: #0 /usr/share/openmediavault/engined/module/cups.inc(129): OMV\System\Process->execute() #1 /usr/share/openmediavault/engined/module/cups.inc(105): OMV\Engined\Module\Cups->regenerateServiceDefinitions() #2 /usr/share/openmediavault/engined/rpc/config.inc(194): OMV\Engined\Module\Cups->startService() #3 [internal function]: OMVRpcServiceConfig->applyChanges(Array, Array) #4 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array) #5 /usr/share/php/openmediavault/rpc/serviceabstract.inc(149): OMV\Rpc\ServiceAbstract->callMethod('applyChanges', Array, Array) #6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(565): OMV\Rpc\ServiceAbstract->OMV\Rpc\{closure}('/tmp/bgstatusig...', '/tmp/bgoutputMp...') #7 /usr/share/php/openmediavault/rpc/serviceabstract.inc(159): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure)) #8 /usr/share/openmediavault/engined/rpc/config.inc(213): OMV\Rpc\ServiceAbstract->callMethodBg('applyChanges', Array, Array) #9 [internal function]: OMVRpcServiceConfig->applyChangesBg(Array, Array) #10 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array) #11 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('applyChangesBg', Array, Array) #12 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('Config', 'applyChangesBg', Array, Array, 1) #13 {main}
When sharing a printer with SMB or Airprint I get the error below that I believe happens when creating the Avahi service.
Other users have reported the same issue in the OMV forums (I used Google Translate): https://forum.openmediavault.org/index.php/Thread/22994-CUPS-config-remote-Printer-Kann-Konfiguration-nicht-bestätigen/
openmediavault 4.1.8.1-1 (x64) openmediavault-cups 3.1.2