Seite 1 von 1

Warning message "Unable to get path of workbench directory"

Verfasst: 03 Mai 2018, 16:16
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

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

Verfasst: 03 Mai 2018, 17:38
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

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

Verfasst: 03 Mai 2018, 17:48
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

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

Verfasst: 04 Mai 2018, 09:24
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.

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

Verfasst: 04 Mai 2018, 14:27
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

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

Verfasst: 07 Mai 2018, 10:32
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