Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20

Thread: no CUPS webadmin access?

  1. #11
    Join Date
    Apr 2007
    Location
    Hotels around the world
    Beans
    294
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: no CUPS webadmin access?

    Quote Originally Posted by ethanay View Post
    How do you access the CUPS web interface via IP address?
    Use the IP address localhost. Type "ifconfig" in a terminal and find out what it is, it will be listed as

    inet addr:192.168.1.1
    (for example)

    then try:

    Code:
    192.168.1.1:631
    or whatever IP address ifconfig returns.

  2. #12
    Join Date
    Dec 2007
    Location
    pacific northwest
    Beans
    245
    Distro
    Ubuntu 12.04 Precise Pangolin

    Hmm, we're getting closer to the problem!

    ifconfig returned

    Code:
    inet addr:127.0.0.1
    tried from a computer with working CUPS webadmin:
    Code:
    telnet 127.0.0.1 631
    connects me. typing "quit" terminated the connection.

    tried it on the problem computer:

    1. initially connected through telnet, but "quit" would NOT terminate connection.
    2. tried via firefox: same error message as before
    3. tried again via telnet:
    Code:
    $ telnet 127.0.0.1 631
    Trying 127.0.0.1...
    telnet: Unable to connect to remote host: Connection refused
    so it seems like something is either crashing or hanging on this computer, making that resource unavailable. on a hunch, tried restarting CUPS:

    Code:
    $ sudo /etc/init.d/cups restart
    sudo: unable to resolve host john-desktop
    [sudo] password for john: 
     * Restarting Common Unix Printing System: cupsd                         [ OK ]
    and tried telnet again:
    Code:
    $ telnet 127.0.0.1 631
    Trying 127.0.0.1...
    Connected to 127.0.0.1.
    Escape character is '^]'.
    quit
    Connection closed by foreign host.
    now I can connect via Firefox to the CUPS web admin:
    Code:
    http://127.0.0.1:631
    but STILL not via localhost:
    Code:
    http://localhost:631
    Connecting to www.localhost.com...
    So there are two problems on this computer:
    1. CUPS appears to be unstable, and freezes or crashes
    2. connection to CUPS webadmin interface, even when CUPS is working, is only available via IP address, NOT localhost

    thanks for the help folks!
    Last edited by ethanay; February 28th, 2010 at 09:55 PM. Reason: small correction

  3. #13
    Join Date
    Dec 2007
    Location
    pacific northwest
    Beans
    245
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: no CUPS webadmin access?

    PS Here's some debug info from a time a bit back when CUPS was crashing on me constantly on the problem computer, in case it is helpful:

    Code:
    $ system-config-printer --debug
    Connected as user john
    refresh
    <monitor.Monitor instance at 0xa3c280c>: CUPS IPP error (1282, 'server-error-service-unavailable')
    Created subscription -1
    <monitor.Monitor instance at 0xa3c280c>: CUPS IPP error (1282, 'server-error-service-unavailable')
    Authentication pass: 1
    Authentication: password callback set
    get_notifications
    refresh
    Created subscription 18
    <monitor.Monitor instance at 0xa3c280c>: printers and jobs lists provided
    update_jobs
    get_notifications
    update_jobs
    retrying operation...
    Authentication pass: 1
    Authentication: password callback set
    Authentication pass: 1
    Authentication: password callback set
    Canceled subscription 18
    <monitor.Monitor instance at 0xa3c280c> exited

  4. #14
    Join Date
    Dec 2007
    Location
    pacific northwest
    Beans
    245
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: no CUPS webadmin access?

    no one has any ideas as to why http://localhost:631 is converted to www.localhost.com on the Meerkat?
    Nothing to see here

  5. #15
    Join Date
    Apr 2007
    Location
    Hotels around the world
    Beans
    294
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: no CUPS webadmin access?

    Quote Originally Posted by ethanay View Post
    no one has any ideas as to why http://localhost:631 is converted to www.localhost.com on the Meerkat?
    Might not be a factor, but what does
    Code:
    hostname
    in a terminal return?

  6. #16
    Join Date
    Dec 2007
    Location
    pacific northwest
    Beans
    245
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: no CUPS webadmin access?

    Thanks for the suggestion...

    Code:
    $ hostname
    john-desktop
    the command prints a similar response on both the working computers.

    Proxy settings appear identical as well...!!
    Nothing to see here

  7. #17
    Join Date
    Apr 2007
    Location
    Hotels around the world
    Beans
    294
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: no CUPS webadmin access?

    Quote Originally Posted by ethanay View Post
    Thanks for the suggestion...

    Code:
    $ hostname
    john-desktop
    the command prints a similar response on both the working computers.

    Proxy settings appear identical as well...!!
    If my thinking cap is on straight this morning,

    Code:
    cat /etc/hosts
    should return something like this:

    Code:
    127.0.0.1	localhost
    127.0.1.1	john-desktop
    
    # The following lines are desirable for IPv6 capable hosts
    ::1     localhost ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    ff02::3 ip6-allhosts
    If it's not, maybe we've got something to work with.

    I just help get a friend setup with his brand new Meerkat yesterday, and have sent him an e-mail to see if he has the same error, I would have done it when there had I thought of it.

    [update] The new Meerkat does NOT show the same behavior. localhost:631 works as it should
    Last edited by riseringseeker; March 14th, 2010 at 05:43 PM. Reason: update

  8. #18
    Join Date
    Dec 2007
    Location
    pacific northwest
    Beans
    245
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: no CUPS webadmin access?

    Ok, looks like we are getting somewhere! Maybe the hosts file is corrupted:

    Code:
    $ cat /etc/hosts
    # Do not remove the following line, or various programs# that require network functionality will fail.127.0.0.1	localhost.localdomain	localhostjohn@john-desktop:~$
    I will edit and update...

    UPDATE: SUCCESS! It was a corrupted hosts file...how/why it was corrupted, Lord knows. Nothing we did should have caused that (normal software installs, updates, etc).

    So maybe some Meerkats shipped with corrupted hosts files for some reason?
    Last edited by ethanay; March 26th, 2010 at 10:59 PM. Reason: added more info
    Nothing to see here

  9. #19
    Join Date
    Sep 2006
    Location
    Denver, Colorado
    Beans
    5,638
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: no CUPS webadmin access?

    I'm not sure what fouled up the hosts file on a freshly imaged Meerkat, and I had no problems going to cups admin.
    To err is human, to forgive is very ... dog-like.

    Thomas Aaron
    FetchMasters, LLC

  10. #20
    Join Date
    Dec 2007
    Location
    pacific northwest
    Beans
    245
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: no CUPS webadmin access?

    Quote Originally Posted by thomasaaron View Post
    I'm not sure what fouled up the hosts file on a freshly imaged Meerkat, and I had no problems going to cups admin.
    It is quite obviously a case of Gremlins

    It was a good experience for me...I am slowly getting used to the (usual presence of) logic in Unix-based systems.

    "Problem with localhost? Try looking at the hosts file..."
    Nothing to see here

Page 2 of 2 FirstFirst 12

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •