[Samba] NT_STATUS_RPC_PROCNUM_OUT_OF_RANGE when printing

Alex Korobkin korobkin+smb at gmail.com
Wed Oct 21 18:49:11 UTC 2015


Hi all,

After building Samba 4.1.20 for Ubuntu 14.04 x64 I encountered this issue
when using shared printers: every time a client prints or changes printer
settings, this message is logged in the log:

  dcerpc_spoolss_ReplyClosePrinter failed
[NT_STATUS_RPC_PROCNUM_OUT_OF_RANGE].

Printers print fine, so it is probably harmless, but I still wonder why
this happens.


With log level = 3 I get more details:


[2015/10/21 11:31:14.889899,  2]
../source3/rpc_client/cli_winreg_spoolss.c:626(winreg_create_printer)
  winreg_create_printer: Skipping, SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Print\Printers\mftestprinter already exists
[2015/10/21 11:31:14.890243,  3]
../source3/rpc_server/srv_pipe_hnd.c:122(free_pipe_context)
  free_pipe_context: destroying talloc pool of size 71
[2015/10/21 11:31:14.928268,  3]
../source3/rpc_server/srv_pipe.c:1347(api_rpcTNP)
  api_rpcTNP: rpc command: SPOOLSS_CLOSEPRINTER
[2015/10/21 11:31:14.966089,  1]
../source3/rpc_client/cli_pipe.c:482(cli_pipe_validate_current_pdu)
  ../source3/rpc_client/cli_pipe.c:482: RPC fault code
DCERPC_NCA_S_OP_RNG_ERROR received from host KOROBKIN0-W.ad.corp.acme.com!
[2015/10/21 11:31:14.966530,  0]
../source3/rpc_server/spoolss/srv_spoolss_nt.c:269(srv_spoolss_replycloseprinter)
  dcerpc_spoolss_ReplyClosePrinter failed
[NT_STATUS_RPC_PROCNUM_OUT_OF_RANGE].

<snip>

[2015/10/21 11:31:23.969591,  3]
../source3/rpc_server/srv_pipe.c:1347(api_rpcTNP)
  api_rpcTNP: rpc command: SPOOLSS_OPENPRINTEREX
  checking name: \\printserver-unstable2.hot\mftestprinter
[2015/10/21 11:31:23.970334,  3]
../source3/rpc_server/spoolss/srv_spoolss_nt.c:506(set_printer_hnd_printertype)
  Setting printer type=\\printserver-unstable2.hot\mftestprinter
[2015/10/21 11:31:23.971795,  3] ../source3/lib/access.c:338(allow_access)
  Allowed connection from 192.168.176.27 (192.168.176.27)
[2015/10/21 11:31:23.973122,  2]
../source3/rpc_client/cli_winreg_spoolss.c:626(winreg_create_printer)
  winreg_create_printer: Skipping, SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Print\Printers\mftestprinter already exists
[2015/10/21 11:31:23.973581,  3]
../source3/rpc_server/srv_pipe_hnd.c:122(free_pipe_context)
  free_pipe_context: destroying talloc pool of size 71
[2015/10/21 11:31:24.062612,  3]
../source3/rpc_server/srv_pipe.c:1347(api_rpcTNP)
  api_rpcTNP: rpc command: SPOOLSS_CLOSEPRINTER
[2015/10/21 11:31:24.063025,  3]
../source3/rpc_server/srv_pipe_hnd.c:122(free_pipe_context)
  free_pipe_context: destroying talloc pool of size 29
[2015/10/21 11:31:24.115170,  3]
../source3/rpc_server/spoolss/srv_spoolss_nt.c:1369(notify2_unpack_msg)
  notify2_unpack_msg: got NOTIFY2 message for printer mftestprinter, jobid
4 type 1, field 0x10, flags 0x0000
[2015/10/21 11:31:24.115610,  3] ../lib/util/util.c:556(dump_data)
  [0000] FB D9 27 56 00 00 00 00                            ..'V....
[2015/10/21 11:31:24.115960,  3]
../source3/rpc_server/spoolss/srv_spoolss_nt.c:1369(notify2_unpack_msg)
  notify2_unpack_msg: got NOTIFY2 message for printer mftestprinter, jobid
4 type 1, field 0x03, flags 0x0000
[2015/10/21 11:31:24.116287,  3] ../lib/util/util.c:556(dump_data)
  [0000] 6B 6F 72 6F 62 6B 69 6E   00                       korobkin .
[2015/10/21 11:31:24.116595,  3]
../source3/rpc_server/spoolss/srv_spoolss_nt.c:1369(notify2_unpack_msg)
  notify2_unpack_msg: got NOTIFY2 message for printer mftestprinter, jobid
4 type 1, field 0x0d, flags 0x0000
[2015/10/21 11:31:24.116940,  3] ../lib/util/util.c:556(dump_data)
  [0000] 54 65 73 74 20 50 61 67   65 00                    Test Pag e.
[2015/10/21 11:31:24.117263,  3]
../source3/rpc_server/spoolss/srv_spoolss_nt.c:1369(notify2_unpack_msg)
  notify2_unpack_msg: got NOTIFY2 message for printer mftestprinter, jobid
4 type 1, field 0x0a, flags 0x0000
[2015/10/21 11:31:24.117570,  3]
../source3/rpc_server/spoolss/srv_spoolss_nt.c:1376(notify2_unpack_msg)
  notify2_unpack_msg: value1 = 8, value2 = 0
[2015/10/21 11:31:24.117917,  3]
../source3/rpc_server/spoolss/srv_spoolss_nt.c:1369(notify2_unpack_msg)
  notify2_unpack_msg: got NOTIFY2 message for printer mftestprinter, jobid
4 type 1, field 0x16, flags 0x0000
[2015/10/21 11:31:24.118231,  3]
../source3/rpc_server/spoolss/srv_spoolss_nt.c:1376(notify2_unpack_msg)
  notify2_unpack_msg: value1 = 0, value2 = 0
[2015/10/21 11:31:24.118804,  3]
../source3/rpc_server/spoolss/srv_spoolss_nt.c:1369(notify2_unpack_msg)
  notify2_unpack_msg: got NOTIFY2 message for printer mftestprinter, jobid
4 type 1, field 0x14, flags 0x0000
[2015/10/21 11:31:24.119191,  3]
../source3/rpc_server/spoolss/srv_spoolss_nt.c:1376(notify2_unpack_msg)
  notify2_unpack_msg: value1 = 0, value2 = 0
[2015/10/21 11:31:24.158064,  1]
../source3/rpc_client/cli_pipe.c:482(cli_pipe_validate_current_pdu)
  ../source3/rpc_client/cli_pipe.c:482: RPC fault code
DCERPC_NCA_S_OP_RNG_ERROR received from host KOROBKIN0-W.ad.corp.acme.com!
[2015/10/21 11:31:24.158504,  1]
../source3/rpc_server/spoolss/srv_spoolss_nt.c:1288(send_notify2_printer)
  dcerpc_spoolss_RouterReplyPrinterEx to client: \\
KOROBKIN0-W.AD.CORP.acme.COM failed: NT_STATUS_RPC_PROCNUM_OUT_OF_RANGE
[2015/10/21 11:31:24.196651,  1]
../source3/rpc_client/cli_pipe.c:482(cli_pipe_validate_current_pdu)

-- 
-Alex


More information about the samba mailing list