View previous topic :: View next topic |
Author |
Message |
Perfect Gentleman Veteran
Joined: 18 May 2014 Posts: 1249
|
Posted: Thu Mar 29, 2018 5:30 am Post subject: [Solved] KDE & Qt applications do not print. |
|
|
Qpdfview shows warning Quote: | Could not print ${name}.pdf | .
works.
Zathura with Poppler backend prints too as well as Chromium.
wtf?
Last edited by Perfect Gentleman on Thu Apr 05, 2018 4:00 pm; edited 3 times in total |
|
Back to top |
|
|
Perfect Gentleman Veteran
Joined: 18 May 2014 Posts: 1249
|
Posted: Thu Apr 05, 2018 9:47 am Post subject: |
|
|
Code: | $ okular --print HEAD_TYROLIA_Template__92.pdf
/usr/bin/lpr: No such file or directory |
Code: | $ equery b /usr/bin/lpr
* Searching for /usr/bin/lpr ...
net-print/cups-2.2.7 (/usr/bin/lpr) |
Code: | $ whereis lpr
lpr: /usr/bin/lpr /usr/share/man/man1/lpr.1.bz2 |
Code: | $ lpstat -t
scheduler is running
system default destination: Samsung_M2070_Series
device for Samsung_M2070_Series: ipp://192.168.100.12:631/printers/Samsung_M2070_Series
Samsung_M2070_Series accepting requests since Thu 05 Apr 2018 04:43:46 PM +07
printer Samsung_M2070_Series is idle. enabled since Thu 05 Apr 2018 04:43:46 PM +07 |
WTF? |
|
Back to top |
|
|
Perfect Gentleman Veteran
Joined: 18 May 2014 Posts: 1249
|
Posted: Thu Apr 05, 2018 9:53 am Post subject: |
|
|
try to print from gwenview
Code: | $ gwenview
QPainter::begin(): Returned false
QPainter::viewport: Painter not active
alignment= 132
QPainter::setViewport: Painter not active
QPainter::setWindow: Painter not active
|
from kolourpaint
Code: | $ kolourpaint
kf5.kio.core: KSambaShare: Could not find smb.conf!
QPainter::begin(): Returned false
QPainter::end: Painter not active, aborted |
|
|
Back to top |
|
|
asturm Developer
Joined: 05 Apr 2007 Posts: 8936
|
Posted: Thu Apr 05, 2018 12:12 pm Post subject: |
|
|
USE=cups is enabled system-wide? |
|
Back to top |
|
|
Perfect Gentleman Veteran
Joined: 18 May 2014 Posts: 1249
|
Posted: Thu Apr 05, 2018 1:36 pm Post subject: |
|
|
of course
Code: | ~ $ eix --installed-without-use cups
No matches found |
as I said above printing from other applications works. |
|
Back to top |
|
|
mike155 Advocate
Joined: 17 Sep 2010 Posts: 4438 Location: Frankfurt, Germany
|
Posted: Thu Apr 05, 2018 2:01 pm Post subject: |
|
|
Quote: | $ okular --print HEAD_TYROLIA_Template__92.pdf
/usr/bin/lpr: No such file or directory
|
Please run
Code: | strace -o /tmp/log -f okular --print HEAD_TYROLIA_Template__92.pdf
grep lpr /tmp/log
|
and post the output of the grep statement (approx. 30 lines) |
|
Back to top |
|
|
Perfect Gentleman Veteran
Joined: 18 May 2014 Posts: 1249
|
Posted: Thu Apr 05, 2018 2:18 pm Post subject: |
|
|
Code: | $ grep lpr /tmp/log
22052 statx(AT_FDCWD, "/usr/x86_64-pc-linux-gnu/gcc-bin/7.3.0/lpr-cups", AT_STATX_SYNC_AS_STAT, STATX_ALL, 0x7fff2239cbf0) = -1 ENOENT (No such file or directory)
22052 statx(AT_FDCWD, "/usr/lib/llvm/6/bin/lpr-cups", AT_STATX_SYNC_AS_STAT, STATX_ALL, 0x7fff2239cbf0) = -1 ENOENT (No such file or directory)
22052 statx(AT_FDCWD, "/usr/local/bin/lpr-cups", AT_STATX_SYNC_AS_STAT, STATX_ALL, 0x7fff2239cbf0) = -1 ENOENT (No such file or directory)
22052 statx(AT_FDCWD, "/usr/bin/lpr-cups", AT_STATX_SYNC_AS_STAT, STATX_ALL, 0x7fff2239cbf0) = -1 ENOENT (No such file or directory)
22052 statx(AT_FDCWD, "/bin/lpr-cups", AT_STATX_SYNC_AS_STAT, STATX_ALL, 0x7fff2239cbf0) = -1 ENOENT (No such file or directory)
22052 statx(AT_FDCWD, "/opt/bin/lpr-cups", AT_STATX_SYNC_AS_STAT, STATX_ALL, 0x7fff2239cbf0) = -1 ENOENT (No such file or directory)
22052 statx(AT_FDCWD, "/usr/x86_64-pc-linux-gnu/gcc-bin/7.3.0/lpr.cups", AT_STATX_SYNC_AS_STAT, STATX_ALL, 0x7fff2239cbf0) = -1 ENOENT (No such file or directory)
22052 statx(AT_FDCWD, "/usr/lib/llvm/6/bin/lpr.cups", AT_STATX_SYNC_AS_STAT, STATX_ALL, 0x7fff2239cbf0) = -1 ENOENT (No such file or directory)
22052 statx(AT_FDCWD, "/usr/local/bin/lpr.cups", AT_STATX_SYNC_AS_STAT, STATX_ALL, 0x7fff2239cbf0) = -1 ENOENT (No such file or directory)
22052 statx(AT_FDCWD, "/usr/bin/lpr.cups", AT_STATX_SYNC_AS_STAT, STATX_ALL, 0x7fff2239cbf0) = -1 ENOENT (No such file or directory)
22052 statx(AT_FDCWD, "/bin/lpr.cups", AT_STATX_SYNC_AS_STAT, STATX_ALL, 0x7fff2239cbf0) = -1 ENOENT (No such file or directory)
22052 statx(AT_FDCWD, "/opt/bin/lpr.cups", AT_STATX_SYNC_AS_STAT, STATX_ALL, 0x7fff2239cbf0) = -1 ENOENT (No such file or directory)
22052 statx(AT_FDCWD, "/usr/x86_64-pc-linux-gnu/gcc-bin/7.3.0/lpr", AT_STATX_SYNC_AS_STAT, STATX_ALL, 0x7fff2239cbf0) = -1 ENOENT (No such file or directory)
22052 statx(AT_FDCWD, "/usr/lib/llvm/6/bin/lpr", AT_STATX_SYNC_AS_STAT, STATX_ALL, 0x7fff2239cbf0) = -1 ENOENT (No such file or directory)
22052 statx(AT_FDCWD, "/usr/local/bin/lpr", AT_STATX_SYNC_AS_STAT, STATX_ALL, 0x7fff2239cbf0) = -1 ENOENT (No such file or directory)
22052 statx(AT_FDCWD, "/usr/bin/lpr", AT_STATX_SYNC_AS_STAT, STATX_ALL, {stx_mask=STATX_ALL, stx_attributes=0, stx_mode=S_IFREG|0755, stx_size=14448, ...}) = 0
22052 access("/usr/bin/lpr", X_OK) = 0
22052 statx(AT_FDCWD, "/usr/x86_64-pc-linux-gnu/gcc-bin/7.3.0/lpr", AT_STATX_SYNC_AS_STAT, STATX_ALL, 0x7fff2239ca50) = -1 ENOENT (No such file or directory)
22052 statx(AT_FDCWD, "/usr/lib/llvm/6/bin/lpr", AT_STATX_SYNC_AS_STAT, STATX_ALL, 0x7fff2239ca50) = -1 ENOENT (No such file or directory)
22052 statx(AT_FDCWD, "/usr/local/bin/lpr", AT_STATX_SYNC_AS_STAT, STATX_ALL, 0x7fff2239ca50) = -1 ENOENT (No such file or directory)
22052 statx(AT_FDCWD, "/usr/bin/lpr", AT_STATX_SYNC_AS_STAT, STATX_ALL, {stx_mask=STATX_ALL, stx_attributes=0, stx_mode=S_IFREG|0755, stx_size=14448, ...}) = 0
22052 access("/usr/bin/lpr", X_OK) = 0
22068 execve("/usr/bin/lpr", ["/usr/bin/lpr", "-P", "", "-#1", "-J", "Pro/ENGINEER - PAPIERBOHRLEHRE", "-r", "/tmp/okular_BMvshN.ps"], 0x7fff2239d858 /* 62 vars */ <unfinished ...>
22068 write(2, "/usr/bin/lpr: No such file or di"..., 40) = 40
|
|
|
Back to top |
|
|
mike155 Advocate
Joined: 17 Sep 2010 Posts: 4438 Location: Frankfurt, Germany
|
Posted: Thu Apr 05, 2018 2:49 pm Post subject: |
|
|
Thanks for the output. That looks pretty good - with the exception of the last two lines.
Look at the second last line. Okular uses '/usr/bin/lpr' to print a file - and that's perfectly fine. But the second argument is empty - and that's the problem. The argument should contain the printer name - but it doesn't. As a result, /usr/bin/lpr fails. The error message given by okular is wrong, of course. It should be 'lpr: The printer or class does not exist' - and not: '/usr/bin/lpr: No such file or directory'. That's probably a bug in Okular, but it's not the cause of your problem.
Let's try to find out why Okular uses an empty printer name when it calls lpr. |
|
Back to top |
|
|
Perfect Gentleman Veteran
Joined: 18 May 2014 Posts: 1249
|
Posted: Thu Apr 05, 2018 2:55 pm Post subject: |
|
|
imo, it's problem with Qt as Qt applications as well KDE applications can not print.
Code: | $ strace -o /tmp/log_gwen -f gwenview 0000
QPainter::begin(): Returned false
QPainter::viewport: Painter not active
alignment= 132
QPainter::setViewport: Painter not active
QPainter::setWindow: Painter not active |
grep print /tmp/log_gwen
Code: | ~ $ grep lp /tmp/log_gwen
28790 read(11, "[Protocol]\nhelper=true\nexec=\npro"..., 16384) = 3056
28790 read(18, "DRIVER=lpc_ich\nPCI_CLASS=60100\nP"..., 4096) = 162
28790 read(18, "DRIVER=lpc_ich\nPCI_CLASS=60100\nP"..., 4096) = 162
28790 openat(AT_FDCWD, "/etc/cups/lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 openat(AT_FDCWD, "/home/user_user/.cups/lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 openat(AT_FDCWD, "/etc/cups/lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 openat(AT_FDCWD, "/home/user_user/.cups/lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 openat(AT_FDCWD, "/etc/cups/lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 openat(AT_FDCWD, "/home/user_user/.cups/lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 openat(AT_FDCWD, "/etc/cups/lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 openat(AT_FDCWD, "/home/user_user/.cups/lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 openat(AT_FDCWD, "/etc/cups/lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 openat(AT_FDCWD, "/home/user_user/.cups/lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 openat(AT_FDCWD, "/etc/cups/lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 openat(AT_FDCWD, "/home/user_user/.cups/lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 openat(AT_FDCWD, "/etc/cups/lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 openat(AT_FDCWD, "/home/user_user/.cups/lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 read(22, "[Dolphin]\nTimestamp=2018,1,7,22,"..., 16384) = 59
28790 openat(AT_FDCWD, "/etc/cups/lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 openat(AT_FDCWD, "/home/user_user/.cups/lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 openat(AT_FDCWD, "/etc/cups/lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 openat(AT_FDCWD, "/home/user_user/.cups/lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 openat(AT_FDCWD, "/etc/cups/lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 openat(AT_FDCWD, "/home/user_user/.cups/lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 openat(AT_FDCWD, "/etc/cups/lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 openat(AT_FDCWD, "/home/user_user/.cups/lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 openat(AT_FDCWD, "/etc/cups/lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 openat(AT_FDCWD, "/home/user_user/.cups/lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 openat(AT_FDCWD, "/etc/cups/lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 openat(AT_FDCWD, "/home/user_user/.cups/lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 openat(AT_FDCWD, "/etc/cups/lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 openat(AT_FDCWD, "/home/user_user/.cups/lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory) |
Code: | ~ $ grep cups /tmp/log_gwen
28790 lstat("/usr/lib64/qt5/plugins/printsupport/libcupsprintersupport.so", {st_mode=S_IFREG|0755, st_size=72744, ...}) = 0
28790 openat(AT_FDCWD, "/usr/lib64/qt5/plugins/printsupport/libcupsprintersupport.so", O_RDONLY|O_CLOEXEC) = 18
28790 openat(AT_FDCWD, "/usr/lib64/qt5/plugins/printsupport/libcupsprintersupport.so", O_RDONLY|O_CLOEXEC) = 18
28790 openat(AT_FDCWD, "/usr/lib64/libcups.so.2", O_RDONLY|O_CLOEXEC) = 18
28790 openat(AT_FDCWD, "/etc/cups/client.conf", O_RDONLY) = 18
28790 read(18, "ServerName /run/cups/cups.sock\n", 4096) = 31
28790 openat(AT_FDCWD, "/home/user_user/.cups/client.conf", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 connect(18, {sa_family=AF_UNIX, sun_path="/run/cups/cups.sock"}, 22) = 0
28790 recvfrom(18, "lication/vnd.cups-paged-brf", 27, 0, NULL, NULL) = 27
28790 recvfrom(18, "application/vnd.cups-paged-ubrl", 31, 0, NULL, NULL) = 31
28790 recvfrom(18, "application/vnd.cups-pdf", 24, 0, NULL, NULL) = 24
28790 recvfrom(18, "application/vnd.cups-pdf-banner", 31, 0, NULL, NULL) = 31
28790 recvfrom(18, "application/vnd.cups-postscript", 31, 0, NULL, NULL) = 31
28790 recvfrom(18, "application/vnd.cups-ppd", 24, 0, NULL, NULL) = 24
28790 recvfrom(18, "application/vnd.cups-raster", 27, 0, NULL, NULL) = 27
28790 recvfrom(18, "application/vnd.cups-raw", 24, 0, NULL, NULL) = 24
28790 recvfrom(18, "application/vnd.cups-ubrl", 25, 0, NULL, NULL) = 25
28790 recvfrom(18, "image/vnd.cups-brf", 18, 0, NULL, NULL) = 18
28790 recvfrom(18, "image/vnd.cups-pdf", 18, 0, NULL, NULL) = 18
28790 recvfrom(18, "image/vnd.cups-ubrl", 19, 0, NULL, NULL) = 19
28790 recvfrom(18, "cups-version", 12, 0, NULL, NULL) = 12
28790 recvfrom(18, "lication/vnd.cups-paged-brf", 27, 0, NULL, NULL) = 27
28790 recvfrom(18, "application/vnd.cups-paged-ubrl", 31, 0, NULL, NULL) = 31
28790 recvfrom(18, "application/vnd.cups-pdf", 24, 0, NULL, NULL) = 24
28790 recvfrom(18, "application/vnd.cups-pdf-banner", 31, 0, NULL, NULL) = 31
28790 recvfrom(18, "application/vnd.cups-postscript", 31, 0, NULL, NULL) = 31
28790 recvfrom(18, "application/vnd.cups-ppd", 24, 0, NULL, NULL) = 24
28790 recvfrom(18, "application/vnd.cups-raster", 27, 0, NULL, NULL) = 27
28790 recvfrom(18, "application/vnd.cups-raw", 24, 0, NULL, NULL) = 24
28790 recvfrom(18, "application/vnd.cups-ubrl", 25, 0, NULL, NULL) = 25
28790 recvfrom(18, "image/vnd.cups-brf", 18, 0, NULL, NULL) = 18
28790 recvfrom(18, "image/vnd.cups-pdf", 18, 0, NULL, NULL) = 18
28790 recvfrom(18, "image/vnd.cups-ubrl", 19, 0, NULL, NULL) = 19
28790 recvfrom(18, "cups-version", 12, 0, NULL, NULL) = 12
28790 openat(AT_FDCWD, "/etc/cups/lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 openat(AT_FDCWD, "/home/user_user/.cups/lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 openat(AT_FDCWD, "/etc/cups/lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 openat(AT_FDCWD, "/home/user_user/.cups/lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 stat("/etc/cups/ppd/Samsung_M2070_Series.ppd", 0x7ffee57f2600) = -1 ENOENT (No such file or directory)
28790 connect(20, {sa_family=AF_UNIX, sun_path="/run/cups/cups.sock"}, 22) = 0
28790 access("/usr/share/locale/en_US/cups_en_US.po", F_OK) = -1 ENOENT (No such file or directory)
28790 access("/usr/share/locale/en/cups_en.po", F_OK) = -1 ENOENT (No such file or directory)
28790 openat(AT_FDCWD, "/usr/share/locale/C/cups_C.po", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 recvfrom(18, "lication/vnd.cups-paged-brf", 27, 0, NULL, NULL) = 27
28790 recvfrom(18, "application/vnd.cups-paged-ubrl", 31, 0, NULL, NULL) = 31
28790 recvfrom(18, "application/vnd.cups-pdf", 24, 0, NULL, NULL) = 24
28790 recvfrom(18, "application/vnd.cups-pdf-banner", 31, 0, NULL, NULL) = 31
28790 recvfrom(18, "application/vnd.cups-postscript", 31, 0, NULL, NULL) = 31
28790 recvfrom(18, "application/vnd.cups-ppd", 24, 0, NULL, NULL) = 24
28790 recvfrom(18, "application/vnd.cups-raster", 27, 0, NULL, NULL) = 27
28790 recvfrom(18, "application/vnd.cups-raw", 24, 0, NULL, NULL) = 24
28790 recvfrom(18, "application/vnd.cups-ubrl", 25, 0, NULL, NULL) = 25
28790 recvfrom(18, "image/vnd.cups-brf", 18, 0, NULL, NULL) = 18
28790 recvfrom(18, "image/vnd.cups-pdf", 18, 0, NULL, NULL) = 18
28790 recvfrom(18, "image/vnd.cups-ubrl", 19, 0, NULL, NULL) = 19
28790 recvfrom(18, "cups-version", 12, 0, NULL, NULL) = 12
28790 recvfrom(18, "lication/vnd.cups-paged-brf", 27, 0, NULL, NULL) = 27
28790 recvfrom(18, "application/vnd.cups-paged-ubrl", 31, 0, NULL, NULL) = 31
28790 recvfrom(18, "application/vnd.cups-pdf", 24, 0, NULL, NULL) = 24
28790 recvfrom(18, "application/vnd.cups-pdf-banner", 31, 0, NULL, NULL) = 31
28790 recvfrom(18, "application/vnd.cups-postscript", 31, 0, NULL, NULL) = 31
28790 recvfrom(18, "application/vnd.cups-ppd", 24, 0, NULL, NULL) = 24
28790 recvfrom(18, "application/vnd.cups-raster", 27, 0, NULL, NULL) = 27
28790 recvfrom(18, "application/vnd.cups-raw", 24, 0, NULL, NULL) = 24
28790 recvfrom(18, "application/vnd.cups-ubrl", 25, 0, NULL, NULL) = 25
28790 recvfrom(18, "image/vnd.cups-brf", 18, 0, NULL, NULL) = 18
28790 recvfrom(18, "image/vnd.cups-pdf", 18, 0, NULL, NULL) = 18
28790 recvfrom(18, "image/vnd.cups-ubrl", 19, 0, NULL, NULL) = 19
28790 recvfrom(18, "cups-version", 12, 0, NULL, NULL) = 12
28790 openat(AT_FDCWD, "/etc/cups/lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 openat(AT_FDCWD, "/home/user_user/.cups/lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 openat(AT_FDCWD, "/etc/cups/lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 openat(AT_FDCWD, "/home/user_user/.cups/lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 stat("/etc/cups/ppd/Samsung_M2070_Series.ppd", 0x7ffee57f2620) = -1 ENOENT (No such file or directory)
28790 connect(20, {sa_family=AF_UNIX, sun_path="/run/cups/cups.sock"}, 22) = 0
28790 recvfrom(18, "lication/vnd.cups-paged-brf", 27, 0, NULL, NULL) = 27
28790 recvfrom(18, "application/vnd.cups-paged-ubrl", 31, 0, NULL, NULL) = 31
28790 recvfrom(18, "application/vnd.cups-pdf", 24, 0, NULL, NULL) = 24
28790 recvfrom(18, "application/vnd.cups-pdf-banner", 31, 0, NULL, NULL) = 31
28790 recvfrom(18, "application/vnd.cups-postscript", 31, 0, NULL, NULL) = 31
28790 recvfrom(18, "application/vnd.cups-ppd", 24, 0, NULL, NULL) = 24
28790 recvfrom(18, "application/vnd.cups-raster", 27, 0, NULL, NULL) = 27
28790 recvfrom(18, "application/vnd.cups-raw", 24, 0, NULL, NULL) = 24
28790 recvfrom(18, "application/vnd.cups-ubrl", 25, 0, NULL, NULL) = 25
28790 recvfrom(18, "image/vnd.cups-brf", 18, 0, NULL, NULL) = 18
28790 recvfrom(18, "image/vnd.cups-pdf", 18, 0, NULL, NULL) = 18
28790 recvfrom(18, "image/vnd.cups-ubrl", 19, 0, NULL, NULL) = 19
28790 recvfrom(18, "cups-version", 12, 0, NULL, NULL) = 12
28790 recvfrom(18, "lication/vnd.cups-paged-brf", 27, 0, NULL, NULL) = 27
28790 recvfrom(18, "application/vnd.cups-paged-ubrl", 31, 0, NULL, NULL) = 31
28790 recvfrom(18, "application/vnd.cups-pdf", 24, 0, NULL, NULL) = 24
28790 recvfrom(18, "application/vnd.cups-pdf-banner", 31, 0, NULL, NULL) = 31
28790 recvfrom(18, "application/vnd.cups-postscript", 31, 0, NULL, NULL) = 31
28790 recvfrom(18, "application/vnd.cups-ppd", 24, 0, NULL, NULL) = 24
28790 recvfrom(18, "application/vnd.cups-raster", 27, 0, NULL, NULL) = 27
28790 recvfrom(18, "application/vnd.cups-raw", 24, 0, NULL, NULL) = 24
28790 recvfrom(18, "application/vnd.cups-ubrl", 25, 0, NULL, NULL) = 25
28790 recvfrom(18, "image/vnd.cups-brf", 18, 0, NULL, NULL) = 18
28790 recvfrom(18, "image/vnd.cups-pdf", 18, 0, NULL, NULL) = 18
28790 recvfrom(18, "image/vnd.cups-ubrl", 19, 0, NULL, NULL) = 19
28790 recvfrom(18, "cups-version", 12, 0, NULL, NULL) = 12
28790 openat(AT_FDCWD, "/etc/cups/lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 openat(AT_FDCWD, "/home/user_user/.cups/lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 recvfrom(18, "lication/vnd.cups-paged-brf", 27, 0, NULL, NULL) = 27
28790 recvfrom(18, "application/vnd.cups-paged-ubrl", 31, 0, NULL, NULL) = 31
28790 recvfrom(18, "application/vnd.cups-pdf", 24, 0, NULL, NULL) = 24
28790 recvfrom(18, "application/vnd.cups-pdf-banner", 31, 0, NULL, NULL) = 31
28790 recvfrom(18, "application/vnd.cups-postscript", 31, 0, NULL, NULL) = 31
28790 recvfrom(18, "application/vnd.cups-ppd", 24, 0, NULL, NULL) = 24
28790 recvfrom(18, "application/vnd.cups-raster", 27, 0, NULL, NULL) = 27
28790 recvfrom(18, "application/vnd.cups-raw", 24, 0, NULL, NULL) = 24
28790 recvfrom(18, "application/vnd.cups-ubrl", 25, 0, NULL, NULL) = 25
28790 recvfrom(18, "image/vnd.cups-brf", 18, 0, NULL, NULL) = 18
28790 recvfrom(18, "image/vnd.cups-pdf", 18, 0, NULL, NULL) = 18
28790 recvfrom(18, "image/vnd.cups-ubrl", 19, 0, NULL, NULL) = 19
28790 recvfrom(18, "cups-version", 12, 0, NULL, NULL) = 12
28790 recvfrom(18, "lication/vnd.cups-paged-brf", 27, 0, NULL, NULL) = 27
28790 recvfrom(18, "application/vnd.cups-paged-ubrl", 31, 0, NULL, NULL) = 31
28790 recvfrom(18, "application/vnd.cups-pdf", 24, 0, NULL, NULL) = 24
28790 recvfrom(18, "application/vnd.cups-pdf-banner", 31, 0, NULL, NULL) = 31
28790 recvfrom(18, "application/vnd.cups-postscript", 31, 0, NULL, NULL) = 31
28790 recvfrom(18, "application/vnd.cups-ppd", 24, 0, NULL, NULL) = 24
28790 recvfrom(18, "application/vnd.cups-raster", 27, 0, NULL, NULL) = 27
28790 recvfrom(18, "application/vnd.cups-raw", 24, 0, NULL, NULL) = 24
28790 recvfrom(18, "application/vnd.cups-ubrl", 25, 0, NULL, NULL) = 25
28790 recvfrom(18, "image/vnd.cups-brf", 18, 0, NULL, NULL) = 18
28790 recvfrom(18, "image/vnd.cups-pdf", 18, 0, NULL, NULL) = 18
28790 recvfrom(18, "image/vnd.cups-ubrl", 19, 0, NULL, NULL) = 19
28790 recvfrom(18, "cups-version", 12, 0, NULL, NULL) = 12
28790 openat(AT_FDCWD, "/etc/cups/lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 openat(AT_FDCWD, "/home/user_user/.cups/lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 openat(AT_FDCWD, "/etc/cups/lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 openat(AT_FDCWD, "/home/user_user/.cups/lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 stat("/etc/cups/ppd/Samsung_M2070_Series.ppd", 0x7ffee57f2660) = -1 ENOENT (No such file or directory)
28790 connect(22, {sa_family=AF_UNIX, sun_path="/run/cups/cups.sock"}, 22) = 0
28790 openat(AT_FDCWD, "/etc/cups/lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 openat(AT_FDCWD, "/home/user_user/.cups/lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 stat("/etc/cups/ppd/Samsung_M2070_Series.ppd", 0x7ffee57f18a0) = -1 ENOENT (No such file or directory)
28790 connect(22, {sa_family=AF_UNIX, sun_path="/run/cups/cups.sock"}, 22) = 0
28790 openat(AT_FDCWD, "/etc/cups/lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 openat(AT_FDCWD, "/home/user_user/.cups/lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 stat("/etc/cups/ppd/Samsung_M2070_Series.ppd", 0x7ffee57f1910) = -1 ENOENT (No such file or directory)
28790 connect(22, {sa_family=AF_UNIX, sun_path="/run/cups/cups.sock"}, 22) = 0
28790 recvfrom(18, "lication/vnd.cups-paged-brf", 27, 0, NULL, NULL) = 27
28790 recvfrom(18, "application/vnd.cups-paged-ubrl", 31, 0, NULL, NULL) = 31
28790 recvfrom(18, "application/vnd.cups-pdf", 24, 0, NULL, NULL) = 24
28790 recvfrom(18, "application/vnd.cups-pdf-banner", 31, 0, NULL, NULL) = 31
28790 recvfrom(18, "application/vnd.cups-postscript", 31, 0, NULL, NULL) = 31
28790 recvfrom(18, "application/vnd.cups-ppd", 24, 0, NULL, NULL) = 24
28790 recvfrom(18, "application/vnd.cups-raster", 27, 0, NULL, NULL) = 27
28790 recvfrom(18, "application/vnd.cups-raw", 24, 0, NULL, NULL) = 24
28790 recvfrom(18, "application/vnd.cups-ubrl", 25, 0, NULL, NULL) = 25
28790 recvfrom(18, "image/vnd.cups-brf", 18, 0, NULL, NULL) = 18
28790 recvfrom(18, "image/vnd.cups-pdf", 18, 0, NULL, NULL) = 18
28790 recvfrom(18, "image/vnd.cups-ubrl", 19, 0, NULL, NULL) = 19
28790 recvfrom(18, "cups-version", 12, 0, NULL, NULL) = 12
28790 recvfrom(18, "lication/vnd.cups-paged-brf", 27, 0, NULL, NULL) = 27
28790 recvfrom(18, "application/vnd.cups-paged-ubrl", 31, 0, NULL, NULL) = 31
28790 recvfrom(18, "application/vnd.cups-pdf", 24, 0, NULL, NULL) = 24
28790 recvfrom(18, "application/vnd.cups-pdf-banner", 31, 0, NULL, NULL) = 31
28790 recvfrom(18, "application/vnd.cups-postscript", 31, 0, NULL, NULL) = 31
28790 recvfrom(18, "application/vnd.cups-ppd", 24, 0, NULL, NULL) = 24
28790 recvfrom(18, "application/vnd.cups-raster", 27, 0, NULL, NULL) = 27
28790 recvfrom(18, "application/vnd.cups-raw", 24, 0, NULL, NULL) = 24
28790 recvfrom(18, "application/vnd.cups-ubrl", 25, 0, NULL, NULL) = 25
28790 recvfrom(18, "image/vnd.cups-brf", 18, 0, NULL, NULL) = 18
28790 recvfrom(18, "image/vnd.cups-pdf", 18, 0, NULL, NULL) = 18
28790 recvfrom(18, "image/vnd.cups-ubrl", 19, 0, NULL, NULL) = 19
28790 recvfrom(18, "cups-version", 12, 0, NULL, NULL) = 12
28790 openat(AT_FDCWD, "/etc/cups/lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 openat(AT_FDCWD, "/home/user_user/.cups/lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 openat(AT_FDCWD, "/etc/cups/lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 openat(AT_FDCWD, "/home/user_user/.cups/lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 stat("/etc/cups/ppd/Samsung_M2070_Series.ppd", 0x7ffee57f1870) = -1 ENOENT (No such file or directory)
28790 connect(22, {sa_family=AF_UNIX, sun_path="/run/cups/cups.sock"}, 22) = 0
28790 recvfrom(18, "lication/vnd.cups-paged-brf", 27, 0, NULL, NULL) = 27
28790 recvfrom(18, "application/vnd.cups-paged-ubrl", 31, 0, NULL, NULL) = 31
28790 recvfrom(18, "application/vnd.cups-pdf", 24, 0, NULL, NULL) = 24
28790 recvfrom(18, "application/vnd.cups-pdf-banner", 31, 0, NULL, NULL) = 31
28790 recvfrom(18, "application/vnd.cups-postscript", 31, 0, NULL, NULL) = 31
28790 recvfrom(18, "application/vnd.cups-ppd", 24, 0, NULL, NULL) = 24
28790 recvfrom(18, "application/vnd.cups-raster", 27, 0, NULL, NULL) = 27
28790 recvfrom(18, "application/vnd.cups-raw", 24, 0, NULL, NULL) = 24
28790 recvfrom(18, "application/vnd.cups-ubrl", 25, 0, NULL, NULL) = 25
28790 recvfrom(18, "image/vnd.cups-brf", 18, 0, NULL, NULL) = 18
28790 recvfrom(18, "image/vnd.cups-pdf", 18, 0, NULL, NULL) = 18
28790 recvfrom(18, "image/vnd.cups-ubrl", 19, 0, NULL, NULL) = 19
28790 recvfrom(18, "cups-version", 12, 0, NULL, NULL) = 12
28790 recvfrom(18, "lication/vnd.cups-paged-brf", 27, 0, NULL, NULL) = 27
28790 recvfrom(18, "application/vnd.cups-paged-ubrl", 31, 0, NULL, NULL) = 31
28790 recvfrom(18, "application/vnd.cups-pdf", 24, 0, NULL, NULL) = 24
28790 recvfrom(18, "application/vnd.cups-pdf-banner", 31, 0, NULL, NULL) = 31
28790 recvfrom(18, "application/vnd.cups-postscript", 31, 0, NULL, NULL) = 31
28790 recvfrom(18, "application/vnd.cups-ppd", 24, 0, NULL, NULL) = 24
28790 recvfrom(18, "application/vnd.cups-raster", 27, 0, NULL, NULL) = 27
28790 recvfrom(18, "application/vnd.cups-raw", 24, 0, NULL, NULL) = 24
28790 recvfrom(18, "application/vnd.cups-ubrl", 25, 0, NULL, NULL) = 25
28790 recvfrom(18, "image/vnd.cups-brf", 18, 0, NULL, NULL) = 18
28790 recvfrom(18, "image/vnd.cups-pdf", 18, 0, NULL, NULL) = 18
28790 recvfrom(18, "image/vnd.cups-ubrl", 19, 0, NULL, NULL) = 19
28790 recvfrom(18, "cups-version", 12, 0, NULL, NULL) = 12
28790 openat(AT_FDCWD, "/etc/cups/lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 openat(AT_FDCWD, "/home/user_user/.cups/lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 openat(AT_FDCWD, "/etc/cups/lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 openat(AT_FDCWD, "/home/user_user/.cups/lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 stat("/etc/cups/ppd/Samsung_M2070_Series.ppd", 0x7ffee57f1890) = -1 ENOENT (No such file or directory)
28790 connect(22, {sa_family=AF_UNIX, sun_path="/run/cups/cups.sock"}, 22) = 0
28790 openat(AT_FDCWD, "/etc/cups/lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 openat(AT_FDCWD, "/home/user_user/.cups/lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory)
28790 stat("/etc/cups/ppd/Samsung_M2070_Series.ppd", 0x7ffee57f18e0) = -1 ENOENT (No such file or directory)
28790 connect(22, {sa_family=AF_UNIX, sun_path="/run/cups/cups.sock"}, 22) = 0
|
|
|
Back to top |
|
|
mike155 Advocate
Joined: 17 Sep 2010 Posts: 4438 Location: Frankfurt, Germany
|
Posted: Thu Apr 05, 2018 3:29 pm Post subject: |
|
|
Well, here is what happens:
- You start okular
- Okular reads a few local CUPS configuration files
- Okular connects to the CUPS server via TCP/IP and reads a list of available printers and their configuration
- Okular calls lpr to print a file and specifies an empty printer name
Your printing problem could be caused by:
- You have an invalid CUPS server configuration
- You have a valid, but highly unusable CUPS server configuration
- You have an error in your CUPS client configuration
- You have a valid, but highly unusable CUPS client configuration
- There's a bug in your CUPS software
- There's a bug in your Qt or KDE software
Most people don't have problems if they use KDE, Qt and CUPS to print their files. There must be a very specific problem with your local setup.
- Which versions of CUPS, Qt and KDE do you use? Do you use any non-standard flags or options to install these packages?
- Please look at the output of 'grep open /tmp/log'. It will show you some client CUPS configuration files (/etc/cups/client.conf, ~/.cups/lpoptions, etc). Please double-check their contents.
- Please look at the configuration files on your CUPS server. Is there anything that could confuse Qt/KDE?
|
|
Back to top |
|
|
Perfect Gentleman Veteran
Joined: 18 May 2014 Posts: 1249
|
Posted: Thu Apr 05, 2018 3:34 pm Post subject: |
|
|
1 - printing of test page from SystemSetting - ok
2 - printing from Libreoffice, Chromium, Zathura - ok
3 - another with the sane verions of KDE and Qt - ok
4 - printing from any Qt5/KDE app - not ok |
|
Back to top |
|
|
Perfect Gentleman Veteran
Joined: 18 May 2014 Posts: 1249
|
Posted: Thu Apr 05, 2018 3:54 pm Post subject: |
|
|
solved
add Code: | $ cat /etc/cups/client.conf
ServerName 192.168.100.102:631 |
|
|
Back to top |
|
|
dantefff n00b
Joined: 14 Oct 2019 Posts: 1
|
Posted: Mon Oct 14, 2019 10:10 am Post subject: |
|
|
Perfect Gentleman wrote: | solved
add Code: | $ cat /etc/cups/client.conf
ServerName 192.168.100.102:631 |
|
Sorry for bothering with a thread of a year ago, but I have a similar problem in Debian, I have been searching Internet and this thread is referenced in some places so I think this is the right place to continue.
Just to throw a little more of light and info.
In my case, I was configuring a remote printer in my local cups server. Until buster, I have done this as Code: | lpadmin -p HL5470DW -E -v ipp://SERVER_IP/printers/HL5470DW | This creates a local printer in my local cups pointing to the remote printer in the remote cups. This does not work in qt apps (in Buster).
The workaround for me was to put in the /etc/cups/client.conf the remote cups addres Code: | ServerName SERVER_IP:631 | in order to make the qt apps work straight to the remote cups server. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|