Dr. Hansjörg Maurer
2020-Oct-28 06:06 UTC
[Samba] segfault during net rpc printer migrate drivers
Hi I am trying to migrate an old printserver from one samba4 (4.8.11 on CentOS-6) server to a newer one (4.11.2 on CentOS-8) using net rpc printer migrate all The migration of queue, forms, securitty, settings works, during the migration of the drivers (net rpc printer migrate drivers)? the command dumps core at the first driver Here a level10 output ???? spoolss_AddPrinterDriver: struct spoolss_AddPrinterDriver ??????? in: struct spoolss_AddPrinterDriver ??????????? servername?????????????? : * ??????????????? servername?????????????? : '\\127.0.0.1' ??????????? info_ctr???????????????? : * ??????????????? info_ctr: struct spoolss_AddDriverInfoCtr ??????????????????? level??????????????????? : 0x00000003 (3) ??????????????????? info???????????????????? : union spoolss_AddDriverInfo(case 3) ??????????????????? info3??????????????????? : * ??????????????????????? info3: struct spoolss_AddDriverInfo3 ??????????????????????????? version????????????????? : SPOOLSS_DRIVER_VERSION_200X (3) ??????????????????????????? driver_name????????????? : * ??????????????????????????????? driver_name????????????? : 'hp9050-1' ??????????????????????????? architecture???????????? : * ??????????????????????????????? architecture???????????? : 'Windows NT x86' ??????????????????????????? driver_path????????????? : * ??????????????????????????????? driver_path????????????? : '\\RM-SAMBA01\print$\W32X86\3\pscript5.dll' ??????????????????????????? data_file??????????????? : * ??????????????????????????????? data_file??????????????? : '\\RM-SAMBA01\print$\W32X86\3\hp9050-1.ppd' ??????????????????????????? config_file????????????? : * ??????????????????????????????? config_file????????????? : '\\RM-SAMBA01\print$\W32X86\3\ps5ui.dll' ??????????????????????????? help_file??????????????? : * ??????????????????????????????? help_file??????????????? : '\\RM-SAMBA01\print$\W32X86\3\pscript.hlp' ??????????????????????????? monitor_name???????????? : * ??????????????????????????????? monitor_name???????????? : 'JBV' ??????????????????????????? default_datatype???????? : * ??????????????????????????????? default_datatype???????? : '' Bus error (core dumped) Oct 27 15:22:26 rmc-printserver01 kernel: net[104782]: segfault at ffffffff0006001c ip 00007feb997dc96a sp 00007ffd9c982cd0 error 5 in libndr-standard.so.0.0.1[7feb99776000+31f000] an enumdrivers 3 on the source system shows [Windows NT x86] Printer Driver Info 3: ??????? Version: [3] ??????? Driver Name: [hp9050-1] ??????? Architecture: [Windows NT x86] ??????? Driver Path: [\\RM-SAMBA01\print$\W32X86\3\pscript5.dll] ??????? Datafile: [\\RM-SAMBA01\print$\W32X86\3\hp9050-1.ppd] ??????? Configfile: [\\RM-SAMBA01\print$\W32X86\3\ps5ui.dll] ??????? Helpfile: [\\RM-SAMBA01\print$\W32X86\3\pscript.hlp] ??????? Dependentfiles: [\\RM-SAMBA01\print$\W32X86\3\pscript5.dll] ??????? Dependentfiles: [\\RM-SAMBA01\print$\W32X86\3\hp9050-1.ppd] ??????? Dependentfiles: [\\RM-SAMBA01\print$\W32X86\3\ps5ui.dll] ??????? Dependentfiles: [\\RM-SAMBA01\print$\W32X86\3\pscript.hlp] ??????? Dependentfiles: [\\RM-SAMBA01\print$\W32X86\3\pscript.ntf] ??????? Dependentfiles: [\\RM-SAMBA01\print$\W32X86\3\cups6.ini] ??????? Dependentfiles: [\\RM-SAMBA01\print$\W32X86\3\cupsps6.dll] ??????? Dependentfiles: [\\RM-SAMBA01\print$\W32X86\3\cupsui6.dll] ??????? Monitorname: [] ??????? Defaultdatatype: [RAW] It there somthing wrong with the monitor_name? I have tried the command with a different system/driver (both samba-4.11) and? I run into a similar problem ?????????????????? info3??????????????????? : * ??????????????????????? info3: struct spoolss_AddDriverInfo3 ??????????????????????????? version????????????????? : SPOOLSS_DRIVER_VERSION_200X (3) ??????????????????????????? driver_name????????????? : * ??????????????????????????????? driver_name????????????? : 'Dell C3765dnf Color MFP PCL6' ??????????????????????????? architecture???????????? : * ??????????????????????????????? architecture???????????? : 'Windows x64' ??????????????????????????? driver_path????????????? : * ??????????????????????????????? driver_path????????????? : '\\SERV01\print$\x64\3\dlxcmzim.dll' ??????????????????????????? data_file??????????????? : * ??????????????????????????????? data_file??????????????? : '\\SERV01\print$\x64\3\dlxcmzk.ddd' ??????????????????????????? config_file????????????? : * ??????????????????????????????? config_file????????????? : '\\SERV01\print$\x64\3\dlxcmziv.dll' ??????????????????????????? help_file??????????????? : * ??????????????????????????????? help_file??????????????? : '\\SERV01\print$\x64\3\dlxcmz.chm' ??????????????????????????? monitor_name???????????? : * ??????????????????????????????? monitor_name???????????? : '@?bU' ??????????????????????????? default_datatype???????? : * ??????????????????????????????? default_datatype???????? : '' ??????????????????????????? _ndr_size_dependent_files: 0x00000000 (0) ??????????????????????????? dependent_files????????? : NULL convert_string_internal: Conversion error: Incomplete multibyte sequence(@?bU) Can I reset the monitor_name to something? net rpc printer migrate drivers can deal with? Is there a different/better way to migrate the printer drivers to an new system? I tried to sync the print$ share contents, but the settings etc seems to be stored in a registry file. And the old server has additional smb shares, which should not be migrated. Therefore I did not sync the whole /var/lib/samba directory with all tdb files Regards Hansj?rg -- Dr. Hansj?rg Maurer itsystems Deutschland AG Erzgie?ereistr. 22 80335 M?nchen Tel: +49-89-52 04 68-41 Fax: +49-89-52 04 68-59 E-Mail:hansjoerg.maurer at itsd.de Web:http://www.itsd.de Amtsgericht M?nchen HRB 132146 USt-IdNr. DE 812991301 Steuer-Nr. 143/100/81575 Aufsichtsratsvorsitzender: Stefan Adam Vorstand: Dr. Michael Krocka Dr. Hansj?rg Maurer ---------------------------- Unser System ist mit einem Mailverschluesselungs-Gateway ausgestattet. Wenn Sie moechten, dass an Sie gerichtete E-Mails verschluesselt werden, senden Sie einfach eine S/MIME-signierte E-Mail oder Ihren PGP Public Key an hansjoerg.maurer at itsd.de. Our system is equipped with an email encryption gateway. If you want email sent to you to be encrypted please send a S/MIME signed email or your PGP public key to hansjoerg.maurer at itsd.de.
Jeremy Allison
2020-Oct-28 18:25 UTC
[Samba] segfault during net rpc printer migrate drivers
On Wed, Oct 28, 2020 at 07:06:04AM +0100, Dr. Hansj?rg Maurer via samba wrote:> Hi > > I am trying to migrate an old printserver from one samba4 (4.8.11 on > CentOS-6) server to a newer one (4.11.2 on CentOS-8) > using > > net rpc printer migrate all > > The migration of queue, forms, securitty, settings works, during the > migration of the drivers (net rpc printer migrate drivers)? the command > dumps core at the first driverCan you run this under gdb and post the backtrace please ? That would really help finding where we need to catch the bad utf8 conversion error. Thanks !
Apparently Analagous Threads
- Canon multifunction printers / samba 3.0.2a / AIX 5.2ML2
- rpcclient enumdrivers returns 2 listings of installed driver.
- Samba Point-and-install driver location problems
- [782] trunk/wxruby2/samples/bigdemo: HtmlHelpWindow sample with helpfile
- Getting Windows XP drivers from print$