Seite 2 von 2
Re: driver scripts fails
Verfasst: 28 Sep 2020, 12:25
von SisterOfMercy
bobzbobz hat geschrieben:All new packages are now installed.
The problem still persists.
Sorry, I am a moron. Opsi-utils is of course a package that is not updated via opsi-package-manager, but via the package manager of your distro. Could you please update those too?
Re: driver scripts fails
Verfasst: 28 Sep 2020, 12:37
von bobzbobz
Newest OPSI-utils is installed. We also tried a reinstall.
The problem still persists.
Re: driver scripts fails
Verfasst: 28 Sep 2020, 14:43
von wolfbardo
What is the Output of
regards,
Bardo Wolf
Re: driver scripts fails
Verfasst: 28 Sep 2020, 14:45
von bobzbobz
Python 2.7.17
Re: driver scripts fails
Verfasst: 30 Sep 2020, 21:31
von SisterOfMercy
I haven't gotten a clue
Can you run this:
Re: driver scripts fails
Verfasst: 01 Okt 2020, 11:49
von bobzbobz
That command gave me this output:
[5] [Oct 01 11:47:08] Creating opsi base (SQL.py|498)
[5] [Oct 01 11:47:08] Setting up default values. (ConfigurationData.py|81)
[5] [Oct 01 11:47:09] Finished setting up default values. (ConfigurationData.py|89)
[4] [Oct 01 11:47:09] You have an old depot directory present. Using /opt/pcbin/install is depracted, please use /var/lib/opsi/depot instead. (InitializeBackend.py|185)
[5] [Oct 01 11:47:09] Configuring client user pcpatch (opsi-setup|146)
[5] [Oct 01 11:47:09] Creating RSA private key for user pcpatch in '/var/lib/opsi/.ssh/id_rsa' (opsi-setup|160)
[5] [Oct 01 11:47:09] Setting rights on directory '/var/lib/opsi/.ssh' (Rights.py|117)
Re: driver scripts fails
Verfasst: 02 Okt 2020, 21:05
von SisterOfMercy
bobzbobz hat geschrieben:That command gave me this output:
[5] [Oct 01 11:47:08] Creating opsi base (SQL.py|498)
[5] [Oct 01 11:47:08] Setting up default values. (ConfigurationData.py|81)
[5] [Oct 01 11:47:09] Finished setting up default values. (ConfigurationData.py|89)
[4] [Oct 01 11:47:09] You have an old depot directory present. Using /opt/pcbin/install is depracted, please use /var/lib/opsi/depot instead. (InitializeBackend.py|185)
[5] [Oct 01 11:47:09] Configuring client user pcpatch (opsi-setup|146)
[5] [Oct 01 11:47:09] Creating RSA private key for user pcpatch in '/var/lib/opsi/.ssh/id_rsa' (opsi-setup|160)
[5] [Oct 01 11:47:09] Setting rights on directory '/var/lib/opsi/.ssh' (Rights.py|117)
I noticed you were using /opt/pcbin/install, that is why I asked for the package versions. I was wondering if you were on an old version. After this command the driver script still doesn't work, right?
Does the directory /usr/lib/python2.7/site-packages/OPSI exist and does it have files?
Re: driver scripts fails
Verfasst: 12 Okt 2020, 13:42
von bobzbobz
Yeah the scripts still dont work after the init-command.
The folder "site-packages" does'nt exist in the path /usr/lib/python2.7
Re: driver scripts fails
Verfasst: 12 Okt 2020, 21:40
von SisterOfMercy
bobzbobz hat geschrieben:The folder "site-packages" does'nt exist in the path /usr/lib/python2.7
Either it is in a different location, because you're on ubuntu and I was looking at my own CentOS installation, or your python environment is buggered. Have you already tried reinstalling all python packages?
Re: driver scripts fails
Verfasst: 13 Okt 2020, 12:18
von bobzbobz
We think the problem is finally solved..
The scripts were calling python 3.x in the first line.
This was changed and now it seems to work.
Thank you for your help.