Bug 8351 - Migrating tdb files fails
Migrating tdb files fails
Product: Samba 3.6
Classification: Unclassified
Component: Printing
x86 Linux
: P5 major
: ---
Assigned To: Karolin Seeger
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2011-08-04 12:23 UTC by stefano.ceccherini
Modified: 2011-09-15 18:42 UTC (History)
3 users (show)

See Also:

smb.conf (1.56 KB, text/plain)
2011-08-04 12:23 UTC, stefano.ceccherini
no flags Details
Printers tdb files (3.63 KB, application/zip)
2011-08-04 14:32 UTC, stefano.ceccherini
no flags Details
patch (995 bytes, patch)
2011-09-06 12:23 UTC, Andreas Schneider
jra: review+

Note You need to log in before you can comment on or make changes to this bug.
Description stefano.ceccherini 2011-08-04 12:23:45 UTC
Created attachment 6754 [details]

I've updated samba from 3.5.8 to 3.6.0rc3 on an OpenSuSE 11.3 x86 box (is's a XenServer guest, actually.
On that server I only have a printer defined, it's a "fake" PDF Printer, created with cups-pdf and exported through samba

After updating and restarting Samba, it spits out the following errors, in log.smbd:

[2011/08/04 14:12:34,  0] smbd/server.c:1045(main)
  smbd version 3.6.0rc3-37.2-2580-SUSE-SL11.3-i386 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2011
[2011/08/04 14:12:36.312708,  0] printing/nt_printing_ads.c:358(check_published_printers)
  check_published_printers: Could not create system session_info
[2011/08/04 14:12:36.313204,  0] printing/nt_printing.c:102(nt_printing_init)
  nt_printing_init: error checking published printers: WERR_ACCESS_DENIED
[2011/08/04 14:12:36.316472,  0] printing/nt_printing_migrate_internal.c:247(nt_printing_tdb_migrate)
  Couldn't migrate forms tdb file: NT_STATUS_EA_TOO_LARGE
[2011/08/04 14:12:36.321866,  0] rpc_server/srv_pipe_register.c:222(rpc_srv_register)
  rpc_srv_register: Failed to call the spoolss init function!

then dies.

Attached is my smb.conf.
Comment 1 stefano.ceccherini 2011-08-04 14:32:47 UTC
Created attachment 6755 [details]
Printers tdb files

My ntprinters.tdb, ntdrivers.tdb, ntforms.tdb
Comment 2 Karolin Seeger 2011-08-08 17:26:35 UTC
Jeremy, Volker, Günther, can we ship 3.6.0 tomorrow without a fix for this one?
Without any feedback, I will go ahead.
Comment 3 Jeremy Allison 2011-08-08 20:43:43 UTC
Downgrading this to "major". This should not stop the release tomorrow (IMHO).
Comment 4 Andreas Schneider 2011-09-06 12:23:45 UTC
Created attachment 6857 [details]

This patch fixes the bug for me. Tested with master and 3.6.

NT_STATUS_EA_TOO_LARGE is a strange mapping for WERR_FILE_EXISTS.
Comment 5 Jeremy Allison 2011-09-08 22:40:37 UTC
Comment on attachment 6857 [details]

Looks good to me. Pushed to autobuild (master) and re-assigning to Karolin for inclusion in 3.6.1.

Comment 6 Jeremy Allison 2011-09-08 22:41:16 UTC
Re-assigning to Karolin for inclusion in 3.6.1.
Comment 7 Karolin Seeger 2011-09-15 18:42:25 UTC
Pushed to v3-6-test.
Closing out bug report.