/sbin/modprobe efivars failed

loggenk
Beiträge: 163
Registriert: 15 Nov 2012, 17:34

/sbin/modprobe efivars failed

Beitrag von loggenk »

Hi,

The moment i try to image a system i receive above error.

I saw there was a topic on this issue, but my German is not so good that i can read it!
I have this issue with all images. Can someone help me with this?

With regards,

Kees....
Benutzeravatar
SisterOfMercy
Beiträge: 1527
Registriert: 22 Jun 2012, 19:18

Re: /sbin/modprobe efivars failed

Beitrag von SisterOfMercy »

loggenk hat geschrieben:I saw there was a topic on this issue, but my German is not so good that i can read it!
Well, what topic was that?
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
Benutzeravatar
wolfbardo
uib-Team
Beiträge: 1357
Registriert: 01 Jul 2008, 12:10

Re: /sbin/modprobe efivars failed

Beitrag von wolfbardo »

Which opsi-version on which platform you are running?

Code: Alles auswählen

cat /etc/issue

dpkg -l | grep opsi

or

rpm -qa | grep opsi
regards,
bardo wolf


OPSICONF 2024
https://opsi.org/en/opsiconf/

Basisworkshop Mainz :

17. - 20. 06. 2024


opsi support - uib gmbh
For productive opsi installations we recommend maintainance + support contracts which are the base of opsi development.

http://www.uib.de
Benutzeravatar
SisterOfMercy
Beiträge: 1527
Registriert: 22 Jun 2012, 19:18

Re: /sbin/modprobe efivars failed

Beitrag von SisterOfMercy »

There was a problem with syslinux 6, which was used on the bootimage a while ago. Due to several problems, syslinux 4 is back. So what bootimage are you using? Perhaps it needs updating.
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
loggenk
Beiträge: 163
Registriert: 15 Nov 2012, 17:34

Re: /sbin/modprobe efivars failed

Beitrag von loggenk »

Hi Bardo,

Ubuntu 14.04.4 LTS \n \l

root@opsi:/home/opsiproducts/activatewin7# dpkg -l | grep opsi
ii opsi-atftpd 0.7.dfsg-5 amd64 advanced TFTP server - opsi version with pcre, fifo and max-blksize patches
ii opsi-configed 4.0.6.3.5.1-2 all OPSI config editor
ii opsi-depotserver 4.0.6.4-2 all opsi depotserver configuration package
ii opsi-linux-bootimage 20160111-1 amd64 opsi bootimage for netboot tasks.
ii opsi-utils 4.0.6.9-1 all utilites for working with opsi.
ii opsiconfd 4.0.6.11-2 all opsi configuration service
ii opsipxeconfd 4.0.5.5-2 all opsi pxe configuration daemon
ii python-opsi 4.0.6.34-1 all opsi python library


Greetings,

Kees......
loggenk
Beiträge: 163
Registriert: 15 Nov 2012, 17:34

Re: /sbin/modprobe efivars failed

Beitrag von loggenk »

Hi Bardo,

opsi-linux-bootimage 20160111-1 amd64 opsi bootimage for netboot tasks.

Greetings,

Kees...
Benutzeravatar
m.radtke
uib-Team
Beiträge: 1534
Registriert: 10 Jun 2015, 12:19

Re: /sbin/modprobe efivars failed

Beitrag von m.radtke »

usually the scripts call
'modprobe efivars' to check if the efi module is available. If so then the system runs in UEFI Mode.
if not then legacy mode is enabled.

This command should not fail the script.

please provide the bootimage log for further insights

cheers
Mathias
Kein Support per DM!
_________________________
opsi support - http://www.uib.de/
For productive opsi installations we recommend support contracts.
loggenk
Beiträge: 163
Registriert: 15 Nov 2012, 17:34

Re: /sbin/modprobe efivars failed

Beitrag von loggenk »

Good Morning Mathias,

Here's the last part of the log:

-------------------------------------
[7] [Feb 24 16:54:32] Failed to get peer cert: 'NoneType' object has no attribute 'getpeercert' (HTTP.py|191)
[7] [Feb 24 16:54:32] Closing connection: <httplib.HTTPSConnection instance at 0xb5b74d6c> (HTTP.py|530)
[7] [Feb 24 16:54:32] Content-Type: gzip-application/json;charset=utf-8, Content-Encoding: deflate (JSONRPC.py|723)
[7] [Feb 24 16:54:32] Expecting deflated data from server (backwards compatible) (JSONRPC.py|731)
[7] [Feb 24 16:54:32] Executing jsonrpc method 'configState_getObjects' on host 192.168.0.239 (JSONRPC.py|115)
[7] [Feb 24 16:54:32] Posting request... (JSONRPC.py|706)
[7] [Feb 24 16:54:32] Starting new HTTPS connection (0) to 192.168.0.239:4447 (HTTP.py|587)
[7] [Feb 24 16:54:32] Connection established to: 192.168.0.239 (HTTP.py|600)
[7] [Feb 24 16:54:32] Failed to get peer cert: 'NoneType' object has no attribute 'getpeercert' (HTTP.py|191)
[7] [Feb 24 16:54:32] Closing connection: <httplib.HTTPSConnection instance at 0xb5b74e8c> (HTTP.py|530)
[7] [Feb 24 16:54:32] Content-Type: gzip-application/json;charset=utf-8, Content-Encoding: deflate (JSONRPC.py|723)
[7] [Feb 24 16:54:32] Expecting deflated data from server (backwards compatible) (JSONRPC.py|731)
[6] [Feb 24 16:54:32] Found config state: {'configId': u'clientconfig.depot.id', 'values': [u'opsi.cbl-systems.com'], 'objectId': u'rudolf-1.cbl-systems.com', 'type': u'ConfigState'} (master.py|1246)
[6] [Feb 24 16:54:32] Found config state: {'configId': u'clientconfig.configserver.url', 'values': [u'https://192.168.0.239:4447/rpc'], 'objectId': u'rudolf-1.cbl-systems.com', 'type': u'ConfigState'} (master.py|1246)
[6] [Feb 24 16:54:32] Found config state: {'configId': u'clientconfig.depot.drive', 'values': [u'p:'], 'objectId': u'rudolf-1.cbl-systems.com', 'type': u'ConfigState'} (master.py|1246)
[6] [Feb 24 16:54:32] Found config state: {'configId': u'clientconfig.depot.dynamic', 'values': [False], 'objectId': u'rudolf-1.cbl-systems.com', 'type': u'ConfigState'} (master.py|1246)
[6] [Feb 24 16:54:32] Found config state: {'configId': u'clientconfig.depot.protocol', 'values': [u'cifs'], 'objectId': u'rudolf-1.cbl-systems.com', 'type': u'ConfigState'} (master.py|1246)
[6] [Feb 24 16:54:32] Found config state: {'configId': u'clientconfig.dhcpd.filename', 'values': [], 'objectId': u'rudolf-1.cbl-systems.com', 'type': u'ConfigState'} (master.py|1246)
[6] [Feb 24 16:54:32] Found config state: {'configId': u'clientconfig.install_by_shutdown.active', 'values': [False], 'objectId': u'rudolf-1.cbl-systems.com', 'type': u'ConfigState'} (master.py|1246)
[6] [Feb 24 16:54:32] Found config state: {'configId': u'clientconfig.windows.domain', 'values': [u'CBL-SYSTEMS.COM'], 'objectId': u'rudolf-1.cbl-systems.com', 'type': u'ConfigState'} (master.py|1246)
[6] [Feb 24 16:54:32] Found config state: {'configId': u'configed.host_actions_disabled', 'values': [], 'objectId': u'rudolf-1.cbl-systems.com', 'type': u'ConfigState'} (master.py|1246)
[6] [Feb 24 16:54:32] Found config state: {'configId': u'configed.host_displayfields', 'values': [u'clientConnected', u'clientDescription', u'clientIPAddress', u'clientLastSeen', u'clientName'], 'objectId': u'rudolf-1.cbl-systems.com', 'type': u'ConfigState'} (master.py|1246)
[6] [Feb 24 16:54:32] Found config state: {'configId': u'configed.license_inventory_extradisplayfields', 'values': [], 'objectId': u'rudolf-1.cbl-systems.com', 'type': u'ConfigState'} (master.py|1246)
[6] [Feb 24 16:54:32] Found config state: {'configId': u'configed.opsiclientd_events', 'values': [u'on_demand'], 'objectId': u'rudolf-1.cbl-systems.com', 'type': u'ConfigState'} (master.py|1246)
[6] [Feb 24 16:54:32] Found config state: {'configId': u'configed.productonclient_displayfields_localboot', 'values': [u'actionRequest', u'installationInfo', u'installationStatus', u'productId', u'versionInfo'], 'objectId': u'rudolf-1.cbl-systems.com', 'type': u'ConfigState'} (master.py|1246)
[6] [Feb 24 16:54:32] Found config state: {'configId': u'configed.productonclient_displayfields_netboot', 'values': [u'actionRequest', u'installationInfo', u'installationStatus', u'productId', u'versionInfo'], 'objectId': u'rudolf-1.cbl-systems.com', 'type': u'ConfigState'} (master.py|1246)
[6] [Feb 24 16:54:32] Found config state: {'configId': u'configed.remote_control.ping_linux', 'values': [u'xterm +hold -e ping %host%'], 'objectId': u'rudolf-1.cbl-systems.com', 'type': u'ConfigState'} (master.py|1246)
[6] [Feb 24 16:54:32] Found config state: {'configId': u'configed.remote_control.ping_linux.description', 'values': [u'ping, started in a Linux environment'], 'objectId': u'rudolf-1.cbl-systems.com', 'type': u'ConfigState'} (master.py|1246)
[6] [Feb 24 16:54:32] Found config state: {'configId': u'configed.remote_control.ping_linux.editable', 'values': [True], 'objectId': u'rudolf-1.cbl-systems.com', 'type': u'ConfigState'} (master.py|1246)
[6] [Feb 24 16:54:32] Found config state: {'configId': u'configed.remote_control.ping_windows', 'values': [u'cmd.exe /c start ping %host%'], 'objectId': u'rudolf-1.cbl-systems.com', 'type': u'ConfigState'} (master.py|1246)
[6] [Feb 24 16:54:32] Found config state: {'configId': u'configed.remote_control.ping_windows.description', 'values': [u'ping, started in a Windows terminal'], 'objectId': u'rudolf-1.cbl-systems.com', 'type': u'ConfigState'} (master.py|1246)
[6] [Feb 24 16:54:32] Found config state: {'configId': u'configed.remote_control.ping_windows.editable', 'values': [True], 'objectId': u'rudolf-1.cbl-systems.com', 'type': u'ConfigState'} (master.py|1246)
[6] [Feb 24 16:54:32] Found config state: {'configId': u'configed.saved_search.product_failed', 'values': [u'{ "version" : "2", "data" : { "element" : null, "elementPath" : null, "operation" : "SoftwareOperation", "dataType" : null, "data" : null, "children" : [ { "element" : "SoftwareActionResultElement", "elementPath" : [ "Product", "Action Result" ], "operation" : "StringEqualsOperation", "dataType" : TextType, "data" : "failed", "children" : null } ] } }'], 'objectId': u'rudolf-1.cbl-systems.com', 'type': u'ConfigState'} (master.py|1246)
[6] [Feb 24 16:54:32] Found config state: {'configId': u'configed.saved_search.product_failed.description', 'values': [u'any product failed'], 'objectId': u'rudolf-1.cbl-systems.com', 'type': u'ConfigState'} (master.py|1246)
[6] [Feb 24 16:54:32] Found config state: {'configId': u'license-management.use', 'values': [False], 'objectId': u'rudolf-1.cbl-systems.com', 'type': u'ConfigState'} (master.py|1246)
[6] [Feb 24 16:54:32] Found config state: {'configId': u'opsi-linux-bootimage.append', 'values': [u'lang=en'], 'objectId': u'rudolf-1.cbl-systems.com', 'type': u'ConfigState'} (master.py|1246)
[6] [Feb 24 16:54:32] Found config state: {'configId': u'opsiclientd.event_gui_startup.active', 'values': [True], 'objectId': u'rudolf-1.cbl-systems.com', 'type': u'ConfigState'} (master.py|1246)
[6] [Feb 24 16:54:32] Found config state: {'configId': u'opsiclientd.event_gui_startup{user_logged_in}.active', 'values': [True], 'objectId': u'rudolf-1.cbl-systems.com', 'type': u'ConfigState'} (master.py|1246)
[6] [Feb 24 16:54:32] Found config state: {'configId': u'opsiclientd.event_net_connection.active', 'values': [False], 'objectId': u'rudolf-1.cbl-systems.com', 'type': u'ConfigState'} (master.py|1246)
[6] [Feb 24 16:54:32] Found config state: {'configId': u'opsiclientd.event_timer.active', 'values': [False], 'objectId': u'rudolf-1.cbl-systems.com', 'type': u'ConfigState'} (master.py|1246)
[6] [Feb 24 16:54:32] Found config state: {'configId': u'product_sort_algorithm', 'values': [u'algorithm1'], 'objectId': u'rudolf-1.cbl-systems.com', 'type': u'ConfigState'} (master.py|1246)
[6] [Feb 24 16:54:32] Found config state: {'configId': u'software-on-demand.active', 'values': [False], 'objectId': u'rudolf-1.cbl-systems.com', 'type': u'ConfigState'} (master.py|1246)
[6] [Feb 24 16:54:32] Found config state: {'configId': u'software-on-demand.product-group-ids', 'values': [u'software-on-demand'], 'objectId': u'rudolf-1.cbl-systems.com', 'type': u'ConfigState'} (master.py|1246)
[6] [Feb 24 16:54:32] Found config state: {'configId': u'software-on-demand.show-details', 'values': [False], 'objectId': u'rudolf-1.cbl-systems.com', 'type': u'ConfigState'} (master.py|1246)
[5] [Feb 24 16:54:32] Requesting product license... (master.py|1259)
[5] [Feb 24 16:54:32] Using product property to get licensekey (master.py|1267)
[6] [Feb 24 16:54:32] Product license key: (master.py|1275)
[5] [Feb 24 16:54:32] Fetching pcpatch password... (master.py|1279)
[7] [Feb 24 16:54:32] Executing jsonrpc method 'user_getCredentials' on host 192.168.0.239 (JSONRPC.py|115)
[7] [Feb 24 16:54:32] Posting request... (JSONRPC.py|706)
[7] [Feb 24 16:54:32] Starting new HTTPS connection (0) to 192.168.0.239:4447 (HTTP.py|587)
[7] [Feb 24 16:54:32] Connection established to: 192.168.0.239 (HTTP.py|600)
[7] [Feb 24 16:54:32] Failed to get peer cert: 'NoneType' object has no attribute 'getpeercert' (HTTP.py|191)
[7] [Feb 24 16:54:32] Closing connection: <httplib.HTTPSConnection instance at 0xb5b74dcc> (HTTP.py|530)
[7] [Feb 24 16:54:32] Content-Type: gzip-application/json;charset=utf-8, Content-Encoding: deflate (JSONRPC.py|723)
[7] [Feb 24 16:54:32] Expecting deflated data from server (backwards compatible) (JSONRPC.py|731)
[6] [Feb 24 16:54:32] Decrypting password... (master.py|1286)
[7] [Feb 24 16:54:32] Executing jsonrpc method 'host_getObjects' on host 192.168.0.239 (JSONRPC.py|115)
[7] [Feb 24 16:54:32] Posting request... (JSONRPC.py|706)
[7] [Feb 24 16:54:32] Starting new HTTPS connection (0) to 192.168.0.239:4447 (HTTP.py|587)
[7] [Feb 24 16:54:32] Connection established to: 192.168.0.239 (HTTP.py|600)
[7] [Feb 24 16:54:32] Failed to get peer cert: 'NoneType' object has no attribute 'getpeercert' (HTTP.py|191)
[7] [Feb 24 16:54:32] Closing connection: <httplib.HTTPSConnection instance at 0xb5b74dcc> (HTTP.py|530)
[7] [Feb 24 16:54:32] Content-Type: gzip-application/json;charset=utf-8, Content-Encoding: deflate (JSONRPC.py|723)
[7] [Feb 24 16:54:32] Expecting deflated data from server (backwards compatible) (JSONRPC.py|731)
[6] [Feb 24 16:54:32] Mountpoint: /mnt/opsi (Repository.py|1190)
[6] [Feb 24 16:54:32] Mounting 'smb://opsi/opsi_depot' to '/mnt/opsi' (Repository.py|1191)
[7] [Feb 24 16:54:32] Command 'mount' found at: '/bin/mount' (Posix.py|701)
[6] [Feb 24 16:54:32] Executing: /bin/mount -t cifs -o "iocharset=utf8,domain=opsi,credentials=/tmp/.cifs-credentials.opsi" //opsi/opsi_depot /mnt/opsi (Posix.py|759)
[6] [Feb 24 16:54:32] Using encoding 'UTF-8' (Posix.py|792)
[7] [Feb 24 16:54:34] Exit code: 0 (Posix.py|843)
[5] [Feb 24 16:54:34] Copying action script 'win7-x64/setup.py' from depot to '/tmp/setup.py' (master.py|1380)
[7] [Feb 24 16:54:34] MessageSubject 'copy_overall' created (Message.py|99)
[7] [Feb 24 16:54:34] ProgressSubject 'copy_overall' created (Message.py|227)
[7] [Feb 24 16:54:34] MessageSubject 'copy_current' created (Message.py|99)
[7] [Feb 24 16:54:34] ProgressSubject 'copy_current' created (Message.py|227)
[6] [Feb 24 16:54:34] Copying from 'win7-x64/setup.py' to '/tmp/setup.py' (Repository.py|522)
[7] [Feb 24 16:54:34] Length of binary data to download: 33478 bytes (Repository.py|742)
[7] [Feb 24 16:54:34] Transfer in from <open file u'/mnt/opsi/win7-x64/setup.py', mode 'rb' at 0xb5b3de38> to <open file u'/tmp/setup.py', mode 'wb' at 0xb5b6b128>, dynamic bandwidth False, max bandwidth 0 (Repository.py|366)
[7] [Feb 24 16:54:34] Filesize is: 33478 (Repository.py|377)
[6] [Feb 24 16:54:34] Transfered 32.69 kByte in 0.00 minutes, average speed was 1111.56 kByte/s (Repository.py|418)
[6] [Feb 24 16:54:34] Copy done (Repository.py|608)
[7] [Feb 24 16:54:34] MessageSubject 'script' created (Message.py|99)
[7] [Feb 24 16:54:34] The name of our actionScript: u'/tmp/setup.py' (master.py|1407)
[7] [Feb 24 16:54:34] Before submitting request to backend... (master.py|1448)
[7] [Feb 24 16:54:34] Executing jsonrpc method 'productOnClient_updateObjects' on host 192.168.0.239 (JSONRPC.py|115)
[7] [Feb 24 16:54:34] Posting request... (JSONRPC.py|706)
[7] [Feb 24 16:54:34] Starting new HTTPS connection (0) to 192.168.0.239:4447 (HTTP.py|587)
[7] [Feb 24 16:54:34] Connection established to: 192.168.0.239 (HTTP.py|600)
[7] [Feb 24 16:54:34] Failed to get peer cert: 'NoneType' object has no attribute 'getpeercert' (HTTP.py|191)
[7] [Feb 24 16:54:34] Closing connection: <httplib.HTTPSConnection instance at 0xb5b80fcc> (HTTP.py|530)
[7] [Feb 24 16:54:34] Content-Type: gzip-application/json;charset=utf-8, Content-Encoding: deflate (JSONRPC.py|723)
[7] [Feb 24 16:54:34] Expecting deflated data from server (backwards compatible) (JSONRPC.py|731)
[7] [Feb 24 16:54:34] After submitting request to backend... (master.py|1450)
[5] [Feb 24 16:54:34] try to load efivars module: modprobe efivars (setup.py|14)
[6] [Feb 24 16:54:34] Executing: /sbin/modprobe efivars (Posix.py|759)
[6] [Feb 24 16:54:34] Using encoding 'UTF-8' (Posix.py|792)
[7] [Feb 24 16:54:34] >>> modprobe: ERROR: could not insert 'efivars': No such device (Posix.py|836)
[7] [Feb 24 16:54:34] Exit code: 1 (Posix.py|843)
[2] [Feb 24 16:54:35] Traceback: (Logger.py|765)
[2] [Feb 24 16:54:35] line 1461 in '<module>' in file '/usr/local/bin/master.py' (Logger.py|765)
[2] [Feb 24 16:54:35] line 15 in '<module>' in file '/tmp/setup.py' (Logger.py|765)
[2] [Feb 24 16:54:35] line 850 in 'execute' in file '/usr/lib/python2.7/dist-packages/OPSI/System/Posix.py' (Logger.py|765)
[2] [Feb 24 16:54:35] ==>>> Command '/sbin/modprobe efivars' failed (1):
modprobe: ERROR: could not insert 'efivars': No such device (master.py|1509)
[7] [Feb 24 16:54:35] Backend: <JSONRPCBackend(host=u'192.168.0.239', deflate=False)> (master.py|1512)
[7] [Feb 24 16:54:35] ProductId: win7-x64 (master.py|1513)
[7] [Feb 24 16:54:35] ClientId: rudolf-1.cbl-systems.com (master.py|1514)
[7] [Feb 24 16:54:35] ProductOnClient: <ProductOnClient(clientId=u'rudolf-1.cbl-systems.com', productId=u'win7-x64', installationStatus=u'unknown', actionRequest=u'none')> (master.py|1515)
[6] [Feb 24 16:54:35] Updating productOnClient: {'actionProgress': u'', 'actionResult': u'failed', 'clientId': u'rudolf-1.cbl-systems.com', 'modificationTime': None, 'actionRequest': u'none', 'targetConfiguration': None, 'productVersion': None, 'productType': u'NetbootProduct', 'type': u'ProductOnClient', 'lastAction': None, 'packageVersion': None, 'actionSequence': None, 'installationStatus': u'unknown', 'productId': u'win7-x64'} (master.py|1526)
[7] [Feb 24 16:54:35] Executing jsonrpc method 'productOnClient_updateObjects' on host 192.168.0.239 (JSONRPC.py|115)
[7] [Feb 24 16:54:35] Posting request... (JSONRPC.py|706)
[7] [Feb 24 16:54:35] Starting new HTTPS connection (0) to 192.168.0.239:4447 (HTTP.py|587)
[7] [Feb 24 16:54:35] Connection established to: 192.168.0.239 (HTTP.py|600)
[7] [Feb 24 16:54:35] Failed to get peer cert: 'NoneType' object has no attribute 'getpeercert' (HTTP.py|191)
[7] [Feb 24 16:54:35] Closing connection: <httplib.HTTPSConnection instance at 0xb59ffdcc> (HTTP.py|530)
[7] [Feb 24 16:54:35] Content-Type: gzip-application/json;charset=utf-8, Content-Encoding: deflate (JSONRPC.py|723)
[7] [Feb 24 16:54:35] Expecting deflated data from server (backwards compatible) (JSONRPC.py|731)
[5] [Feb 24 16:54:35] Writing log to service (master.py|1536)

Greetings,

Kees....
uncle_scrooge
Beiträge: 650
Registriert: 21 Feb 2012, 12:03
Wohnort: Mainz

Re: /sbin/modprobe efivars failed

Beitrag von uncle_scrooge »

Looks like outdated netboot products.
For whatever reason older setup.py (in this case win7-x64/setup.py) don't like newer boot images.
Updating the netboot products would be a good start. opsi-product-updater comes in handy.

We had the same issue here on site. And as I said updating setup.py fixed it.

Regards
Peter
Antworten