Seite 1 von 1

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

Verfasst: 20 Sep 2018, 01:35
von rmtevesjr
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.

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

Verfasst: 20 Sep 2018, 11:47
von n.wenselowski
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

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

Verfasst: 02 Okt 2018, 11:12
von rmtevesjr
Thanks Nikko, this was resolved already by restarting opsi services. Thanks.