hplip-3.14.4 issue. I could not make hp-setup connect to cups server

Asked by CESAR IZAGUIRRE

I am trying to configure a printer. I run hp-setup, when it comes to "add printer", it says:

"Printer queue setup failed. Could not connect to CUPS Server Is user added to "lpadmin" group(s)" (I already added)

I made the "non-root user" member of lpadmin group,

I would really appreciate your help.

hplip version: 3.14.4 from http://hplipopensource.com
Distro: Back Track 5 R2
Printer: HP Deskjet 2050

In backtrack you have to use a non root user and I do it like that but the problem is at the very end of the process.

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
Sanjay Kumar
Solved:
Last query:
Last reply:
Revision history for this message
Best Sanjay Kumar (sanjay-kumar14) said :
#1

Hi,

Sorry to inform you that HPLIP is never tested on Back Track 5 R2 and there is no simple installer provided for the same, however you can try installing it from the source directly. Please follow manual installation instructions of Ubuntu ( http://hplipopensource.com/hplip-web/install/manual/distros/ubuntu.html ) as Back Track 5 R2 has been taken from Ubuntu base code .

=> Reconfigure print queue with the commands mentioned below.
       =>system-config-printer (remove all print queues)
                     or
         Go to system ->Administration -> printing (then remove all print queues)
       =>hp-setup (for adding print queue)
=>Enable/Clear Logs as mentioned below

=>Try to print any document and If issue is not resolved then execute following steps

    a)Open /etc/cups/cupsd.conf in root mode and replace

        LogLevel warn

          with

       LogLevel debug
       hpLogLevel 15

    b) Open Terminal and run following commands:
       => su
       => /etc/init.d/cups restart
                  or
          service cups restart

       => rm -rf /tmp/*.out /tmp/*.bmp
       => cat /dev/null > /var/log/cups/error_log
       => cat /dev/null > /var/log/messages
       => cat /dev/null > /var/log/syslog
       => hp-check -t > /tmp/hpcheck.log

    c) Try to print any document and then please send following files
          => /var/log/syslog (if present),
          => /var/log/messages (if present),
          => /var/log/cups/error_log
          => /tmp/*.bmp
          => /tmp/*.out
          => /tmp/hpcheck.log
          => document used for printing
          =>scanned copy of printed document

    d) Please let me know the application used for testing.

**Please use "Create a bug report" to attach the logs as "Ask a Question" does not provide the file attachment option.

Revision history for this message
CESAR IZAGUIRRE (cesar-izaguirre) said :
#2

Dear Sanjay,

First of all, thank you for your answer.
I have been doing step by step your proposal :)

=> Reconfigure print queue with the commands mentioned below.
       =>system-config-printer (remove all print queues) DONE
                     or
         Go to system ->Administration -> printing (then remove all print queues)
       =>hp-setup (for adding print queue) DONE
=>Enable/Clear Logs as mentioned below THE ENABLE/CLEAR OPTION IS THERE BUT NOT AVAILABLE.

ON Printing - cupsserver.localdomain screen I try to conect to Server and it says CUPS server error... There was an error during the CUPS operation: 'failed to connect to server'

=>Try to print any document and If issue is not resolved then execute following steps

    a)Open /etc/cups/cupsd.conf in root mode and replace ..... DONE

        LogLevel warn

          with

       LogLevel debug
       hpLogLevel 15

    b) Open Terminal and run following commands:
       => su
       => /etc/init.d/cups restart DONE
                  or
          service cups restart

       => rm -rf /tmp/*.out /tmp/*.bmp DONE
       => cat /dev/null > /var/log/cups/error_log DONE
       => cat /dev/null > /var/log/messages DONE
       => cat /dev/null > /var/log/syslog DONE
       => hp-check -t > /tmp/hpcheck.log output.. error: Could not access file: No such file or directory (This is not true, I am looking at the file!!!! I haven't modified hpcheck.log but it does exist and it is on tmp folder!)

    c) Try to print any document and then please send following files
          => /var/log/syslog (if present),
          => /var/log/messages (if present),
          => /var/log/cups/error_log
          => /tmp/*.bmp
          => /tmp/*.out
          => /tmp/hpcheck.log
          => document used for printing
          =>scanned copy of printed document

    d) Please let me know the application used for testing.

**Please use "Create a bug report" to attach the logs as "Ask a Question" does not provide the file attachment option

Revision history for this message
CESAR IZAGUIRRE (cesar-izaguirre) said :
#3

Thanks Sanjay Kumar, that solved my question.

Revision history for this message
CESAR IZAGUIRRE (cesar-izaguirre) said :
#4

The only change I had to do was the location on "Printing" screen. instead of cupsserver.localdomain I put localhost;631
Of course as xyz user and not root :)

Thank you Sanjay! :)
Best regards from Mexico City.

Revision history for this message
CESAR IZAGUIRRE (cesar-izaguirre) said :
#5

If someone have the same problem don't forget to

1. Open terminal and type sudo gedit /etc/cups/client.conf
2. Copy or type ServerName cupsserver.localdomain.com into text editor, replacing "cupsserver.localdomain.com" with YOUR CUPS server's full domain name (mine was localhost:631)
3. Save the file and that's all