-
Notifications
You must be signed in to change notification settings - Fork 61
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
php glob error in DefaultOs.php #157
Comments
Spotted a config difference between cli and fpm: root@cloud: /etc/php/7.2
$ diff cli/php.ini fpm/php.ini
310c310,311
< ;open_basedir =
---
> open_basedir = /tmp/:/var/www/html/nextcloud:/xxx/nextcloud_data/:/dev/urandom I'd set So I added
No luck 👎 If I add my known interfaces...
It works: But that's no use. I could unset If I just add $path = realpath('/sys/class/net');
$interfaces = [];
$result = [];
$dir = new RecursiveDirectoryIterator($path, RecursiveDirectoryIterator::SKIP_DOTS);
foreach($dir as $name){
$interfaces[] = $name->getPathname();
} |
Hi, |
Duplicate of #168 |
Steps to reproduce
Expected behaviour
No error, and System page should show full network status of all interfaces.
Actual behaviour
get the error and System page doesn not show full network status. e.g.:
Server configuration
Operating system:
Ubuntu 18.04.3 LTS
Web server:
nginx/1.16.1
Database:
mysqld Ver 5.7.27-0ubuntu0.18.04.1
PHP version:
PHP 7.2.19-0ubuntu0.18.04.2
Nextcloud version:
Nextcloud 17.0.0
Updated from an older Nextcloud/ownCloud or fresh install: Updated from 16.0.5
Where did you install Nextcloud from:
https://download.nextcloud.com/server/releases/nextcloud-17.0.0.tar.bz2
Signing status:
Signing status
List of activated apps:
App list
Nextcloud configuration:
Config report
Are you using external storage, if yes which one: No
Are you using encryption: No
Are you using an external user-backend, if yes which one: Webdav
Client configuration
Browser: Chrome Version 77.0.3865.90
Operating system: macOS 10.13.6 (17G8037)
Logs
Web server error log
Web server error log
Nextcloud log (data/nextcloud.log)
Nextcloud log
Browser log
Browser log
The cause of the error is the
glob()
on line 117. It returns false so theforeach()
blows up:serverinfo/lib/OperatingSystems/DefaultOs.php
Lines 116 to 120 in c59c960
I wrote a test script to try other patterns, and also on
Ubuntu 16.04.6/PHP 7.0.33-0ubuntu0.16.04.6/nginx/1.15.8
. Other patterns didn't work, but it did work on Ubuntu 16.04.6 etc. So I've spent quite a while checking for diffs between php/nginx configs, but can't see anything significant so far...Strangely, it works ok on the command line as the
www-data
user:The text was updated successfully, but these errors were encountered: