Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openmediavault-cups 3.1.2 bug #16

Open
thk70 opened this issue Oct 29, 2018 · 6 comments

Comments

Projects
None yet
5 participants
@thk70
Copy link

commented Oct 29, 2018

Virtual omv 4.1.12 on ESXi vSphere 6 Hypervisor
Trying to enable the plugin "printing" but it errors when click "Save":

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 'enableSharing' 2>&1' with exit code '1': Traceback (most recent call last): File "/usr/sbin/omv-cups", line 305, in apg = OMVCups() File "/usr/sbin/omv-cups", line 73, in init self.conn = cups.Connection() RuntimeError: failed to connect to server in /usr/share/php/openmediavault/system/process.inc:182 Stack trace: #0 /usr/share/openmediavault/engined/rpc/cups.inc(428): OMV\System\Process->execute(Array) #1 /usr/share/openmediavault/engined/rpc/cups.inc(135): OMV\Engined\Rpc\Cups->runCupsCommand('enableSharing') #2 [internal function]: OMV\Engined\Rpc\Cups->setSettings(Array, Array) #3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array) #4 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('setSettings', Array, Array) #5 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('Cups', 'setSettings', Array, Array, 1) #6 [{main}[]

@dawansch

This comment has been minimized.

Copy link

commented Jan 4, 2019

OMV 4.1.17-1 4.9 Linux no Hypervisor

Same issue for me

@ryecoaaron

This comment has been minimized.

Copy link
Member

commented Jan 8, 2019

I looked at this but since I don't use it, I really don't know what is wrong. This plugin is going away in favor of docker. I think you would be better trying docker now.

@dougcooper

This comment has been minimized.

Copy link

commented Jan 11, 2019

Im curious what the preferred docker image is for replacing this feature.

@ryecoaaron

This comment has been minimized.

Copy link
Member

commented Jan 11, 2019

I don't use cups but there are some images on docker hub that have 50K+ downloads - https://hub.docker.com/search?q=cups&type=image

@dougcooper

This comment has been minimized.

Copy link

commented Jan 20, 2019

@ryecoaaron thanks for the reply. I messed around with a few, but they either weren't compatible with ARM or they just didnt seem to work. I was able to get the desired AirPrint functionality using this tutorial. If I find some time I'll make a docker container and post it here. Suggest this issue is closed.

@vpistis

This comment has been minimized.

Copy link

commented Jan 20, 2019

I have openmediavault-cups-3.1.2, for me the error was into the file /usr/sbin/omv-cups-avahi at lines 119 and 12:

    if not port_no:
        port_no = self.port

after comment these lines, cups start correctly.

I hope this helping someone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.