_driver_links.py

Antworten
rfrankow
Beiträge: 140
Registriert: 03 Jul 2008, 15:06

_driver_links.py

Beitrag von rfrankow »

Fehler beim Ausführen von ./create_driver_links.py oder ./show_drivers.py pc_name auf NFS3 gemounteten Shares.

Code: Alles auswählen

./show_drivers.py pc_name
Additional drivers for integration found using byAudit (System) for vendor: 'FUJITSU CLIENT COMPUTING LIMITED' model : 'LIFEBOOK U7511'  Check if drivers are available.
ByAudit: Exact match found.
Manually selected drivers (additional)
   [/var/lib/opsi/depot/win10-x64/drivers/drivers/additional/byAudit/FUJITSU CLIENT COMPUTING LIMITED/LIFEBOOK U7511]
[3] [2022-11-30 16:29:05.212] [               ] Failed to lock file '/var/lib/opsi/depot/win10-x64/drivers/drivers/additional/byAudit/FUJITSU CLIENT COMPUTING LIMITED/LIFEBOOK U7511/1256760_7845_Intel_02.00.00.1097/gna.inf' after 2000 millis   (<string>:446)
Traceback (most recent call last):
  File "<string>", line 444, in <module>
  File "<string>", line 220, in main
  File "OPSI/Util/File/__init__.py", line 84, in parsedFile
  File "OPSI/Util/File/__init__.py", line 734, in parse
  File "OPSI/Util/File/__init__.py", line 478, in parse
  File "OPSI/Util/File/__init__.py", line 290, in readlines
  File "OPSI/Util/File/__init__.py", line 273, in open
  File "OPSI/Util/File/__init__.py", line 212, in open
  File "OPSI/Util/File/__init__.py", line 254, in _lockFile
OSError: Failed to lock file '/var/lib/opsi/depot/win10-x64/drivers/drivers/additional/byAudit/FUJITSU CLIENT COMPUTING LIMITED/LIFEBOOK U7511/1256760_7845_Intel_02.00.00.1097/gna.inf' after 2000 millis
Traceback (most recent call last):
  File "opsiutils/opsipython.py", line 65, in main
  File "opsiutils/opsipython.py", line 44, in run_script
  File "<string>", line 447, in <module>
  File "<string>", line 444, in <module>
  File "<string>", line 220, in main
  File "OPSI/Util/File/__init__.py", line 84, in parsedFile
  File "OPSI/Util/File/__init__.py", line 734, in parse
  File "OPSI/Util/File/__init__.py", line 478, in parse
  File "OPSI/Util/File/__init__.py", line 290, in readlines
  File "OPSI/Util/File/__init__.py", line 273, in open
  File "OPSI/Util/File/__init__.py", line 212, in open
  File "OPSI/Util/File/__init__.py", line 254, in _lockFile
OSError: Failed to lock file '/var/lib/opsi/depot/win10-x64/drivers/drivers/additional/byAudit/FUJITSU CLIENT COMPUTING LIMITED/LIFEBOOK U7511/1256760_7845_Intel_02.00.00.1097/gna.inf' after 2000 millis
Mount:

Code: Alles auswählen

/etc/auto.master.d/auto.mnt on /var/lib/opsi/depot type autofs (rw,relatime,fd=6,pgrp=156450,timeout=300,minproto=5,maxproto=5,direct,pipe_ino=8150093)
10.32.80.15:/Opsi_Depot on /var/lib/opsi/depot type nfs (rw,relatime,vers=3,rsize=65536,wsize=65536,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=10.32.80.15,mountvers=3,mountproto=tcp,local_lock=none,addr=10.32.80.15,_netdev)
SW-Stand:

Code: Alles auswählen

dpkg -l | grep ii | grep -i 'opsi\|python'
ii  libpython3-stdlib:amd64              3.9.2-3                        amd64        interactive high-level object-oriented language (default python3 version)
ii  libpython3.9:amd64                   3.9.2-1                        amd64        Shared Python runtime library (version 3.9)
ii  libpython3.9-minimal:amd64           3.9.2-1                        amd64        Minimal subset of the Python language (version 3.9)
ii  libpython3.9-stdlib:amd64            3.9.2-1                        amd64        Interactive high-level object-oriented language (standard library, version 3.9)
ii  opsi-linux-bootimage                 20220905-1                     all          opsi bootimage for netboot tasks.
ii  opsi-linux-support                   4.2.0.0-1                      all          Configure system to be able to deploy Linux with opsi.
ii  opsi-server-full                     4.2.0.69-1                     all          opsi server
ii  opsi-tftpd-hpa                       5.2.8-78                       amd64        HPA's tftp server
ii  opsi-utils                           4.2.0.188-1                    amd64        Utilities for working with opsi
ii  opsi-windows-support                 4.2.0.3-1                      all          Install utilities useful for deploying Windows with opsi.
ii  opsiconfd                            4.2.0.290-1                    amd64        opsi configuration service
ii  opsipxeconfd                         4.2.0.31-1                     amd64        opsi pxe configuration service
ii  python-apt-common                    2.2.1                          all          Python interface to libapt-pkg (locales)
ii  python3                              3.9.2-3                        amd64        interactive high-level object-oriented language (default python3 version)
ii  python3-apt                          2.2.1                          amd64        Python 3 interface to libapt-pkg
ii  python3-certifi                      2020.6.20-1                    all          root certificates for validating SSL certs and verifying TLS hosts (python3)
ii  python3-cffi-backend:amd64           1.14.5-1                       amd64        Foreign Function Interface for Python 3 calling C code - runtime
ii  python3-chardet                      4.0.0-1                        all          universal character encoding detector for Python3
ii  python3-cryptography                 3.3.2-1                        amd64        Python library exposing cryptographic recipes and primitives (Python 3)
ii  python3-dbus                         1.2.16-5                       amd64        simple interprocess messaging system (Python 3 interface)
ii  python3-debconf                      1.5.77                         all          interact with debconf from Python 3
ii  python3-debian                       0.1.39                         all          Python 3 modules to work with Debian-related data formats
ii  python3-debianbts                    3.1.0                          all          Python interface to Debian's Bug Tracking System
ii  python3-distro-info                  1.0                            all          information about distributions' releases (Python 3 module)
ii  python3-dnspython                    2.0.0-1                        all          DNS toolkit for Python 3
ii  python3-gi                           3.38.0-2                       amd64        Python 3 bindings for gobject-introspection libraries
ii  python3-gpg                          1.14.0-1+b2                    amd64        Python interface to the GPGME GnuPG encryption library (Python 3)
ii  python3-httplib2                     0.18.1-3                       all          comprehensive HTTP client library written for Python3
ii  python3-idna                         2.10-1                         all          Python IDNA2008 (RFC 5891) handling (Python 3)
ii  python3-ldb                          2:2.2.3-2~deb11u2              amd64        Python 3 bindings for LDB
ii  python3-markdown                     3.3.4-1                        all          text-to-HTML conversion library/tool (Python 3 version)
ii  python3-minimal                      3.9.2-3                        amd64        minimal subset of the Python language (default python3 version)
ii  python3-pkg-resources                52.0.0-4                       all          Package Discovery and Resource Access using pkg_resources
ii  python3-pycurl                       7.43.0.6-5                     amd64        Python bindings to libcurl (Python 3)
ii  python3-pygments                     2.7.1+dfsg-2.1                 all          syntax highlighting package written in Python 3
ii  python3-pysimplesoap                 1.16.2-3                       all          simple and lightweight SOAP Library (Python 3)
ii  python3-reportbug                    7.10.3+deb11u1                 all          Python modules for interacting with bug tracking systems
ii  python3-requests                     2.25.1+dfsg-2                  all          elegant and simple HTTP library for Python3, built for human beings
ii  python3-requests-toolbelt            0.9.1-1                        all          Utility belt for advanced users of python3-requests
ii  python3-samba                        2:4.13.13+dfsg-1~deb11u5       amd64        Python 3 bindings for Samba
ii  python3-six                          1.16.0-2                       all          Python 2 and 3 compatibility library (Python 3 interface)
ii  python3-software-properties          0.96.20.2-2.1                  all          manage the repositories that you install software from
ii  python3-talloc:amd64                 2.3.1-2+b1                     amd64        hierarchical pool based memory allocator - Python3 bindings
ii  python3-tdb                          1.4.3-1+b1                     amd64        Python3 bindings for TDB
ii  python3-urllib3                      1.26.5-1~exp1                  all          HTTP library with thread-safe connection pooling for Python3
ii  python3-yaml                         5.3.1-5                        amd64        YAML parser and emitter for Python3
ii  python3.9                            3.9.2-1                        amd64        Interactive high-level object-oriented language (version 3.9)
ii  python3.9-minimal                    3.9.2-1                        amd64        Minimal subset of the Python language (version 3.9)
rfrankow
Beiträge: 140
Registriert: 03 Jul 2008, 15:06

Re: _driver_links.py

Beitrag von rfrankow »

Evtl. liegt es an der Codierung utf16-le der INF Dateien, welche so aus den Treibern extrahiert wurden.
Ein manuelles konvertieren in ein anderes Format schafft Abhilfe zur Konvertierung. Der Fehler von oben bleibt.

Code: Alles auswählen

find /var/lib/opsi/depot/win10-x64/drivers/drivers/additional/byAudit/ -iname '*.inf' -exec sh -c 'iconv -f $(file -bi "$1" |sed -e "s/.*[ ]charset=//") -t utf-8 -o converted "$1" && mv converted "$1"' -- {} \;
Antworten