CSRocks

Q: cupsctl WebInterface=yes

I am unable to access the CUPS Web Interface so that I can change my printer settings, and it's pretty frustrating!

 

I am using OS X 10.9.4

If I go to http://127.0.0.1:631 or http://localhost:631 I get the following error:

The web interface is currently disabled. Run "cupsctl WebInterface=yes" to enable it.


I have researched this on the web, and have found, and followed, various articles containing the following instructions to resolve it:

  • Enable the root admin account
  • Log in using the root account
  • Open Terminal while logged in as the root account and enter the following:
    • cupsctl WebInterface=yes
    • sudo cupsctl WebInterface=yes
  • I have receive the following message in Terminal when running these commands:
    • cupsctl:  Internal Server Error
  • I have restarted my Mac and ran them again and received the same error messages.


As I mentioned, I am still receiving unable to access the CUPS Web Interface.


Please help!



References:

Enabling and using the "root" user in Mac OS X


Can't Change CUPS Settings on Mac:

http://superuser.com/questions/183553/cant-change-cups-settings-on-mac-os-x


Enabling the CUPS Web Interface on OS X 10.8

http://definitebounds.blogspot.com/2013/03/enabling-cups-interface-on-osx-108.ht ml


 


iMac, OS X 10.9.4

Posted on Aug 8, 2014 9:08 AM

Close

Q: cupsctl WebInterface=yes

  • All replies
  • Helpful answers

Page 1 Next
  • by Alberto Ravasio,

    Alberto Ravasio Alberto Ravasio Aug 8, 2014 12:52 PM in response to CSRocks
    Level 5 (4,070 points)
    Aug 8, 2014 12:52 PM in response to CSRocks

    From Terminal issue in sequence

     

    sudo cupsctl --debug-logging

    sudo cupsctl --no-debug-logging

  • by CSRocks,

    CSRocks CSRocks Aug 8, 2014 1:01 PM in response to Alberto Ravasio
    Level 1 (0 points)
    Aug 8, 2014 1:01 PM in response to Alberto Ravasio

    Hi Alberto!

     

    I tried those commands and received the same error:

    cupsctl: Internal Server Error

     

    Thank you!

  • by Alberto Ravasio,

    Alberto Ravasio Alberto Ravasio Aug 8, 2014 1:09 PM in response to CSRocks
    Level 5 (4,070 points)
    Aug 8, 2014 1:09 PM in response to CSRocks

    The following two commands stop and restart the CUPS daemon

     

    sudo launchctl unload /System/Library/LaunchDaemons/org.cups.cupsd.plist

    sudo launchctl load /System/Library/LaunchDaemons/org.cups.cupsd.plist

     

    If that does not work there should be some problem with CUPS. Have a look at log files

  • by Linc Davis,

    Linc Davis Linc Davis Aug 8, 2014 1:23 PM in response to CSRocks
    Level 10 (207,963 points)
    Applications
    Aug 8, 2014 1:23 PM in response to CSRocks
  • by CSRocks,

    CSRocks CSRocks Aug 8, 2014 1:24 PM in response to Alberto Ravasio
    Level 1 (0 points)
    Aug 8, 2014 1:24 PM in response to Alberto Ravasio

    Hi Alberto,

     

    Both of those commands executed without error.  However, when I try to run the following commands, they fail with the same error:

    • cupsctl webinterface=yes
    • cupsctl --remote-any

     

    Error:  "cupsctl: Internal Server Error"

     

    How do I look at the log files?

     

    Thanks.

  • by CSRocks,

    CSRocks CSRocks Aug 8, 2014 1:27 PM in response to Linc Davis
    Level 1 (0 points)
    Aug 8, 2014 1:27 PM in response to Linc Davis

    Hi Linc,

     

    Thank you for posting.  I am not having a problem printing to my printer at all, it's working fine. I'm just trying change the default printer settings.

     

    I have already tried this though, and it did not solve my problem. 

     

    I believe this should be solved by accessing the CUPS web interface.

  • by baltwo,

    baltwo baltwo Aug 8, 2014 1:28 PM in response to CSRocks
    Level 9 (62,256 points)
    Aug 8, 2014 1:28 PM in response to CSRocks

    Log into a newly created admin user account and see if the problem persists. If so, reinstall the OS.


    iMac refurb (27-inch Mid 2011), OS X Mavericks (10.9.4), SL & ML, G4 450 MP w/Leopard, 9.2.2

  • by CSRocks,

    CSRocks CSRocks Aug 8, 2014 1:30 PM in response to baltwo
    Level 1 (0 points)
    Aug 8, 2014 1:30 PM in response to baltwo

    Hi baltwo,

     

    Thank you for your post.

     

    I have already tried logging in as the administrator, but the problem still persists.  Reinstalling the OS is an extreme step, I would like to exhaust all other possibilities before going down that path.

  • by Alberto Ravasio,

    Alberto Ravasio Alberto Ravasio Aug 8, 2014 1:37 PM in response to CSRocks
    Level 5 (4,070 points)
    Aug 8, 2014 1:37 PM in response to CSRocks

    Open Console, scroll down the left pane until you see cups. Expand

     

    0001.png

  • by baltwo,

    baltwo baltwo Aug 8, 2014 1:47 PM in response to CSRocks
    Level 9 (62,256 points)
    Aug 8, 2014 1:47 PM in response to CSRocks

    Try with a new admin account.

  • by Alberto Ravasio,

    Alberto Ravasio Alberto Ravasio Aug 8, 2014 1:55 PM in response to CSRocks
    Level 5 (4,070 points)
    Aug 8, 2014 1:55 PM in response to CSRocks

    This is the contents of /etc/cups/

    Check users and permissions

     

    ls -la /etc/cups/

    total 48

    drwxr-xr-x  12 root  _lp     408  4 Lug 22:15 .

    drwxr-xr-x  95 root  wheel  3230  7 Ago 18:36 ..

    dr-x--x--x   2 _lp   admin    68  8 Ago 22:39 certs

    -rw-r--r--   1 root  _lp    3297 24 Mag 13:17 cups-files.conf

    -rw-r--r--   1 root  _lp    4783  4 Lug 22:14 cupsd.conf

    -rw-r--r--   1 root  _lp    4790  4 Lug 22:14 cupsd.conf.O

    -rw-r--r--   1 root  _lp    6512 24 Mag 13:17 cupsd.conf.default

    drwxr-xr-x   2 root  _lp      68  5 Apr 09:53 interfaces

    drwxr-xr-x   3 root  _lp     102 26 Mag 10:38 ppd

    -rw-------   1 root  _lp     463  4 Lug 22:15 printers.conf

    -rw-------   1 root  _lp     463  4 Lug 22:14 printers.conf.O

    -rw-r--r--   1 root  _lp     270 24 Mag 13:17 snmp.conf

  • by Linc Davis,

    Linc Davis Linc Davis Aug 8, 2014 2:14 PM in response to CSRocks
    Level 10 (207,963 points)
    Applications
    Aug 8, 2014 2:14 PM in response to CSRocks

    Launch the Console application in any of the following ways:

    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)

    ☞ In the Finder, select Go Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.

    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.

    Select

              /var/log cups error_log

    from the hierarchical list on the left side of the Console window. If you don't see that list, select

              View Show Log List

    from the menu bar.

    Each message in the log begins with the date and time when it was entered. Select the messages from the time of the last failed printing attempt. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message (command-V).

    If there are runs of repeated messages, post only one example of each. Don’t post many repetitions of the same message.

    ☞ The log contains a vast amount of information, almost all of it useless for solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.

    Please don't indiscriminately dump thousands of lines from the log into this discussion.

    Please don't post screenshots of log messages—post the text.

  • by CSRocks,

    CSRocks CSRocks Aug 8, 2014 2:41 PM in response to Linc Davis
    Level 1 (0 points)
    Aug 8, 2014 2:41 PM in response to Linc Davis

    I reran the 2 commands, and received the same error.

    • cupsctl WebInterface=yes
    • cupsctl --remote-any

     

    Here are the last 3 lines of the error_log:

    • E [08/Aug/2014:14:36:29 -0700] Unable to finalize "/private/etc/cups/cupsd.conf": Operation not permitted
    • E [08/Aug/2014:14:37:00 -0700] Unable to finalize "/private/etc/cups/printers.conf": Operation not permitted
    • E [08/Aug/2014:14:38:11 -0700] Unable to finalize "/private/etc/cups/cupsd.conf": Operation not permitted

     

    Thanks!

  • by CSRocks,

    CSRocks CSRocks Aug 8, 2014 2:44 PM in response to Alberto Ravasio
    Level 1 (0 points)
    Aug 8, 2014 2:44 PM in response to Alberto Ravasio

    Hi Alberto,

     

    I reran the two commands, and received the same error.

    • cupsctl webinterface=yes
    • cupsctl --remote-any

     

    Here are the last few lines from the access_log file:

    • localhost - - [08/Aug/2014:14:36:29 -0700] "PUT /admin/conf/cupsd.conf HTTP/1.1" 401 0 - -
    • localhost - root [08/Aug/2014:14:36:29 -0700] "PUT /admin/conf/cupsd.conf HTTP/1.1" 500 4786 - -
    • localhost - - [08/Aug/2014:14:38:11 -0700] "PUT /admin/conf/cupsd.conf HTTP/1.1" 401 0 - -
    • localhost - root [08/Aug/2014:14:38:11 -0700] "PUT /admin/conf/cupsd.conf HTTP/1.1" 500 4796 - -

     

    Here are the last few lines from the error_log:

    • E [08/Aug/2014:14:38:11 -0700] Unable to finalize "/private/etc/cups/cupsd.conf": Operation not permitted
    • E [08/Aug/2014:14:41:47 -0700] Unknown directive BrowseOrder on line 22 of /private/etc/cups/cupsd.conf.
    • E [08/Aug/2014:14:41:47 -0700] Unknown directive BrowseAllow on line 23 of /private/etc/cups/cupsd.conf.
    • E [08/Aug/2014:14:42:18 -0700] Unable to finalize "/private/etc/cups/printers.conf": Operation not permitted

     

    Thank you!

Page 1 Next