phpsysinfo / phpsysinfo

phpSysInfo: a customizable PHP script that displays information about your system nicely
http://phpsysinfo.github.io/phpsysinfo
GNU General Public License v2.0
1.38k stars 233 forks source link

Error: nvme - Failed to scan topology #377

Closed LloydS42 closed 1 year ago

LloydS42 commented 1 year ago

Hello!

since today I am using phpsysinfo version 3.4.2. I am using phpsysinfo for many years. Since this version, an error message appears:

/usr/sbin/nvme - Failed to scan topology: No such file or directory
Return value: 1

./xml.php on line 39
./includes/output/class.WebpageXML.inc.php on line 254 in function getJsonString()
./includes/output/class.WebpageXML.inc.php on line 241 in function getXMLString()
./includes/xml/class.XML.inc.php on line 908 in function getXml()
./includes/xml/class.XML.inc.php on line 887 in function _buildXml()
./includes/os/class.OS.inc.php on line 265 in function getSys()
./includes/os/class.Linux.inc.php on line 2202 in function build()
./includes/os/class.Linux.inc.php on line 1361 in function _nvme()
./includes/class.CommonFunctions.inc.php on line 382 in function executeProgram( "nvme", "list", "", true )

The nvme tool is installed on the system, although it is not used because there is no NVMe drive on the system. I have not found a way to disable the scan of NVMe drives, nor are corresponding drives specified in the config file. The system has only SATA drives installed.

Therefore, I now ask myself: how can I disable the search for NVMe drives under this system to no longer see the error message?

Thank you!

LloydS42 commented 1 year ago

I give myself the answer: set DEBUG=false in the configuration file. Similar to issue #262.