Can't launch CUPS server (Не запускается CUPS на клиенте под LINUX)

Модераторы: dimbor, Модераторы разделов

ExGxOxR
Сообщения: 6

Can't launch CUPS server

Сообщение ExGxOxR »

Доброго времени суток всем!

Запущен в работу терминальный сервер с 1С: (Debian Squeeze x64. Wine, RX, NX-клиент от Etersoft)
С клиентами по виндой большей частью все работает (про периодическое отваливание принтеров пока промолчу).
Пытаюсь настроить клиента под Linux (runtu) - не получается прицепить принтер через CUPS - пишет "Can't launch CUPS server".
Пробовал разные версии CUPS, дистрибутивы Ubuntu, клиенты Etersofta и Nomachine - результата нет.
apparmor отсутствует и проблема явно на клиентской стороне...
Есть варианты / идеи - что делать / где копать?
Спасибо сказали:

dimbor
Ведущий рубрики
Сообщения: 1506
Статус: Подвинутый участник

Re: Can't launch CUPS server

Сообщение dimbor »

Спасибо сказали:

Bedazzled
Сообщения: 311
ОС: ubuntu

Re: Can't launch CUPS server

Сообщение Bedazzled »

а через SMB работают?
Спасибо сказали:

ExGxOxR
Сообщения: 6

Re: Can't launch CUPS server

Сообщение ExGxOxR »

dimbor
просматривал раньше эту тему, но не дочитал ведь до конца...
nxprint подменил - ошибка на клиенте исчезла, уже хорошо.
А как заменить nxnode с гита (не пробовал еще что-то с гита брать): также просто текстовый файл с гита берем и заменяем оригинальный nxnode ? версия RX, дистрибутив не важны?

Bedazzled
Через с SMB тоже не запустился принтер, но я не стал в этом направлении копать дальше. С Линукса на Линукс через CUPS явно логичнее...
При этом с локальной сетки c Windows-машин на CUPS-линукс-принтер "с лету" все напечаталось...
Спасибо сказали:

dimbor
Ведущий рубрики
Сообщения: 1506
Статус: Подвинутый участник

Re: Can't launch CUPS server

Сообщение dimbor »

ExGxOxR писал(а):
06.04.2013 20:22
А как заменить nxnode с гита (не пробовал еще что-то с гита брать): также просто текстовый файл с гита берем и заменяем оригинальный nxnode ? версия RX, дистрибутив не важны?

Именно так. Должно быть не важно, если установленный RX не совсем уж пещерный. Дистрибутив тоже вроде не важен. Накрайняк при проблемах сделать diff -u nxnode.old nxnode на предмет изменения абсолютных путей.
И да, все там делалось только для ENABLE_CUPS_SERVER_MODE
Спасибо сказали:

ExGxOxR
Сообщения: 6

Re: Can't launch CUPS server

Сообщение ExGxOxR »

Nxnode с гита обновил... ENABLE_CUPS_SERVER_MODE="1" конечно...
На сервере в CUPS принтер сам не создаю, PPD-файл в /etc/nxserver/ppd/ не записываю...
При подключении клиента на сервере в CUPS появляется принтер с подключением ipp://127.0.0.1:36XX/printers/<имя принтера>
В папке /etc/cups/ppd/ на сервере появляется файл <user>_<имя принтера>.ppd
При печати теста с CUPS на сервере выдает /usr/lib/cups/filter/hpcups failed - пока не удается победить...
Печать на клиенте (без терминала), в т.ч. теста с локального CUPS, проходит нормально. драйвер стоит hpcups...
Спасибо сказали:

dimbor
Ведущий рубрики
Сообщения: 1506
Статус: Подвинутый участник

Re: Can't launch CUPS server

Сообщение dimbor »

Ага, принтер цепляется уже.
ExGxOxR писал(а):
07.04.2013 10:46
При печати теста с CUPS на сервере выдает /usr/lib/cups/filter/hpcups failed - пока не удается победить...
Печать на клиенте (без терминала), в т.ч. теста с локального CUPS, проходит нормально. драйвер стоит hpcups...

Понятно, что на клиенте драйвер есть. А есть ли он (требуха от него) на сервере? В смысле файл фильтра то имеется?
Тот-который /usr/lib/cups/filter/hpcups. Если да, то рекомендую в серверном купсе задрать DebugLevel и вчитаться.
Спасибо сказали:

Lorte
Сообщения: 308

Re: Can't launch CUPS server

Сообщение Lorte »

Рекомендую вместо "родного" драйвера hpcups поставить драйвер foomatic. С "родными" драйверами HP много проблем при работе по сети, нормально они работают только локально.
Спасибо сказали:

Аватара пользователя
broom
Бывший модератор
Сообщения: 1629
Статус: мизантроп.ка
ОС: Gentoo

Re: Can't launch CUPS server

Сообщение broom »

ExGxOxR писал(а):
07.04.2013 10:46
При печати теста с CUPS на сервере выдает /usr/lib/cups/filter/hpcups failed - пока не удается победить...

Включите в CUPS-е дебаг ("LogLevel debug" в конфиге) и покажите, на что именно жалуется hpcups.

Lorte писал(а):
08.04.2013 08:03
Рекомендую вместо "родного" драйвера hpcups поставить драйвер foomatic. С "родными" драйверами HP много проблем при работе по сети, нормально они работают только локально.

По IPP работает и по сети. https://answers.launchpad.net/hplip/+question/190327
but in the darkness, behind your smile, you scream... © Dio
Спасибо сказали:

ExGxOxR
Сообщения: 6

Re: Can't launch CUPS server

Сообщение ExGxOxR »

Файл /usr/lib/cups/filter/hpcups на месте... Поставил LogLevel debug...

Похоже спотыкается на строчке:
D [08/Apr/2013:22:49:59 +0400] [Job 5541] prnt/hpcups/HPCupsFilter.cpp 413: m_Job initialization failed with error = 48DEBUG2: cups->header.Duplex = 0

Лог с подключением и попыткой печати теста с с CUPSa:

Код: Выделить всё

D [08/Apr/2013:22:48:27 +0400] Report: clients=0
D [08/Apr/2013:22:48:27 +0400] Report: jobs=211
D [08/Apr/2013:22:48:27 +0400] Report: jobs-active=1
D [08/Apr/2013:22:48:27 +0400] Report: printers=3
D [08/Apr/2013:22:48:27 +0400] Report: printers-implicit=0
D [08/Apr/2013:22:48:27 +0400] Report: stringpool-string-count=6353
D [08/Apr/2013:22:48:27 +0400] Report: stringpool-alloc-bytes=14928
D [08/Apr/2013:22:48:27 +0400] Report: stringpool-total-bytes=128480
D [08/Apr/2013:22:48:43 +0400] cupsdAcceptClient: 11 from localhost (Domain)
D [08/Apr/2013:22:48:43 +0400] cupsdReadClient: 11 POST / HTTP/1.1
D [08/Apr/2013:22:48:43 +0400] cupsdSetBusyState: Active clients
D [08/Apr/2013:22:48:43 +0400] cupsdAuthorize: No authentication data provided.
D [08/Apr/2013:22:48:43 +0400] cupsdReadClient: 11 1.1 Get-Jobs 1
D [08/Apr/2013:22:48:43 +0400] Get-Jobs ipp://localhost/
D [08/Apr/2013:22:48:43 +0400] Returning IPP successful-ok for Get-Jobs (ipp://localhost/) from localhost
D [08/Apr/2013:22:48:43 +0400] cupsdSetBusyState: Not busy
D [08/Apr/2013:22:48:43 +0400] cupsdReadClient: 11 WAITING Closing on EOF
D [08/Apr/2013:22:48:43 +0400] cupsdCloseClient: 11
D [08/Apr/2013:22:48:44 +0400] cupsdAcceptClient: 11 from localhost (Domain)
D [08/Apr/2013:22:48:44 +0400] cupsdReadClient: 11 POST / HTTP/1.1
D [08/Apr/2013:22:48:44 +0400] cupsdSetBusyState: Active clients
D [08/Apr/2013:22:48:44 +0400] cupsdAuthorize: No authentication data provided.
D [08/Apr/2013:22:48:44 +0400] cupsdReadClient: 11 1.1 CUPS-Get-Printers 1
D [08/Apr/2013:22:48:44 +0400] CUPS-Get-Printers
D [08/Apr/2013:22:48:44 +0400] Returning IPP successful-ok for CUPS-Get-Printers (no URI) from localhost
D [08/Apr/2013:22:48:44 +0400] cupsdSetBusyState: Not busy
D [08/Apr/2013:22:48:44 +0400] cupsdReadClient: 11 POST / HTTP/1.1
D [08/Apr/2013:22:48:44 +0400] cupsdSetBusyState: Active clients
D [08/Apr/2013:22:48:44 +0400] cupsdAuthorize: No authentication data provided.
D [08/Apr/2013:22:48:44 +0400] cupsdReadClient: 11 1.1 CUPS-Get-Default 1
D [08/Apr/2013:22:48:44 +0400] CUPS-Get-Default
D [08/Apr/2013:22:48:44 +0400] Returning IPP successful-ok for CUPS-Get-Default (no URI) from localhost
D [08/Apr/2013:22:48:44 +0400] cupsdSetBusyState: Not busy
D [08/Apr/2013:22:48:44 +0400] cupsdReadClient: 11 POST / HTTP/1.1
D [08/Apr/2013:22:48:44 +0400] cupsdSetBusyState: Active clients
D [08/Apr/2013:22:48:44 +0400] cupsdAuthorize: No authentication data provided.
D [08/Apr/2013:22:48:44 +0400] cupsdReadClient: 11 1.1 CUPS-Get-Printers 1
D [08/Apr/2013:22:48:44 +0400] CUPS-Get-Printers
D [08/Apr/2013:22:48:44 +0400] Returning IPP successful-ok for CUPS-Get-Printers (no URI) from localhost
D [08/Apr/2013:22:48:44 +0400] cupsdSetBusyState: Not busy
D [08/Apr/2013:22:48:44 +0400] cupsdReadClient: 11 WAITING Closing on EOF
D [08/Apr/2013:22:48:44 +0400] cupsdCloseClient: 11
D [08/Apr/2013:22:48:44 +0400] cupsdAcceptClient: 11 from localhost (Domain)
D [08/Apr/2013:22:48:44 +0400] cupsdAcceptClient: 15 from localhost (Domain)
D [08/Apr/2013:22:48:44 +0400] cupsdReadClient: 15 POST / HTTP/1.1
D [08/Apr/2013:22:48:44 +0400] cupsdSetBusyState: Active clients
D [08/Apr/2013:22:48:44 +0400] cupsdAuthorize: No authentication data provided.
D [08/Apr/2013:22:48:44 +0400] cupsdReadClient: 11 POST / HTTP/1.1
D [08/Apr/2013:22:48:44 +0400] cupsdAuthorize: No authentication data provided.
D [08/Apr/2013:22:48:44 +0400] cupsdReadClient: 15 1.1 Get-Jobs 1
D [08/Apr/2013:22:48:44 +0400] Get-Jobs ipp://localhost/printers/
D [08/Apr/2013:22:48:44 +0400] Returning IPP successful-ok for Get-Jobs (ipp://localhost/printers/) from localhost
D [08/Apr/2013:22:48:44 +0400] cupsdReadClient: 11 1.1 CUPS-Get-Printers 1
D [08/Apr/2013:22:48:44 +0400] CUPS-Get-Printers
D [08/Apr/2013:22:48:44 +0400] Returning IPP successful-ok for CUPS-Get-Printers (no URI) from localhost
D [08/Apr/2013:22:48:44 +0400] cupsdSetBusyState: Not busy
D [08/Apr/2013:22:48:44 +0400] cupsdReadClient: 15 WAITING Closing on EOF
D [08/Apr/2013:22:48:44 +0400] cupsdCloseClient: 15
D [08/Apr/2013:22:48:44 +0400] cupsdReadClient: 11 WAITING Closing on EOF
D [08/Apr/2013:22:48:44 +0400] cupsdCloseClient: 11
D [08/Apr/2013:22:48:46 +0400] cupsdAcceptClient: 11 from localhost (Domain)
D [08/Apr/2013:22:48:46 +0400] cupsdReadClient: 11 POST /admin/ HTTP/1.1
D [08/Apr/2013:22:48:46 +0400] cupsdSetBusyState: Active clients
D [08/Apr/2013:22:48:46 +0400] cupsdAuthorize: No authentication data provided.
D [08/Apr/2013:22:48:46 +0400] cupsdReadClient: 11 1.1 CUPS-Add-Modify-Printer 1
D [08/Apr/2013:22:48:46 +0400] CUPS-Add-Modify-Printer ipp://localhost/printers/i.simakov_hp_LaserJet_1000
D [08/Apr/2013:22:48:46 +0400] cupsdIsAuthorized: username=""
D [08/Apr/2013:22:48:46 +0400] Returning HTTP Unauthorized for CUPS-Add-Modify-Printer (ipp://localhost/printers/i.simakov_hp_LaserJet_1000) from localhost
D [08/Apr/2013:22:48:46 +0400] cupsdSendHeader: 11 WWW-Authenticate: Basic realm="CUPS", trc="y"
D [08/Apr/2013:22:48:46 +0400] cupsdReadClient: 11 WAITING Closing on EOF
D [08/Apr/2013:22:48:46 +0400] cupsdCloseClient: 11
D [08/Apr/2013:22:48:46 +0400] cupsdSetBusyState: Not busy
D [08/Apr/2013:22:48:46 +0400] cupsdAcceptClient: 11 from localhost (Domain)
D [08/Apr/2013:22:48:46 +0400] cupsdReadClient: 11 WAITING Closing on EOF
D [08/Apr/2013:22:48:46 +0400] cupsdCloseClient: 11
D [08/Apr/2013:22:48:46 +0400] cupsdAcceptClient: 11 from localhost (Domain)
D [08/Apr/2013:22:48:46 +0400] cupsdReadClient: 11 POST /admin/ HTTP/1.1
D [08/Apr/2013:22:48:46 +0400] cupsdSetBusyState: Active clients
D [08/Apr/2013:22:48:46 +0400] cupsdAuthorize: Authorized as root using PeerCred
D [08/Apr/2013:22:48:46 +0400] cupsdReadClient: 11 1.1 CUPS-Add-Modify-Printer 1
D [08/Apr/2013:22:48:46 +0400] CUPS-Add-Modify-Printer ipp://localhost/printers/i.simakov_hp_LaserJet_1000
D [08/Apr/2013:22:48:46 +0400] cupsdIsAuthorized: username="root"
D [08/Apr/2013:22:48:46 +0400] Copied PPD file successfully!
D [08/Apr/2013:22:48:46 +0400] cupsdMarkDirty(P-----)
D [08/Apr/2013:22:48:46 +0400] cupsdSetBusyState: Active clients and dirty files
D [08/Apr/2013:22:48:46 +0400] load_ppd: Loading /etc/cups/ppd/i.simakov_hp_LaserJet_1000.ppd...
D [08/Apr/2013:22:48:46 +0400] load_ppd: Saving /var/cache/cups/i.simakov_hp_LaserJet_1000.ipp2...
D [08/Apr/2013:22:48:46 +0400] cupsdRegisterPrinter(p=0x7f98c039e060(i.simakov_hp_LaserJet_1000))
D [08/Apr/2013:22:48:46 +0400] cupsdMarkDirty(P-----)
D [08/Apr/2013:22:48:46 +0400] cupsdMarkDirty(---p--)
D [08/Apr/2013:22:48:46 +0400] cupsdMarkDirty(-----S)
I [08/Apr/2013:22:48:46 +0400] New printer "i.simakov_hp_LaserJet_1000" added by "root".
D [08/Apr/2013:22:48:46 +0400] Returning IPP successful-ok for CUPS-Add-Modify-Printer (ipp://localhost/printers/i.simakov_hp_LaserJet_1000) from localhost
D [08/Apr/2013:22:48:46 +0400] cupsdSetBusyState: Dirty files
D [08/Apr/2013:22:48:46 +0400] cupsdReadClient: 11 POST /admin/ HTTP/1.1
D [08/Apr/2013:22:48:46 +0400] cupsdSetBusyState: Active clients and dirty files
D [08/Apr/2013:22:48:46 +0400] cupsdAuthorize: Authorized as root using PeerCred
D [08/Apr/2013:22:48:46 +0400] cupsdReadClient: 11 1.1 CUPS-Add-Modify-Printer 1
D [08/Apr/2013:22:48:46 +0400] CUPS-Add-Modify-Printer ipp://localhost/printers/i.simakov_hp_LaserJet_1000
D [08/Apr/2013:22:48:46 +0400] cupsdIsAuthorized: username="root"
I [08/Apr/2013:22:48:46 +0400] Setting i.simakov_hp_LaserJet_1000 device-uri to "ipp://127.0.0.1:3602/printers/hp_LaserJet_1000" (was "file:///dev/null".)
D [08/Apr/2013:22:48:46 +0400] load_ppd: Loading /var/cache/cups/i.simakov_hp_LaserJet_1000.ipp2...
D [08/Apr/2013:22:48:46 +0400] cupsdRegisterPrinter(p=0x7f98c039e060(i.simakov_hp_LaserJet_1000))
D [08/Apr/2013:22:48:46 +0400] cupsdMarkDirty(P-----)
D [08/Apr/2013:22:48:46 +0400] cupsdMarkDirty(---p--)
D [08/Apr/2013:22:48:46 +0400] Discarding unused (null) event...
I [08/Apr/2013:22:48:46 +0400] Printer "i.simakov_hp_LaserJet_1000" modified by "root".
D [08/Apr/2013:22:48:46 +0400] Returning IPP successful-ok for CUPS-Add-Modify-Printer (ipp://localhost/printers/i.simakov_hp_LaserJet_1000) from localhost
D [08/Apr/2013:22:48:46 +0400] cupsdSetBusyState: Dirty files
D [08/Apr/2013:22:48:46 +0400] cupsdReadClient: 11 POST /admin/ HTTP/1.1
D [08/Apr/2013:22:48:46 +0400] cupsdSetBusyState: Active clients and dirty files
D [08/Apr/2013:22:48:46 +0400] cupsdAuthorize: Authorized as root using PeerCred
D [08/Apr/2013:22:48:46 +0400] cupsdReadClient: 11 1.1 CUPS-Add-Modify-Printer 1
D [08/Apr/2013:22:48:46 +0400] CUPS-Add-Modify-Printer ipp://localhost/printers/i.simakov_hp_LaserJet_1000
D [08/Apr/2013:22:48:46 +0400] cupsdIsAuthorized: username="root"
I [08/Apr/2013:22:48:46 +0400] Setting i.simakov_hp_LaserJet_1000 printer-is-accepting-jobs to 1 (was 0.)
D [08/Apr/2013:22:48:46 +0400] cupsdMarkDirty(-----S)
I [08/Apr/2013:22:48:46 +0400] Setting i.simakov_hp_LaserJet_1000 printer-state to 3 (was 5.)
D [08/Apr/2013:22:48:46 +0400] cupsdMarkDirty(-----S)
D [08/Apr/2013:22:48:46 +0400] load_ppd: Loading /var/cache/cups/i.simakov_hp_LaserJet_1000.ipp2...
D [08/Apr/2013:22:48:46 +0400] cupsdRegisterPrinter(p=0x7f98c039e060(i.simakov_hp_LaserJet_1000))
D [08/Apr/2013:22:48:46 +0400] cupsdMarkDirty(P-----)
D [08/Apr/2013:22:48:46 +0400] cupsdMarkDirty(---p--)
D [08/Apr/2013:22:48:46 +0400] Discarding unused (null) event...
I [08/Apr/2013:22:48:46 +0400] Printer "i.simakov_hp_LaserJet_1000" modified by "root".
D [08/Apr/2013:22:48:46 +0400] Returning IPP successful-ok for CUPS-Add-Modify-Printer (ipp://localhost/printers/i.simakov_hp_LaserJet_1000) from localhost
D [08/Apr/2013:22:48:46 +0400] cupsdSetBusyState: Dirty files
D [08/Apr/2013:22:48:46 +0400] cupsdReadClient: 11 WAITING Closing on EOF
D [08/Apr/2013:22:48:46 +0400] cupsdCloseClient: 11
D [08/Apr/2013:22:48:46 +0400] cupsdAcceptClient: 11 from localhost (Domain)
D [08/Apr/2013:22:48:46 +0400] cupsdReadClient: 11 POST /admin/ HTTP/1.1
D [08/Apr/2013:22:48:46 +0400] cupsdSetBusyState: Active clients and dirty files
D [08/Apr/2013:22:48:46 +0400] cupsdAuthorize: No authentication data provided.
D [08/Apr/2013:22:48:46 +0400] cupsdReadClient: 11 1.1 CUPS-Set-Default 1
D [08/Apr/2013:22:48:46 +0400] CUPS-Set-Default ipp://localhost/printers/i.simakov_hp_LaserJet_1000
D [08/Apr/2013:22:48:46 +0400] cupsdIsAuthorized: username=""
D [08/Apr/2013:22:48:46 +0400] Returning HTTP Unauthorized for CUPS-Set-Default (ipp://localhost/printers/i.simakov_hp_LaserJet_1000) from localhost
D [08/Apr/2013:22:48:46 +0400] cupsdSendHeader: 11 WWW-Authenticate: Basic realm="CUPS", trc="y"
D [08/Apr/2013:22:48:46 +0400] cupsdReadClient: 11 WAITING Closing on EOF
D [08/Apr/2013:22:48:46 +0400] cupsdCloseClient: 11
D [08/Apr/2013:22:48:46 +0400] cupsdSetBusyState: Dirty files
D [08/Apr/2013:22:48:46 +0400] cupsdAcceptClient: 11 from localhost (Domain)
D [08/Apr/2013:22:48:46 +0400] cupsdReadClient: 11 WAITING Closing on EOF
D [08/Apr/2013:22:48:46 +0400] cupsdCloseClient: 11
D [08/Apr/2013:22:48:46 +0400] cupsdAcceptClient: 11 from localhost (Domain)
D [08/Apr/2013:22:48:46 +0400] cupsdReadClient: 11 POST /admin/ HTTP/1.1
D [08/Apr/2013:22:48:46 +0400] cupsdSetBusyState: Active clients and dirty files
D [08/Apr/2013:22:48:46 +0400] cupsdAuthorize: Authorized as root using PeerCred
D [08/Apr/2013:22:48:46 +0400] cupsdReadClient: 11 1.1 CUPS-Set-Default 1
D [08/Apr/2013:22:48:46 +0400] CUPS-Set-Default ipp://localhost/printers/i.simakov_hp_LaserJet_1000
D [08/Apr/2013:22:48:46 +0400] cupsdIsAuthorized: username="root"
D [08/Apr/2013:22:48:46 +0400] cupsdMarkDirty(-----S)
D [08/Apr/2013:22:48:46 +0400] cupsdMarkDirty(-----S)
D [08/Apr/2013:22:48:46 +0400] cupsdMarkDirty(PCRp--)
I [08/Apr/2013:22:48:46 +0400] Default destination set to "i.simakov_hp_LaserJet_1000" by "root".
D [08/Apr/2013:22:48:46 +0400] Returning IPP successful-ok for CUPS-Set-Default (ipp://localhost/printers/i.simakov_hp_LaserJet_1000) from localhost
D [08/Apr/2013:22:48:46 +0400] cupsdSetBusyState: Dirty files
D [08/Apr/2013:22:48:46 +0400] cupsdReadClient: 11 WAITING Closing on EOF
D [08/Apr/2013:22:48:46 +0400] cupsdCloseClient: 11
D [08/Apr/2013:22:48:46 +0400] cupsdAcceptClient: 11 from localhost (Domain)
D [08/Apr/2013:22:48:46 +0400] cupsdAcceptClient: 15 from localhost (Domain)
D [08/Apr/2013:22:48:46 +0400] cupsdReadClient: 11 POST / HTTP/1.1
D [08/Apr/2013:22:48:46 +0400] cupsdSetBusyState: Active clients and dirty files
D [08/Apr/2013:22:48:46 +0400] cupsdAuthorize: No authentication data provided.
D [08/Apr/2013:22:48:46 +0400] cupsdReadClient: 15 POST / HTTP/1.1
D [08/Apr/2013:22:48:46 +0400] cupsdAuthorize: No authentication data provided.
D [08/Apr/2013:22:48:46 +0400] cupsdReadClient: 11 1.1 Get-Jobs 1
D [08/Apr/2013:22:48:46 +0400] Get-Jobs ipp://localhost/printers/
D [08/Apr/2013:22:48:46 +0400] Returning IPP successful-ok for Get-Jobs (ipp://localhost/printers/) from localhost
D [08/Apr/2013:22:48:46 +0400] cupsdReadClient: 15 1.1 Get-Jobs 1
D [08/Apr/2013:22:48:46 +0400] Get-Jobs ipp://localhost/printers/
D [08/Apr/2013:22:48:46 +0400] Returning IPP successful-ok for Get-Jobs (ipp://localhost/printers/) from localhost
D [08/Apr/2013:22:48:46 +0400] cupsdSetBusyState: Dirty files
D [08/Apr/2013:22:48:46 +0400] cupsdReadClient: 15 WAITING Closing on EOF
D [08/Apr/2013:22:48:46 +0400] cupsdCloseClient: 15
D [08/Apr/2013:22:48:46 +0400] cupsdReadClient: 11 WAITING Closing on EOF
D [08/Apr/2013:22:48:46 +0400] cupsdCloseClient: 11
D [08/Apr/2013:22:48:51 +0400] cupsdAcceptClient: 11 from localhost:631 (IPv4)
D [08/Apr/2013:22:48:51 +0400] cupsdReadClient: 11 GET /admin/log/error_log HTTP/1.1
D [08/Apr/2013:22:48:51 +0400] cupsdSetBusyState: Active clients and dirty files
D [08/Apr/2013:22:48:51 +0400] cupsdAuthorize: No authentication data provided.
D [08/Apr/2013:22:48:51 +0400] cupsdSetBusyState: Dirty files
D [08/Apr/2013:22:48:58 +0400] cupsdNetIFUpdate: "lo" = localhost:631
D [08/Apr/2013:22:48:58 +0400] cupsdNetIFUpdate: "eth0" = 192.168.1.104:631
D [08/Apr/2013:22:48:58 +0400] cupsdNetIFUpdate: "lo" = localhost:631
D [08/Apr/2013:22:48:58 +0400] cupsdNetIFUpdate: "eth0" = fe80::ecd4:c8ff:fe31:1785%eth0:631
I [08/Apr/2013:22:49:17 +0400] Saving printers.conf...
I [08/Apr/2013:22:49:17 +0400] Saving classes.conf...
D [08/Apr/2013:22:49:17 +0400] Saving remote.cache...
I [08/Apr/2013:22:49:17 +0400] Generating printcap /var/run/cups/printcap...
I [08/Apr/2013:22:49:17 +0400] Saving subscriptions.conf...
D [08/Apr/2013:22:49:17 +0400] cupsdSetBusyState: Not busy
D [08/Apr/2013:22:49:29 +0400] Report: clients=1
D [08/Apr/2013:22:49:29 +0400] Report: jobs=211
D [08/Apr/2013:22:49:29 +0400] Report: jobs-active=1
D [08/Apr/2013:22:49:29 +0400] Report: printers=4
D [08/Apr/2013:22:49:29 +0400] Report: printers-implicit=0
D [08/Apr/2013:22:49:29 +0400] Report: stringpool-string-count=9050
D [08/Apr/2013:22:49:29 +0400] Report: stringpool-alloc-bytes=15584
D [08/Apr/2013:22:49:29 +0400] Report: stringpool-total-bytes=180432
D [08/Apr/2013:22:49:35 +0400] cupsdReadClient: 11 WAITING Closing on EOF
D [08/Apr/2013:22:49:35 +0400] cupsdCloseClient: 11
D [08/Apr/2013:22:49:47 +0400] cupsdAcceptClient: 11 from localhost:631 (IPv4)
D [08/Apr/2013:22:49:47 +0400] cupsdReadClient: 11 GET /printers/ HTTP/1.1
D [08/Apr/2013:22:49:47 +0400] cupsdSetBusyState: Active clients
D [08/Apr/2013:22:49:47 +0400] cupsdAuthorize: No authentication data provided.
D [08/Apr/2013:22:49:47 +0400] [CGI] argv[0] = "/usr/lib/cups/cgi-bin/printers.cgi"
D [08/Apr/2013:22:49:47 +0400] [CGI] envp[0] = "CUPS_CACHEDIR=/var/cache/cups"
D [08/Apr/2013:22:49:47 +0400] [CGI] envp[1] = "CUPS_DATADIR=/usr/share/cups"
D [08/Apr/2013:22:49:47 +0400] [CGI] envp[2] = "CUPS_DOCROOT=/usr/share/cups/doc-root"
D [08/Apr/2013:22:49:47 +0400] [CGI] envp[3] = "CUPS_FONTPATH=/usr/share/cups/fonts"
D [08/Apr/2013:22:49:47 +0400] [CGI] envp[4] = "CUPS_REQUESTROOT=/var/spool/cups"
D [08/Apr/2013:22:49:47 +0400] [CGI] envp[5] = "CUPS_SERVERBIN=/usr/lib/cups"
D [08/Apr/2013:22:49:47 +0400] [CGI] envp[6] = "CUPS_SERVERROOT=/etc/cups"
D [08/Apr/2013:22:49:47 +0400] [CGI] envp[7] = "CUPS_STATEDIR=/var/run/cups"
D [08/Apr/2013:22:49:47 +0400] [CGI] envp[8] = "HOME=/var/spool/cups/tmp"
D [08/Apr/2013:22:49:47 +0400] [CGI] envp[9] = "PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [08/Apr/2013:22:49:47 +0400] [CGI] envp[10] = "SERVER_ADMIN=root@ts104"
D [08/Apr/2013:22:49:47 +0400] [CGI] envp[11] = "SOFTWARE=CUPS/1.4.4"
D [08/Apr/2013:22:49:47 +0400] [CGI] envp[12] = "TMPDIR=/var/spool/cups/tmp"
D [08/Apr/2013:22:49:47 +0400] [CGI] envp[13] = "TZ=Europe/Samara"
D [08/Apr/2013:22:49:47 +0400] [CGI] envp[14] = "USER=root"
D [08/Apr/2013:22:49:47 +0400] [CGI] envp[15] = "CUPS_SERVER=/var/run/cups/cups.sock"
D [08/Apr/2013:22:49:47 +0400] [CGI] envp[16] = "CUPS_ENCRYPTION=IfRequested"
D [08/Apr/2013:22:49:47 +0400] [CGI] envp[17] = "IPP_PORT=631"
D [08/Apr/2013:22:49:47 +0400] [CGI] envp[18] = "LANG=ru_RU.UTF8"
D [08/Apr/2013:22:49:47 +0400] [CGI] envp[19] = "REDIRECT_STATUS=1"
D [08/Apr/2013:22:49:47 +0400] [CGI] envp[20] = "GATEWAY_INTERFACE=CGI/1.1"
D [08/Apr/2013:22:49:47 +0400] [CGI] envp[21] = "SERVER_NAME=localhost"
D [08/Apr/2013:22:49:47 +0400] [CGI] envp[22] = "SERVER_PORT=631"
D [08/Apr/2013:22:49:47 +0400] [CGI] envp[23] = "REMOTE_ADDR=127.0.0.1"
D [08/Apr/2013:22:49:47 +0400] [CGI] envp[24] = "REMOTE_HOST=localhost"
D [08/Apr/2013:22:49:47 +0400] [CGI] envp[25] = "SCRIPT_NAME=/printers/"
D [08/Apr/2013:22:49:47 +0400] [CGI] envp[26] = "SCRIPT_FILENAME=/usr/share/cups/doc-root/printers/"
D [08/Apr/2013:22:49:47 +0400] [CGI] envp[27] = "SERVER_PROTOCOL=HTTP/1.1"
D [08/Apr/2013:22:49:47 +0400] [CGI] envp[28] = "HTTP_COOKIE=org.cups.sid=ce57d31acd0e90ddaf55ccca65b214a4"
D [08/Apr/2013:22:49:47 +0400] [CGI] envp[29] = "HTTP_USER_AGENT=Mozilla/5.0 (X11; U; Linux x86_64; ru; rv:1.9.1.16) Gecko/20121207 Iceweasel/3.5.16 (like Firefox/3.5.16)"
D [08/Apr/2013:22:49:47 +0400] [CGI] envp[30] = "HTTP_REFERER=http://localhost:631/admin"
D [08/Apr/2013:22:49:47 +0400] [CGI] envp[31] = "REQUEST_METHOD=GET"
D [08/Apr/2013:22:49:47 +0400] [CGI] envp[32] = "QUERY_STRING="
D [08/Apr/2013:22:49:47 +0400] [CGI] Started /usr/lib/cups/cgi-bin/printers.cgi (PID 22661)
I [08/Apr/2013:22:49:47 +0400] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=22661)
D [08/Apr/2013:22:49:47 +0400] cupsdSendCommand: 11 file=15
D [08/Apr/2013:22:49:47 +0400] [CGI] org.cups.sid cookie is "ce57d31acd0e90ddaf55ccca65b214a4"
D [08/Apr/2013:22:49:47 +0400] cupsdAcceptClient: 16 from localhost (Domain)
D [08/Apr/2013:22:49:47 +0400] cupsdReadClient: 16 POST / HTTP/1.1
D [08/Apr/2013:22:49:47 +0400] cupsdAuthorize: No authentication data provided.
D [08/Apr/2013:22:49:47 +0400] cupsdReadClient: 16 1.1 CUPS-Get-Default 1
D [08/Apr/2013:22:49:47 +0400] CUPS-Get-Default
D [08/Apr/2013:22:49:47 +0400] Returning IPP successful-ok for CUPS-Get-Default (no URI) from localhost
D [08/Apr/2013:22:49:47 +0400] [CGI] show_all_printers(http=0x7f4714ab6410, user="(null)")
D [08/Apr/2013:22:49:47 +0400] Script header: Content-Type: text/html;charset=utf-8
D [08/Apr/2013:22:49:47 +0400] Script header:
D [08/Apr/2013:22:49:47 +0400] cupsdReadClient: 16 POST / HTTP/1.1
D [08/Apr/2013:22:49:47 +0400] cupsdAuthorize: No authentication data provided.
D [08/Apr/2013:22:49:47 +0400] cupsdReadClient: 16 1.1 CUPS-Get-Printers 1
D [08/Apr/2013:22:49:47 +0400] CUPS-Get-Printers
D [08/Apr/2013:22:49:47 +0400] Returning IPP successful-ok for CUPS-Get-Printers (no URI) from localhost
E [08/Apr/2013:22:49:47 +0400] [CGI] Saw EOF, expected '}'!
D [08/Apr/2013:22:49:47 +0400] cupsdReadClient: 16 WAITING Closing on EOF
D [08/Apr/2013:22:49:47 +0400] cupsdCloseClient: 16
D [08/Apr/2013:22:49:47 +0400] cupsdSetBusyState: Not busy
D [08/Apr/2013:22:49:47 +0400] PID 22661 (/usr/lib/cups/cgi-bin/printers.cgi) exited with no errors.
D [08/Apr/2013:22:49:54 +0400] cupsdReadClient: 11 GET /printers/i.simakov_hp_LaserJet_1000 HTTP/1.1
D [08/Apr/2013:22:49:54 +0400] cupsdSetBusyState: Active clients
D [08/Apr/2013:22:49:54 +0400] cupsdAuthorize: No authentication data provided.
D [08/Apr/2013:22:49:54 +0400] [CGI] argv[0] = "/usr/lib/cups/cgi-bin/printers.cgi"
D [08/Apr/2013:22:49:54 +0400] [CGI] envp[0] = "CUPS_CACHEDIR=/var/cache/cups"
D [08/Apr/2013:22:49:54 +0400] [CGI] envp[1] = "CUPS_DATADIR=/usr/share/cups"
D [08/Apr/2013:22:49:54 +0400] [CGI] envp[2] = "CUPS_DOCROOT=/usr/share/cups/doc-root"
D [08/Apr/2013:22:49:54 +0400] [CGI] envp[3] = "CUPS_FONTPATH=/usr/share/cups/fonts"
D [08/Apr/2013:22:49:54 +0400] [CGI] envp[4] = "CUPS_REQUESTROOT=/var/spool/cups"
D [08/Apr/2013:22:49:54 +0400] [CGI] envp[5] = "CUPS_SERVERBIN=/usr/lib/cups"
D [08/Apr/2013:22:49:54 +0400] [CGI] envp[6] = "CUPS_SERVERROOT=/etc/cups"
D [08/Apr/2013:22:49:54 +0400] [CGI] envp[7] = "CUPS_STATEDIR=/var/run/cups"
D [08/Apr/2013:22:49:54 +0400] [CGI] envp[8] = "HOME=/var/spool/cups/tmp"
D [08/Apr/2013:22:49:54 +0400] [CGI] envp[9] = "PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [08/Apr/2013:22:49:54 +0400] [CGI] envp[10] = "SERVER_ADMIN=root@ts104"
D [08/Apr/2013:22:49:54 +0400] [CGI] envp[11] = "SOFTWARE=CUPS/1.4.4"
D [08/Apr/2013:22:49:54 +0400] [CGI] envp[12] = "TMPDIR=/var/spool/cups/tmp"
D [08/Apr/2013:22:49:54 +0400] [CGI] envp[13] = "TZ=Europe/Samara"
D [08/Apr/2013:22:49:54 +0400] [CGI] envp[14] = "USER=root"
D [08/Apr/2013:22:49:54 +0400] [CGI] envp[15] = "CUPS_SERVER=/var/run/cups/cups.sock"
D [08/Apr/2013:22:49:54 +0400] [CGI] envp[16] = "CUPS_ENCRYPTION=IfRequested"
D [08/Apr/2013:22:49:54 +0400] [CGI] envp[17] = "IPP_PORT=631"
D [08/Apr/2013:22:49:54 +0400] [CGI] envp[18] = "LANG=ru_RU.UTF8"
D [08/Apr/2013:22:49:54 +0400] [CGI] envp[19] = "REDIRECT_STATUS=1"
D [08/Apr/2013:22:49:54 +0400] [CGI] envp[20] = "GATEWAY_INTERFACE=CGI/1.1"
D [08/Apr/2013:22:49:54 +0400] [CGI] envp[21] = "SERVER_NAME=localhost"
D [08/Apr/2013:22:49:54 +0400] [CGI] envp[22] = "SERVER_PORT=631"
D [08/Apr/2013:22:49:54 +0400] [CGI] envp[23] = "REMOTE_ADDR=127.0.0.1"
D [08/Apr/2013:22:49:54 +0400] [CGI] envp[24] = "REMOTE_HOST=localhost"
D [08/Apr/2013:22:49:54 +0400] [CGI] envp[25] = "SCRIPT_NAME=/printers/i.simakov_hp_LaserJet_1000"
D [08/Apr/2013:22:49:54 +0400] [CGI] envp[26] = "SCRIPT_FILENAME=/usr/share/cups/doc-root/printers/i.simakov_hp_LaserJet_1000"
D [08/Apr/2013:22:49:54 +0400] [CGI] envp[27] = "PATH_INFO=/i.simakov_hp_LaserJet_1000"
D [08/Apr/2013:22:49:54 +0400] [CGI] envp[28] = "SERVER_PROTOCOL=HTTP/1.1"
D [08/Apr/2013:22:49:54 +0400] [CGI] envp[29] = "HTTP_COOKIE=org.cups.sid=ce57d31acd0e90ddaf55ccca65b214a4"
D [08/Apr/2013:22:49:54 +0400] [CGI] envp[30] = "HTTP_USER_AGENT=Mozilla/5.0 (X11; U; Linux x86_64; ru; rv:1.9.1.16) Gecko/20121207 Iceweasel/3.5.16 (like Firefox/3.5.16)"
D [08/Apr/2013:22:49:54 +0400] [CGI] envp[31] = "HTTP_REFERER=http://localhost:631/printers/"
D [08/Apr/2013:22:49:54 +0400] [CGI] envp[32] = "REQUEST_METHOD=GET"
D [08/Apr/2013:22:49:54 +0400] [CGI] envp[33] = "QUERY_STRING="
D [08/Apr/2013:22:49:54 +0400] [CGI] Started /usr/lib/cups/cgi-bin/printers.cgi (PID 22665)
I [08/Apr/2013:22:49:54 +0400] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=22665)
D [08/Apr/2013:22:49:54 +0400] cupsdSendCommand: 11 file=15
D [08/Apr/2013:22:49:54 +0400] [CGI] org.cups.sid cookie is "ce57d31acd0e90ddaf55ccca65b214a4"
D [08/Apr/2013:22:49:54 +0400] cupsdAcceptClient: 16 from localhost (Domain)
D [08/Apr/2013:22:49:54 +0400] cupsdReadClient: 16 POST / HTTP/1.1
D [08/Apr/2013:22:49:54 +0400] cupsdAuthorize: No authentication data provided.
D [08/Apr/2013:22:49:54 +0400] cupsdReadClient: 16 1.1 CUPS-Get-Default 1
D [08/Apr/2013:22:49:54 +0400] CUPS-Get-Default
D [08/Apr/2013:22:49:54 +0400] Returning IPP successful-ok for CUPS-Get-Default (no URI) from localhost
D [08/Apr/2013:22:49:54 +0400] [CGI] show_printer(http=0x7f458ab06480, printer="i.simakov_hp_LaserJet_1000")
D [08/Apr/2013:22:49:54 +0400] cupsdReadClient: 16 POST / HTTP/1.1
D [08/Apr/2013:22:49:54 +0400] cupsdAuthorize: No authentication data provided.
D [08/Apr/2013:22:49:54 +0400] cupsdReadClient: 16 1.1 Get-Printer-Attributes 1
D [08/Apr/2013:22:49:54 +0400] Get-Printer-Attributes ipp://localhost/printers/i.simakov_hp_LaserJet_1000
D [08/Apr/2013:22:49:54 +0400] Returning IPP successful-ok for Get-Printer-Attributes (ipp://localhost/printers/i.simakov_hp_LaserJet_1000) from localhost
D [08/Apr/2013:22:49:54 +0400] Script header: Content-Type: text/html;charset=utf-8
D [08/Apr/2013:22:49:54 +0400] Script header:
D [08/Apr/2013:22:49:54 +0400] [CGI] Regular expression ".*Clean.*"
D [08/Apr/2013:22:49:54 +0400] [CGI] Regular expression ".*PrintSelfTestPage.*"
D [08/Apr/2013:22:49:54 +0400] cupsdReadClient: 16 POST / HTTP/1.1
D [08/Apr/2013:22:49:54 +0400] cupsdAuthorize: No authentication data provided.
D [08/Apr/2013:22:49:54 +0400] cupsdReadClient: 16 1.1 Get-Jobs 1
D [08/Apr/2013:22:49:54 +0400] Get-Jobs ipp://localhost:631/printers/i.simakov_hp_LaserJet_1000
D [08/Apr/2013:22:49:54 +0400] Returning IPP successful-ok for Get-Jobs (ipp://localhost:631/printers/i.simakov_hp_LaserJet_1000) from localhost
E [08/Apr/2013:22:49:54 +0400] [CGI] Saw EOF, expected '}'!
D [08/Apr/2013:22:49:54 +0400] cupsdReadClient: 16 WAITING Closing on EOF
D [08/Apr/2013:22:49:54 +0400] cupsdCloseClient: 16
D [08/Apr/2013:22:49:54 +0400] PID 22665 (/usr/lib/cups/cgi-bin/printers.cgi) exited with no errors.
D [08/Apr/2013:22:49:54 +0400] cupsdSetBusyState: Not busy
D [08/Apr/2013:22:49:58 +0400] cupsdReadClient: 11 POST /printers/i.simakov_hp_LaserJet_1000 HTTP/1.1
D [08/Apr/2013:22:49:58 +0400] cupsdSetBusyState: Active clients
D [08/Apr/2013:22:49:58 +0400] cupsdAuthorize: No authentication data provided.
D [08/Apr/2013:22:49:58 +0400] [CGI] argv[0] = "/usr/lib/cups/cgi-bin/printers.cgi"
D [08/Apr/2013:22:49:58 +0400] [CGI] envp[0] = "CUPS_CACHEDIR=/var/cache/cups"
D [08/Apr/2013:22:49:58 +0400] [CGI] envp[1] = "CUPS_DATADIR=/usr/share/cups"
D [08/Apr/2013:22:49:58 +0400] [CGI] envp[2] = "CUPS_DOCROOT=/usr/share/cups/doc-root"
D [08/Apr/2013:22:49:58 +0400] [CGI] envp[3] = "CUPS_FONTPATH=/usr/share/cups/fonts"
D [08/Apr/2013:22:49:58 +0400] [CGI] envp[4] = "CUPS_REQUESTROOT=/var/spool/cups"
D [08/Apr/2013:22:49:58 +0400] [CGI] envp[5] = "CUPS_SERVERBIN=/usr/lib/cups"
D [08/Apr/2013:22:49:58 +0400] [CGI] envp[6] = "CUPS_SERVERROOT=/etc/cups"
D [08/Apr/2013:22:49:58 +0400] [CGI] envp[7] = "CUPS_STATEDIR=/var/run/cups"
D [08/Apr/2013:22:49:58 +0400] [CGI] envp[8] = "HOME=/var/spool/cups/tmp"
D [08/Apr/2013:22:49:58 +0400] [CGI] envp[9] = "PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [08/Apr/2013:22:49:58 +0400] [CGI] envp[10] = "SERVER_ADMIN=root@ts104"
D [08/Apr/2013:22:49:58 +0400] [CGI] envp[11] = "SOFTWARE=CUPS/1.4.4"
D [08/Apr/2013:22:49:58 +0400] [CGI] envp[12] = "TMPDIR=/var/spool/cups/tmp"
D [08/Apr/2013:22:49:58 +0400] [CGI] envp[13] = "TZ=Europe/Samara"
D [08/Apr/2013:22:49:58 +0400] [CGI] envp[14] = "USER=root"
D [08/Apr/2013:22:49:58 +0400] [CGI] envp[15] = "CUPS_SERVER=/var/run/cups/cups.sock"
D [08/Apr/2013:22:49:58 +0400] [CGI] envp[16] = "CUPS_ENCRYPTION=IfRequested"
D [08/Apr/2013:22:49:58 +0400] [CGI] envp[17] = "IPP_PORT=631"
D [08/Apr/2013:22:49:58 +0400] [CGI] envp[18] = "LANG=ru_RU.UTF8"
D [08/Apr/2013:22:49:58 +0400] [CGI] envp[19] = "REDIRECT_STATUS=1"
D [08/Apr/2013:22:49:58 +0400] [CGI] envp[20] = "GATEWAY_INTERFACE=CGI/1.1"
D [08/Apr/2013:22:49:58 +0400] [CGI] envp[21] = "SERVER_NAME=localhost"
D [08/Apr/2013:22:49:58 +0400] [CGI] envp[22] = "SERVER_PORT=631"
D [08/Apr/2013:22:49:58 +0400] [CGI] envp[23] = "REMOTE_ADDR=127.0.0.1"
D [08/Apr/2013:22:49:58 +0400] [CGI] envp[24] = "REMOTE_HOST=localhost"
D [08/Apr/2013:22:49:58 +0400] [CGI] envp[25] = "SCRIPT_NAME=/printers/i.simakov_hp_LaserJet_1000"
D [08/Apr/2013:22:49:58 +0400] [CGI] envp[26] = "SCRIPT_FILENAME=/usr/share/cups/doc-root/printers/i.simakov_hp_LaserJet_1000"
D [08/Apr/2013:22:49:58 +0400] [CGI] envp[27] = "PATH_INFO=/i.simakov_hp_LaserJet_1000"
D [08/Apr/2013:22:49:58 +0400] [CGI] envp[28] = "SERVER_PROTOCOL=HTTP/1.1"
D [08/Apr/2013:22:49:58 +0400] [CGI] envp[29] = "HTTP_COOKIE=org.cups.sid=ce57d31acd0e90ddaf55ccca65b214a4"
D [08/Apr/2013:22:49:58 +0400] [CGI] envp[30] = "HTTP_USER_AGENT=Mozilla/5.0 (X11; U; Linux x86_64; ru; rv:1.9.1.16) Gecko/20121207 Iceweasel/3.5.16 (like Firefox/3.5.16)"
D [08/Apr/2013:22:49:58 +0400] [CGI] envp[31] = "HTTP_REFERER=http://localhost:631/printers/i%2Esimakov_hp_LaserJet_1000"
D [08/Apr/2013:22:49:58 +0400] [CGI] envp[32] = "REQUEST_METHOD=POST"
D [08/Apr/2013:22:49:58 +0400] [CGI] envp[33] = "CONTENT_LENGTH=64"
D [08/Apr/2013:22:49:58 +0400] [CGI] envp[34] = "CONTENT_TYPE=application/x-www-form-urlencoded"
D [08/Apr/2013:22:49:58 +0400] [CGI] Started /usr/lib/cups/cgi-bin/printers.cgi (PID 22666)
I [08/Apr/2013:22:49:58 +0400] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=22666)
D [08/Apr/2013:22:49:58 +0400] cupsdSendCommand: 11 file=16
D [08/Apr/2013:22:49:58 +0400] [CGI] org.cups.sid cookie is "ce57d31acd0e90ddaf55ccca65b214a4"
D [08/Apr/2013:22:49:58 +0400] cupsdAcceptClient: 15 from localhost (Domain)
D [08/Apr/2013:22:49:58 +0400] cupsdReadClient: 15 POST /printers/i.simakov_hp_LaserJet_1000 HTTP/1.1
D [08/Apr/2013:22:49:58 +0400] cupsdAuthorize: No authentication data provided.
D [08/Apr/2013:22:49:58 +0400] cupsdReadClient: 15 1.1 Print-Job 1
D [08/Apr/2013:22:49:58 +0400] Print-Job ipp://localhost:631/printers/i.simakov_hp_LaserJet_1000
D [08/Apr/2013:22:49:58 +0400] [Job ???] Auto-typing file...
I [08/Apr/2013:22:49:58 +0400] [Job ???] Request file type is application/vnd.cups-banner.
D [08/Apr/2013:22:49:58 +0400] cupsdMarkDirty(----J-)
D [08/Apr/2013:22:49:58 +0400] cupsdSetBusyState: Active clients and dirty files
D [08/Apr/2013:22:49:58 +0400] Adding default job-sheets values "none,none"...
I [08/Apr/2013:22:49:58 +0400] [Job 5541] Adding start banner page "none".
D [08/Apr/2013:22:49:58 +0400] cupsdMarkDirty(-----S)
D [08/Apr/2013:22:49:58 +0400] cupsdMarkDirty(----J-)
I [08/Apr/2013:22:49:58 +0400] [Job 5541] Adding end banner page "none".
I [08/Apr/2013:22:49:58 +0400] [Job 5541] File of type application/vnd.cups-banner queued by "anonymous".
D [08/Apr/2013:22:49:58 +0400] [Job 5541] hold_until=0
I [08/Apr/2013:22:49:58 +0400] [Job 5541] Queued on "i.simakov_hp_LaserJet_1000" by "anonymous".
D [08/Apr/2013:22:49:58 +0400] cupsdMarkDirty(----J-)
D [08/Apr/2013:22:49:58 +0400] cupsdSetBusyState: Active clients, printing jobs, and dirty files
D [08/Apr/2013:22:49:58 +0400] cupsdMarkDirty(-----S)
D [08/Apr/2013:22:49:58 +0400] [Job 5541] job-sheets=none,none
D [08/Apr/2013:22:49:58 +0400] [Job 5541] argv[0]="i.simakov_hp_LaserJet_1000"
D [08/Apr/2013:22:49:58 +0400] [Job 5541] argv[1]="5541"
D [08/Apr/2013:22:49:58 +0400] [Job 5541] argv[2]="anonymous"
D [08/Apr/2013:22:49:58 +0400] [Job 5541] argv[3]="Test Page"
D [08/Apr/2013:22:49:58 +0400] [Job 5541] argv[4]="1"
D [08/Apr/2013:22:49:58 +0400] [Job 5541] argv[5]="job-uuid=urn:uuid:57afe854-125e-3d50-68b6-9a7f5384515b job-originating-host-name=localhost"
D [08/Apr/2013:22:49:58 +0400] [Job 5541] argv[6]="/var/spool/cups/d05541-001"
D [08/Apr/2013:22:49:58 +0400] [Job 5541] envp[0]="CUPS_CACHEDIR=/var/cache/cups"
D [08/Apr/2013:22:49:58 +0400] [Job 5541] envp[1]="CUPS_DATADIR=/usr/share/cups"
D [08/Apr/2013:22:49:58 +0400] [Job 5541] envp[2]="CUPS_DOCROOT=/usr/share/cups/doc-root"
D [08/Apr/2013:22:49:58 +0400] [Job 5541] envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [08/Apr/2013:22:49:58 +0400] [Job 5541] envp[4]="CUPS_REQUESTROOT=/var/spool/cups"
D [08/Apr/2013:22:49:58 +0400] [Job 5541] envp[5]="CUPS_SERVERBIN=/usr/lib/cups"
D [08/Apr/2013:22:49:58 +0400] [Job 5541] envp[6]="CUPS_SERVERROOT=/etc/cups"
D [08/Apr/2013:22:49:58 +0400] [Job 5541] envp[7]="CUPS_STATEDIR=/var/run/cups"
D [08/Apr/2013:22:49:58 +0400] [Job 5541] envp[8]="HOME=/var/spool/cups/tmp"
D [08/Apr/2013:22:49:58 +0400] [Job 5541] envp[9]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [08/Apr/2013:22:49:58 +0400] [Job 5541] envp[10]="SERVER_ADMIN=root@ts104"
D [08/Apr/2013:22:49:58 +0400] [Job 5541] envp[11]="SOFTWARE=CUPS/1.4.4"
D [08/Apr/2013:22:49:58 +0400] [Job 5541] envp[12]="TMPDIR=/var/spool/cups/tmp"
D [08/Apr/2013:22:49:58 +0400] [Job 5541] envp[13]="TZ=Europe/Samara"
D [08/Apr/2013:22:49:58 +0400] [Job 5541] envp[14]="USER=root"
D [08/Apr/2013:22:49:58 +0400] [Job 5541] envp[15]="CUPS_SERVER=/var/run/cups/cups.sock"
D [08/Apr/2013:22:49:58 +0400] [Job 5541] envp[16]="CUPS_ENCRYPTION=IfRequested"
D [08/Apr/2013:22:49:58 +0400] [Job 5541] envp[17]="IPP_PORT=631"
D [08/Apr/2013:22:49:58 +0400] [Job 5541] envp[18]="CHARSET=utf-8"
D [08/Apr/2013:22:49:58 +0400] [Job 5541] envp[19]="LANG=ru_RU.UTF-8"
D [08/Apr/2013:22:49:58 +0400] [Job 5541] envp[20]="PPD=/etc/cups/ppd/i.simakov_hp_LaserJet_1000.ppd"
D [08/Apr/2013:22:49:58 +0400] [Job 5541] envp[21]="RIP_MAX_CACHE=auto"
D [08/Apr/2013:22:49:58 +0400] [Job 5541] envp[22]="CONTENT_TYPE=application/vnd.cups-banner"
D [08/Apr/2013:22:49:58 +0400] [Job 5541] envp[23]="DEVICE_URI=ipp://127.0.0.1:3602/printers/hp_LaserJet_1000"
D [08/Apr/2013:22:49:58 +0400] [Job 5541] envp[24]="PRINTER_INFO=i.simakov_hp_LaserJet_1000"
D [08/Apr/2013:22:49:58 +0400] [Job 5541] envp[25]="PRINTER_LOCATION="
D [08/Apr/2013:22:49:58 +0400] [Job 5541] envp[26]="PRINTER=i.simakov_hp_LaserJet_1000"
D [08/Apr/2013:22:49:58 +0400] [Job 5541] envp[27]="CUPS_FILETYPE=document"
D [08/Apr/2013:22:49:58 +0400] [Job 5541] envp[28]="FINAL_CONTENT_TYPE=printer/i.simakov_hp_LaserJet_1000"
I [08/Apr/2013:22:49:58 +0400] [Job 5541] Started filter /usr/lib/cups/filter/bannertops (PID 22667)
I [08/Apr/2013:22:49:58 +0400] [Job 5541] Started filter /usr/lib/cups/filter/pstopdf (PID 22668)
I [08/Apr/2013:22:49:58 +0400] [Job 5541] Started filter /usr/lib/cups/filter/pdftopdf (PID 22669)
I [08/Apr/2013:22:49:58 +0400] [Job 5541] Started filter /usr/lib/cups/filter/pdftoraster (PID 22670)
I [08/Apr/2013:22:49:58 +0400] [Job 5541] Started filter /usr/lib/cups/filter/hpcups (PID 22671)
I [08/Apr/2013:22:49:58 +0400] [Job 5541] Started backend /usr/lib/cups/backend/ipp (PID 22672)
D [08/Apr/2013:22:49:58 +0400] cupsdMarkDirty(-----S)
D [08/Apr/2013:22:49:58 +0400] Returning IPP successful-ok for Print-Job (ipp://localhost:631/printers/i.simakov_hp_LaserJet_1000) from localhost
D [08/Apr/2013:22:49:58 +0400] Script header: Content-Type: text/html;charset=utf-8
D [08/Apr/2013:22:49:58 +0400] Script header:
D [08/Apr/2013:22:49:58 +0400] cupsdReadClient: 15 WAITING Closing on EOF
D [08/Apr/2013:22:49:58 +0400] cupsdCloseClient: 15
D [08/Apr/2013:22:49:58 +0400] cupsdSetBusyState: Printing jobs and dirty files
D [08/Apr/2013:22:49:58 +0400] PID 22666 (/usr/lib/cups/cgi-bin/printers.cgi) exited with no errors.
D [08/Apr/2013:22:49:58 +0400] [Job 5541] STATE: +connecting-to-device
D [08/Apr/2013:22:49:58 +0400] cupsdMarkDirty(-----S)
D [08/Apr/2013:22:49:58 +0400] [Job 5541] pstopdf 5 args: 5541 anonymous Test Page 1 job-uuid=urn:uuid:57afe854-125e-3d50-68b6-9a7f5384515b job-originating-host-name=localhost
D [08/Apr/2013:22:49:58 +0400] [Job 5541] Looking up "127.0.0.1"...
D [08/Apr/2013:22:49:58 +0400] [Job 5541] backendRunLoop(print_fd=-1, device_fd=6, snmp_fd=5, addr=0x7f504b96b108, use_bc=0, side_cb=0x7f504af22c90)
D [08/Apr/2013:22:49:58 +0400] [Job 5541] PPD: /etc/cups/ppd/i.simakov_hp_LaserJet_1000.ppd
D [08/Apr/2013:22:49:58 +0400] [Job 5541] load_banner(filename="/var/spool/cups/d05541-001")
D [08/Apr/2013:22:49:58 +0400] [Job 5541] Page = 595x842; 18,16 to 577,826
D [08/Apr/2013:22:49:58 +0400] [Job 5541] PNG image: 128x128x8, color_type=6 (RGB+ALPHA)
D [08/Apr/2013:22:49:58 +0400] [Job 5541] PNG image: 192x128x8, color_type=2 (RGB)
D [08/Apr/2013:22:49:58 +0400] PID 22667 (/usr/lib/cups/filter/bannertops) exited with no errors.
D [08/Apr/2013:22:49:58 +0400] [Job 5541] Resolution:
D [08/Apr/2013:22:49:58 +0400] [Job 5541] Page size: A4
D [08/Apr/2013:22:49:59 +0400] [Job 5541] Width: 595.440002441406, height: 841.679992675781, absolute margins: 18, 15.5, 577.440002441406, 826.179992675781
D [08/Apr/2013:22:49:59 +0400] cupsdNetIFUpdate: "lo" = localhost:631
D [08/Apr/2013:22:49:59 +0400] cupsdNetIFUpdate: "eth0" = 192.168.1.104:631
D [08/Apr/2013:22:49:59 +0400] cupsdNetIFUpdate: "lo" = localhost:631
D [08/Apr/2013:22:49:59 +0400] cupsdNetIFUpdate: "eth0" = fe80::ecd4:c8ff:fe31:1785%eth0:631
D [08/Apr/2013:22:49:59 +0400] [Job 5541] Relative margins: 18, 15.5, 18.000000000000, 15.500000000000
D [08/Apr/2013:22:49:59 +0400] [Job 5541] PPD options: -dDEVICEWIDTHPOINTS=595.440002441406 -dDEVICEHEIGHTPOINTS=841.679992675781
D [08/Apr/2013:22:49:59 +0400] [Job 5541] PostScript to be injected:
D [08/Apr/2013:22:49:59 +0400] [Job 5541] Running cat | /usr/bin/gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dCompatibilityLevel=1.3 -dAutoRotatePages=/None -dAutoFilterColorImages=false                -dNOPLATFONTS -dPARANOIDSAFER -sstdout=%stderr -dColorImageFilter=/FlateEncode                 -dPDFSETTINGS=/printer                 -dColorConversionStrategy=/LeaveColorUnchanged -dDoNumCopies -dDEVICEWIDTHPOINTS=595.440002441406 -dDEVICEHEIGHTPOINTS=841.679992675781 -sOutputFile=-  -c .setpdfwrite -f -
D [08/Apr/2013:22:49:59 +0400] cupsdAcceptClient: 15 from localhost (Domain)
D [08/Apr/2013:22:49:59 +0400] cupsdAcceptClient: 16 from localhost (Domain)
D [08/Apr/2013:22:49:59 +0400] cupsdReadClient: 15 POST / HTTP/1.1
D [08/Apr/2013:22:49:59 +0400] cupsdSetBusyState: Active clients, printing jobs, and dirty files
D [08/Apr/2013:22:49:59 +0400] cupsdAuthorize: No authentication data provided.
D [08/Apr/2013:22:49:59 +0400] cupsdReadClient: 16 POST / HTTP/1.1
D [08/Apr/2013:22:49:59 +0400] cupsdAuthorize: No authentication data provided.
D [08/Apr/2013:22:49:59 +0400] cupsdReadClient: 15 1.1 Get-Jobs 1
D [08/Apr/2013:22:49:59 +0400] Get-Jobs ipp://localhost/printers/
D [08/Apr/2013:22:49:59 +0400] Returning IPP successful-ok for Get-Jobs (ipp://localhost/printers/) from localhost
D [08/Apr/2013:22:49:59 +0400] cupsdReadClient: 16 1.1 Get-Jobs 1
D [08/Apr/2013:22:49:59 +0400] Get-Jobs ipp://localhost/printers/
D [08/Apr/2013:22:49:59 +0400] Returning IPP successful-ok for Get-Jobs (ipp://localhost/printers/) from localhost
D [08/Apr/2013:22:49:59 +0400] cupsdSetBusyState: Printing jobs and dirty files
D [08/Apr/2013:22:49:59 +0400] cupsdReadClient: 15 WAITING Closing on EOF
D [08/Apr/2013:22:49:59 +0400] cupsdCloseClient: 15
D [08/Apr/2013:22:49:59 +0400] cupsdReadClient: 16 WAITING Closing on EOF
D [08/Apr/2013:22:49:59 +0400] cupsdCloseClient: 16
D [08/Apr/2013:22:49:59 +0400] PID 22668 (/usr/lib/cups/filter/pstopdf) exited with no errors.
D [08/Apr/2013:22:49:59 +0400] PID 22669 (/usr/lib/cups/filter/pdftopdf) exited with no errors.
D [08/Apr/2013:22:49:59 +0400] [Job 5541] Ghostscript command line: /usr/bin/gs -dQUIET -dPARANOIDSAFER -dNOPAUSE -dBATCH -sDEVICE=cups -sstdout=%stderr -sOutputFile=%stdout -I/usr/share/cups/fonts -sMediaType=Plain -sOutputType=0 -r600x600 -dMediaPosition=7 -dDEVICEWIDTHPOINTS=595 -dDEVICEHEIGHTPOINTS=841 -dcupsBitsPerColor=1 -dcupsColorOrder=0 -dcupsColorSpace=3 -dcupsRowCount=1 -dcupsRowStep=2 -dcupsInteger0=9 -scupsPageSizeName=A4 -c -f -_
D [08/Apr/2013:22:49:59 +0400] [Job 5541] envp[0]="CUPS_CACHEDIR=/var/cache/cups"
D [08/Apr/2013:22:49:59 +0400] [Job 5541] envp[1]="CUPS_DATADIR=/usr/share/cups"
D [08/Apr/2013:22:49:59 +0400] [Job 5541] envp[2]="CUPS_DOCROOT=/usr/share/cups/doc-root"
D [08/Apr/2013:22:49:59 +0400] [Job 5541] envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [08/Apr/2013:22:49:59 +0400] [Job 5541] envp[4]="CUPS_REQUESTROOT=/var/spool/cups"
D [08/Apr/2013:22:49:59 +0400] [Job 5541] envp[5]="CUPS_SERVERBIN=/usr/lib/cups"
D [08/Apr/2013:22:49:59 +0400] [Job 5541] envp[6]="CUPS_SERVERROOT=/etc/cups"
D [08/Apr/2013:22:49:59 +0400] [Job 5541] envp[7]="CUPS_STATEDIR=/var/run/cups"
D [08/Apr/2013:22:49:59 +0400] [Job 5541] envp[8]="HOME=/var/spool/cups/tmp"
D [08/Apr/2013:22:49:59 +0400] [Job 5541] envp[9]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [08/Apr/2013:22:49:59 +0400] [Job 5541] envp[10]="SERVER_ADMIN=root@ts104"
D [08/Apr/2013:22:49:59 +0400] [Job 5541] envp[11]="SOFTWARE=CUPS/1.4.4"
D [08/Apr/2013:22:49:59 +0400] [Job 5541] envp[12]="TMPDIR=/var/spool/cups/tmp"
D [08/Apr/2013:22:49:59 +0400] [Job 5541] envp[13]="TZ=Europe/Samara"
D [08/Apr/2013:22:49:59 +0400] [Job 5541] envp[14]="USER=root"
D [08/Apr/2013:22:49:59 +0400] [Job 5541] envp[15]="CUPS_SERVER=/var/run/cups/cups.sock"
D [08/Apr/2013:22:49:59 +0400] [Job 5541] envp[16]="CUPS_ENCRYPTION=IfRequested"
D [08/Apr/2013:22:49:59 +0400] [Job 5541] envp[17]="IPP_PORT=631"
D [08/Apr/2013:22:49:59 +0400] [Job 5541] envp[18]="CHARSET=utf-8"
D [08/Apr/2013:22:49:59 +0400] [Job 5541] envp[19]="LANG=ru_RU.UTF-8"
D [08/Apr/2013:22:49:59 +0400] [Job 5541] envp[20]="PPD=/etc/cups/ppd/i.simakov_hp_LaserJet_1000.ppd"
D [08/Apr/2013:22:49:59 +0400] [Job 5541] envp[21]="RIP_MAX_CACHE=auto"
D [08/Apr/2013:22:49:59 +0400] [Job 5541] envp[22]="CONTENT_TYPE=application/vnd.cups-banner"
D [08/Apr/2013:22:49:59 +0400] [Job 5541] envp[23]="DEVICE_URI=ipp://user01:15883740d021c6a5@127.0.0.1:3602/printers/hp_LaserJet_1000"
D [08/Apr/2013:22:49:59 +0400] [Job 5541] envp[24]="PRINTER_INFO=i.simakov_hp_LaserJet_1000"
D [08/Apr/2013:22:49:59 +0400] [Job 5541] envp[25]="PRINTER_LOCATION="
D [08/Apr/2013:22:49:59 +0400] [Job 5541] envp[26]="PRINTER=i.simakov_hp_LaserJet_1000"
D [08/Apr/2013:22:49:59 +0400] [Job 5541] envp[27]="CUPS_FILETYPE=document"
D [08/Apr/2013:22:49:59 +0400] [Job 5541] envp[28]="FINAL_CONTENT_TYPE=printer/i.simakov_hp_LaserJet_1000"
D [08/Apr/2013:22:49:59 +0400] [Job 5541] num_components = 1, depth = 1
D [08/Apr/2013:22:49:59 +0400] [Job 5541] cupsColorSpace = 3, cupsColorOrder = 0
D [08/Apr/2013:22:49:59 +0400] [Job 5541] cupsBitsPerPixel = 1, cupsBitsPerColor = 1
D [08/Apr/2013:22:49:59 +0400] [Job 5541] max_gray = 1, dither_grays = 2
D [08/Apr/2013:22:49:59 +0400] [Job 5541] max_color = 0, dither_colors = 0
D [08/Apr/2013:22:49:59 +0400] [Job 5541] Updating PageSize to [595 841]...
D [08/Apr/2013:22:49:59 +0400] [Job 5541] Setting initial media size, [595 841] = 4958x7008 pixels...
D [08/Apr/2013:22:49:59 +0400] [Job 5541] Setting MediaType to "Plain"...
D [08/Apr/2013:22:49:59 +0400] [Job 5541] Setting OutputType to "0"...
D [08/Apr/2013:22:49:59 +0400] [Job 5541] Setting MediaPosition to 7...
D [08/Apr/2013:22:49:59 +0400] [Job 5541] Setting cupsBitsPerColor to 1...
D [08/Apr/2013:22:49:59 +0400] [Job 5541] Setting cupsColorOrder to 0...
D [08/Apr/2013:22:49:59 +0400] [Job 5541] Setting cupsColorSpace to 3...
D [08/Apr/2013:22:49:59 +0400] [Job 5541] Setting cupsRowCount to 1...
D [08/Apr/2013:22:49:59 +0400] [Job 5541] Setting cupsRowStep to 2...
D [08/Apr/2013:22:49:59 +0400] [Job 5541] Setting cupsInteger0 to 9...
D [08/Apr/2013:22:49:59 +0400] [Job 5541] Setting cupsPageSizeName to "A4"...
D [08/Apr/2013:22:49:59 +0400] [Job 5541] num_components = 1, depth = 1
D [08/Apr/2013:22:49:59 +0400] [Job 5541] cupsColorSpace = 3, cupsColorOrder = 0
D [08/Apr/2013:22:49:59 +0400] [Job 5541] cupsBitsPerPixel = 1, cupsBitsPerColor = 1
D [08/Apr/2013:22:49:59 +0400] [Job 5541] max_gray = 1, dither_grays = 2
D [08/Apr/2013:22:49:59 +0400] [Job 5541] max_color = 0, dither_colors = 0
D [08/Apr/2013:22:49:59 +0400] [Job 5541] Setting initial media size, [595 841] = 4958x7008 pixels...
I [08/Apr/2013:22:49:59 +0400] [Job 5541] Processing page 1...
D [08/Apr/2013:22:49:59 +0400] cupsdMarkDirty(-----S)
D [08/Apr/2013:22:49:59 +0400] [Job 5541] num_components = 1, depth = 1
D [08/Apr/2013:22:49:59 +0400] [Job 5541] cupsColorSpace = 3, cupsColorOrder = 0
D [08/Apr/2013:22:49:59 +0400] [Job 5541] cupsBitsPerPixel = 1, cupsBitsPerColor = 1
D [08/Apr/2013:22:49:59 +0400] [Job 5541] max_gray = 1, dither_grays = 2
D [08/Apr/2013:22:49:59 +0400] [Job 5541] max_color = 0, dither_colors = 0
D [08/Apr/2013:22:49:59 +0400] [Job 5541] Setting LeadingEdge to 0...
D [08/Apr/2013:22:49:59 +0400] [Job 5541] num_components = 1, depth = 1
D [08/Apr/2013:22:49:59 +0400] [Job 5541] cupsColorSpace = 3, cupsColorOrder = 0
D [08/Apr/2013:22:49:59 +0400] [Job 5541] cupsBitsPerPixel = 1, cupsBitsPerColor = 1
D [08/Apr/2013:22:49:59 +0400] [Job 5541] max_gray = 1, dither_grays = 2
D [08/Apr/2013:22:49:59 +0400] [Job 5541] max_color = 0, dither_colors = 0
D [08/Apr/2013:22:49:59 +0400] [Job 5541] Updating PageSize to [595 841]...
D [08/Apr/2013:22:49:59 +0400] [Job 5541] size = A4
D [08/Apr/2013:22:49:59 +0400] [Job 5541] margins[] = [ 0.250000 0.215278 0.250000 0.215278 ]
D [08/Apr/2013:22:49:59 +0400] [Job 5541] Setting LeadingEdge to 0...
D [08/Apr/2013:22:49:59 +0400] [Job 5541] num_components = 1, depth = 1
D [08/Apr/2013:22:49:59 +0400] [Job 5541] cupsColorSpace = 3, cupsColorOrder = 0
D [08/Apr/2013:22:49:59 +0400] [Job 5541] cupsBitsPerPixel = 1, cupsBitsPerColor = 1
D [08/Apr/2013:22:49:59 +0400] [Job 5541] max_gray = 1, dither_grays = 2
D [08/Apr/2013:22:49:59 +0400] [Job 5541] max_color = 0, dither_colors = 0
D [08/Apr/2013:22:49:59 +0400] [Job 5541] Setting LeadingEdge to 0...
D [08/Apr/2013:22:49:59 +0400] [Job 5541] num_components = 1, depth = 1
D [08/Apr/2013:22:49:59 +0400] [Job 5541] cupsColorSpace = 3, cupsColorOrder = 0
D [08/Apr/2013:22:49:59 +0400] [Job 5541] cupsBitsPerPixel = 1, cupsBitsPerColor = 1
D [08/Apr/2013:22:49:59 +0400] [Job 5541] max_gray = 1, dither_grays = 2
D [08/Apr/2013:22:49:59 +0400] [Job 5541] max_color = 0, dither_colors = 0
D [08/Apr/2013:22:49:59 +0400] [Job 5541] Updating PageSize to [595 842]...
D [08/Apr/2013:22:49:59 +0400] [Job 5541] size = A4
D [08/Apr/2013:22:49:59 +0400] [Job 5541] margins[] = [ 0.250000 0.215278 0.250000 0.215278 ]
D [08/Apr/2013:22:49:59 +0400] [Job 5541] Read 91 bytes of print data...
D [08/Apr/2013:22:49:59 +0400] [Job 5541] Error: This module is designed to work with HP Printers only
D [08/Apr/2013:22:49:59 +0400] [Job 5541] STATE: +hplip.plugin-error
D [08/Apr/2013:22:49:59 +0400] cupsdMarkDirty(P-----)
D [08/Apr/2013:22:49:59 +0400] [Job 5541] prnt/hpcups/HPCupsFilter.cpp 413: m_Job initialization failed with error = 48DEBUG2: cups->header.Duplex = 0
D [08/Apr/2013:22:49:59 +0400] [Job 5541] cups_print_chunked: xflip = 0, yflip = 0, height = 6756
D [08/Apr/2013:22:49:59 +0400] cupsdMarkDirty(-----S)
D [08/Apr/2013:22:49:59 +0400] PID 22671 (/usr/lib/cups/filter/hpcups) stopped with status 1!
D [08/Apr/2013:22:49:59 +0400] PID 22670 (/usr/lib/cups/filter/pdftoraster) stopped with status 1!
D [08/Apr/2013:22:49:59 +0400] cupsdAcceptClient: 15 from localhost (Domain)
D [08/Apr/2013:22:49:59 +0400] cupsdReadClient: 15 POST / HTTP/1.1
D [08/Apr/2013:22:49:59 +0400] cupsdSetBusyState: Active clients, printing jobs, and dirty files
D [08/Apr/2013:22:49:59 +0400] cupsdAuthorize: No authentication data provided.
D [08/Apr/2013:22:49:59 +0400] cupsdReadClient: 15 1.1 Get-Jobs 1
D [08/Apr/2013:22:49:59 +0400] Get-Jobs ipp://localhost/printers/
D [08/Apr/2013:22:49:59 +0400] Returning IPP successful-ok for Get-Jobs (ipp://localhost/printers/) from localhost
D [08/Apr/2013:22:49:59 +0400] cupsdSetBusyState: Printing jobs and dirty files
D [08/Apr/2013:22:49:59 +0400] cupsdReadClient: 15 WAITING Closing on EOF
D [08/Apr/2013:22:49:59 +0400] cupsdCloseClient: 15
D [08/Apr/2013:22:49:59 +0400] cupsdAcceptClient: 15 from localhost (Domain)
D [08/Apr/2013:22:49:59 +0400] cupsdReadClient: 15 POST / HTTP/1.1
D [08/Apr/2013:22:49:59 +0400] cupsdSetBusyState: Active clients, printing jobs, and dirty files
D [08/Apr/2013:22:49:59 +0400] cupsdAuthorize: No authentication data provided.
D [08/Apr/2013:22:49:59 +0400] cupsdReadClient: 15 1.1 Get-Jobs 1
D [08/Apr/2013:22:49:59 +0400] Get-Jobs ipp://localhost/printers/
D [08/Apr/2013:22:49:59 +0400] Returning IPP successful-ok for Get-Jobs (ipp://localhost/printers/) from localhost
D [08/Apr/2013:22:49:59 +0400] cupsdSetBusyState: Printing jobs and dirty files
D [08/Apr/2013:22:49:59 +0400] cupsdReadClient: 15 WAITING Closing on EOF
D [08/Apr/2013:22:49:59 +0400] cupsdCloseClient: 15
D [08/Apr/2013:22:50:01 +0400] cupsdReadClient: 11 GET /printers/i.simakov_hp_LaserJet_1000 HTTP/1.1
D [08/Apr/2013:22:50:01 +0400] cupsdSetBusyState: Active clients, printing jobs, and dirty files
D [08/Apr/2013:22:50:01 +0400] cupsdAuthorize: No authentication data provided.
D [08/Apr/2013:22:50:01 +0400] [CGI] argv[0] = "/usr/lib/cups/cgi-bin/printers.cgi"
D [08/Apr/2013:22:50:01 +0400] [CGI] envp[0] = "CUPS_CACHEDIR=/var/cache/cups"
D [08/Apr/2013:22:50:01 +0400] [CGI] envp[1] = "CUPS_DATADIR=/usr/share/cups"
D [08/Apr/2013:22:50:01 +0400] [CGI] envp[2] = "CUPS_DOCROOT=/usr/share/cups/doc-root"
D [08/Apr/2013:22:50:01 +0400] [CGI] envp[3] = "CUPS_FONTPATH=/usr/share/cups/fonts"
D [08/Apr/2013:22:50:01 +0400] [CGI] envp[4] = "CUPS_REQUESTROOT=/var/spool/cups"
D [08/Apr/2013:22:50:01 +0400] [CGI] envp[5] = "CUPS_SERVERBIN=/usr/lib/cups"
D [08/Apr/2013:22:50:01 +0400] [CGI] envp[6] = "CUPS_SERVERROOT=/etc/cups"
D [08/Apr/2013:22:50:01 +0400] [CGI] envp[7] = "CUPS_STATEDIR=/var/run/cups"
D [08/Apr/2013:22:50:01 +0400] [CGI] envp[8] = "HOME=/var/spool/cups/tmp"
D [08/Apr/2013:22:50:01 +0400] [CGI] envp[9] = "PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [08/Apr/2013:22:50:01 +0400] [CGI] envp[10] = "SERVER_ADMIN=root@ts104"
D [08/Apr/2013:22:50:01 +0400] [CGI] envp[11] = "SOFTWARE=CUPS/1.4.4"
D [08/Apr/2013:22:50:01 +0400] [CGI] envp[12] = "TMPDIR=/var/spool/cups/tmp"
D [08/Apr/2013:22:50:01 +0400] [CGI] envp[13] = "TZ=Europe/Samara"
D [08/Apr/2013:22:50:01 +0400] [CGI] envp[14] = "USER=root"
D [08/Apr/2013:22:50:01 +0400] [CGI] envp[15] = "CUPS_SERVER=/var/run/cups/cups.sock"
D [08/Apr/2013:22:50:01 +0400] [CGI] envp[16] = "CUPS_ENCRYPTION=IfRequested"
D [08/Apr/2013:22:50:01 +0400] [CGI] envp[17] = "IPP_PORT=631"
D [08/Apr/2013:22:50:01 +0400] [CGI] envp[18] = "LANG=ru_RU.UTF8"
D [08/Apr/2013:22:50:01 +0400] [CGI] envp[19] = "REDIRECT_STATUS=1"
D [08/Apr/2013:22:50:01 +0400] [CGI] envp[20] = "GATEWAY_INTERFACE=CGI/1.1"
D [08/Apr/2013:22:50:01 +0400] [CGI] envp[21] = "SERVER_NAME=localhost"
D [08/Apr/2013:22:50:01 +0400] [CGI] envp[22] = "SERVER_PORT=631"
D [08/Apr/2013:22:50:01 +0400] [CGI] envp[23] = "REMOTE_ADDR=127.0.0.1"
D [08/Apr/2013:22:50:01 +0400] [CGI] envp[24] = "REMOTE_HOST=localhost"
D [08/Apr/2013:22:50:01 +0400] [CGI] envp[25] = "SCRIPT_NAME=/printers/i.simakov_hp_LaserJet_1000"
D [08/Apr/2013:22:50:01 +0400] [CGI] envp[26] = "SCRIPT_FILENAME=/usr/share/cups/doc-root/printers/i.simakov_hp_LaserJet_1000"
D [08/Apr/2013:22:50:01 +0400] [CGI] envp[27] = "PATH_INFO=/i.simakov_hp_LaserJet_1000"
D [08/Apr/2013:22:50:01 +0400] [CGI] envp[28] = "SERVER_PROTOCOL=HTTP/1.1"
D [08/Apr/2013:22:50:01 +0400] [CGI] envp[29] = "HTTP_COOKIE=org.cups.sid=ce57d31acd0e90ddaf55ccca65b214a4"
D [08/Apr/2013:22:50:01 +0400] [CGI] envp[30] = "HTTP_USER_AGENT=Mozilla/5.0 (X11; U; Linux x86_64; ru; rv:1.9.1.16) Gecko/20121207 Iceweasel/3.5.16 (like Firefox/3.5.16)"
D [08/Apr/2013:22:50:01 +0400] [CGI] envp[31] = "REQUEST_METHOD=GET"
D [08/Apr/2013:22:50:01 +0400] [CGI] envp[32] = "QUERY_STRING="
D [08/Apr/2013:22:50:01 +0400] [CGI] Started /usr/lib/cups/cgi-bin/printers.cgi (PID 22825)
I [08/Apr/2013:22:50:01 +0400] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=22825)
D [08/Apr/2013:22:50:01 +0400] cupsdSendCommand: 11 file=15
D [08/Apr/2013:22:50:01 +0400] [CGI] org.cups.sid cookie is "ce57d31acd0e90ddaf55ccca65b214a4"
D [08/Apr/2013:22:50:01 +0400] cupsdAcceptClient: 16 from localhost (Domain)
D [08/Apr/2013:22:50:01 +0400] cupsdReadClient: 16 POST / HTTP/1.1
D [08/Apr/2013:22:50:01 +0400] cupsdAuthorize: No authentication data provided.
D [08/Apr/2013:22:50:01 +0400] cupsdReadClient: 16 1.1 CUPS-Get-Default 1
D [08/Apr/2013:22:50:01 +0400] CUPS-Get-Default
D [08/Apr/2013:22:50:01 +0400] Returning IPP successful-ok for CUPS-Get-Default (no URI) from localhost
D [08/Apr/2013:22:50:01 +0400] [CGI] show_printer(http=0x7f020ee93480, printer="i.simakov_hp_LaserJet_1000")
D [08/Apr/2013:22:50:01 +0400] cupsdReadClient: 16 POST / HTTP/1.1
D [08/Apr/2013:22:50:01 +0400] cupsdAuthorize: No authentication data provided.
D [08/Apr/2013:22:50:01 +0400] cupsdReadClient: 16 1.1 Get-Printer-Attributes 1
D [08/Apr/2013:22:50:01 +0400] Get-Printer-Attributes ipp://localhost/printers/i.simakov_hp_LaserJet_1000
D [08/Apr/2013:22:50:01 +0400] Returning IPP successful-ok for Get-Printer-Attributes (ipp://localhost/printers/i.simakov_hp_LaserJet_1000) from localhost
D [08/Apr/2013:22:50:01 +0400] Script header: Content-Type: text/html;charset=utf-8
D [08/Apr/2013:22:50:01 +0400] Script header:
D [08/Apr/2013:22:50:01 +0400] [CGI] Regular expression ".*Clean.*"
D [08/Apr/2013:22:50:01 +0400] [CGI] Regular expression ".*PrintSelfTestPage.*"
D [08/Apr/2013:22:50:01 +0400] cupsdReadClient: 16 POST / HTTP/1.1
D [08/Apr/2013:22:50:01 +0400] cupsdAuthorize: No authentication data provided.
D [08/Apr/2013:22:50:01 +0400] cupsdReadClient: 16 1.1 Get-Jobs 1
D [08/Apr/2013:22:50:01 +0400] Get-Jobs ipp://localhost:631/printers/i.simakov_hp_LaserJet_1000
D [08/Apr/2013:22:50:01 +0400] Returning IPP successful-ok for Get-Jobs (ipp://localhost:631/printers/i.simakov_hp_LaserJet_1000) from localhost
D [08/Apr/2013:22:50:01 +0400] cupsdReadClient: 16 WAITING Closing on EOF
D [08/Apr/2013:22:50:01 +0400] cupsdCloseClient: 16
E [08/Apr/2013:22:50:01 +0400] [CGI] Saw EOF, expected '}'!
D [08/Apr/2013:22:50:01 +0400] cupsdSetBusyState: Printing jobs and dirty files
D [08/Apr/2013:22:50:01 +0400] PID 22825 (/usr/lib/cups/cgi-bin/printers.cgi) exited with no errors.
D [08/Apr/2013:22:50:03 +0400] [Job 5541] prtGeneralCurrentLocalization type is 0, expected 2!
D [08/Apr/2013:22:50:03 +0400] [Job 5541] Wrote 91 bytes of print data...
D [08/Apr/2013:22:50:03 +0400] [Job 5541] Read 16 bytes of print data...
D [08/Apr/2013:22:50:03 +0400] [Job 5541] Wrote 16 bytes of print data...
D [08/Apr/2013:22:50:03 +0400] [Job 5541] 1 files to send in job...
D [08/Apr/2013:22:50:03 +0400] [Job 5541] STATE: +connecting-to-device
D [08/Apr/2013:22:50:03 +0400] [Job 5541] Connecting to 127.0.0.1:3602
I [08/Apr/2013:22:50:03 +0400] [Job 5541] а?аОаДаКаЛб?б?аЕаНаИаЕ аК аПб?аИаНб?аЕб?б?т?І
D [08/Apr/2013:22:50:03 +0400] cupsdMarkDirty(-----S)
D [08/Apr/2013:22:50:03 +0400] [Job 5541] STATE: -connecting-to-device
I [08/Apr/2013:22:50:03 +0400] [Job 5541] а?аОаДаКаЛб?б?аЕаН аК аПб?аИаНб?аЕб?б?т?І
D [08/Apr/2013:22:50:03 +0400] [Job 5541] Connected to 127.0.0.1:3602 (IPv4)...
D [08/Apr/2013:22:50:03 +0400] [Job 5541] Getting supported attributes...
D [08/Apr/2013:22:50:03 +0400] cupsdMarkDirty(-----S)
D [08/Apr/2013:22:50:03 +0400] [Job 5541] document-format-supported (41 values)
D [08/Apr/2013:22:50:03 +0400] [Job 5541] [0] = "application/octet-stream"
D [08/Apr/2013:22:50:03 +0400] [Job 5541] [1] = "application/pdf"
D [08/Apr/2013:22:50:03 +0400] [Job 5541] [2] = "application/postscript"
D [08/Apr/2013:22:50:03 +0400] [Job 5541] [3] = "application/rss+xml"
D [08/Apr/2013:22:50:03 +0400] [Job 5541] [4] = "application/vnd.adobe-reader-postscript"
D [08/Apr/2013:22:50:03 +0400] [Job 5541] [5] = "application/vnd.cups-banner"
D [08/Apr/2013:22:50:03 +0400] [Job 5541] [6] = "application/vnd.cups-command"
D [08/Apr/2013:22:50:03 +0400] [Job 5541] [7] = "application/vnd.cups-form"
D [08/Apr/2013:22:50:03 +0400] [Job 5541] [8] = "application/vnd.cups-pdf"
D [08/Apr/2013:22:50:03 +0400] [Job 5541] [9] = "application/vnd.cups-pdf-banner"
D [08/Apr/2013:22:50:03 +0400] [Job 5541] [10] = "application/vnd.cups-postscript"
D [08/Apr/2013:22:50:03 +0400] [Job 5541] [11] = "application/vnd.cups-ppd"
D [08/Apr/2013:22:50:03 +0400] [Job 5541] [12] = "application/vnd.cups-raster"
D [08/Apr/2013:22:50:03 +0400] [Job 5541] [13] = "application/vnd.cups-raw"
D [08/Apr/2013:22:50:03 +0400] [Job 5541] [14] = "application/vnd.hp-hpgl"
D [08/Apr/2013:22:50:03 +0400] [Job 5541] [15] = "application/x-cshell"
D [08/Apr/2013:22:50:03 +0400] [Job 5541] [16] = "application/x-csource"
D [08/Apr/2013:22:50:03 +0400] [Job 5541] [17] = "application/x-perl"
D [08/Apr/2013:22:50:03 +0400] [Job 5541] [18] = "application/x-shell"
D [08/Apr/2013:22:50:03 +0400] [Job 5541] [19] = "image/gif"
D [08/Apr/2013:22:50:03 +0400] [Job 5541] [20] = "image/jpeg"
D [08/Apr/2013:22:50:03 +0400] [Job 5541] [21] = "image/png"
D [08/Apr/2013:22:50:03 +0400] [Job 5541] [22] = "image/pwg-raster"
D [08/Apr/2013:22:50:03 +0400] [Job 5541] [23] = "image/tiff"
D [08/Apr/2013:22:50:03 +0400] [Job 5541] [24] = "image/urf"
D [08/Apr/2013:22:50:03 +0400] [Job 5541] [25] = "image/x-alias"
D [08/Apr/2013:22:50:03 +0400] [Job 5541] [26] = "image/x-bitmap"
D [08/Apr/2013:22:50:03 +0400] [Job 5541] [27] = "image/x-icon"
D [08/Apr/2013:22:50:03 +0400] [Job 5541] [28] = "image/x-photocd"
D [08/Apr/2013:22:50:03 +0400] [Job 5541] [29] = "image/x-portable-anymap"
D [08/Apr/2013:22:50:03 +0400] [Job 5541] [30] = "image/x-portable-bitmap"
D [08/Apr/2013:22:50:03 +0400] [Job 5541] [31] = "image/x-portable-graymap"
D [08/Apr/2013:22:50:03 +0400] [Job 5541] [32] = "image/x-portable-pixmap"
D [08/Apr/2013:22:50:03 +0400] [Job 5541] [33] = "image/x-sgi-rgb"
D [08/Apr/2013:22:50:03 +0400] [Job 5541] [34] = "image/x-sun-raster"
D [08/Apr/2013:22:50:03 +0400] [Job 5541] [35] = "image/x-xbitmap"
D [08/Apr/2013:22:50:03 +0400] [Job 5541] [36] = "image/x-xpixmap"
D [08/Apr/2013:22:50:03 +0400] [Job 5541] [37] = "image/x-xwindowdump"
D [08/Apr/2013:22:50:03 +0400] [Job 5541] [38] = "text/css"
D [08/Apr/2013:22:50:03 +0400] [Job 5541] [39] = "text/html"
D [08/Apr/2013:22:50:03 +0400] [Job 5541] [40] = "text/plain"
I [08/Apr/2013:22:50:03 +0400] [Job 5541]
D [08/Apr/2013:22:50:03 +0400] [Job 5541] STATE: none
D [08/Apr/2013:22:50:03 +0400] cupsdMarkDirty(P-----)
D [08/Apr/2013:22:50:03 +0400] [Job 5541] printer-uri = "ipp://127.0.0.1:3602/printers/hp_LaserJet_1000"
D [08/Apr/2013:22:50:03 +0400] [Job 5541] requesting-user-name = "anonymous"
D [08/Apr/2013:22:50:03 +0400] [Job 5541] job-name = "Test Page"
D [08/Apr/2013:22:50:03 +0400] cupsdMarkDirty(-----S)
N [08/Apr/2013:22:50:03 +0400] [Job 5541] аЄаАаЙаЛ аПаЕб?аАб?аИ аПб?аИаНб?б? т?? ID аЗаАаДаАаНаИб? 22.
I [08/Apr/2013:22:50:03 +0400] [Job 5541] а?аЖаИаДаАаНаИаЕ аОаКаОаНб?аАаНаИб? аВб?аПаОаЛаНаЕаНаИб? аЗаАаДаАаНаИб?т?І
D [08/Apr/2013:22:50:03 +0400] cupsdMarkDirty(-----S)
I [08/Apr/2013:22:50:03 +0400] [Job 5541]
D [08/Apr/2013:22:50:03 +0400] [Job 5541] STATE: connecting-to-device
D [08/Apr/2013:22:50:03 +0400] cupsdMarkDirty(P-----)
D [08/Apr/2013:22:50:03 +0400] cupsdMarkDirty(-----S)
I [08/Apr/2013:22:50:04 +0400] [Job 5541]
D [08/Apr/2013:22:50:04 +0400] [Job 5541] STATE: cups-remote-processing,connecting-to-device
D [08/Apr/2013:22:50:04 +0400] cupsdMarkDirty(P-----)
D [08/Apr/2013:22:50:04 +0400] cupsdMarkDirty(P-----)
D [08/Apr/2013:22:50:04 +0400] cupsdMarkDirty(-----S)
I [08/Apr/2013:22:50:06 +0400] [Job 5541]
D [08/Apr/2013:22:50:06 +0400] [Job 5541] STATE: cups-remote-processing
D [08/Apr/2013:22:50:06 +0400] cupsdMarkDirty(P-----)
D [08/Apr/2013:22:50:06 +0400] cupsdMarkDirty(P-----)
D [08/Apr/2013:22:50:06 +0400] cupsdMarkDirty(-----S)
I [08/Apr/2013:22:50:09 +0400] [Job 5541]
D [08/Apr/2013:22:50:09 +0400] [Job 5541] STATE: cups-remote-processing
D [08/Apr/2013:22:50:09 +0400] cupsdMarkDirty(P-----)
D [08/Apr/2013:22:50:09 +0400] cupsdMarkDirty(P-----)
D [08/Apr/2013:22:50:09 +0400] cupsdMarkDirty(-----S)
D [08/Apr/2013:22:50:10 +0400] cupsdReadClient: 11 GET /admin HTTP/1.1
D [08/Apr/2013:22:50:10 +0400] cupsdSetBusyState: Active clients, printing jobs, and dirty files
D [08/Apr/2013:22:50:10 +0400] cupsdAuthorize: No authentication data provided.
D [08/Apr/2013:22:50:10 +0400] [CGI] argv[0] = "/usr/lib/cups/cgi-bin/admin.cgi"
D [08/Apr/2013:22:50:10 +0400] [CGI] envp[0] = "CUPS_CACHEDIR=/var/cache/cups"
D [08/Apr/2013:22:50:10 +0400] [CGI] envp[1] = "CUPS_DATADIR=/usr/share/cups"
D [08/Apr/2013:22:50:10 +0400] [CGI] envp[2] = "CUPS_DOCROOT=/usr/share/cups/doc-root"
D [08/Apr/2013:22:50:10 +0400] [CGI] envp[3] = "CUPS_FONTPATH=/usr/share/cups/fonts"
D [08/Apr/2013:22:50:10 +0400] [CGI] envp[4] = "CUPS_REQUESTROOT=/var/spool/cups"
D [08/Apr/2013:22:50:10 +0400] [CGI] envp[5] = "CUPS_SERVERBIN=/usr/lib/cups"
D [08/Apr/2013:22:50:10 +0400] [CGI] envp[6] = "CUPS_SERVERROOT=/etc/cups"
D [08/Apr/2013:22:50:10 +0400] [CGI] envp[7] = "CUPS_STATEDIR=/var/run/cups"
D [08/Apr/2013:22:50:10 +0400] [CGI] envp[8] = "HOME=/var/spool/cups/tmp"
D [08/Apr/2013:22:50:10 +0400] [CGI] envp[9] = "PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [08/Apr/2013:22:50:10 +0400] [CGI] envp[10] = "SERVER_ADMIN=root@ts104"
D [08/Apr/2013:22:50:10 +0400] [CGI] envp[11] = "SOFTWARE=CUPS/1.4.4"
D [08/Apr/2013:22:50:10 +0400] [CGI] envp[12] = "TMPDIR=/var/spool/cups/tmp"
D [08/Apr/2013:22:50:10 +0400] [CGI] envp[13] = "TZ=Europe/Samara"
D [08/Apr/2013:22:50:10 +0400] [CGI] envp[14] = "USER=root"
D [08/Apr/2013:22:50:10 +0400] [CGI] envp[15] = "CUPS_SERVER=/var/run/cups/cups.sock"
D [08/Apr/2013:22:50:10 +0400] [CGI] envp[16] = "CUPS_ENCRYPTION=IfRequested"
D [08/Apr/2013:22:50:10 +0400] [CGI] envp[17] = "IPP_PORT=631"
D [08/Apr/2013:22:50:10 +0400] [CGI] envp[18] = "LANG=ru_RU.UTF8"
D [08/Apr/2013:22:50:10 +0400] [CGI] envp[19] = "REDIRECT_STATUS=1"
D [08/Apr/2013:22:50:10 +0400] [CGI] envp[20] = "GATEWAY_INTERFACE=CGI/1.1"
D [08/Apr/2013:22:50:10 +0400] [CGI] envp[21] = "SERVER_NAME=localhost"
D [08/Apr/2013:22:50:10 +0400] [CGI] envp[22] = "SERVER_PORT=631"
D [08/Apr/2013:22:50:10 +0400] [CGI] envp[23] = "REMOTE_ADDR=127.0.0.1"
D [08/Apr/2013:22:50:10 +0400] [CGI] envp[24] = "REMOTE_HOST=localhost"
D [08/Apr/2013:22:50:10 +0400] [CGI] envp[25] = "SCRIPT_NAME=/admin"
D [08/Apr/2013:22:50:10 +0400] [CGI] envp[26] = "SCRIPT_FILENAME=/usr/share/cups/doc-root/admin"
D [08/Apr/2013:22:50:10 +0400] [CGI] envp[27] = "SERVER_PROTOCOL=HTTP/1.1"
D [08/Apr/2013:22:50:10 +0400] [CGI] envp[28] = "HTTP_COOKIE=org.cups.sid=ce57d31acd0e90ddaf55ccca65b214a4"
D [08/Apr/2013:22:50:10 +0400] [CGI] envp[29] = "HTTP_USER_AGENT=Mozilla/5.0 (X11; U; Linux x86_64; ru; rv:1.9.1.16) Gecko/20121207 Iceweasel/3.5.16 (like Firefox/3.5.16)"
D [08/Apr/2013:22:50:10 +0400] [CGI] envp[30] = "HTTP_REFERER=http://localhost:631/printers/i.simakov_hp_LaserJet_1000"
D [08/Apr/2013:22:50:10 +0400] [CGI] envp[31] = "REQUEST_METHOD=GET"
D [08/Apr/2013:22:50:10 +0400] [CGI] envp[32] = "QUERY_STRING="
D [08/Apr/2013:22:50:10 +0400] [CGI] Started /usr/lib/cups/cgi-bin/admin.cgi (PID 22831)
I [08/Apr/2013:22:50:10 +0400] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=22831)
D [08/Apr/2013:22:50:10 +0400] cupsdSendCommand: 11 file=15
D [08/Apr/2013:22:50:10 +0400] [CGI] admin.cgi started...
D [08/Apr/2013:22:50:10 +0400] cupsdAcceptClient: 16 from localhost (Domain)
D [08/Apr/2013:22:50:10 +0400] [CGI] http=0x7f8efb5b3020
D [08/Apr/2013:22:50:10 +0400] [CGI] org.cups.sid cookie is "ce57d31acd0e90ddaf55ccca65b214a4"
D [08/Apr/2013:22:50:10 +0400] [CGI] No form data, showing main menu...
D [08/Apr/2013:22:50:10 +0400] [CGI] /usr/share/cups/drivers/pscript5.dll: а?аЕб? б?аАаКаОаГаО б?аАаЙаЛаА аИаЛаИ аКаАб?аАаЛаОаГаА
D [08/Apr/2013:22:50:10 +0400] cupsdReadClient: 16 POST / HTTP/1.1
D [08/Apr/2013:22:50:10 +0400] cupsdAuthorize: No authentication data provided.
D [08/Apr/2013:22:50:10 +0400] cupsdReadClient: 16 1.1 Get-Subscriptions 1
D [08/Apr/2013:22:50:10 +0400] Get-Subscriptions ipp://localhost/
D [08/Apr/2013:22:50:10 +0400] Returning IPP successful-ok for Get-Subscriptions (ipp://localhost/) from localhost
D [08/Apr/2013:22:50:10 +0400] Script header: Content-Type: text/html;charset=utf-8
D [08/Apr/2013:22:50:10 +0400] Script header:
D [08/Apr/2013:22:50:10 +0400] cupsdReadClient: 16 WAITING Closing on EOF
D [08/Apr/2013:22:50:10 +0400] cupsdCloseClient: 16
D [08/Apr/2013:22:50:10 +0400] cupsdSetBusyState: Printing jobs and dirty files
D [08/Apr/2013:22:50:10 +0400] PID 22831 (/usr/lib/cups/cgi-bin/admin.cgi) exited with no errors.
D [08/Apr/2013:22:50:12 +0400] cupsdReadClient: 11 GET /admin/log/error_log HTTP/1.1
D [08/Apr/2013:22:50:12 +0400] cupsdSetBusyState: Active clients, printing jobs, and dirty files
D [08/Apr/2013:22:50:12 +0400] cupsdAuthorize: No authentication data provided.
Спасибо сказали:

dimbor
Ведущий рубрики
Сообщения: 1506
Статус: Подвинутый участник

Re: Can't launch CUPS server

Сообщение dimbor »

Оно чуть раньше:
D [08/Apr/2013:22:49:59 +0400] [Job 5541] Error: This module is designed to work with HP Printers only
D [08/Apr/2013:22:49:59 +0400] [Job 5541] STATE: +hplip.plugin-error


Так это проприетарь hplip скрывается под именем hpcups? Здесь ничего не посоветую, присоединюсь к предыдущим ораторам.
Сам юзаю foo2zjs и ко.
Спасибо сказали:

ExGxOxR
Сообщения: 6

Re: Can't launch CUPS server

Сообщение ExGxOxR »

От любимого друг Google: https://bugzilla.redhat.com/show_bug.cgi?id=611255
Вообще-то плагин ставил... :huh:
Спасибо сказали:

alexxnight
Сообщения: 12
ОС: ubuntu server x64 + xfce4

Re: Can't launch CUPS server

Сообщение alexxnight »

Добрый день, уважаемые коллеги.
Столкнулся с такой же проблемой: При подключении к терминальному серверу пишет "Can't launch CUPS server".

Терминальный сервер: ubuntu server 12.04 x64 + xfce4 + freenx (установка из репозитория ppa:freenx-team)
Клиент: ubuntu server 12.04 x64 + xfce4 + NoMachine nxfree client

Что делал:
1. На клиенте подменил nxnode, как было сказано тут
Сообщение в начале подключения "Can't launch CUPS server" перестало появляться, но принтер не цеплялся на сервере. И после всех этапов соединения с сервером, непосредственно перед появлением экрана сообщение "Не удалось подключить принтер...."
2. На сервере подменил nxnode с гита.
Сеанс перестал запускаться: черный экран, обрыв связи.

Что еще можно сделать, чтобы принтеры подключались и сеанс работал? Готов тестить, поднять сервер, мучать его.
Спасибо.
Спасибо сказали:

dimbor
Ведущий рубрики
Сообщения: 1506
Статус: Подвинутый участник

Re: Can't launch CUPS server

Сообщение dimbor »

alexxnight писал(а):
20.05.2013 20:27
Клиент: ... NoMachine nxfree client
...
1. На клиенте подменил nxnode, как было сказано тут
Сообщение в начале подключения "Can't launch CUPS server" перестало появляться, но принтер не цеплялся на сервере. И после всех этапов соединения с сервером, непосредственно перед появлением экрана сообщение "Не удалось подключить принтер...."

Какой-какой клиент? Может имеется в виду NX Client for Linux от NoMachine?
И еще наверное меняли nxprint, а не nxnode? Ну скажите - волнуюсь. А мой психоаналитик в отпуск уехал, как назло.


alexxnight писал(а):
20.05.2013 20:27
Терминальный сервер: ... freenx (установка из репозитория ppa:freenx-team)
...
2. На сервере подменил nxnode с гита.
Сеанс перестал запускаться: черный экран, обрыв связи.

Что лежит в сем репозитории (ppa), мне неизвестно. Но тут был дан рецепт на все случаи. А именно: diff -u nxnode.old nxnode и возвращение взад правильных для бубнту путей.
Если не получается, то киньте вывод сюда - будем думать вместе.

alexxnight писал(а):
20.05.2013 20:27
Готов тестить, поднять сервер, мучать его.

Как садист - садисту: со всем нашим Вам и пр. Завсегда готов помочь, короче.
Спасибо сказали:

alexxnight
Сообщения: 12
ОС: ubuntu server x64 + xfce4

Re: Can't launch CUPS server

Сообщение alexxnight »

1. Да клиент для линукс от NoMachine v.3.5.0-7 x86_64 deb packet
2. Менял nxprint (опечатался)

Не могли бы Вы написать что-то типа инструкции как обновить с гита?
Я потом сделаю полную инструкции по установке и настройке freenx.
Спасибо сказали:

dimbor
Ведущий рубрики
Сообщения: 1506
Статус: Подвинутый участник

Re: Can't launch CUPS server

Сообщение dimbor »

alexxnight писал(а):
21.05.2013 20:50
Не могли бы Вы написать что-то типа инструкции как обновить с гита?

Ну уж нет. Потом же еще придется писать инструкцию по использованию этой инструкции. Не пейсатель.
Тем более написано достаточно. Даже два раза. И начинают терзать смутные подозрения о неизвестности Вам утилиты diff.
Спасибо сказали:

alexxnight
Сообщения: 12
ОС: ubuntu server x64 + xfce4

Re: Can't launch CUPS server

Сообщение alexxnight »

(все делается на сервере)
Сравнил файлы, нашел сл. путь:
NXREDIR_LIBRARY="$PATH_LIB/freenx-server/libnxredir.so.0"
Если я правильно понимаю, то в $PATH_LIB часть пути /usr/ib ага?
библиотеки libnxredir.so.0 на сервере не нашел, взял от сюда, скомпилировал, положил в /usr/lib/freenx-server/

в /etc/nxserver/node.conf добавил в конце строку ENABLE_CUPS_SERVER_MODE=1. там переменную определять?

И это не привело к желаемому результату: соединение проходит, пишет сообщение "The followin share resources could not be mounted:..." далее черный экран и сброс сессии.

Где еще покопать?
Спасибо сказали:

dimbor
Ведущий рубрики
Сообщения: 1506
Статус: Подвинутый участник

Re: Can't launch CUPS server

Сообщение dimbor »

alexxnight писал(а):
27.05.2013 22:51
Сравнил файлы, нашел сл. путь:
NXREDIR_LIBRARY="$PATH_LIB/freenx-server/libnxredir.so.0"
Если я правильно понимаю, то в $PATH_LIB часть пути /usr/ib ага?
библиотеки libnxredir.so.0 на сервере не нашел, взял от сюда, скомпилировал, положил в /usr/lib/freenx-server/

libnxredir нужна на стадии печати документа на win-клиенте через cifs. Явно не Ваш случай. У Вас наличествует облом на стадии подключения. О причинах падения сессии при этом должен рассказать тот самый вывод diff, который утаивается. Плюс включенные логи.
Да и непонятно мне, какую из множества модификаций freenx пытаетесь проапгрейдить. Там еще и конфигов может добавиться, и файлов новых. В RX хотя бы оно все есть уже, хоть и не всегда рабочее. А что лежит на ppa, тайна великая.

Меж тем имеется и мой косяк - отдельно для ipp в ENABLE_CUPS_SERVER_MODE отдельно никакой докции не писано. Оно (ipp) было потом добавлено к уже имеющемуся cifs. Т.е. вот это словоблудие продолжает оставаться актуальным. Пропуская начальные абзацы про cifs/smb.

Вижу несколько вариантов дальнейших действий. В первом Вы сами смотрите, чего не хватает ppa-шному фриэныксу для ENABLE_CUPS_SERVER_MODE, пользуясь описанным алгоритмом его работы. Во втором - ставите все с моего гита и разбираетесь уже с запуском под убнту (пути). В третьем - даете мне личкой ночной ssh рута и терминального юзера на сервере. И я все настраиваю, потом описываю тут. Единственно, что сроки могут сместиться на сутки-двое, если мне какой нежданчик привалит внезапно.
Спасибо сказали:

alexxnight
Сообщения: 12
ОС: ubuntu server x64 + xfce4

Re: Can't launch CUPS server

Сообщение alexxnight »

Давайте попробуем разобраться и с тем и с другим:
Подскажите пожалуйста как и где взять с Вашего гита install freenx? Поставляю на отдельный сервер.

и вот это diff между Вашим nxnode и взятым из ppa

Код: Выделить всё

--- 00    2013-05-28 00:19:03.650297234 +0600
+++ 01    2013-05-28 00:19:08.602315857 +0600
@@ -11,7 +11,7 @@
 [ -n "$2" ] && DELIM="NX-$2>"
 echo "$DELIM 1000 NXNODE - Version $NX_VERSION $NX_LICENSE"
 if [ "$1" != "--check" -a "$1" != "--setkey" -a "$1" != "--agent" -a "$1" != "--slave" ]
-then
+then
 read CMDLINE
 CMDLINE="a=b&$CMDLINE"
 fi
@@ -27,11 +27,9 @@
 }
 getparam()
 {
-python -c "
-import sys; from urlparse import parse_qs;
-v=parse_qs(sys.argv[2]).get(sys.argv[1],[None])[0];
-if (v==None): sys.exit(1);
-print v;" "$1" "${CMDLINE}"
+stringinstring "&$1=" "$CMDLINE" || return 1
+echo "$CMDLINE" |  tr "&" "\n" | egrep "^"$1"=" | awk -F= '{ VAL=$2 } END { print VAL }' | sed 's|%24|$|'
+return 0
 }
 find_app()
 {
@@ -63,7 +61,7 @@
 mkdir -p "$USER_FAKE_HOME/.nx"
 if [ -n "$sessionid" ] ; then
 sessionid="$(echo "$sessionid" |  awk 'BEGIN {FS="-"} {i=NF; print $i}')"
-if [ -n "$password" ] ; then
+if [ -n "$password" ] ; then
 echo "$(date "+%d.%m %X"): $@" | $COMMAND_PERL -pi -e 's/--cookie=".+?"/--cookie="******"/g;  s/agent_password=.+?&/agent_password=******&/g; s/'$password'/****/g' >> "$USER_FAKE_HOME/.nx/nxnode-$sessionid.log"
 else
 echo "$(date "+%d.%m %X"): $@" | $COMMAND_PERL -pi -e 's/--cookie=".+?"/--cookie="******"/g;  s/agent_password=.+?&/agent_password=******&/g; s/password=.+?&/password=******&/g;' >> "$USER_FAKE_HOME/.nx/nxnode-$sessionid.log"
@@ -97,19 +95,30 @@
 done
 echo $res
 }
+get_mport2sessdir()
+{
+type=$2
+smbport="$(cat $1/scripts/mport 2>/dev/null)" # check smb mount port
+cport="$(cat $1/session 2>/dev/null | grep "Listening to CUPS" | tail -n1 | cut -d\' -f2)"
+mport=""
+if [ "$type" != "smb" -a -n "$cport" ]; then mport=$cport; type="ipp";
+elif [ "$type" != "ipp" -a  -n "$smbport" ]; then mport=$smbport; type="smb";
+fi
+nxlog "$FUNCNAME ($$): sessdir \"$1\"; mport == $mport \"$type\"" &
+echo $mport
+}
 get_sessdir4res()
 {
 nxlog "$FUNCNAME ($$): starting with args \"$@\"; sess_id == \"$sess_id\"" &
-[ "$1" -gt 0 2>/dev/null ] && digarg=1 || digarg=0
-AGENT_PIDS="$(ps -wo pid=,cmd= -C "nxagent" | cut -d' ' -f1)"
-for sessdir in $USER_FAKE_HOME/.nx/C-*
-do
-[ "$sessdir" == "$USER_FAKE_HOME/.nx/C-$sess_id" ] && continue
+[ "$1" -gt 0 2>/dev/null ] && digarg=1 || digarg=0
+AGENT_PIDS="$(ps -wo pid=,cmd= -C "nxagent" | awk '{print($1)}')"
+for sessdir in $USER_FAKE_HOME/.nx/C-* ; do
+[ -z "$2" -a "$sessdir" == "$USER_FAKE_HOME/.nx/C-$sess_id" ] && continue
 NODE_AGENT_PID=$(cat "$sessdir/pids/agent" 2>/dev/null)
 [ -z "$NODE_AGENT_PID" ] && continue
 [ -z "$(echo "$AGENT_PIDS" | grep $NODE_AGENT_PID)" ] && continue
 if [ "$digarg" = "1" ] ; then
-curport="$(cat $sessdir/scripts/mport 2>/dev/null)"
+curport=$(get_mport2sessdir "$sessdir")
 [ "$curport" = "$1" ] && { nxlog "$FUNCNAME ($$): found sessdir $sessdir for mport = $1" &
 echo "$sessdir"; return; }
 else
@@ -122,21 +131,31 @@
 check_remote_printer()
 {
 nxlog "$FUNCNAME ($$): starting with args \"$@\"" &
-PATH_LIB="/usr/lib/freenx-server" # this is correct on all systems?
-NXREDIR_LIBRARY="$PATH_LIB/libnxredir.so.0"
-[ -n "$4" ] && upass="$3%$4" || upass="$3 -N"
+if [ "$1" = "ipp" ]; then # checking ipp printer port only
+res=0
+for (( i=10; $i; --i )) ; do
+nxlog "$FUNCNAME ($$): wait for ipp-port 127.0.0.1:$3 - $((10-i))"
+$COMMAND_NETCAT -nvw 1 127.0.0.1 $3 2> /dev/null > /dev/null
+[ $? -eq 0 ] && { res=1; break; }
+sleep 1
+done
+nxlog "$FUNCNAME ($$): end with res = $res" &
+echo $res; return 0;
+fi
+NXREDIR_LIBRARY="$PATH_LIB/freenx-server/libnxredir.so.0"
+[ -n "$5" ] && upass="$4%$5" || upass="$4 -N"
 [ "$SAMBA_MOUNT_SHARE_PROTOCOL" = "cifs" ] && dport=445 || dport=139
-CMDSTR="/usr/bin/rpcclient -U $upass -c 'openprinter $1' -p $dport -I 127.0.0.1 127.0.0.1"
+CMDSTR="/usr/bin/rpcclient -U $upass -c 'openprinter $2' -p $dport -I 127.0.0.1 127.0.0.1 2>&1"
 nxlog "$FUNCNAME ($$): invoke command \"$CMDSTR\"" &
 res=""; numa="0"; ret="0"
 while [ "$ret" = "0" ] ; do
 (( numa++ ))
-res="$(NXSAMBA_PORT=$2 LD_PRELOAD=$NXREDIR_LIBRARY eval $CMDSTR)"
+res="$(NXSAMBA_PORT=$3 LD_PRELOAD=$NXREDIR_LIBRARY eval $CMDSTR)"
 nxlog "$FUNCNAME ($$): on attempt $numa says \"$res\"" &
 [ -n "$(echo "$res" | grep successfully)" ] && { ret="1"; continue; }
 [ "$numa" -gt 4 ] && ret="1" && res="timeout"
 done
-[ -n "$(echo $res | grep successfully)" ] && res=0 || res=1
+[ -n "$(echo $res | grep successfully)" ] && res=1 || res=0
 nxlog "$FUNCNAME ($$): end with res = $res" &
 echo $res
 }
@@ -146,7 +165,7 @@
 NODE_AGENT_PID=$(cat "$USER_FAKE_HOME/.nx/C-$1/pids/agent" 2>/dev/null)
 [ -n "$NODE_AGENT_PID" ] && { nxlog "$FUNCNAME ($$): killing NODE_AGENT_PID" &
 kill $NODE_AGENT_PID 2>/dev/null; }
-if [ -z $(ps x| grep "nxagent" | cut -d" " -f1 | grep $NODE_AGENT_PID) ] ; then
+if [ -z $(ps x| grep "nxagent" | awk '{print($1)}' | grep $NODE_AGENT_PID) ] ; then #'
 nxlog "$FUNCNAME ($$): process list for 'nxagent' empty" &
 else
 nxlog "$FUNCNAME ($$): killing NODE_AGENT_PID. Try #2" &
@@ -285,6 +304,31 @@
 echo "$NODE_STARTX"
 nxlog "$FUNCNAME ($$): end" &
 }
+get_pa_sound_mode() {
+[ -z "$2" ] && {
+nxlog "$FUNCNAME ($$): Client's IP-address is not defined." &
+echo ""; return 1;
+}
+[ -z "$($COMMAND_NETCAT -nvz -w 1 $2 $1 2>&1 | grep "open")" ] && {
+nxlog "$FUNCNAME ($$): Client's pulseaudio at $2:$1 is not reachable." &
+echo ""; return 1;
+}
+pactl_bin="$(find_app "pactl")"
+[ -z "$pactl_bin" ] && {
+nxlog "$FUNCNAME ($$): pactl tool not found. Pulseaudio may be not installed." &
+echo ""; return 1;
+}
+pactl_bin="$pactl_bin -s $2:$1"
+nxlog "$FUNCNAME ($$): $pactl_bin list short"
+cl_pa_mods="$($pactl_bin list short)"
+[ -n "$(echo "$cl_pa_mods" | grep "ts_receiver")" -a \
+-n "$(echo "$cl_pa_mods" | grep "ts_sender")" ] && {
+nxlog "$FUNCNAME ($$): Specials sink and source at $2:$1 are found."
+echo "special"; return 0;
+}
+nxlog "$FUNCNAME ($$): Defaults sink and source at $2:$1 be used."
+echo "default"; return 0;
+}
 node_start_applications()
 {
 nxlog "$FUNCNAME ($$): starting" &
@@ -304,12 +348,14 @@
 fi
 nxlog "$FUNCNAME ($$): DISPLAY is $display" &
 cntr=$AGENT_STARTUP_TIMEOUT
-while [ -z "$(xdpyinfo  2> /dev/null | head)" ]; do
-let "cntr -= 2"
-[ $cntr -lt 0 ] && return
-sleep 2
-echo "sleep while get a valid DISPLAY"
+[ -n "$(which xdpyinfo 2>/dev/null)" ] && {
+while [ -z "$(xdpyinfo  2>/dev/null | head)" ]; do
+let "cntr -= 1"
+[ $cntr -lt 0 ] && break
+sleep 1
+nxlog "$FUNCNAME ($$): Sleep while get a valid DISPLAY ($cntr)"
 done
+} || nxlog "$FUNCNAME ($$): xdpyinfo not found. Waiting for DISPLAY is not possible!"
 if [ "$NUMLOCKX_STATUS" != "system" ] ; then
 nxlog "$FUNCNAME ($$): Run \"$NUMLOCKX $NUMLOCKX_STATUS\"" &
 "$NUMLOCKX" "$NUMLOCKX_STATUS"
@@ -323,7 +369,21 @@
 nxlog "$FUNCNAME ($$): NODE_APPLICATION is empty" &
 return
 fi
-if [ "$mediahelper" = "esd" ]
+if [ "$ENABLE_DIRECT_NATIVE_PA_CHECK" = "1" ] ; then
+native_sound_mode="$(get_pa_sound_mode 4713 $NXUSERIP)"
+if [ -n "$native_sound_mode" ] ; then
+nxlog "$FUNCNAME ($$): Sound mode set to $native_sound_mode"
+export PULSE_SERVER="$NXUSERIP:4713"
+if [ "$native_sound_mode" = "special" ] ; then
+export PULSE_SINK="ts_receiver"
+export PULSE_SOURCE="ts_sender.monitor"
+fi
+PADSP_BIN_PRELOAD="$(find_app "padsp")"
+[ -n "$PADSP_BIN_PRELOAD" ] && {
+NODE_APPLICATION="$PADSP_BIN_PRELOAD $NODE_APPLICATION"
+} || nxlog "$FUNCNAME ($$): padsp script not found. Sound may be disabled." &
+fi
+elif [ "$mediahelper" = "esd" ]
 then
 let ESPEAKER=$display+7000
 export ESPEAKER="127.0.0.1:$ESPEAKER"
@@ -346,15 +406,16 @@
 echo "Info: NXNODE - Using $ARTSD_BIN_PRELOAD wrapper script." >> "$USER_FAKE_HOME/.nx/C-$sess_id/session"
 fi
 fi
-CUPS_SERVER_SOCKET="$USER_FAKE_HOME/.nx/C-$sess_id/cups/cups.sock"
-if [ "$cups" = "1" -a "$ENABLE_CUPS_SERVER_EXPORT" = "1" ] ; then
-nxlog "$FUNCNAME ($$): export CUPS_SERVER=$CUPS_SERVER_SOCKET" &
-export CUPS_SERVER="$CUPS_SERVER_SOCKET"
-fi
-if [ "$samba" = "1" -a "$ENABLE_CUPS_SERVER_EXPORT" = "1" -a  -d "$USER_FAKE_HOME/.nx/C-$sess_id/cups" ] ; then
+[ "$ENABLE_CUPS_SERVER_MODE" = "1" ] && {
+CUPS_SERVER_SOCKET="$(LC_ALL=C /usr/bin/lpstat -H 2>/dev/null)"
+[ -r $CUPS_SERVER_SOCKET ] || CUPS_SERVER_SOCKET=""
+} || CUPS_SERVER_SOCKET="$USER_FAKE_HOME/.nx/C-$sess_id/cups/cups.sock"
+[ "$ENABLE_CUPS_SERVER_EXPORT" = "1" -a -n "$CUPS_SERVER_SOCKET" ] && {
+[ "$cups" = "1" -o "$samba" = "1" ] && {
 nxlog "$FUNCNAME ($$): export CUPS_SERVER=$CUPS_SERVER_SOCKET" &
 export CUPS_SERVER="$CUPS_SERVER_SOCKET"
-fi
+}
+}
 if [ "$ENABLE_SAMBA_PRELOAD" = "1" -a -x "$PATH_BIN/nxredir" ]
 then
 let NXSAMBA_PORT=$display+3000
@@ -395,13 +456,7 @@
 ;;
 esac
 nxlog "$FUNCNAME ($$): Starting NODE_APPLICATION with /etc/nxserver/Xsession" &
-if [ -x "/etc/nxserver/Xsession" ]
-then
-nxlog "$FUNCNAME: Starting NODE_APPLICATION with /etc/nxserver/Xsession"
-NODE_APPLICATION="/etc/nxserver/Xsession $NODE_APPLICATION"
-fi
-
-DISPLAY=:$display $NODE_APPLICATION >>"$USER_FAKE_HOME/.nx/C-$sess_id/session" 2>&1 &
+DISPLAY=:$display /etc/nxserver/Xsession $NODE_APPLICATION >>"$USER_FAKE_HOME/.nx/C-$sess_id/session" 2>&1 &
 NODE_APP_PID=$!
 nxlog "$FUNCNAME ($$): Start successful. NODE_APP_PID=$NODE_APP_PID" &

@@ -508,7 +563,7 @@
 [ -n "$agent_password" ] && P="-p -"
 [ -n "$agent_domain" ] && D="-d $agent_domain"

-echo "$agent_password" | $PATH_BIN/nxdesktop -name "NX - $user@$SERVER_NAME:$display - $session (GPL Edition)" -options "$USER_FAKE_HOME/.nx/C-$sess_id/options" $K $G $U $P $D $agent_server $AGENT_EXTRA_OPTIONS_RDP 2>&3 &
+echo "$agent_password" | $PATH_BIN/nxdesktop -name "NX - $user@$SERVER_NAME:$display - $session (GPL Edition)" -option "$USER_FAKE_HOME/.nx/C-$sess_id/options" $K $G $U $P $D $agent_server $AGENT_EXTRA_OPTIONS_RDP 2>&3 &
 elif [ "$type" = "vnc" ]
 then
 nxlog "$FUNCNAME ($$): Type \"vnc\"" &
@@ -533,7 +588,7 @@
 fi


-$PATH_BIN/nxviewer -encodings tight hextile copyrect raw -passwd "$USER_FAKE_HOME/.nx/C-$sess_id/scripts/.passwd" -name "NX - $user@$SERVER_NAME:$display - $session (GPL Edition)" -options "$USER_FAKE_HOME/.nx/C-$sess_id/options" $vncfullscreen $G $K $agent_server $AGENT_EXTRA_OPTIONS_RFB 2>&3 &
+$PATH_BIN/nxviewer -encodings tight hextile copyrect raw -passwd "$USER_FAKE_HOME/.nx/C-$sess_id/scripts/.passwd" -name "NX - $user@$SERVER_NAME:$display - $session (GPL Edition)" -option "$USER_FAKE_HOME/.nx/C-$sess_id/options" $vncfullscreen $G $K $agent_server $AGENT_EXTRA_OPTIONS_RFB 2>&3 &
 elif [ "$R" = "-R" -a "$rootless" != "1" ]
 then
 nxlog "$FUNCNAME ($$): Start nxproxy for single application session mode" &
@@ -559,8 +614,8 @@
 nxlog "$FUNCNAME ($$): env start `env`" &
 nxlog "$FUNCNAME ($$): env end" &

-nxlog "$FUNCNAME ($$): Start nxagent by command: '$COMMAND_NXAGENT $P $R -name \"NX - $user@$SERVER_NAME:$display - $session (GPL Edition)\" -options \"$USER_FAKE_HOME/.nx/C-$sess_id/options\" $B $FP $AGENT_EXTRA_OPTIONS_X :$display'" &
-PATH="$PATH_BIN:$PATH" $COMMAND_NXAGENT $P $R -name "NX - $user@$SERVER_NAME:$display - $session (GPL Edition)" -options "$USER_FAKE_HOME/.nx/C-$sess_id/options" $B $FP $AGENT_EXTRA_OPTIONS_X :$display 2>&3 &
+nxlog "$FUNCNAME ($$): Start nxagent by command: '$COMMAND_NXAGENT $P $R -name \"NX - $user@$SERVER_NAME:$display - $session (GPL Edition)\" -option \"$USER_FAKE_HOME/.nx/C-$sess_id/options\" $B $FP $AGENT_EXTRA_OPTIONS_X :$display'" &
+PATH="$PATH_BIN:$PATH" $COMMAND_NXAGENT $P $R -name "NX - $user@$SERVER_NAME:$display - $session (GPL Edition)" -option "$USER_FAKE_HOME/.nx/C-$sess_id/options" $B $FP $AGENT_EXTRA_OPTIONS_X :$display 2>&3 &
 fi


@@ -597,32 +652,37 @@
 }
 try_remount_printers()
 {
-scr_dir="$USER_FAKE_HOME/.nx/C-$sess_id/scripts"
-[ ! -d "$scr_dir" ] && { nxlog "$FUNCNAME ($$): Session dir NOT FOUND! Calling twice? Why?" &
+sessdir="$USER_FAKE_HOME/.nx/C-$sess_id"
+scr_dir="$sessdir/scripts"
+[ ! -d "$sessdir" ] && { nxlog "$FUNCNAME ($$): Session dir NOT FOUND! Calling twice? Why?" &
 return 1; }
 nxlog "$FUNCNAME ($$): starting." &
-mport="$(cat "$scr_dir/mport" 2>/dev/null)"
 for spname in $scr_dir/@p@* ; do
 PNAME="$(echo "$spname" | awk 'BEGIN {FS="@p@"} {i=2; print $i}')"
 [ "$spname" = "*" ] && { nxlog "$FUNCNAME ($$): No printers, stop." &
 return 1; }
-nxlog "$FUNCNAME ($$): process printer \"$PNAME\", search in system cups on port = $mport." &
-[ -z "$(lpstat -v | grep "$PNAME" | grep ":$mport")" ] && { nxlog "$FUNCNAME ($$): printer \"$PNAME\" NOT FOUND in system cups on port = $mport." &
+nxlog "$FUNCNAME ($$): process printer \"$PNAME\", search in system cups." &
+prstr="$(LC_ALL=C /usr/bin/lpstat -v 2>/dev/null| grep "$PNAME")"
+[ -z "$prstr" ] && { nxlog "$FUNCNAME ($$): printer \"$PNAME\" NOT FOUND in system cups" &
+continue; }
+[ -n "$(echo "$prstr" | grep "ipp://")" ] && type="ipp" || type="smb"
+mport=$(get_mport2sessdir "$sessdir" "$type")
+[ -z "$(echo "$prstr" | grep ":$mport")" ] && { nxlog "$FUNCNAME ($$): printer \"$PNAME\" has mport rather than $mport, skiping." &
 continue; }
 nxlog "$FUNCNAME ($$): printer \"$PNAME\" (port:$mport) found - deleting" &
 /usr/bin/sudo /usr/sbin/lpadmin -x "$PNAME"
 new_dir="$(get_sessdir4res "@p@$PNAME")"
 [ -z "$new_dir" ] && { nxlog "$FUNCNAME ($$): no running sessions found for printer \"$PNAME\", stop remounting" &
 continue; }
-new_port="$(cat "$new_dir/scripts/mport" 2>/dev/null)"
+new_port="$(get_mport2sessdir "$new_dir" "$type")"
 desc_fn="$USER_FAKE_HOME/.nx/shares_priv/@p@$PNAME"
-[ ! -r "$desc_fn" ] && { nxlog "$FUNCNAME ($$): description file \"$desc_fn\" for printer \"$PNAME\" NOT ACCESSIBLE, stop remounting" &
+[ -r "$desc_fn" ] || { nxlog "$FUNCNAME ($$): description file \"$desc_fn\" for printer \"$PNAME\" NOT ACCESSIBLE, stop remounting" &
 continue; }
-descstr="$(cat "$desc_fn")"
+descstr="$(cat "$desc_fn" 2>/dev/null)"
 DEVICE_URI="$(echo "$descstr" | cut -d\& -f2 | sed 's/:'$mport'/:'$new_port'/')"
 share="$(echo "$DEVICE_URI" |  awk 'BEGIN {FS="/"} {i=NF; print $i}')"
 upass="$(echo "$DEVICE_URI" | cut -d\/ -f3 | cut -d@ -f1)" && username="$(echo "$upass"| cut -d: -f1)" && password="$(echo "$upass"| cut -d: -f2)"
-[ "$(check_remote_printer $share $new_port $username $password)" != "0" ] && { nxlog "$FUNCNAME ($$): smb/cifs-share \"$share\" for printer \"$PNAME\" NOT ACCESSIBLE, stop remounting" &
+[ "$(check_remote_printer $type $share $new_port $username $password)" = "0" ] && { nxlog "$FUNCNAME ($$): smb/cifs-share \"$share\" for printer \"$PNAME\" NOT ACCESSIBLE, stop remounting" &
 continue; }
 MODEL="$(echo "$descstr" | cut -d\& -f1)"
 defaultPrinter="$(echo "$descstr" | cut -d\& -f4)"
@@ -631,12 +691,16 @@
 else # foomatic
 ID="$MODEL"
 DRV="$(echo "$descstr" | cut -d\& -f5)"
-CMDSTR="/usr/bin/sudo /usr/bin/foomatic-configure -s cups -n $PNAME -p $ID -d $DRV -c $DEVICE_URI -q 1>/dev/null 2>&1"
+CMDSTR="/usr/bin/sudo /usr/bin/foomatic-configure -s cups -n $PNAME -p $ID -d $DRV -c $DEVICE_URI -q"
 fi
 nxlog "$FUNCNAME ($$): invoke $CMDSTR" &
 $CMDSTR
 if [ $? -eq 0 ] ; then
 nxlog "$FUNCNAME ($$): printer \"$PNAME\" installed" &
+[ "$type" = "ipp" ] && {
+descstr="$(echo "$descstr" | sed 's/:'$mport'/:'$new_port'/')"
+echo "$descstr" > "$desc_fn"
+}
 PUBLIC="$(echo "$descstr" | cut -d\& -f3)"
 [ -n "$PUBLIC" ] && { /usr/bin/sudo /usr/sbin/lpadmin -p $PNAME $PUBLIC;
 [ $? -ne 0 ] && nxlog "$FUNCNAME ($$): FAILED to set options \"$PUBLIC\" for printer \"$PNAME\"" &
@@ -741,11 +805,6 @@
 EOF
 touch "$USER_FAKE_HOME/.nx/C-$sess_id/cups/printers.conf" "$USER_FAKE_HOME/.nx/C-$sess_id/cups/classes.conf"
 cp -af "$CUPS_ETC"/mime.* "$CUPS_ETC"/pstoraster.convs "$USER_FAKE_HOME/.nx/C-$sess_id/cups/"
-if [ -e "/etc/apparmor.d/usr.sbin.cupsd" ]
-then
-cp /usr/sbin/cupsd "$USER_FAKE_HOME/.nx/C-$sess_id/cups/"
-COMMAND_CUPSD="$USER_FAKE_HOME/.nx/C-$sess_id/cups/cupsd"
-fi
 $COMMAND_CUPSD -F -c "$USER_FAKE_HOME/.nx/C-$sess_id/cups/cupsd.conf" &>/dev/null </dev/null &
 NODE_CUPSD_PID=$!
 echo $NODE_CUPSD_PID >"$USER_FAKE_HOME/.nx/C-$sess_id/pids/cupsd"
@@ -805,19 +864,19 @@
 ret=1; logstr0="$FUNCNAME ($$):"
 ostr="$(stat -c %a "$COMMAND_SMBMOUNT" 2>&1)"; RC=$?
 [ $RC -ne 0 ] && { nxlog "$logstr0 $ostr" &
-ret=0; }
-[ $ret -ne 0 -a "$ostr" -ne 4711 ] && { ret=0
+ret="0"; }
+[ "$ret" != "0" -a "$ostr" != "4711" ] && { ret="0"
 nxlog "$logstr0 Permissions of  $COMMAND_SMBMOUNT ($ostr) != 4711. mounting in user-mode is disabled." &
 }
-[ $ret -ne 0 -a $RC -eq 0 ] && {
+[ "$ret" != "0" -a $RC -eq 0 ] && {
 ostr="$($COMMAND_SMBMOUNT 2>&1)"
 [ -n "$(echo "$ostr" | grep "setuid root program disabled")" ] && { nxlog "$logstr0 $ostr" &
-ret=0; }
+ret="0"; }
 }
 ostr="$(stat -c %a "$COMMAND_SMBUMOUNT" 2>&1)"; RC2=$?
 [ $RC2 -ne 0 ] && { nxlog "$logstr0 $ostr" &
-ret=0; RC=$RC2; }
-[ $ret -ne 0 -a "$ostr" -ne 4711 ] && { ret=0
+ret="0"; RC=$RC2; }
+[ "$ret" != "0" -a "$ostr" != "4711" ] && { ret=0
 nxlog "$logstr0 Permissions of  $COMMAND_SMBUMOUNT ($ostr) != 4711. umounting in user-mode is disabled." &
 }
 echo $ret; return $RC
@@ -923,7 +982,7 @@
 }
 new_dir="$(get_sessdir4res "@s@$SNAME")"
 [ -z "$new_dir" ] && { nxlog "$FUNCNAME ($$): no running sessions found for share \"$SNAME\", stop remounting" &
-rmdir "$mpoint" >/dev/null 2>/dev/null;    continue; }
+rmdir "$mpoint" >/dev/null 2>/dev/null; continue; }
 new_port="$(cat "$new_dir/scripts/mport" 2>/dev/null)"
 fsname="$(echo "$descstr" | cut -d\& -f1)"
 username="$(echo "$descstr" | cut -d\& -f3)"
@@ -942,7 +1001,6 @@
 nxlog "$FUNCNAME ($$): end" &
 return
 fi
-
 if [ -e "$USER_FAKE_HOME/.nx/C-$sess_id/scripts/mpoint" ] ; then
 nxlog "$FUNCNAME ($$): File scripts/mpoint present. Continue umounting..." &
 else
@@ -985,7 +1043,7 @@
 nxlog "$FUNCNAME ($$): starting" &
 NODE_TAIL_PID=""
 NODE_SUSPEND_STATUS="$2"
-while read line
+while read line
 do

 if stringinstring "Info: tail -f running with pid" "$line"
@@ -1085,7 +1143,7 @@
 NODE_RUNNING=0
 NODE_TAIL_PID=""
 NODE_SUSPEND_STATUS="$2"
-while read line
+while read line
 do

 if stringinstring "Info: tail -f running with pid" "$line"
@@ -1469,7 +1527,7 @@
 {
 sessionid=$(getparam_sessionid)
 echo "$DELIM 716 Suspending session $sessionid on user request."
-display=$(cd $USER_FAKE_HOME/.nx/; echo C-$SERVER_NAME-*-$sessionid | awk 'BEGIN {FS="-"} {i=NF-1; print $i}')
+display=$(cd $USER_FAKE_HOME/.nx/; echo C-$SERVER_NAME-*-$sessionid | awk 'BEGIN {FS="-"} {i=NF-1; print $i}')
 node_suspend_session "$SERVER_NAME-$display-$sessionid"
 }
 cmd_node_smbmount()
@@ -1484,19 +1542,17 @@
 username=$(getparam username)
 password=$(getparam password)
 share=$(getparam share)
-computername=$(getparam computername)
+computername=127.0.0.1 # http://bugs.etersoft.ru/show_bug.cgi?id=8841
 dir=$(getparam dir | sed 's|$(SHARES)|MyShares|g')
 username=$(norm_param $username)
 password=$(norm_param $password)
 share=$(norm_param $share)
 dir=$(norm_param $dir)
-computername=$(norm_param $computername)
 [ -n "$(echo "$dir" | grep MyShares)" ] && dir="$HOME/$dir"
 EGROUP=$(id -gn "$USER"); RC=$?
 outstr="$(create_mountpoint "$dir" "$USER" "$EGROUP")"
 [ -n "$outstr" ] && nxlog "$FUNCNAME ($$): create_mountpoint says: \"$outstr\"" &
 [ $RC -ne 0 ] && { nxlog "$FUNCNAME ($$): Stop mounting." &
-$PATH_BIN/nxdialog -dialog ok -caption "NXServer Message" -message "Info: Share: '//$computername/$share' failed to mount." -display :$display &
 return 1; }

 smbport=""; smbport=$(cat "$sess_dir/scripts/smbport" 2>/dev/null)
@@ -1506,7 +1562,6 @@
 TRY_USER=$(usermount_enable)
 TRY_SUDO=$(sudomount_enable)
 [ $TRY_USER -eq 0 -a $TRY_SUDO -eq 0 ] && { nxlog "$FUNCNAME ($$): Any methods of (u)mounting are not available. Stop mounting." &
-$PATH_BIN/nxdialog -dialog ok -caption "NXServer Message" -message "Info: Share: '//$computername/$share' failed to mount." -display :$display &
 return 1; }
 elif [ "x$smbport" = "x" ] ; then
 COMMAND_SMBMOUNT=/bin/true
@@ -1515,13 +1570,12 @@
 fi

 if [ -n "$(mount | grep "$dir")" ] ; then
-nxlog "$FUNCNAME ($$): share $(mount | grep "$dir" | cut -d" " -f1) already mounted on $dir" &
+nxlog "$FUNCNAME ($$): share $(mount | grep "$dir" | awk '{print($1)}') already mounted on $dir" &
 if [ "$ENABLE_SHARE_MULTIMOUNT" = "1" ] ; then
 if [ -z "$(get_sessdir4res "@s@$share")" ] ; then
 nxlog "$FUNCNAME ($$): Try to force umount dead mountpoint \"$dir\"" &
 try_umount_smb "$dir"; RC=$?
 [ $RC -ne 0 ] && { nxlog "$FUNCNAME ($$): Umounting FAILED! Stop mounting." &
-$PATH_BIN/nxdialog -dialog ok -caption "NXServer Message" -message "Info: Share: '//$computername/$share' failed to mount." -display :$display &
 return 1; }
 else
 touch "$sess_dir/scripts/@s@$share"; return;
@@ -1550,13 +1604,13 @@
 echo "//$computername/$share&$dir&$username&$password&$IDS_OPTS" > "$desc_dir/$SFN"
 else # not multimount case
 nxlog "$FUNCNAME ($$): share \"//$computername/$share\" mount on \"$dir\"" &
+$PATH_BIN/nxdialog -dialog ok -caption "NXServer Message" -message "Info: Share: '//$computername/$share' mounted on: '$dir'" -display :$display &
 fi
 echo "$dir" >> "$USER_FAKE_HOME/.nx/C-$SERVER_NAME-$display-$sessionid/scripts/mpoint"
-$PATH_BIN/nxdialog -dialog ok -caption "NXServer Message" -message "Info: Share: '//$computername/$share' mounted on: '$dir'" -display :$display &
 else
 nxlog "$FUNCNAME ($$): Share //$computername/$share mount FAILED." &
-$PATH_BIN/nxdialog -dialog ok -caption "NXServer Message" -message "Info: Share: '//$computername/$share' failed to mount." -display :$display &
 rmdir "$dir" >/dev/null 2>/dev/null #JJK: Remove mount point if empty
+[ "$ENABLE_SHARE_MULTIMOUNT" = "1" ] || $PATH_BIN/nxdialog -dialog ok -caption "NXServer Message" -message "Info: Share: '//$computername/$share' failed to mount." -display :$display &
 fi
 }
 cmd_node_addprinter()
@@ -1573,26 +1627,20 @@
 public=$(getparam public)
 model=$(getparam model)
 defaultPrinter=$(getparam defaultPrinter)
-display=$(cd $USER_FAKE_HOME/.nx/; echo C-$SERVER_NAME-*-$sessionid | awk 'BEGIN {FS="-"} {i=NF-1; print $i}')
+display=$(cd $USER_FAKE_HOME/.nx/; echo C-$SERVER_NAME-*-$sessionid | awk 'BEGIN {FS="-"} {i=NF-1; print $i}')
 sess_id="$SERVER_NAME-$display-$sessionid"
 username=$(norm_param $username)
 password=$(norm_param $password)
 share=$(norm_param $share)
 computername=$(norm_param $computername)
-
 export CUPS_SERVER=$(node_cupsd_get_socket)
-
 if [ "$type" = "smb" ]
 then
-if [ -x "$CUPS_BACKEND/nxsmb" ]
-then
+if [ -x "$CUPS_BACKEND/nxsmb" ] ; then
 smbport=$(cat "$USER_FAKE_HOME/.nx/C-$sess_id/scripts/smbport" 2>/dev/null)
 [ -z "$smbport" ] && smbport=139 # should not happen
-if [ "$smbport" = "445" ]
-then
-smbproto="cifs"
-else
-smbproto="smb"
+if [ "$smbport" = "445" ] ; then smbproto="cifs"
+else smbproto="smb"
 fi
 DEVICE_URI="nxsmb://$username:$password@127.0.0.1:$port/$smbproto/$share"
 else
@@ -1600,21 +1648,44 @@
 fi
 NAME="$share"
 ENABLE_CUPS_SEAMLESS="0"
+nxlog "$FUNCNAME ($$): set NAME = $NAME; smbport=$smbport; DEVICE_URI=$DEVICE_URI" &
 else
+printer=$(norm_param $printer)
 DEVICE_URI="ipp://$username:$password@127.0.0.1:$port/printers/$printer"
 NAME="$printer"
+nxlog "$FUNCNAME ($$): set NAME = $NAME; DEVICE_URI=$DEVICE_URI" &
 fi
-nxlog "$FUNCNAME ($$): set NAME = $NAME; smbport=$smbport; DEVICE_URI=$DEVICE_URI" &
-
-PUBLIC="-u allow:$USER,guest,root"
+PUBLIC="-u allow:$USER,guest,root"
 [ "$public" == "1" ] && PUBLIC=""
 export PATH_BIN
+USER_PPD_DIR="$USER_FAKE_HOME/.nx/config/ppd"
+mkdir -p "$USER_PPD_DIR"
 nxlog "$FUNCNAME ($$): run with ENABLE_CUPS_SERVER_MODE=$ENABLE_CUPS_SERVER_MODE" &
 if [ "$ENABLE_CUPS_SERVER_MODE" = "1" ] ; then
 MODEL="$NX_ETC_DIR/ppd/$NAME.ppd"
+[ -r "$MODEL" ] || { # check cached users driver
+MODEL="$USER_PPD_DIR/$NAME.ppd"
+[ -r "$MODEL" ] && [ -n "$(head -n1 "$MODEL" | grep "*PPD-Adobe")" ] || rm -f "$MODEL"
+}
+[ "$type" = "smb" ] || [ -r "$MODEL" ] || {
+[ "$(check_remote_printer "ipp" "fake_param" $port)" = "0" ] && {
+nxlog "$FUNCNAME ($$): Remote CUPS not found!" &
+return 1
+}
+errstr="$(curl --proxy "" --digest -o "$MODEL" "http://$username:$password@127.0.0.1:$port/ppd/${NAME}_nxdl.ppd" 2>&1)"
+cmdstr="curl --proxy \"\" --digest -o $MODEL http://$username:$password@127.0.0.1:$port/ppd/${NAME}_nxdl.ppd"
+[ -r "$MODEL" -a -n "$(head -n1 "$MODEL" 2>/dev/null | grep "*PPD-Adobe")" ] && {
+nxlog "$FUNCNAME ($$): $MODEL download SUCCESSFUL."
+} || {
+nxlog "$FUNCNAME ($$): $MODEL is NOT a PPD-file! Contents: \"$(cat $MODEL 2>/dev/null)\""
+nxlog "$FUNCNAME ($$): cmd: $cmdstr"
+nxlog "$FUNCNAME ($$): $errstr"
+rm -f "$MODEL"
+}
+}
 if [ -r "$MODEL" ] ; then
-PNAME="$computername""_""$NAME" # user's printer name
-nxlog "$FUNCNAME ($$): set PNAME = \"$PNAME\", try to install \"$NAME.ppd\"" &
+PNAME="$USER""_""$NAME" # user's printer name
+nxlog "$FUNCNAME ($$): set PNAME = \"$PNAME\", try to install \"$MODEL\"" &
 elif [ "$ENABLE_FOOMATIC" != "0" ] ; then  # calculated
 PRE="$(echo "$NAME" | grep "@")"
 HASDRV="$(echo "$NAME" | grep "__")"
@@ -1637,12 +1708,12 @@
 return 1; }
 fi
 if [ -z "$PRE" ] ; then
-PNAME="$computername""_""$(echo $ID | awk 'BEGIN {FS="_"} {i=NF; print $i}')$NN" # user's printer name
+PNAME="$USER""_""$(echo $ID | awk 'BEGIN {FS="_"} {i=NF; print $i}')$NN" # user's printer name
 else
-PNAME="$computername""_""$(echo $ID | cut -d"@" -f2 | awk 'BEGIN {FS="_"} {i=NF; print $i}')$NN" # user's printer name
+PNAME="$USER""_""$(echo $ID | cut -d"@" -f2 | awk 'BEGIN {FS="_"} {i=NF; print $i}')$NN" # user's printer name
 ID="HP-LaserJet_4M"
 DRV="Postscript-HP"
-fi
+fi
 nxlog "$FUNCNAME ($$): set PNAME = \"$PNAME\", try foomatic ID = \"$ID\"; DRV =\"$DRV\"" &
 else
 nxlog "$FUNCNAME ($$): Name of driver for \"$NAME\" not defined. STOP installing." &
@@ -1652,30 +1723,34 @@
 sess_dir="$USER_FAKE_HOME/.nx/C-$sess_id"
 desc_dir="$USER_FAKE_HOME/.nx/shares_priv" # directory with connection parameters to use sessions together
 [ -d "$desc_dir" ] || { mkdir "$desc_dir" && chmod 700 "$desc_dir"; }
+[ "$type" = "smb" ] && {
 for (( i=30; $i; --i )) ; do
+nxlog "$FUNCNAME ($$): wait for smb-port $((30-i))"
 [ -f "$sess_dir/scripts/mport" ] && break
 sleep 1
 done
-pstr="$(lpstat -v | grep "$PNAME")"
+} || share=$printer
+pstr="$(LC_ALL=C /usr/bin/lpstat -v 2>/dev/null| grep "$PNAME")"
 if [ -n "$pstr" ] ; then # printer present
 iport=$(echo "$pstr" | cut -d/ -f3 | cut -d: -f2)
 [ "$iport" -gt 0 2>/dev/null ] && drop=0 || { drop=1; dbs="wrong port"; }
 if [ "$drop" = "0" ] ; then
-[ "$(check_remote_printer $share $iport $username $password)" != "0" ] && { drop=1; dbs="not accessible"; }
+[ "$(check_remote_printer $type $share $iport $username $password)" = "0" ] && { drop=1; dbs="not accessible"; }
 fi
-[ "$drop" = "0" -a "$iport" = "$port" ] && { drop=1; dbs="for reinstall"; }
+[ "$drop" = "0" ] && [ "$type" = "ipp" -o "$iport" = "$port" ] && { drop=1; dbs="for reinstall"; }
 if [ "$drop" = "1" ] ; then
 nxlog "$FUNCNAME ($$): delete printer \"$PNAME\" (port:$iport) - $dbs" &
 /usr/bin/sudo /usr/sbin/lpadmin -x "$PNAME"
 else
 nxlog "$FUNCNAME ($$): printer \"$PNAME\" already exist at port:$iport - stop adding, mark only" &
-touch "$sess_dir/scripts/$PFN"
+echo $password > "$sess_dir/scripts/$PFN"; chmod 600 "$sess_dir/scripts/$PFN"
 return 0
 fi
 fi
-touch "$sess_dir/scripts/$PFN" # set share present flag
-[ "$(check_remote_printer $share $port $username $password)" != "0" ] && { nxlog "$FUNCNAME ($$): smb/cifs share \"$share\" (mport:$port) NOT ACCESSIBLE stop adding." &
+[ "$(check_remote_printer $type $share $port $username $password)" = "0" ] && {
+nxlog "$FUNCNAME ($$): \"$share\" (mport:$port) NOT ACCESSIBLE stop adding." &
 return 1; }
+echo $password > "$sess_dir/scripts/$PFN"; chmod 600 "$sess_dir/scripts/$PFN" # set share present flag
 if [ -r "$MODEL" ] ; then
 [ ! -e "$desc_dir/$PFN" ] && touch "$desc_dir/$PFN" && chmod 600 "$desc_dir/$PFN" # create "top-secret" description file
 echo "$MODEL&$DEVICE_URI&$PUBLIC&$defaultPrinter" > "$desc_dir/$PFN" # confidential access data
@@ -1689,7 +1764,7 @@
 return 1
 fi
 nxlog "$FUNCNAME ($$): invoke $CMDSTR" &
-error="$($CMDSTR)"
+error="$($CMDSTR 2>&1)"
 if [ $? -eq 0 ] ; then
 nxlog "$FUNCNAME ($$): printer \"$PNAME\" installed" &
 [ -n "$PUBLIC" ] && { /usr/bin/sudo /usr/sbin/lpadmin -p $PNAME $PUBLIC;
@@ -1736,7 +1811,7 @@
 }
 nxnode_func()
 {
-case "$1" in
+case "$1" in
 --startsession)
 startsession
 ;;
@@ -1793,7 +1868,7 @@
 [ "$CMD" = "--quit" ] && break

 if [ "$CMD" != "--check" -a "$CMD" != "--setkey" -a "$CMD" != "--agent" ]
-then
+then
 read CMDLINE
 CMDLINE="a=b&$CMDLINE"
 fi


Спасибо за предложение помощи. Если все будет плохо, то обязательно воспользуюсь :)
Спасибо сказали:

dimbor
Ведущий рубрики
Сообщения: 1506
Статус: Подвинутый участник

Re: Can't launch CUPS server

Сообщение dimbor »

alexxnight писал(а):
28.05.2013 14:17
Подскажите пожалуйста как и где взять с Вашего гита install freenx? Поставляю на отдельный сервер.

Мой гит на основе клона RX в лучшие времена. А сей продукт отличается сборкой под мегасборочной системой под другие дистрибутивы. Система эта (korinf) фунциклирует посредством rpm-овского spec-файла. Спек там есть. Т.к. пару лет назад я перелез под генту, положил туда же ебилд.
Я думаю, будет проще взять исходники пакета с ppa и заменить там содержимое на потом получившееся правильное.

Код: Выделить всё

@@ -508,7 +563,7 @@
 [ -n "$agent_password" ] && P="-p -"
 [ -n "$agent_domain" ] && D="-d $agent_domain"

-echo "$agent_password" | $PATH_BIN/nxdesktop -name "NX - $user@$SERVER_NAME:$display - $session (GPL Edition)" -options "$USER_FAKE_HOME/.nx/C-$sess_id/options" $K $G $U $P $D $agent_server $AGENT_EXTRA_OPTIONS_RDP 2>&3 &
+echo "$agent_password" | $PATH_BIN/nxdesktop -name "NX - $user@$SERVER_NAME:$display - $session (GPL Edition)" -option "$USER_FAKE_HOME/.nx/C-$sess_id/options" $K $G $U $P $D $agent_server $AGENT_EXTRA_OPTIONS_RDP 2>&3 &
 elif [ "$type" = "vnc" ]
 then
 nxlog "$FUNCNAME ($$): Type \"vnc\"" &
@@ -559,8 +614,8 @@
 nxlog "$FUNCNAME ($$): env start `env`" &
 nxlog "$FUNCNAME ($$): env end" &

-nxlog "$FUNCNAME ($$): Start nxagent by command: '$COMMAND_NXAGENT $P $R -name \"NX - $user@$SERVER_NAME:$display - $session (GPL Edition)\" -options \"$USER_FAKE_HOME/.nx/C-$sess_id/options\" $B $FP $AGENT_EXTRA_OPTIONS_X :$display'" &
-PATH="$PATH_BIN:$PATH" $COMMAND_NXAGENT $P $R -name "NX - $user@$SERVER_NAME:$display - $session (GPL Edition)" -options "$USER_FAKE_HOME/.nx/C-$sess_id/options" $B $FP $AGENT_EXTRA_OPTIONS_X :$display 2>&3 &
+nxlog "$FUNCNAME ($$): Start nxagent by command: '$COMMAND_NXAGENT $P $R -name \"NX - $user@$SERVER_NAME:$display - $session (GPL Edition)\" -option \"$USER_FAKE_HOME/.nx/C-$sess_id/options\" $B $FP $AGENT_EXTRA_OPTIONS_X :$display'" &
+PATH="$PATH_BIN:$PATH" $COMMAND_NXAGENT $P $R -name "NX - $user@$SERVER_NAME:$display - $session (GPL Edition)" -option "$USER_FAKE_HOME/.nx/C-$sess_id/options" $B $FP $AGENT_EXTRA_OPTIONS_X :$display 2>&3 &
 fi


Вероятная причина падения сессии: -options vs -option. Отсюда вытекает вопрос о свежести пакета nx в ppa. Если старый, потом может выползти отсутствие там нужных патчей.
Спасибо сказали:

alexxnight
Сообщения: 12
ОС: ubuntu server x64 + xfce4

Re: Can't launch CUPS server

Сообщение alexxnight »

заменил в 3 местах option на optinons все также сессия обрывается после черного экрана.
/var/log/nxserver.log - пустой - 0 байт

в /home/$USER/.nx/cahe-unix-cde/ файл с id сессии и все, больше никаких каталогов, файлов не создается
Спасибо сказали:

dimbor
Ведущий рубрики
Сообщения: 1506
Статус: Подвинутый участник

Re: Can't launch CUPS server

Сообщение dimbor »

alexxnight писал(а):
28.05.2013 20:04
/var/log/nxserver.log - пустой - 0 байт

в /home/$USER/.nx/cahe-unix-cde/ файл с id сессии и все, больше никаких каталогов, файлов не создается


/etc/nxserver/node.conf.d/03-logging.conf
NX_LOG_LEVEL=7
...
# This directive controls if the temporary session directory
# ($HOME/.nx/C-<hostname>-<display>-<session_id>) should be kept after a
# session has ended. A successfully terminated session will be saved as
# T-C-<hostname>-<display>-<session_id> while a failed session will be saved
# as F-C-<hostname>-<display>-<session_id>.
# The default is to cleanup the directories.
SESSION_LOG_CLEAN=0
Спасибо сказали: