Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some Linux errors (in case they are useful) #133

Open
devpacdd opened this issue Feb 8, 2025 · 2 comments
Open

Some Linux errors (in case they are useful) #133

devpacdd opened this issue Feb 8, 2025 · 2 comments

Comments

@devpacdd
Copy link

devpacdd commented Feb 8, 2025

Here are a couple of errors I'm having on Linux (tested on Red Hat 8.10 and Ubuntu 24.04 with PHP 8.3.16).
In case they are useful

ERROR [dd_error::captureError]: Array
(
    [type] => 2
    [message] => Undefined array key "raid"
    [file] => /var/www/html/dedalo/lib/vendor/linfo/linfo/src/Linfo/OS/Linux.php
    [line] => 795
)
ERROR [dd_error::captureError]: Array
(
    [type] => 8
    [message] => file_get_contents(): Read of 12288 bytes failed with errno=22 Invalid argument
    [file] => /var/www/html/dedalo/lib/vendor/linfo/linfo/src/Linfo/Parsers/FileIO.php
    [line] => 20
)

Thanks jrgp

jrgp added a commit that referenced this issue Feb 8, 2025
@jrgp
Copy link
Owner

jrgp commented Feb 8, 2025

Undefined array key "raid" should be fixed in latest HEAD.

I need more info to help fix the second one though. I don't know what file it is trying to open, and it would only open it if it appears to pass readability and accessibility checks, so this one is pretty odd.

@devpacdd
Copy link
Author

Seems that the issue is reading /sys/class/net/lo/speed file from Linfo/Parsers/FileIO.php.

File is readable but system kernel rejects to allow PHP read. This file happens to reject reads with errno 22.
If you try to "cat /sys/class/net/lo/speed" you'll get exactly the same result.

From https://bugs.php.net/bug.php?id=79060

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants