Problem with opsi-makeproductfile

nirale33
Beiträge: 28
Registriert: 13 Sep 2013, 09:29

Problem with opsi-makeproductfile

Beitrag von nirale33 »

Hi,

I've an error message when I try to make the installation package with the command opsi-makeproductfile.
I've already put the script and the .exe file in the CLIENT_DATA folder.

When I launch the command I've this error message:

****@OPSI:/home/opsiproducts/teamviewer$ opsi-makeproductfile

Vérrouillage du paquet
critical: Traceback:
critical: line 386 in '<module>' in file '/usr/bin/opsi-makeproductfile'
critical: line 235 in 'main' in file '/usr/bin/opsi-makeproductfile'
critical: line 109 in 'lockPackage' in file '/usr/bin/opsi-makeproductfile'
critical: line 672 in 'getProduct' in file '/usr/lib/pymodules/python2.7/OPSI/Util/File/Opsi/__init__.py'
critical: line 444 in 'parse' in file '/usr/lib/pymodules/python2.7/OPSI/Util/File/Opsi/__init__.py'
critical: line 292 in 'forceProductVersion' in file '/usr/lib/pymodules/python2.7/OPSI/Types.py'
critical: ==>>> Bad product version: ''
ERROR: Bad product version: ''

I hope anyone could help me.

Best regards
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: Problem with opsi-makeproductfile

Beitrag von n.wenselowski »

Hello nirale33,

please check your control-file - OPSI/control
In the section [Product] you need to set a version - i.e. 1.0.

After that try running opsi-makeproductfile again.


Kind regards

N. Wenselowski

Code: Alles auswählen

import OPSI
nirale33
Beiträge: 28
Registriert: 13 Sep 2013, 09:29

Re: Problem with opsi-makeproductfile

Beitrag von nirale33 »

Thx for your reply.

I did not set a version, with just "Version : 1.0" it works perfectly.

My package is now create.

I'll try deploying now.

Thx again

Best regards
nirale33
Beiträge: 28
Registriert: 13 Sep 2013, 09:29

Re: Problem with opsi-makeproductfile

Beitrag von nirale33 »

I have now completed all the manipulations of the creation until the package is installed on the server.

But I can't find any option on the interface for installing the package on the posts.

My package is in /home/opsiproducts.

I need to copy the package *.Opsi in another directory to be displayed in the interface?
othiman
Beiträge: 126
Registriert: 09 Sep 2009, 14:15
Wohnort: Aachen, Germany

Re: Problem with opsi-makeproductfile

Beitrag von othiman »

Hi,

after packaging the files you need to deploy the package with:

Code: Alles auswählen

opsi-package-manager -i /home/opsiproducts/your-product.opsi
Best regards
Thomas
nirale33
Beiträge: 28
Registriert: 13 Sep 2013, 09:29

Re: Problem with opsi-makeproductfile

Beitrag von nirale33 »

Thx for your reply.

But now, when I want setup it, swsetup start whan I reboot the computer but my software make a "failled(setup)".

Is there a log file somewhere?
othiman
Beiträge: 126
Registriert: 09 Sep 2009, 14:15
Wohnort: Aachen, Germany

Re: Problem with opsi-makeproductfile

Beitrag von othiman »

You can find the logs in the tab "Log Files" and then in the tab instlog. You may need to refresh the configed before you can see the recent log.

Best regards,
Thomas
Benutzeravatar
SisterOfMercy
Beiträge: 1523
Registriert: 22 Jun 2012, 19:18

Re: Problem with opsi-makeproductfile

Beitrag von SisterOfMercy »

othiman hat geschrieben:after packaging the files you need to deploy the package with:

Code: Alles auswählen

opsi-package-manager -i /home/opsiproducts/your-product.opsi
Well.. deploying.. isn't this the procedure to install the package in the opsi repository? Deploying comes after that, right?
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: Problem with opsi-makeproductfile

Beitrag von n.wenselowski »

Hello,

yes: first you need to install the produkt on your depot and after that you can deploy it to a client.

If something failes the logfiles - as mentioned above - should give you a hint where to look.


Kind regards

NW

Code: Alles auswählen

import OPSI
havary
Beiträge: 1
Registriert: 28 Nov 2013, 20:11

Re: Problem with opsi-makeproductfile

Beitrag von havary »

Hi, ppl

I m trying to create a package for google chrome (wiki/userspace:google_chrome) without success. I m having the error above:

"opsi-package-manager -i googlechrome_1.0-1.opsi
Errors occured:
Failure while processing Install of package(s) /home/opsiproducts/googlechrome/googlechrome_1.0-1.opsi on depot 'gfnlinuxubu.domain.local':
[Errno 1] _ssl.c:499: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol"

[Edit]

I changed the port for OPSI server, from 4447 to 4477. Maybe i didnt use the best mode to change that config and opsi-package-manager is using the default port 4447 to do some thing. I run opsi-package-manager with the --log-file option and the line above show my point"

[7] [Jun 06 16:32:51] Starting new HTTPS connection (0) to gfnlinuxubu.domain.local:4447 (HTTP.py|582

so how can i fix all this?
[/Edit]

i dont know where to look to solve. Could you help me.

Thanks!
Antworten