Bug 15576 - bsd printing doesn't remove the spool
Summary: bsd printing doesn't remove the spool
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Printing (show other bugs)
Version: 4.17.12
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: printing-maintainers
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-08 10:50 UTC by Piviul
Modified: 2024-02-08 10:50 UTC (History)
0 users

See Also:


Attachments
smb.conf (1.05 KB, text/plain)
2024-02-08 10:50 UTC, Piviul
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Piviul 2024-02-08 10:50:31 UTC
Created attachment 18243 [details]
smb.conf

Hi, I have a problem upgrading samba from 4.14 to 4.17; the problem concern bsd printing. I have some bsd virtual printers configured to run a script that convert in pdf the printing and classify the document printed. When I print all seems to works except that the document printed is not removed from the spool an locks further printing.

In attachment you can find my smb.conf. The script called by testBSD printer is the following:

# cat /opt/scripts/bin/testBSD.sh
#!/bin/bash

user_name=$(whoami | sed 's/^DOMINIOCSA\\//')
user_home=~

Filelog=$user_home/.$(basename "$0" .sh).log
echo "" >> $Filelog
echo "-----------------------------------------------" >> $Filelog
echo $(date +"%d/%m/%Y %H:%M:%S") >> $Filelog

i=0
while [ $i -lt $# ]; do
    i=$(($i+1))
    echo "\$$i: $(eval "echo \$$i")" >> $Filelog
done
[ -f "$1" ] && rm -f "$1" && echo "I: spool file successfully removed." >> $Filelog


When I print, in the user home .testBSD.log I find: 
08/02/2024 10:45:07
$1: smbprn.kvZAmu
$2: testBSD
$3: win10pro-v01
$4: 
$5: 0.0.0.0
$6: Pagina di prova
$7: testBSD
$8: DOMINIOCSA
I: spool file successfully removed.

but as I said the printer spool is not removed and lock further printing.

In samba 4.14, using the same settings and script, I don't find the problem. I fear that the problem is tied to spool_ss because in the samba wiki[¹] I can read in the "Enabling the spoolssd Service", This only applies to Samba version 4.15 and older versions!

There is a way to disable spool_ss to see if the problem disappear?

Piviul

[¹] https://wiki.samba.org/index.php/Setting_up_Samba_as_a_Print_Server