Change dispatch.conf from file to mysql

Zakyl
Beiträge: 68
Registriert: 16 Okt 2012, 11:03

Change dispatch.conf from file to mysql

Beitrag von Zakyl »

Hi !

I would like to know how can I "migrate" my registered computers from file configuration to mysql without losing any data ?

Did I just need to change it in the dispatch.conf file ?

Can you explain me how it works and how to do that ? Thanks a lot

My dispatch.conf file :

Code: Alles auswählen

backend_.*         : file, opsipxeconfd
host_.*            : file, opsipxeconfd
productOnClient_.* : file, opsipxeconfd
configState_.*     : file, opsipxeconfd
.*                 : file
Benutzeravatar
tobias
Beiträge: 1291
Registriert: 20 Aug 2008, 12:36
Wohnort: Braunschweig
Kontaktdaten:

Re: Change dispatch.conf from file to mysql

Beitrag von tobias »

Hi,

look in the OPSI Manual ;)

You can migrate between Backends with OPSI-Convert:

Code: Alles auswählen

opsi-convert --help
don't forget to create a backup of your opsi backend !
Zakyl
Beiträge: 68
Registriert: 16 Okt 2012, 11:03

Re: Change dispatch.conf from file to mysql

Beitrag von Zakyl »

Thanks !

But when I did :

Code: Alles auswählen

opsi-convert -V -a file mysql
The result is :

Code: Alles auswählen

opsi-convert 4.0.2.1
When I edit my dispatch.conf file it's the same configuration. Did I have a bad utilisation of that command ?
uncle_scrooge
Beiträge: 650
Registriert: 21 Feb 2012, 12:03
Wohnort: Mainz

Re: Change dispatch.conf from file to mysql

Beitrag von uncle_scrooge »

There's a difference between -V (capital) and -v .
-V shows only the version and exits, ignoring any other parameter.
-v increases the verbosity of the program's output.

opsi-convert -v -a file mysql should do the trick.

And as Tobias said before: Get a full backup.

Thanks
Peter
Zakyl
Beiträge: 68
Registriert: 16 Okt 2012, 11:03

Re: Change dispatch.conf from file to mysql

Beitrag von Zakyl »

Mh ... Thanks and sorry for the foolish

Yes I will make a backup before ;)
Zakyl
Beiträge: 68
Registriert: 16 Okt 2012, 11:03

Re: Change dispatch.conf from file to mysql

Beitrag von Zakyl »

I made the backup and the conversion, no error and the graphical interface seems good. But when I read the dispatch.conf, it's always file.
Did I need to change the dispatch.conf file ?
uncle_scrooge
Beiträge: 650
Registriert: 21 Feb 2012, 12:03
Wohnort: Mainz

Re: Change dispatch.conf from file to mysql

Beitrag von uncle_scrooge »

Please, run it again and send the output to a file:
opsi-convert -v -a file mysql > t.log
And post the results here.


Thanks
Peter
Benutzeravatar
tobias
Beiträge: 1291
Registriert: 20 Aug 2008, 12:36
Wohnort: Braunschweig
Kontaktdaten:

Re: Change dispatch.conf from file to mysql

Beitrag von tobias »

Zakyl hat geschrieben:I made the backup and the conversion, no error and the graphical interface seems good. But when I read the dispatch.conf, it's always file.
Did I need to change the dispatch.conf file ?
Yes you must change it in the dispatch.conf
Zakyl
Beiträge: 68
Registriert: 16 Okt 2012, 11:03

Re: Change dispatch.conf from file to mysql

Beitrag von Zakyl »

I change the dispatch.conf mysql=>file with :

Code: Alles auswählen

backend_.*         : mysql, opsipxeconfd
host_.*            : mysql, opsipxeconfd
productOnClient_.* : mysql, opsipxeconfd
configState_.*     : mysql, opsipxeconfd
.*                 : mysql
But on my graphic interface I loose my hosts. So I thought it was a problem on the conversion :

- I change the dispatch.conf to file.
- I restore my yesterday save
- My graphical interface come back fine
- I did a full uninstall of mysql
- Clean install of mysql


So I rerun the command with log and I have some errors :

Code: Alles auswählen

root@ubuntest:/# opsi-convert -v -a file mysql > t.log
Converting from backend 'file' to backend 'mysql'.
Traceback:
     line 274 in '<module>' in file '/usr/bin/opsi-convert'
     line 268 in 'main' in file '/usr/bin/opsi-convert'
     line 323 in 'replicate' in file '/usr/lib/pymodules/python2.6/OPSI/Backend/                Replicator.py'
     line 298 in 'addToState' in file '/usr/lib/pymodules/python2.6/OPSI/Util/Me                ssage.py'
     line 295 in 'setState' in file '/usr/lib/pymodules/python2.6/OPSI/Util/Mess                age.py'
     line 320 in '_notifyProgressChanged' in file '/usr/lib/pymodules/python2.6/                OPSI/Util/Message.py'
     line 118 in 'progressChanged' in file '/usr/bin/opsi-convert'
     line 102 in 'displayProgress' in file '/usr/bin/opsi-convert'
     ==>>> 'ascii' codec can't encode character u'\xfc' in position 103: ordinal                 not in range(128)
ERROR: 'ascii' codec can't encode character u'\xfc' in position 103: ordinal not                 in range(128)
The t.log file :

Code: Alles auswählen

                   Overall progress :    0.00% [                  ]     0/0    
                                    :    0.00% [                  ]     0/0    
                   Overall progress :    0.00% [                  ]     0/21   
                                    :    0.00% [                  ]     0/0    
                   Overall progress :    0.00% [                  ]     0/21   
                                    :    0.00% [                  ]     0/0    
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :    0.00% [                  ]     0/0    
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :    0.00% [                  ]     0/0    
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :    0.00% [                  ]     0/1    
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :  100.00% [==================]     1/1    
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :    0.00% [                  ]     0/0    
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :    0.00% [                  ]     0/0    
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :    0.00% [                  ]     0/1    
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :  100.00% [==================]     1/1    
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :  100.00% [==================]     1/1    
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :    0.00% [                  ]     0/0    
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :    0.00% [                  ]     0/0    
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :    0.00% [                  ]     0/1    
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :  100.00% [==================]     1/1    
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :    0.00% [                  ]     0/0    
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :    0.00% [                  ]     0/0    
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :    0.00% [                  ]     0/1    
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :  100.00% [==================]     1/1    
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :  100.00% [==================]     1/1    
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :    0.00% [                  ]     0/0    
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :    0.00% [                  ]     0/0    
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :    0.00% [                  ]     0/1    
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :  100.00% [==================]     1/1    
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :    0.00% [                  ]     0/0    
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :    0.00% [                  ]     0/0    
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :    0.00% [                  ]     0/45   
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :    2.22% [                  ]     1/45   
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :    4.44% [=                 ]     2/45   
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :    6.67% [=                 ]     3/45   
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :    8.89% [==                ]     4/45   
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :   11.11% [==                ]     5/45   
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :   13.33% [==                ]     6/45   
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :   15.56% [===               ]     7/45   
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :   17.78% [===               ]     8/45   
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :   20.00% [====              ]     9/45   
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :   22.22% [====              ]    10/45   
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :   24.44% [====              ]    11/45   
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :   26.67% [=====             ]    12/45   
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :   28.89% [=====             ]    13/45   
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :   31.11% [======            ]    14/45   
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :   33.33% [======            ]    15/45   
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :   35.56% [======            ]    16/45   
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :   37.78% [=======           ]    17/45   
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :   40.00% [=======           ]    18/45   
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :   42.22% [========          ]    19/45   
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :   44.44% [========          ]    20/45   
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :   46.67% [========          ]    21/45   
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :   48.89% [=========         ]    22/45   
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :   51.11% [=========         ]    23/45   
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :   53.33% [==========        ]    24/45   
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :   55.56% [==========        ]    25/45   
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :   57.78% [==========        ]    26/45   
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :   60.00% [===========       ]    27/45   
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :   62.22% [===========       ]    28/45   
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :   64.44% [============      ]    29/45   
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :   66.67% [============      ]    30/45   
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :   68.89% [============      ]    31/45   
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :   71.11% [=============     ]    32/45   
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :   73.33% [=============     ]    33/45   
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :   75.56% [==============    ]    34/45   
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :   77.78% [==============    ]    35/45   
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :   80.00% [==============    ]    36/45   
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :   82.22% [===============   ]    37/45   
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :   84.44% [===============   ]    38/45   
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :   86.67% [================  ]    39/45   
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :   88.89% [================  ]    40/45   
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :   91.11% [================  ]    41/45   
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :   93.33% [================= ]    42/45   
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :   95.56% [================= ]    43/45   
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :   97.78% [==================]    44/45   
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :  100.00% [==================]    45/45   
                   Overall progress :    0.00% [                  ]     0/21   
                   Replicating Host :  100.00% [==================]    45/45   
                   Overall progress :    4.76% [=                 ]     1/21   
                   Replicating Host :  100.00% [==================]    45/45   
                   Overall progress :    4.76% [=                 ]     1/21   
                   Replicating Host :  100.00% [==================]    45/45   
                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :    0.00% [                  ]     0/0    
                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :    0.00% [                  ]     0/0    
                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :    0.00% [                  ]     0/1    
                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :  100.00% [==================]     1/1    
                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :    0.00% [                  ]     0/0    
                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :    0.00% [                  ]     0/0    
                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :    0.00% [                  ]     0/46   
[KError occured: Failed to replicate object <LocalbootProduct id 'open-office', name 'Open Office'>: SQL backend module disabled
[K                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :    0.00% [                  ]     0/46   
                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :    2.17% [                  ]     1/46   
[KError occured: Failed to replicate object <LocalbootProduct id 'ie8', name 'Internet Explorer 8'>: SQL backend module disabled
[K                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :    2.17% [                  ]     1/46   
                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :    4.35% [=                 ]     2/46   
[KError occured: Failed to replicate object <LocalbootProduct id 'jedit', name 'jEdit programmer's text editor'>: SQL backend module disabled
[K                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :    4.35% [=                 ]     2/46   
                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :    6.52% [=                 ]     3/46   
[KError occured: Failed to replicate object <LocalbootProduct id 'adobe-flash-player', name 'Adobe Flash Player'>: SQL backend module disabled
[K                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :    6.52% [=                 ]     3/46   
                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :    8.70% [==                ]     4/46   
[KError occured: Failed to replicate object <LocalbootProduct id 'opsi-template', name 'opsi template product'>: SQL backend module disabled
[K                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :    8.70% [==                ]     4/46   
                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   10.87% [==                ]     5/46   
[KError occured: Failed to replicate object <LocalbootProduct id 'opsi-template-with-admin', name 'opsi template for installs with logged in admin'>: SQL backend module disabled
[K                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   10.87% [==                ]     5/46   
                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   13.04% [==                ]     6/46   
[KError occured: Failed to replicate object <LocalbootProduct id 'klitecodec', name 'K-Lite Codec Pack'>: SQL backend module disabled
[K                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   13.04% [==                ]     6/46   
                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   15.22% [===               ]     7/46   
[KError occured: Failed to replicate object <LocalbootProduct id 'javavm', name 'Oracle Java Runtime Environment'>: SQL backend module disabled
[K                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   15.22% [===               ]     7/46   
                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   17.39% [===               ]     8/46   
[KError occured: Failed to replicate object <LocalbootProduct id 'config-win-base', name 'Windows Customizing'>: SQL backend module disabled
[K                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   17.39% [===               ]     8/46   
                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   19.57% [====              ]     9/46   
[KError occured: Failed to replicate object <LocalbootProduct id 'opsi-winst', name 'winst'>: SQL backend module disabled
[K                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   19.57% [====              ]     9/46   
                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   21.74% [====              ]    10/46   
[KError occured: Failed to replicate object <LocalbootProduct id 'ie8-riolan', name 'Internet Explorer 8'>: SQL backend module disabled
[K                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   21.74% [====              ]    10/46   
                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   23.91% [====              ]    11/46   
[KError occured: Failed to replicate object <LocalbootProduct id 'shutdownwanted', name 'shutdown wanted'>: SQL backend module disabled
[K                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   23.91% [====              ]    11/46   
                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   26.09% [=====             ]    12/46   
[KError occured: Failed to replicate object <LocalbootProduct id 'pdfcreator', name 'PDF Creator'>: SQL backend module disabled
[K                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   26.09% [=====             ]    12/46   
                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   28.26% [=====             ]    13/46   
[KError occured: Failed to replicate object <LocalbootProduct id '7zip', name '7-Zip'>: SQL backend module disabled
[K                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   28.26% [=====             ]    13/46   
                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   30.43% [=====             ]    14/46   
[KError occured: Failed to replicate object <LocalbootProduct id 'adobe-reader-riolan', name 'Adobe Reader'>: SQL backend module disabled
[K                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   30.43% [=====             ]    14/46   
                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   32.61% [======            ]    15/46   
[KError occured: Failed to replicate object <LocalbootProduct id 'java', name 'Java JRE'>: SQL backend module disabled
[K                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   32.61% [======            ]    15/46   
                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   34.78% [======            ]    16/46   
[KError occured: Failed to replicate object <LocalbootProduct id 'opsi-adminutils', name 'some administration tools (not only) for opsi'>: SQL backend module disabled
[K                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   34.78% [======            ]    16/46   
                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   36.96% [=======           ]    17/46   
[KError occured: Failed to replicate object <LocalbootProduct id 'hwaudit', name 'Client Hardwareinventarisierung'>: SQL backend module disabled
[K                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   36.96% [=======           ]    17/46   
                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   39.13% [=======           ]    18/46   
[KError occured: Failed to replicate object <LocalbootProduct id 'opsi-winst-test', name 'opsi-winst test'>: SQL backend module disabled
[K                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   39.13% [=======           ]    18/46   
                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   41.30% [=======           ]    19/46   
[KError occured: Failed to replicate object <LocalbootProduct id 'test', name 'test'>: SQL backend module disabled
[K                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   41.30% [=======           ]    19/46   
                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   43.48% [========          ]    20/46   
[KError occured: Failed to replicate object <LocalbootProduct id 'adobe-reader', name 'Adobe Reader'>: SQL backend module disabled
[K                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   43.48% [========          ]    20/46   
                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   45.65% [========          ]    21/46   
[KError occured: Failed to replicate object <LocalbootProduct id 'firefox', name 'Mozilla Firefox'>: SQL backend module disabled
[K                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   45.65% [========          ]    21/46   
                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   47.83% [=========         ]    22/46   
[KError occured: Failed to replicate object <LocalbootProduct id 'opsi-client-agent', name 'opsi.org client agent'>: SQL backend module disabled
[K                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   47.83% [=========         ]    22/46   
                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   50.00% [=========         ]    23/46   
[KError occured: Failed to replicate object <LocalbootProduct id 'vlc', name 'VLC'>: SQL backend module disabled
[K                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   50.00% [=========         ]    23/46   
                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   52.17% [=========         ]    24/46   
[KError occured: Failed to replicate object <LocalbootProduct id 'swaudit', name 'Client software inventory'>: SQL backend module disabled
[K                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   52.17% [=========         ]    24/46   
                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   54.35% [==========        ]    25/46   
[KError occured: Failed to replicate object <NetbootProduct id 'winvista-x64-msdn', name 'Windows Vista MSDN - x64'>: SQL backend module disabled
[K                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   54.35% [==========        ]    25/46   
                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   56.52% [==========        ]    26/46   
[KError occured: Failed to replicate object <NetbootProduct id 'winxppro-x64', name 'Windows XP professional - x64 - deutsch'>: SQL backend module disabled
[K                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   56.52% [==========        ]    26/46   
                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   58.70% [===========       ]    27/46   
[KError occured: Failed to replicate object <NetbootProduct id 'win7', name 'Windows 7 - x86'>: SQL backend module disabled
[K                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   58.70% [===========       ]    27/46   
                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   60.87% [===========       ]    28/46   
[KError occured: Failed to replicate object <NetbootProduct id 'win2008-x64', name 'Windows Server 2008 - x64'>: SQL backend module disabled
[K                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   60.87% [===========       ]    28/46   
                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   63.04% [===========       ]    29/46   
[KError occured: Failed to replicate object <NetbootProduct id 'win8', name 'Windows'>: SQL backend module disabled
[K                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   63.04% [===========       ]    29/46   
                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   65.22% [============      ]    30/46   
[KError occured: Failed to replicate object <NetbootProduct id 'win2k', name 'Windows 2000 professional - x86 - deutsch'>: SQL backend module disabled
[K                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   65.22% [============      ]    30/46   
                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   67.39% [============      ]    31/46   
[KError occured: Failed to replicate object <NetbootProduct id 'win2003-r2-x64', name 'Windows Server 2003 R2 - x64 - english'>: SQL backend module disabled
[K                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   67.39% [============      ]    31/46   
                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   69.57% [=============     ]    32/46   
[KError occured: Failed to replicate object <NetbootProduct id 'winvista-x64', name 'Windows Vista - x64'>: SQL backend module disabled
[K                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   69.57% [=============     ]    32/46   
                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   71.74% [=============     ]    33/46   
[KError occured: Failed to replicate object <NetbootProduct id 'win2008', name 'Windows Server 2008 - x86'>: SQL backend module disabled
[K                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   71.74% [=============     ]    33/46   
                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   73.91% [=============     ]    34/46   
[KError occured: Failed to replicate object <NetbootProduct id 'ntfs-write-image', name 'NTFS Image erstellen'>: SQL backend module disabled
[K                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   73.91% [=============     ]    34/46   
                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   76.09% [==============    ]    35/46   
[KError occured: Failed to replicate object <NetbootProduct id 'win8-x64', name 'Windows'>: SQL backend module disabled
[K                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   76.09% [==============    ]    35/46   
                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   78.26% [==============    ]    36/46   
[KError occured: Failed to replicate object <NetbootProduct id 'winvista', name 'Windows Vista - x86'>: SQL backend module disabled
[K                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   78.26% [==============    ]    36/46   
                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   80.43% [==============    ]    37/46   
[KError occured: Failed to replicate object <NetbootProduct id 'win2003', name 'Windows 2003 Standard Edition - x86 - deutsch'>: SQL backend module disabled
[K                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   80.43% [==============    ]    37/46   
                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   82.61% [===============   ]    38/46   
[KError occured: Failed to replicate object <NetbootProduct id 'win2008-r2', name 'Windows Server 2008 R2 - x64'>: SQL backend module disabled
[K                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   82.61% [===============   ]    38/46   
                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   84.78% [===============   ]    39/46   
[KError occured: Failed to replicate object <NetbootProduct id 'wipedisk', name 'Festplatte oder Partitionen loeschen'>: SQL backend module disabled
[K                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   84.78% [===============   ]    39/46   
                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   86.96% [================  ]    40/46   
[KError occured: Failed to replicate object <NetbootProduct id 'win7-x64', name 'Windows 7 - x64'>: SQL backend module disabled
[K                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   86.96% [================  ]    40/46   
                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   89.13% [================  ]    41/46   
[KError occured: Failed to replicate object <NetbootProduct id 'memtest86', name 'Memtest86+'>: SQL backend module disabled
[K                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   89.13% [================  ]    41/46   
                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   91.30% [================  ]    42/46   
[KError occured: Failed to replicate object <NetbootProduct id 'winxppro', name 'Windows XP professional - x86 - deutsch'>: SQL backend module disabled
[K                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   91.30% [================  ]    42/46   
                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   93.48% [================= ]    43/46   
[K[K[KError occured: Traceback:
[K                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   95.65% [================= ]    44/46   
[KError occured:      line 274 in '<module>' in file '/usr/bin/opsi-convert'
[K                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   95.65% [================= ]    44/46   
[KError occured:      line 268 in 'main' in file '/usr/bin/opsi-convert'
[K                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   95.65% [================= ]    44/46   
[KError occured:      line 323 in 'replicate' in file '/usr/lib/pymodules/python2.6/OPSI/Backend/Replicator.py'
[K                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   95.65% [================= ]    44/46   
[KError occured:      line 298 in 'addToState' in file '/usr/lib/pymodules/python2.6/OPSI/Util/Message.py'
[K                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   95.65% [================= ]    44/46   
[KError occured:      line 295 in 'setState' in file '/usr/lib/pymodules/python2.6/OPSI/Util/Message.py'
[K                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   95.65% [================= ]    44/46   
[KError occured:      line 320 in '_notifyProgressChanged' in file '/usr/lib/pymodules/python2.6/OPSI/Util/Message.py'
[K                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   95.65% [================= ]    44/46   
[KError occured:      line 118 in 'progressChanged' in file '/usr/bin/opsi-convert'
[K                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   95.65% [================= ]    44/46   
[KError occured:      line 102 in 'displayProgress' in file '/usr/bin/opsi-convert'
[K                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   95.65% [================= ]    44/46   
[KError occured:      ==>>> 'ascii' codec can't encode character u'\xfc' in position 103: ordinal not in range(128)
[K                   Overall progress :    4.76% [=                 ]     1/21   
                Replicating Product :   95.65% [================= ]    44/46   
It's strange because yesterday I ran the command and it rush 100% without errors. Any idea ?
Benutzeravatar
tobias
Beiträge: 1291
Registriert: 20 Aug 2008, 12:36
Wohnort: Braunschweig
Kontaktdaten:

Re: Change dispatch.conf from file to mysql

Beitrag von tobias »

Did you read the Part "Initializing the MySQL-Backend" in the Manual?
http://download.uib.de/opsi4.0/doc/html ... ends-mysql

Do you have a Licence for the MySQL Backend? The MySQL-Backend is an Cofunding Projekt.
http://www.opsi.org/en/opsi-extensions

1. opsi-setup --configure-mysql
2. edit the file /etc/opsi/backendManager/dispatch.conf
3.

Code: Alles auswählen

opsi-setup --init-current-config
opsi-setup --set-rights
/etc/init.d/opsiconfd restart
/etc/init.d/opsipxeconfd restart
4. opsi-convert file mysql
Antworten