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

Possible concurrency issue when using cupsctl while printing #5850

Closed
giorgiga opened this issue Nov 12, 2020 · 2 comments
Closed

Possible concurrency issue when using cupsctl while printing #5850

giorgiga opened this issue Nov 12, 2020 · 2 comments
Assignees
Labels
duplicate This issue or pull request already exists

Comments

@giorgiga
Copy link

...or how my /etc/cups/cupsd.conf became an html file.

The weirdest thing must have happened when I executed cupsctl WebInterface=no and cups stopped working.

After a couple failed restart attempts via systemd, I looked at /etc/cups and noticed my cupsd.conf had become an html file with "WebInterface no" appended to it.

$ sudo tail /etc/cups/cupsd.conf
                                                                    <P><INPUT TYPE="SUBMIT" NAME="CHANGESETTINGS" VALUE="Change Settings"></P>
                                                                    </FORM>
                                                                  </div>
                                                                </div>
                                                              </div>
                                                            </div>
                                                            <div class="footer">CUPS and the CUPS logo are trademarks of <a href="http://www.apple.com">Apple Inc.</a> Copyright &copy; 2007-2019 Apple Inc. All rights reserved.</div>
                                                            </body>
                                                          </html>
WebInterface no

At the time I issued the cupsctl WebInterface=no I was printing (and in fact I found a half-printed page in the printer later) so I guess this must be some weird concurrency thing?

Of course replacing cupsd.conf with cups.conf.default I was able to restart cups and restore its functionality.

I'm running cups 2.3.3 on Manjaro (the package version is 2.3.3-3).

@giorgiga
Copy link
Author

Attaching the resulting cupsd.conf, in case you want to identify what html it is.

cupsd.conf.txt

@michaelrsweet
Copy link
Collaborator

I think this was a bug we fixed in OpenPrinting CUPS already...

@michaelrsweet michaelrsweet self-assigned this Mar 12, 2021
@michaelrsweet michaelrsweet added the duplicate This issue or pull request already exists label Mar 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants