Warning message "Unable to get path of workbench directory"

Antworten
bourhis
Beiträge: 112
Registriert: 07 Nov 2012, 15:57

Warning message "Unable to get path of workbench directory"

Beitrag von bourhis »

Hi,

since a server upgrade I have this message :

Code: Alles auswählen

warning: Unable to get path of workbench directory: Bad workbench local url: None
when I use "opsi-makepackage"
or :

Code: Alles auswählen

[4] [May 03 16:02:40] Unable to get path of workbench directory: Bad workbench local url: None (Rights.py|190)
when I use "opsi-set-rights"

Any idea ?

Best regards
Benutzeravatar
d.oertel
uib-Team
Beiträge: 3319
Registriert: 04 Jun 2008, 14:27

Re: Warning message "Unable to get path of workbench directory"

Beitrag von d.oertel »

Hi,

the basic change is that opsi 4.1 has by default the opsi workbench at:
/var/lib/opsi/workbench
and not in
/home/opsiproducts
But this may be configured:
There should be configs for the depot (configed /Properties of depots / depot configuration )
workbenchLocalUrl and workbenchRemoteUrl
So - if you like to have your workbench still at the old place set:
workbenchLocalUrl = file:///home/opsiproducts

The combination of a symbolic Link from /var/lib/opsi/workbench to /home/opsiproducts
workbenchLocalUrl = file:////var/lib/opsi/workbench
is also piisble.

Does this help ?

regards

d.oertel
opsi support - uib gmbh

For productive opsi installations we recommend support contracts.
http://www.uib.de
http://www.opsi.org
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: Warning message "Unable to get path of workbench directory"

Beitrag von n.wenselowski »

Hi,

this does look like an incomplete migration to opsi 4.1.
Please follow ALL instructions in the migration guide!


bye

Niko

Code: Alles auswählen

import OPSI
bourhis
Beiträge: 112
Registriert: 07 Nov 2012, 15:57

Re: Warning message "Unable to get path of workbench directory"

Beitrag von bourhis »

Hi,

I have made a symbolic link between /home/opsiproducts and /var/lib/opsi/workbench but it's doesn't resolve the warning...

I don't find the workbenchLocalUrl and workbenchRemoteUrl in my depot configuration : how can I add it ?

N.B. : when I try this command :

Code: Alles auswählen

opsi-setup --update-mysql
I obtain this error :
ERROR: (1054, "Unknown column 'workbenchLocalUrl' in 'field list'")

Best regards.
bourhis
Beiträge: 112
Registriert: 07 Nov 2012, 15:57

Re: Warning message "Unable to get path of workbench directory"

Beitrag von bourhis »

Hi,

I have added manually the two fields ("workbenchLocalUrl" and "workbenchRemoteUrl") at the "HOST" table and it seem's working...
Is there anything else to do ?

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

Re: Warning message "Unable to get path of workbench directory"

Beitrag von n.wenselowski »

Hi,

my suggestion would have been to restore your backup and migrate again with all the necessary steps.

Besides adding new columns in the host table there are a few more things we do. If you're up to manually altering the data structure you should really make sure that you get to the data structure we currently use.
Having a non-standard backend structure may work now but I can't say what future changes might fail on this.


Kind regards

Niko

Code: Alles auswählen

import OPSI
Antworten