Backend error: Failed to install package - [Errno 2] No such file or directory

rmtevesjr
Beiträge: 70
Registriert: 12 Jul 2012, 14:57

Backend error: Failed to install package - [Errno 2] No such file or directory

Beitragvon rmtevesjr » 20 Sep 2018, 01:35

When I run opsi-makeproducfile, the error below appears:

warning: Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules'
warning: Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules'

When I tried to re-install existing .opsi file, I got this error.
Errors occurred:
Failure while processing Install of package(s) /home/opsiproducts/7-zip9.2.0/7-zip9.2.0_9.2.0-1.opsi on depot 'opsiserver.domain:
Backend error: Failed to install package '/home/opsiproducts/7-zip9.2.0/7-zip9.2.0_9.2.0-1.opsi' on depot 'opsiserver.domain': Failed to get metadata from package '/home/opsiproducts/7-zip9.2.0/7-zip9.2.0_9.2.0-1.opsi': Failed to extract archive '/home/opsiproducts/7-zip9.2.0/7-zip9.2.0_9.2.0-1.opsi': [Errno 2] No such file or directory

The file exist in the directory. There was no recent change in the server. Please help. Thank you.

Benutzeravatar
n.wenselowski
Beiträge: 3059
Registriert: 04 Apr 2013, 12:15

Re: Backend error: Failed to install package - [Errno 2] No such file or directory

Beitragvon n.wenselowski » 20 Sep 2018, 11:47

Hi,

rmtevesjr hat geschrieben:warning: Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules'
warning: Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules'

This can be ignored unless you have a modules file (then you should check this ;)).
This isn't that dominant in newer versions so you probably want to update your installation.

rmtevesjr hat geschrieben:When I tried to re-install existing .opsi file, I got this error.
Errors occurred:
Failure while processing Install of package(s) /home/opsiproducts/7-zip9.2.0/7-zip9.2.0_9.2.0-1.opsi on depot 'opsiserver.domain:
Backend error: Failed to install package '/home/opsiproducts/7-zip9.2.0/7-zip9.2.0_9.2.0-1.opsi' on depot 'opsiserver.domain': Failed to get metadata from package '/home/opsiproducts/7-zip9.2.0/7-zip9.2.0_9.2.0-1.opsi': Failed to extract archive '/home/opsiproducts/7-zip9.2.0/7-zip9.2.0_9.2.0-1.opsi': [Errno 2] No such file or directory

The file exist in the directory. There was no recent change in the server. Please help. Thank you.

Are the access rights sufficent?
Try running sudo opsi-set-rights and then try to install again.


Regards

Niko
opsi support - uib gmbh
For productive opsi installations we recommend support contracts.

rmtevesjr
Beiträge: 70
Registriert: 12 Jul 2012, 14:57

[Resolved]Re: Backend error: Failed to install package - [Errno 2] No such file or directory

Beitragvon rmtevesjr » 02 Okt 2018, 11:12

Thanks Nikko, this was resolved already by restarting opsi services. Thanks.