samba cups raw print freebsd 7

Проблемы установки, настройки и работы Правильной Операционной Системы

Модератор: terminus

Правила форума
Убедительная просьба юзать теги [cоde] при оформлении листингов.
Сообщения не оформленные должным образом имеют все шансы быть незамеченными.
exny
рядовой
Сообщения: 33
Зарегистрирован: 2008-03-25 10:59:27

samba cups raw print freebsd 7

Непрочитанное сообщение exny » 2009-02-22 14:05:25

Доброго дня всем!

подскажите пожалуйста, что нетак делаю с настройкой принтсервера?

через cups web добавляю принтер raw, принтер появляется в локальной сети. при попытке печати ошибка недоступности пинт сервера "The print server is down. Check the print server."
Очередь загружается в cups, появлется в разделе jobs в статуе processing. и больше ничего не происходит.

на данный момент логи приведены с разных компьютеров, тоесть samba стоит на одном, cups на другом. но эффект одинаковый если перетащить принтер на комп к самбе.

принтер canon lbp 2900, подсоединен к usb. usb драйверы вкомпилены в ядро, компьютер реагирует на включение выключение принтера

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

ulpt0: at uhub0 port 1 (addr 2) disconnected
ulpt0: detached
ulpt0: <Canon Canon CAPT USB Device, class 0/0, rev 2.00/1.00, addr 2> on uhub0
ulpt0: using bi-directional mode
ulpt0: offline
настерегает слово offline, появляется через некоторое время..

uname -a

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

FreeBSD gw.domain.local 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #2: Sat Feb 21 16:33:04 UTC 2009     root@gw.domain.local:/usr/obj/usr/src/sys/gateway  i386
smb.conf (фрагмент, описание шар неприведено)

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

[global]
    #  Server configuration parameters
    netbios name = GSL
    wins support = yes
    workgroup = SHTPL
    server string = server
    encrypt passwords = yes
    security = user
    map to guest = bad user
    guest account = fff

        load printers = yes
        printing = CUPS
        printcap = CUPS
        cups server = 192.168.22.200:631

[printers]
        use client driver = yes
        comment = All Printers
        path = /var/spool/samba
        browseable = no
        guest ok = yes
        writable = no
        printable = yes
        public = yes
cups.conf

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

listen 192.168.22.200:631
LogLevel debug
# только то что добовил, остальное как поставлялось
при попытке печати в лог cups видно:

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

D [22/Feb/2009:09:53:57 +0000] cupsdAcceptClient: 8 from 192.168.22.1:631 (IPv4)
D [22/Feb/2009:09:53:57 +0000] cupsdReadClient: 8 POST /printers/bonoo HTTP/1.1
D [22/Feb/2009:09:53:57 +0000] cupsdAuthorize: No authentication data provided.
D [22/Feb/2009:09:53:57 +0000] Print-Job ipp://localhost/printers/bonoo
D [22/Feb/2009:09:53:57 +0000] [Job ???] Auto-typing file...
I [22/Feb/2009:09:53:57 +0000] [Job ???] Request file type is application/octet-stream.
D [22/Feb/2009:09:53:57 +0000] add_job: requesting-user-name="efbid"
D [22/Feb/2009:09:53:57 +0000] Adding default job-sheets values "none,none"...
I [22/Feb/2009:09:53:57 +0000] [Job 4] Adding start banner page "none".
D [22/Feb/2009:09:53:57 +0000] Discarding unused job-created event...
I [22/Feb/2009:09:53:57 +0000] [Job 4] Adding end banner page "none".
I [22/Feb/2009:09:53:57 +0000] [Job 4] File of type application/octet-stream queued by "efbid".
D [22/Feb/2009:09:53:57 +0000] [Job 4] hold_until=0
I [22/Feb/2009:09:53:57 +0000] [Job 4] Queued on "bonoo" by "efbid".
D [22/Feb/2009:09:53:57 +0000] [Job 4] Sending job to queue tagged as raw...
D [22/Feb/2009:09:53:57 +0000] Discarding unused printer-state-changed event...
D [22/Feb/2009:09:53:57 +0000] [Job 4] job-sheets=none,none
D [22/Feb/2009:09:53:57 +0000] [Job 4] banner_page = 0
D [22/Feb/2009:09:53:57 +0000] [Job 4] argv[0]="bonoo"
D [22/Feb/2009:09:53:57 +0000] [Job 4] argv[1]="4"
D [22/Feb/2009:09:53:57 +0000] [Job 4] argv[2]="efbid"
D [22/Feb/2009:09:53:57 +0000] [Job 4] argv[3]="smbprn.00000004 CUPS-SAMBA: <D0><BF><D1><80><D0><BE><D1><81><D1><82><D0><B5><D0><B9><D1><88><D0><B8><D0><B9>
<D0><BF><D1><80><D0><B8><D0><BD>..."
D [22/Feb/2009:09:53:57 +0000] [Job 4] argv[4]="1"
D [22/Feb/2009:09:53:57 +0000] [Job 4] argv[5]="job-uuid=urn:uuid:357ae99e-efc3-355a-6e38-edf10bcf6880"
D [22/Feb/2009:09:53:57 +0000] [Job 4] argv[6]="/var/spool/cups/d00004-001"
D [22/Feb/2009:09:53:57 +0000] [Job 4] envp[0]="CUPS_CACHEDIR=/var/cache/cups"
D [22/Feb/2009:09:53:57 +0000] [Job 4] envp[1]="CUPS_DATADIR=/usr/local/share/cups"
D [22/Feb/2009:09:53:57 +0000] [Job 4] envp[2]="CUPS_DOCROOT=/usr/local/share/doc/cups"
D [22/Feb/2009:09:53:57 +0000] [Job 4] envp[3]="CUPS_FONTPATH=/usr/local/share/cups/fonts"
D [22/Feb/2009:09:53:57 +0000] [Job 4] envp[4]="CUPS_REQUESTROOT=/var/spool/cups"
D [22/Feb/2009:09:53:57 +0000] [Job 4] envp[5]="CUPS_SERVERBIN=/usr/local/libexec/cups"
D [22/Feb/2009:09:53:57 +0000] [Job 4] envp[6]="CUPS_SERVERROOT=/usr/local/etc/cups"
D [22/Feb/2009:09:53:57 +0000] [Job 4] envp[7]="CUPS_STATEDIR=/var/run/cups"
D [22/Feb/2009:09:53:57 +0000] [Job 4] envp[8]="PATH=/usr/local/libexec/cups/filter:/usr/local/bin:/usr/local/sbin:/bin:/usr/bin"
D [22/Feb/2009:09:53:57 +0000] [Job 4] envp[9]="SERVER_ADMIN=root@cellar.domain.local"
D [22/Feb/2009:09:53:57 +0000] [Job 4] envp[10]="SOFTWARE=CUPS/1.3.9"
D [22/Feb/2009:09:53:57 +0000] [Job 4] envp[11]="TMPDIR=/var/spool/cups/tmp"
D [22/Feb/2009:09:53:57 +0000] [Job 4] envp[12]="USER=root"
D [22/Feb/2009:09:53:57 +0000] [Job 4] envp[13]="CUPS_SERVER=/var/run/cups.sock"
D [22/Feb/2009:09:53:57 +0000] [Job 4] envp[14]="CUPS_ENCRYPTION=IfRequested"
D [22/Feb/2009:09:53:57 +0000] [Job 4] envp[15]="IPP_PORT=631"
D [22/Feb/2009:09:53:57 +0000] [Job 4] envp[16]="CHARSET=utf-8"
D [22/Feb/2009:09:53:57 +0000] [Job 4] envp[17]="LANG=en.UTF8"
D [22/Feb/2009:09:53:57 +0000] [Job 4] envp[18]="PPD=/usr/local/etc/cups/ppd/bonoo.ppd"
D [22/Feb/2009:09:53:57 +0000] [Job 4] envp[19]="RIP_MAX_CACHE=8m"
D [22/Feb/2009:09:53:57 +0000] [Job 4] envp[20]="CONTENT_TYPE=application/octet-stream"
D [22/Feb/2009:09:53:57 +0000] [Job 4] envp[21]="DEVICE_URI=usb:/dev/ulpt0"
D [22/Feb/2009:09:53:57 +0000] [Job 4] envp[22]="PRINTER=bonoo"
I [22/Feb/2009:09:53:57 +0000] [Job 4] Started backend /usr/local/libexec/cups/backend/usb (PID 1016)
D [22/Feb/2009:09:53:57 +0000] Discarding unused job-state-changed event...
D [22/Feb/2009:09:53:57 +0000] cupsdProcessIPPRequest: 8 status_code=0 (successful-ok)
D [22/Feb/2009:09:53:57 +0000] cupsdCloseClient: 8
D [22/Feb/2009:09:53:57 +0000] Discarding unused printer-state-changed event...
D [22/Feb/2009:09:53:57 +0000] cupsdAcceptClient: 8 from 192.168.22.1:631 (IPv4)
D [22/Feb/2009:09:53:57 +0000] cupsdReadClient: 8 POST / HTTP/1.1
D [22/Feb/2009:09:53:57 +0000] cupsdAuthorize: No authentication data provided.
D [22/Feb/2009:09:53:57 +0000] Get-Printer-Attributes ipp://192.168.22.200:631/printers/bonoo
D [22/Feb/2009:09:53:57 +0000] cupsdProcessIPPRequest: 8 status_code=0 (successful-ok)
D [22/Feb/2009:09:53:57 +0000] Discarding unused job-progress event...
D [22/Feb/2009:09:53:57 +0000] [Job 4] backendRunLoop(print_fd=5, device_fd=6, use_bc=0, side_cb=0x804a260)
D [22/Feb/2009:09:53:57 +0000] [Job 4] Read 8192 bytes of print data...
D [22/Feb/2009:09:53:57 +0000] Discarding unused printer-state-changed event...
D [22/Feb/2009:09:53:57 +0000] cupsdCloseClient: 8
D [22/Feb/2009:09:53:57 +0000] cupsdAcceptClient: 8 from 192.168.22.1:631 (IPv4)
D [22/Feb/2009:09:53:57 +0000] cupsdReadClient: 8 POST / HTTP/1.1
D [22/Feb/2009:09:53:57 +0000] cupsdAuthorize: No authentication data provided.
D [22/Feb/2009:09:53:57 +0000] Get-Printer-Attributes ipp://192.168.22.200:631/printers/bonoo
D [22/Feb/2009:09:53:57 +0000] cupsdProcessIPPRequest: 8 status_code=0 (successful-ok)
D [22/Feb/2009:09:53:57 +0000] cupsdCloseClient: 8
D [22/Feb/2009:09:53:57 +0000] cupsdAcceptClient: 8 from 192.168.22.1:631 (IPv4)
D [22/Feb/2009:09:53:57 +0000] cupsdReadClient: 8 POST / HTTP/1.1
D [22/Feb/2009:09:53:57 +0000] cupsdAuthorize: No authentication data provided.
D [22/Feb/2009:09:53:57 +0000] Get-Printer-Attributes ipp://192.168.22.200:631/printers/bonoo
D [22/Feb/2009:09:53:57 +0000] cupsdProcessIPPRequest: 8 status_code=0 (successful-ok)
D [22/Feb/2009:09:53:57 +0000] cupsdCloseClient: 8
D [22/Feb/2009:09:53:57 +0000] cupsdAcceptClient: 8 from 192.168.22.1:631 (IPv4)
D [22/Feb/2009:09:53:57 +0000] cupsdReadClient: 8 POST / HTTP/1.1
D [22/Feb/2009:09:53:57 +0000] cupsdAuthorize: No authentication data provided.
D [22/Feb/2009:09:53:57 +0000] Get-Printer-Attributes ipp://192.168.22.200:631/printers/bonoo
D [22/Feb/2009:09:53:57 +0000] cupsdProcessIPPRequest: 8 status_code=0 (successful-ok)
D [22/Feb/2009:09:53:57 +0000] cupsdCloseClient: 8
smbclient -L localhost -U%

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

Domain=[SHTPL] OS=[Unix] Server=[Samba 3.0.34]

        Sharename       Type      Comment
        ---------       ----      -------
        data            Disk      Data Drive
        pack            Disk
        IPC$            IPC       IPC Service (just test server)
        bonoo           Printer
подправлял права на /dev/ulpt0 в 666, иначе сразу ошибку что неможет открыть.

сечас в очереди так и стоит:

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

bonoo-4  	smbprn.00000004 CUPS-SAMBA: простейший прин...  	efbid  	2318k  	1  	processing since Sun Feb 22 09:53:57 2009

Хостинговая компания Host-Food.ru
Хостинг HostFood.ru
 

Услуги хостинговой компании Host-Food.ru

Хостинг HostFood.ru

Тарифы на хостинг в России, от 12 рублей: https://www.host-food.ru/tariffs/hosting/
Тарифы на виртуальные сервера (VPS/VDS/KVM) в РФ, от 189 руб.: https://www.host-food.ru/tariffs/virtualny-server-vps/
Выделенные сервера, Россия, Москва, от 2000 рублей (HP Proliant G5, Intel Xeon E5430 (2.66GHz, Quad-Core, 12Mb), 8Gb RAM, 2x300Gb SAS HDD, P400i, 512Mb, BBU):
https://www.host-food.ru/tariffs/vydelennyi-server-ds/
Недорогие домены в популярных зонах: https://www.host-food.ru/domains/

exny
рядовой
Сообщения: 33
Зарегистрирован: 2008-03-25 10:59:27

Re: samba cups raw print freebsd 7

Непрочитанное сообщение exny » 2009-02-22 15:54:07

забыл добавить
mime.types

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

application/octet-stream
mime.convs

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

application/octet-stream        application/vnd.cups-raw        0       -

exny
рядовой
Сообщения: 33
Зарегистрирован: 2008-03-25 10:59:27

Re: samba cups raw print freebsd 7

Непрочитанное сообщение exny » 2009-02-22 21:38:37

насколько понимаю политику партии в отношении печати, то при использовании raw принтера никокого прочего по (кроме спулера) на принт сервере ненадо, все подготавливается на клиентских машинах. или нет?

в таком случии затык проиходит гдето на стадии загрузки очереди в принтер. как проверить?

зы истратил уже два напилнека, один сточил, второй сломал (об свою голову). нехватает идеологического понимания происходящего омг :st:

exny
рядовой
Сообщения: 33
Зарегистрирован: 2008-03-25 10:59:27

Re: samba cups raw print freebsd 7

Непрочитанное сообщение exny » 2009-02-23 17:20:50

думаю будет вернее для начала переместится сюда