Paket Install auf UCS-Opsi

Antworten
Schuladmin
Beiträge: 2
Registriert: 13 Apr 2022, 14:51

Paket Install auf UCS-Opsi

Beitrag von Schuladmin »

Hallo,
das ist mein erster Eintrag hier im Forum und habe dirkt eine Frage. Ich betreibe zwei Opsi Server unter Ubuntu. Da wir nun auf die UCS Server wechseln wollen, habe ich einen Opsi Server per App-Center neu aufgesetzt.

Auf den Ubuntu-Opsi-Servern kann ich eigene Pakete ohne probleme installieren (Commandline & PackageBuilder), auf dem UCS-Opsi macht ein Paket Probleme, wo ich nicht weiter komme:

Code: Alles auswählen

$ opsi-package-manager -i microsoft-office_16.0.14931.20118-cr1.0.opsi
Ein Fehler ist aufgetreten:
   Fehler beim Bearbeiten von Install of package(s) /var/lib/opsi/workbench/microsoft-office/microsoft-office_16.0.14931.20118-cr1.0.opsi on depot 'srvopsi.fritz.box':
      Opsi rpc error: Backend error: Failed to install package '/var/lib/opsi/workbench/microsoft-office/microsoft-office_16.0.14931.20118-cr1.0.opsi' on depot 'srvopsi.fritz.box': (MySQLdb._exceptions.DataError) (1406, "Data too long for column 'userLoginScript' at row 1")
[SQL: INSERT INTO `PRODUCT` (`name`,`licenseRequired`,`setupScript`,`uninstallScript`,`updateScript`,`alwaysScript`,`onceScript`,`customScript`,`userLoginScript`,`priority`,`description`,`advice`,`changelog`,`productVersion`,`packageVersion`,`type`,`productId`) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s)]
[parameters: ('Microsoft Office 365', False, 'setup.opsiscript', 'uninstall.opsiscript', '', '', '', '', '\nStets aktuelle Versionen der Office-Anwendungen für Desktop- und Mobilgeräte: Outlook, Word, Excel, PowerPoint, OneNote (plus Access und Publisher nur für den PC)\nWebversionen von Word, Excel und PowerPoint\nDateispeicherung und -freigabe mit 1 TB OneDrive-Cloudspeicher', 0, 'Microsoft 365 Apps for Business, Ihre Produktivitäts-Cloud für Arbeit und Privat', 'Eine Nutzerlizenz gilt für vollständig installierbare Office-Anwendungen auf 15 Endgeräten (5 Smartphones, 5 Tablets und 5 PCs oder Macs)1', 'microsoft-office (16.0.14931.20118-2) stable; urgency=low\n\nInstall Error 17004\n\n -- Ralf Cremer <info@cremer-web.de>  Mon, 04 Apr 2022 19:49:41 + ... (42 characters truncated) ... -1) stable; urgency=low\n\nInitial: microsoft-office_16.0.14931.20118-1.opsi\n\n -- Ralf Cremer <info@cremer-web.de>  Tue, 29 Mar 2022 17:10:28 +0000', '16.0.14931.20118', 'cr1.0', 'LocalbootProduct', 'microsoft-office')]
(Background on this error at: https://sqlalche.me/e/14/9h9h) (error on server)

ERROR: Failed to process command 'install': 1 errors during the processing of tasks.
Dabei ist es egal, ob ich das per Root, adminuser oder PackageBuilder benutze. Der Fehler bleibt der gleiche.
Die Datenbank habe ich auch schon geprüft:

Code: Alles auswählen

# opsi-setup --update-mysql
[5] [2022-04-13 15:01:45.668] [               ] Connection to database 'opsi' on '127.0.0.1' as user 'opsi'   (MySQL.py:62)
[5] [2022-04-13 15:01:45.762] [               ] Creating opsi base   (SQL.py:604)
[5] [2022-04-13 15:01:46.056] [               ] Creating opsi base   (SQL.py:604)
[5] [2022-04-13 15:01:46.130] [               ] Creating base path: '/var/lib/opsi/config'   (File.py:215)
[5] [2022-04-13 15:01:46.360] [               ] Creating opsi base   (SQL.py:604)
[5] [2022-04-13 15:01:46.425] [               ] Creating base path: '/var/lib/opsi/config'   (File.py:215)
[5] [2022-04-13 15:01:46.426] [               ] Setting up default values.   (ConfigurationData.py:64)
[5] [2022-04-13 15:01:46.440] [               ] Finished setting up default values.   (ConfigurationData.py:71)
[5] [2022-04-13 15:01:46.631] [               ] Configuring samba   (Samba.py:32)
[5] [2022-04-13 15:01:46.667] [               ]    Share opsi_depot found and samba 4 is detected. Setting executable fix on opsi_depot share   (Samba.py:106)
[5] [2022-04-13 15:01:46.668] [               ]    Adding 'acl allow execute always = true'   (Samba.py:116)
Meine Dispatch.conf:

Code: Alles auswählen

#    mysql, opsipxeconfd and no dhcpd backend:
        backend_.*         : mysql, file, opsipxeconfd
        host_.*            : mysql, file, opsipxeconfd
        productOnClient_.* : mysql, opsipxeconfd
        configState_.*     : mysql, opsipxeconfd
        license.*          : mysql
        softwareLicense.*  : mysql
        audit.*            : mysql
        .*                 : mysql
Hat dazu jemand eine Idee, wie sich das beheben lässt?
Vielen Dank
Gruss
Ralf
Benutzeravatar
SisterOfMercy
Beiträge: 1522
Registriert: 22 Jun 2012, 19:18

Re: Paket Install auf UCS-Opsi

Beitrag von SisterOfMercy »

It could be your control-file is not ok. This package works on the other opsi servers?
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
Schuladmin
Beiträge: 2
Registriert: 13 Apr 2022, 14:51

Re: Paket Install auf UCS-Opsi

Beitrag von Schuladmin »

Yes, it works on the other servers.
Also package creation with packageBuilde does work.
Benutzeravatar
SisterOfMercy
Beiträge: 1522
Registriert: 22 Jun 2012, 19:18

Re: Paket Install auf UCS-Opsi

Beitrag von SisterOfMercy »

So all servers us the mysql backend? Is it the same mysql or mariadb package?

If you copy the version from the workbench (on the working server), and use opsi-makepackage on the ucs server, does it also fail?

I'm leaning to some weird mysql thing. Could you also post the control file here? (because of the "Data too long for column 'userLoginScript' at row 1" error)
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
Antworten