Failed to create md5sum file
Verfasst: 19 Feb 2021, 14:32
Hallo Holger,
wenn in den Einstellungen->opsi Verwaltungsbefehle "Depotfunktionen aktivieren" und Paketieren: "opsi-makepackage -v --no-md5 --no-zsync" gesetzt und ist, bekomme ich beim Installieren folgenden Fehler.
Ist bei "Depotfunktionen aktivieren" NICHT gesetzt, kommt der Fehler nicht. Sprich wird auch installiert.
Bin im OPSI 4.2 Umfeld unterwegs.
Mein Zweites Anliegen ist: Wird ein Netzlaufwerk mit z.b. "U:\app\opsi\dev\workbench" verwendet, kommt der PackageBuilder mit dem setzen der Rechte und erstellen der Pakete nicht klar.
Rechte Setzen:
Packen:
wenn in den Einstellungen->opsi Verwaltungsbefehle "Depotfunktionen aktivieren" und Paketieren: "opsi-makepackage -v --no-md5 --no-zsync" gesetzt und ist, bekomme ich beim Installieren folgenden Fehler.
Code: Alles auswählen
[2021-02-19 01:59:00 PM] - --------------------ACTION: INSTALL--------------------
[2021-02-19 01:59:00 PM] - Processing action...
[2021-02-19 01:59:00 PM] - Trying to execute command: [2021-02-19 02:03:14 PM] -
[2021-02-19 01:59:00 PM] - Start SSH shell with full environment update / pseudo TTY
[2021-02-19 02:00:58 PM] - [3] [2021-02-19 13:59:57.618] [ ] chmod: path should be string, bytes, os.PathLike or integer, not _io.TextIOWrapper (error on server) (JSONRPC.py:126)
[2021-02-19 02:00:58 PM] - Traceback (most recent call last):
[2021-02-19 02:00:58 PM] - File "OPSI/Backend/JSONRPC.py", line 117, in processResult
[2021-02-19 02:00:58 PM] - TypeError: chmod: path should be string, bytes, os.PathLike or integer, not _io.TextIOWrapper (error on server)
[2021-02-19 02:00:58 PM] - [4] [2021-02-19 13:59:57.618] [ ] Failed to create md5sum file '/var/lib/opsi/repository/win10-x64_driver_1.0-7.opsi.md5': chmod: path should be string, bytes, os.PathLike or integer, not _io.TextIOWrapper (error on server) (opsipackagemanager.py:1153)
[2021-02-19 02:00:58 PM] - Return code from external command: 0
[2021-02-19 02:00:58 PM] - [3] [2021-02-19 13:59:57.618] [ ] chmod: path should be string, bytes, os.PathLike or integer, not _io.TextIOWrapper (error on server) (JSONRPC.py:126)
[2021-02-19 02:09:19 PM] - --------------------ACTION: SET RIGHTS--------------------
[2021-02-19 02:09:19 PM] - Processing action...
[2021-02-19 02:09:19 PM] - Trying to execute command: sh -c sudo opsi-set-rights '/home/opsiproducts/itunes'
[2021-02-19 02:09:19 PM] - Start SSH shell with full environment update / no pseudo TTY
[2021-02-19 02:09:22 PM] - Return code from external command: 0
[2021-02-19 02:09:22 PM] - [5] [2021-02-19 14:09:21.948] [ ] Setting rights on directory /home/opsiproducts/itunes (Rights.py:117)
Bin im OPSI 4.2 Umfeld unterwegs.
Mein Zweites Anliegen ist: Wird ein Netzlaufwerk mit z.b. "U:\app\opsi\dev\workbench" verwendet, kommt der PackageBuilder mit dem setzen der Rechte und erstellen der Pakete nicht klar.
Rechte Setzen:
Code: Alles auswählen
2021-02-19 02:29:41 PM] - --------------------ACTION: SET RIGHTS--------------------
[2021-02-19 02:29:41 PM] - Processing action...
[2021-02-19 02:29:41 PM] - Trying to execute command: sh -c sudo opsi-set-rights '/home/opsiproducts/OPSI/DEV/Workbench/itunes'
[2021-02-19 02:29:41 PM] - Start SSH shell with full environment update / no pseudo TTY
[2021-02-19 02:29:43 PM] - Return code from external command: 0
[2021-02-19 02:29:43 PM] - [4] [2021-02-19 14:29:43.026] [ ] File not found '/home/opsiproducts/OPSI/DEV/Workbench' (Rights.py:114)
Code: Alles auswählen
An unhandled exception occurred. Please report the problem
via the official opsi PackageBuilder forum:
https://forum.opsi.org/viewforum.php?f=22
Thank you!
A log has been written to "C:\Users\xxxxxxxxx\AppData\Local\Temp\opb-error-qmbcvjxf.log".
Error information:
--------------------------------------------------------------------------------
2021-02-19, 14:30:56
opsi PackageBuilder version: 8.4.5
--------------------------------------------------------------------------------
<class 'spur.errors.CouldNotChangeDirectoryError'>:
Could not change directory to: /home/opsiproducts/OPSI/DEV/Workbench/itunes
Original error: b'bash: Zeile 0: cd: /home/opsiproducts/OPSI/DEV/Workbench/itunes: Datei oder Verzeichnis nicht gefunden\n\n'
--------------------------------------------------------------------------------
File "oPB\controller\main.py", line 505, in project_build
File "oPB\controller\base.py", line 307, in do_build
File "oPB\controller\base.py", line 217, in _do
File "oPB\core\processing.py", line 188, in run
File "oPB\core\processing.py", line 958, in _processAction
File "site-packages\spur\ssh.py", line 169, in run
File "site-packages\spur\ssh.py", line 201, in spawn