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

Printing and sound broken on 3.2 #18

Open
aim29 opened this issue Apr 6, 2024 · 2 comments
Open

Printing and sound broken on 3.2 #18

aim29 opened this issue Apr 6, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@aim29
Copy link

aim29 commented Apr 6, 2024

Hi

Trying to use 3.2 and printing and sound are not working. They work fine in 3.1 and 3.0. I note that they also don't seem to be working on demo.abcdesktop.io either.

Having looked into the code, this appears to be related to a change in oc/od/orchestrator.py which prepended CUPS_SERVER and PULSE_SERVER with 'unix:' - reverting this so that they are both just '/tmp/.cups.sock' and '/tmp/.pulse.sock' fixed this.

I have tested this change by rebuilding the oc.pyos image and deploying it on my test install.

Happy to submit a pull request to fix if preferred.

Many thanks

@alexandredevely
Copy link
Member

Hello aim29,

Thank you for using abcdesktop.io. I confirm this issue, thank you so much.
You can use CUPS_SERVER and PULSE_SERVER with unix socket prefix, it will works for ephemeral container.
For pod applications, the unix socket are unavailable, so we need to use TCP/IP socket to reach the cups service.
The issue come from oc.cupsd in release 3.2, I'm checking that point.

See you
Alexandre

@alexandredevely alexandredevely self-assigned this Apr 8, 2024
@alexandredevely alexandredevely added the bug Something isn't working label Apr 8, 2024
@alexandredevely
Copy link
Member

alexandredevely commented Apr 12, 2024

Hello aim29,

The latest oc.pyos:3.2 image fixes this issue.
I've updated the cupsd image too to change PDF build process and fix a user access error.
The od.config has changed to include the printer image 'abcdesktopio/oc.cupsd:3.2'

'printer' : { 
    'image': 'abcdesktopio/oc.cupsd:3.2',
    'imagePullPolicy': 'IfNotPresent',
    'enable': True,
    'tcpport': 681,
    'securityContext': { 'runAsUser': 0, 'runAsGroup': 0 },
    'resources': { 
      'requests': { 'memory': "32Mi", 'cpu': "50m" },  
      'limits'  : { 'memory': "512Mi",  'cpu': "500m" } 
    },
    'acl':  { 'permit': [ 'all' ] } 
  },

After your update, please run a rollout restart on pyos deployment

kubectl rollout restart deployment pyos-od -n abcdesktop

The printer Desktop_PDF_Printer is now listed

Screenshot 2024-04-12 at 12 01 08

and few seconds later, a new window appears from your web browser

Screenshot 2024-04-12 at 12 01 29

In this case, my local printer is an HP ENVY

See you and thank you for this printer issue

Alexandre

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants