AVideo-Storage icon indicating copy to clipboard operation
AVideo-Storage copied to clipboard

errorHandlerPsi : - PHP throws a error

Open maxlinux2000 opened this issue 3 years ago • 3 comments

There is message of error errorHandlerPsi : - PHP throws a error Level : 8 Message : fgets(): read of 8192 bytes failed with errno=22 Invalid argument File : /var/www/html/AVideo-Storage/phpsysinfo/includes/class.CommonFunctions.inc.php Line : 372

Steps to reproduce

  1. install AVideo-Storage server as documentation on ubuntu 20.04 and activate the plugin on the avideo-server
  2. move some videos on the avideo-storage from avideo-server video panel.
  3. go to the avideo-storage and press SYS-info tab Result: there is a warning icon on te title. Pressing on it appear this error message: Captura de pantalla de 2021-05-04 18-18-53

here my sys info of the storage server Captura de pantalla de 2021-05-04 18-19-06

Note: The system is working, but this error can be a problem in the future

maxlinux2000 avatar May 04 '21 16:05 maxlinux2000

this is a third-party app, maybe you are missing a library. but I do not see this as a future problem, if I am in your shoes I would google for a solution, if I cannot find it I would just ignore it.

DanielnetoDotCom avatar May 04 '21 18:05 DanielnetoDotCom

Quick google suggest that you start from here ; https://github.com/phpsysinfo/phpsysinfo/issues/119

Maybe permissions issues, same as it suggested , since if I remember well , you're also using Raspberry Pi. https://www.reddit.com/r/linuxadmin/comments/43fhvv/debian_8_devnull_permission_denied_when_ssh/

akhilleusuggo avatar May 05 '21 13:05 akhilleusuggo

Hi, Sorry for the delay but I am traveling for a relative of my family, at the end of his life

The server is a vps on digitalocean (amd64).

I have changed the owner of "/var/www/html/AVideo-Storage/" in www-data to avoid lack of privilege issues.

Investigate the links provided and other research I found this bug that sound interesting: https://bugs.php.net/bug.php?id=79060

_[2020-01-03 15:42 UTC] [email protected]

is_readable() tells you whether you have "r" permissions on the path (which you clearly do, as the fopen is successful). It does not tell you whether actually reading from the FD will be successful. (A simple example is a directory -- on Linux these will fopen fine, but fail reading with errno 21.)

The behavior of /sys files is determined by the kernel and/or device drivers. This particular file happens to reject reads with errno 22.

That's just how things are. If you try to "cat /sys/class/net/lo/speed" you'll get exactly the same result._

But I don't understand what I have to do in order to fix it

maxlinux2000 avatar May 06 '21 08:05 maxlinux2000