Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

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:631I 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

Reply
Question marked as Best reply

Posted on Aug 8, 2014 1:24 PM

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.

28 replies

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

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.

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!

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!

cupsctl WebInterface=yes

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.