Getting annoying message window about authentication

Asked by Michal

I am getting annoying message window.
It appears randomly several times a day.
It says "Uwierzytelnianie jest wymagane, aby pobrać atrybuty drukarki Laserjet."

It is in Polish, but it says "Authentication required to get attributes of Laserjet printer".
I don't know who generates this message and how to get rid of it.
It appears to a user without privileges so supplying a password doesn't help.
Has anyone an idea how to switch it off?

Michał

Question information

Language:
English Edit question
Status:
Expired
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was reopened

Revision history for this message
goutam (goutamkk) said :
#1

Is there any print queue configured ?
Can you provide us the output of 'lpstat -a'

Revision history for this message
Michal (kismi2) said :
#2

Sure:

==========================================
kismi@truskawka:~$ lpstat -a
fax accepting requests since czw, 3 wrz 2015, 17:23:14
gabinet1-HP-P1102w accepting requests since pon, 14 wrz 2015, 14:05:31
gabinet2-HP-P1102w accepting requests since pon, 14 wrz 2015, 16:28:00
ksero accepting requests since nie, 14 cze 2015, 20:23:08
Laserjet accepting requests since pon, 14 wrz 2015, 08:14:18
===========================================

gabinet2-HP-P1102w is a local USB printer.
gabinet1-HP-P1102w is a remote CUPS printer
ksero and fax is a network printer (HP directly attached to Ethernet)

Revision history for this message
Launchpad Janitor (janitor) said :
#3

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Michal (kismi2) said :
#4

The problem is still there.
Nobody knows the answer?
Has anyone similar problems?

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

is your user member of the lp and/or lpadmin groups?

Revision history for this message
Michal (kismi2) said :
#6

They are members of "lpadmin".

Revision history for this message
Manfred Hampl (m-hampl) said :
#7

Try adding them to the lp group as well (needs logoff and logon to take effect).

Revision history for this message
Michal (kismi2) said :
#8

Thanks Manfred for your hint.
Yes, I have added the user to lp group after your first message and re-logged.
We are monitoring the behaviour of the system.
By now the message didn't appear.
I am not sure yet if it is already a success because the message appeared quite randomly with longer and shorter interspace.
I think on Monday evening I would be sure if it is the solution.

Revision history for this message
Michal (kismi2) said :
#9

It seems to be the correct solution. The message didn't appear any more.
Thanks again, Manfred.

Revision history for this message
Michal (kismi2) said :
#10

The fanfares were premature. The message appeared again after a few days.
I had no time to get back to it.
Anyone an idea?

Revision history for this message
Manfred Hampl (m-hampl) said :
#11

Is the user who got the message member of the lp and lpadmin groups?

Revision history for this message
Michal (kismi2) said :
#12

Yes, she is. Member of both.

Revision history for this message
Manfred Hampl (m-hampl) said :
#13

What was the action that this person did to receive the message?

Revision history for this message
Michal (kismi2) said :
#14

Nothing. It appears randomly. I am not able to invoke this message on demand. It is irregular.

Revision history for this message
goutam (goutamkk) said :
#15

Is HPLIP drivers installed in your system ?
can you try configure the print queue using 'hp-setup' command.

Revision history for this message
Michal (kismi2) said :
#16

We are in hplip thread, so yes, it is installed. With GUI.
Yes, I have used hp-setup to setup the printer.

Revision history for this message
Launchpad Janitor (janitor) said :
#17

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Michal (kismi2) said :
#18

At least I have found some solution.
Stopping CUPS discovery service seems to stop those messages from appearing.
One can do it in a running system:

sudo service cups-browsed stop

or make it permanent (to survive a system restart)

sudo echo manual >/etc/init/cups-browsed.override

This causes that printers in network are not automatically discovered, so you have to define them manually.
Broader description is here http://askubuntu.com/questions/345083/how-do-i-disable-automatic-remote-printer-installation

In the meantime I have also tried to remove hplip-gui, but it doesn't help. The problem seems to be caused by CUPS and not HPLIP.

Another remark is that I have an impression that some unwanted recurrence appears. If you define a remote printer and make it remotely available this may cause recurrence problems. I haven't investigated it further. I have simply noted a 7 times replicated printer in one system. After switching off the CUPS discovery as above they disappeared.

I hope it helps.

Revision history for this message
Michal (kismi2) said :
#19

Life is cruel.

After some time (over a week) the message reappeared.

So I am still looking for a solution. Any idea?

Revision history for this message
Manfred Hampl (m-hampl) said :
#20

How does that pop-up look like?

Maybe the following helps to find out the process that is responsible for it:
Whenever that message is shown again, open a terminal window and issue the command
xprop WM_CLASS
The mouse pointer will turn into a cross, and with that cross click on the pop-up message.
After the mouse click, there should be an output I the terminal window telling the name of the program that creates that pup-up.
What is it?

Revision history for this message
Michal (kismi2) said :
#21

Here is the message: https://drive.google.com/file/d/0B1ZLlrBdpMcSRHZFVVNnU1lLVkE/view?usp=sharing

The problem is it appears randomly. Sometimes several times in a day and sometimes nothing over a week.
I cannot sit there and wait for a week for it to appear. Moreover the computers are intensively used and quite often I cannot disturb them.
Anyway I will try to catch the message.
Looking at the top-left corner it seems it comes from Firefox.

Revision history for this message
Michal (kismi2) said :
#22

OK, I have the result:

=============
rejestracja@antracyt:~ > xprop WM_CLASS
WM_CLASS(STRING) = "firefox", "Firefox"
=============

As expected - the window comes from Firefox.

I have done some investigation in the meantime.
The cups browser is disabled on the system. So I would expect to see manually configured printers only.
The command "lpc status" shows only "manual" printers (as expected).
Similarly if I try to print from libreoffice only those two printers appear.
But not form firefox. Firefox shows some additional printers as well (cups-provided by other systems).
The question is "How does he know?". Is he doing some network query itself? Or maybe uses some other system like avahi?

Revision history for this message
Launchpad Janitor (janitor) said :
#23

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Michal (kismi2) said :
#24

This is not a final result - I am still testing.
Last time the message reappeared after a week.
But I can describe results of my investigations.

Avahi seems to be good direction.
You can check avahi-discovered resources with:

avahi-browse -t -a

In my case there was plenty of them. The printers among of them. All being provided by IPv4 and IPv6 (so appearing twice).
The service can be configured by editing file "/etc/avahi/avahi-daemon.conf" like:

sudo vi /etc/avahi/avahi-daemon.conf

To activate changes the daemon should be restarted:

sudo service avahi-daemon restart

As I don't use IPv6 I have switched it off introducing a line:

use-ipv6=no

But the most important change I have made was switching the service off on my interface by a line:

deny-interfaces=eth0

With that chance avahi shows no resources any more.
After that change it is over a week now as the message didn't appear.

So as a summary.
Firefox is the guilty one. It should ask only CUPS for list of available printers. It plays clever clever instead and asks (at least) avahi as well. And then shows to an ordinary user a message which is obviously intended for an administrator.
As a workaround I have switched off avahi service.

I will wait (and test the solution) a week more before I announce "Problem Solved" status.

Revision history for this message
Michal (kismi2) said :
#25

I can just confirm that the message does not appear any more.