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

config.php is reset #12785

Closed
jGleitz opened this issue Dec 11, 2014 · 59 comments
Closed

config.php is reset #12785

jGleitz opened this issue Dec 11, 2014 · 59 comments
Assignees
Labels
Milestone

Comments

@jGleitz
Copy link

jGleitz commented Dec 11, 2014

Steps to reproduce

I don't know :(

Expected behaviour

The config/config.php is never changed unless I explicetly tell ownCloud to do so.

Actual behaviour

From time to time, the config/config.php file is reset to a kind of "default" form (with very few settings, setting a SQLite database as database). This happens about once a week. This causes my cloud to be not reachable for users very often, which is a shame. Plus, I have security concerns about this behaviour.

Server configuration

Operating system:
Ubuntu Server 14.04
File system:
vzfs
Web server:
Apache
Database:
MySQL
PHP version:
5.5.9 - XDebug not (yet) installed
ownCloud version:
7.0.4
Updated from an older ownCloud or fresh install:
updated (from the repository)
List of activated apps:

The content of config/config.php:

$CONFIG = array (
  'instanceid' => 'oc6518b3fb5e',
  'passwordsalt' => 'salt',
  'trusted_domains' => 
  array (
    0 => 'joshuagleitze.de',
  ),
  'datadirectory' => '/var/www/owncloud/data',
  'dbtype' => 'mysql',
  'version' => '7.0.4.2',
  'dbname' => 'ownCloud',
  'dbhost' => 'localhost',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'ownCloud',
  'dbpassword' => 'password',
  'overwrite.cli.url' => 'http://joshuagleitze.de/owncloud',
  'installed' => true,
  'skeletondirectory' => '',
  'log_rotate_size' => '838860800',
  'theme' => '',
  'maintenance' => false,
  'secret' => 'secret',
);

Are you using external storage, if yes which one: local/smb/sftp/...
no
Are you using encryption:
no

Client configuration

Unimportant

Logs

Web server error log

[Wed Dec 10 22:47:57.481871 2014] [:error] [pid 14057] [client 84.162.13.99:58649] PHP Fatal error:  Uncaught exception 'Exception' with message 'DateTimeZone::__construct(): Unknown or bad timezone (UTC)' in /var/www/owncloud/lib/private/log/owncloud.php:69\nStack trace:\n#0 /var/www/owncloud/lib/private/log/owncloud.php(69): DateTimeZone->__construct('UTC')\n#1 [internal function]: OC_Log_Owncloud::write('PHP', 'DateTimeZone::_...', 3)\n#2 /var/www/owncloud/lib/private/log.php(157): call_user_func(Array, 'PHP', 'DateTimeZone::_...', 3)\n#3 /var/www/owncloud/lib/private/log.php(74): OC\\Log->log(3, 'DateTimeZone::_...', Array)\n#4 /var/www/owncloud/lib/private/log/errorhandler.php(48): OC\\Log->critical('DateTimeZone::_...', Array)\n#5 [internal function]: OC\\Log\\ErrorHandler->onShutdown()\n#6 {main}\n  thrown in /var/www/owncloud/lib/private/log/owncloud.php on line 69, referer: https://joshuagleitze.de/owncloud/public.php?service=files&t=3c6420eb6c147bdbc6250e3dbfa07164&path=%2FWS%201%2FLA%2F%C3%9Cbung%2FInfo%2FFotos%2F2014-12-05
[Wed Dec 10 22:47:57.501611 2014] [:error] [pid 14002] [client 84.162.13.99:58645] PHP Fatal error:  Uncaught exception 'Exception' with message 'DateTimeZone::__construct(): Unknown or bad timezone (UTC)' in /var/www/owncloud/lib/private/log/owncloud.php:69\nStack trace:\n#0 /var/www/owncloud/lib/private/log/owncloud.php(69): DateTimeZone->__construct('UTC')\n#1 [internal function]: OC_Log_Owncloud::write('PHP', 'DateTimeZone::_...', 3)\n#2 /var/www/owncloud/lib/private/log.php(157): call_user_func(Array, 'PHP', 'DateTimeZone::_...', 3)\n#3 /var/www/owncloud/lib/private/log.php(74): OC\\Log->log(3, 'DateTimeZone::_...', Array)\n#4 /var/www/owncloud/lib/private/log/errorhandler.php(55): OC\\Log->critical('DateTimeZone::_...', Array)\n#5 [internal function]: OC\\Log\\ErrorHandler->onException(Object(Exception))\n#6 {main}\n  thrown in /var/www/owncloud/lib/private/log/owncloud.php on line 69, referer: https://joshuagleitze.de/owncloud/public.php?service=files&t=3c6420eb6c147bdbc6250e3dbfa07164&path=%2FWS%201%2FLA%2F%C3%9Cbung%2FInfo%2FFotos%2F2014-12-05
[Wed Dec 10 22:47:57.502010 2014] [:error] [pid 14002] [client 84.162.13.99:58645] PHP Fatal error:  Uncaught exception 'Exception' with message 'DateTimeZone::__construct(): Unknown or bad timezone (UTC)' in /var/www/owncloud/lib/private/log/owncloud.php:69\nStack trace:\n#0 /var/www/owncloud/lib/private/log/owncloud.php(69): DateTimeZone->__construct('UTC')\n#1 [internal function]: OC_Log_Owncloud::write('PHP', 'Uncaught except...', 3)\n#2 /var/www/owncloud/lib/private/log.php(157): call_user_func(Array, 'PHP', 'Uncaught except...', 3)\n#3 /var/www/owncloud/lib/private/log.php(74): OC\\Log->log(3, 'Uncaught except...', Array)\n#4 /var/www/owncloud/lib/private/log/errorhandler.php(48): OC\\Log->critical('Uncaught except...', Array)\n#5 [internal function]: OC\\Log\\ErrorHandler->onShutdown()\n#6 {main}\n  thrown in /var/www/owncloud/lib/private/log/owncloud.php on line 69, referer: https://joshuagleitze.de/owncloud/public.php?service=files&t=3c6420eb6c147bdbc6250e3dbfa07164&path=%2FWS%201%2FLA%2F%C3%9Cbung%2FInfo%2FFotos%2F2014-12-05
[Wed Dec 10 22:47:57.506621 2014] [:error] [pid 13909] [client 84.162.13.99:58646] PHP Fatal error:  Uncaught exception 'Exception' with message 'DateTimeZone::__construct(): Unknown or bad timezone (UTC)' in /var/www/owncloud/lib/private/log/owncloud.php:69\nStack trace:\n#0 /var/www/owncloud/lib/private/log/owncloud.php(69): DateTimeZone->__construct('UTC')\n#1 [internal function]: OC_Log_Owncloud::write('PHP', 'DateTimeZone::_...', 3)\n#2 /var/www/owncloud/lib/private/log.php(157): call_user_func(Array, 'PHP', 'DateTimeZone::_...', 3)\n#3 /var/www/owncloud/lib/private/log.php(74): OC\\Log->log(3, 'DateTimeZone::_...', Array)\n#4 /var/www/owncloud/lib/private/log/errorhandler.php(55): OC\\Log->critical('DateTimeZone::_...', Array)\n#5 [internal function]: OC\\Log\\ErrorHandler->onException(Object(Exception))\n#6 {main}\n  thrown in /var/www/owncloud/lib/private/log/owncloud.php on line 69, referer: https://joshuagleitze.de/owncloud/public.php?service=files&t=3c6420eb6c147bdbc6250e3dbfa07164&path=%2FWS%201%2FLA%2F%C3%9Cbung%2FInfo%2FFotos%2F2014-12-05
[Wed Dec 10 22:47:57.506980 2014] [:error] [pid 13909] [client 84.162.13.99:58646] PHP Fatal error:  Uncaught exception 'Exception' with message 'DateTimeZone::__construct(): Unknown or bad timezone (UTC)' in /var/www/owncloud/lib/private/log/owncloud.php:69\nStack trace:\n#0 /var/www/owncloud/lib/private/log/owncloud.php(69): DateTimeZone->__construct('UTC')\n#1 [internal function]: OC_Log_Owncloud::write('PHP', 'Uncaught except...', 3)\n#2 /var/www/owncloud/lib/private/log.php(157): call_user_func(Array, 'PHP', 'Uncaught except...', 3)\n#3 /var/www/owncloud/lib/private/log.php(74): OC\\Log->log(3, 'Uncaught except...', Array)\n#4 /var/www/owncloud/lib/private/log/errorhandler.php(48): OC\\Log->critical('Uncaught except...', Array)\n#5 [internal function]: OC\\Log\\ErrorHandler->onShutdown()\n#6 {main}\n  thrown in /var/www/owncloud/lib/private/log/owncloud.php on line 69, referer: https://joshuagleitze.de/owncloud/public.php?service=files&t=3c6420eb6c147bdbc6250e3dbfa07164&path=%2FWS%201%2FLA%2F%C3%9Cbung%2FInfo%2FFotos%2F2014-12-05
sh: error while loading shared libraries: libc.so.6: cannot open shared object file: Error 23
sh: error while loading shared libraries: libc.so.6: cannot open shared object file: Error 23
sh: error while loading shared libraries: libc.so.6: cannot open shared object file: Error 23
sh: error while loading shared libraries: libc.so.6: cannot open shared object file: Error 23
sh: error while loading shared libraries: libc.so.6: cannot open shared object file: Error 23
sh: error while loading shared libraries: libc.so.6: cannot open shared object file: Error 23
sh: error while loading shared libraries: libc.so.6: cannot open shared object file: Error 23
sh: error while loading shared libraries: libc.so.6: cannot open shared object file: Error 23
sh: error while loading shared libraries: libc.so.6: cannot open shared object file: Error 23
sh: error while loading shared libraries: libc.so.6: cannot open shared object file: Error 23
sh: error while loading shared libraries: libc.so.6: cannot open shared object file: Error 23
sh: error while loading shared libraries: libc.so.6: cannot open shared object file: Error 23
sh: error while loading shared libraries: libc.so.6: cannot open shared object file: Error 23
[Wed Dec 10 22:48:08.377016 2014] [:error] [pid 14051] [client 84.162.13.99:58648] PHP Warning:  include(/var/www/owncloud/config/config.php): failed to open stream: Too many open files in system in /var/www/owncloud/lib/private/config.php on line 154, referer: https://joshuagleitze.de/owncloud/public.php?service=files&t=3c6420eb6c147bdbc6250e3dbfa07164&path=%2FWS%201%2FLA%2F%C3%9Cbung%2FInfo%2FFotos%2F2014-12-05
[Wed Dec 10 22:48:08.377098 2014] [:error] [pid 14051] [client 84.162.13.99:58648] PHP Warning:  include(): Failed opening '/var/www/owncloud/config/config.php' for inclusion (include_path='/var/www/owncloud/lib:.:/usr/share/php:/usr/share/pear') in /var/www/owncloud/lib/private/config.php on line 154, referer: https://joshuagleitze.de/owncloud/public.php?service=files&t=3c6420eb6c147bdbc6250e3dbfa07164&path=%2FWS%201%2FLA%2F%C3%9Cbung%2FInfo%2FFotos%2F2014-12-05
sh: error while loading shared libraries: libc.so.6: cannot open shared object file: Error 23
[Wed Dec 10 22:48:08.488596 2014] [access_compat:error] [pid 14057] [client 127.0.0.1:53936] AH01797: client denied by server configuration: /var/www/owncloud/data/htaccesstest.txt
[Wed Dec 10 22:48:08.860355 2014] [:error] [pid 14057] [client 127.0.0.1:34790] {"app":"PHP","message":"require_once(\\/var\\/www\\/owncloud\\/3rdparty\\/doctrine\\/dbal\\/lib\\/Doctrine\\/DBAL\\/Driver\\/PDOStatement.php): failed to open stream: Too many open files in system at \\/var\\/www\\/owncloud\\/lib\\/autoloader.php#142","level":3,"time":"2014-12-10T21:48:08+00:00"}
[Wed Dec 10 22:48:08.860414 2014] [:error] [pid 14057] [client 127.0.0.1:34790] PHP Fatal error:  require_once(): Failed opening required '/var/www/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php' (include_path='/var/www/owncloud/3rdparty/phpseclib/phpseclib/phpseclib:/var/www/owncloud/lib/private:/var/www/owncloud/config:/var/www/owncloud/3rdparty:/var/www/owncloud/apps:/var/www/owncloud/lib:.:/usr/share/php:/usr/share/pear:/var/www/owncloud') in /var/www/owncloud/lib/autoloader.php on line 142
[Wed Dec 10 22:48:08.860562 2014] [:error] [pid 14057] [client 127.0.0.1:34790] {"app":"PHP","message":"require_once(): Failed opening required '\\/var\\/www\\/owncloud\\/3rdparty\\/doctrine\\/dbal\\/lib\\/Doctrine\\/DBAL\\/Driver\\/PDOStatement.php' (include_path='\\/var\\/www\\/owncloud\\/3rdparty\\/phpseclib\\/phpseclib\\/phpseclib:\\/var\\/www\\/owncloud\\/lib\\/private:\\/var\\/www\\/owncloud\\/config:\\/var\\/www\\/owncloud\\/3rdparty:\\/var\\/www\\/owncloud\\/apps:\\/var\\/www\\/owncloud\\/lib:.:\\/usr\\/share\\/php:\\/usr\\/share\\/pear:\\/var\\/www\\/owncloud') at \\/var\\/www\\/owncloud\\/lib\\/autoloader.php#142","level":3,"time":"2014-12-10T21:48:08+00:00"}
[Wed Dec 10 22:48:09.062325 2014] [access_compat:error] [pid 14057] [client 127.0.0.1:53938] AH01797: client denied by server configuration: /var/www/owncloud/data/htaccesstest.txt
[Wed Dec 10 22:48:09.130404 2014] [:error] [pid 14112] [client 127.0.0.1:34792] PHP Warning:  require_once(/var/www/owncloud/3rdparty/autoload.php): failed to open stream: Too many open files in system in /var/www/owncloud/lib/base.php on line 484
[Wed Dec 10 22:48:09.130474 2014] [:error] [pid 14112] [client 127.0.0.1:34792] PHP Fatal error:  require_once(): Failed opening required '/var/www/owncloud/3rdparty/autoload.php' (include_path='/var/www/owncloud/lib/private:/var/www/owncloud/config:/var/www/owncloud/3rdparty:/var/www/owncloud/apps:/var/www/owncloud/lib:.:/usr/share/php:/usr/share/pear:/var/www/owncloud') in /var/www/owncloud/lib/base.php on line 484
[Wed Dec 10 22:48:09.132125 2014] [:error] [pid 14051] [client 84.162.13.99:58648] {"app":"PHP","message":"require_once(\\/var\\/www\\/owncloud\\/lib\\/private\\/template.php): failed to open stream: Too many open files in system at \\/var\\/www\\/owncloud\\/lib\\/autoloader.php#142","level":3,"time":"2014-12-10T21:48:09+00:00"}, referer: https://joshuagleitze.de/owncloud/public.php?service=files&t=3c6420eb6c147bdbc6250e3dbfa07164&path=%2FWS%201%2FLA%2F%C3%9Cbung%2FInfo%2FFotos%2F2014-12-05
[Wed Dec 10 22:48:09.132174 2014] [:error] [pid 14051] [client 84.162.13.99:58648] PHP Fatal error:  require_once(): Failed opening required '/var/www/owncloud/lib/private/template.php' (include_path='/var/www/owncloud/3rdparty/phpseclib/phpseclib/phpseclib:/var/www/owncloud/lib/private:/var/www/owncloud/config:/var/www/owncloud/3rdparty:/var/www/owncloud/apps:/var/www/owncloud/lib:.:/usr/share/php:/usr/share/pear:/var/www/owncloud') in /var/www/owncloud/lib/autoloader.php on line 142, referer: https://joshuagleitze.de/owncloud/public.php?service=files&t=3c6420eb6c147bdbc6250e3dbfa07164&path=%2FWS%201%2FLA%2F%C3%9Cbung%2FInfo%2FFotos%2F2014-12-05
[Wed Dec 10 22:48:09.132313 2014] [:error] [pid 14051] [client 84.162.13.99:58648] {"app":"PHP","message":"require_once(): Failed opening required '\\/var\\/www\\/owncloud\\/lib\\/private\\/template.php' (include_path='\\/var\\/www\\/owncloud\\/3rdparty\\/phpseclib\\/phpseclib\\/phpseclib:\\/var\\/www\\/owncloud\\/lib\\/private:\\/var\\/www\\/owncloud\\/config:\\/var\\/www\\/owncloud\\/3rdparty:\\/var\\/www\\/owncloud\\/apps:\\/var\\/www\\/owncloud\\/lib:.:\\/usr\\/share\\/php:\\/usr\\/share\\/pear:\\/var\\/www\\/owncloud') at \\/var\\/www\\/owncloud\\/lib\\/autoloader.php#142","level":3,"time":"2014-12-10T21:48:09+00:00"}, referer: https://joshuagleitze.de/owncloud/public.php?service=files&t=3c6420eb6c147bdbc6250e3dbfa07164&path=%2FWS%201%2FLA%2F%C3%9Cbung%2FInfo%2FFotos%2F2014-12-05
[Wed Dec 10 22:48:09.223346 2014] [:error] [pid 14057] [client 79.219.99.88:57897] PHP Warning:  include(/var/www/owncloud/config/config.php): failed to open stream: Too many open files in system in /var/www/owncloud/lib/private/config.php on line 154
[Wed Dec 10 22:48:09.223385 2014] [:error] [pid 14057] [client 79.219.99.88:57897] PHP Warning:  include(): Failed opening '/var/www/owncloud/config/config.php' for inclusion (include_path='/var/www/owncloud/lib:.:/usr/share/php:/usr/share/pear') in /var/www/owncloud/lib/private/config.php on line 154
[Wed Dec 10 22:48:09.225776 2014] [core:crit] [pid 14112] (23)Too many open files in system: [client 84.162.13.99:58654] AH00529: /var/www/owncloud/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/var/www/owncloud/' is executable, referer: https://joshuagleitze.de/owncloud/public.php?service=files&t=3c6420eb6c147bdbc6250e3dbfa07164&path=%2FWS%201%2FLA%2F%C3%9Cbung%2FInfo%2FFotos%2F2014-12-05
[Wed Dec 10 22:48:09.240675 2014] [:error] [pid 14057] [client 79.219.99.88:57897] PHP Warning:  Uncaught exception 'Exception' with message 'DateTimeZone::__construct(): Unknown or bad timezone (UTC)' in /var/www/owncloud/lib/private/log/owncloud.php:69\nStack trace:\n#0 /var/www/owncloud/lib/private/log/owncloud.php(69): DateTimeZone->__construct('UTC')\n#1 [internal function]: OC_Log_Owncloud::write('PHP', 'require_once(/v...', 3)\n#2 /var/www/owncloud/lib/private/log.php(157): call_user_func(Array, 'PHP', 'require_once(/v...', 3)\n#3 /var/www/owncloud/lib/private/log.php(85): OC\\Log->log(3, 'require_once(/v...', Array)\n#4 /var/www/owncloud/lib/private/log/errorhandler.php(64): OC\\Log->error('require_once(/v...', Array)\n#5 /var/www/owncloud/lib/autoloader.php(142): OC\\Log\\ErrorHandler->onError(2, 'require_once(/v...', '/var/www/ownclo...', 142, Array)\n#6 /var/www/owncloud/lib/autoloader.php(142): OC\\Autoloader::load()\n#7 [internal function]: OC\\Autoloader->load('OC_L10N')\n#8 /var/www/owncloud/lib/base.php(190): spl_autoload_call('OC_L10N')\n#9 /var/www/owncloud/lib/base.php(514): OC::checkConfig()\n#10 /var/ in /var/www/owncloud/lib/private/log/owncloud.php on line 69
[Wed Dec 10 22:48:09.240714 2014] [:error] [pid 14057] [client 79.219.99.88:57897] PHP Fatal error:  OC\\Autoloader::load(): Failed opening required '/var/www/owncloud/lib/private/l10n.php' (include_path='/var/www/owncloud/3rdparty/phpseclib/phpseclib/phpseclib:/var/www/owncloud/lib/private:/var/www/owncloud/config:/var/www/owncloud/3rdparty:/var/www/owncloud/apps:/var/www/owncloud/lib:.:/usr/share/php:/usr/share/pear:/var/www/owncloud') in /var/www/owncloud/lib/autoloader.php on line 142
[Wed Dec 10 22:48:09.240877 2014] [:error] [pid 14057] [client 79.219.99.88:57897] PHP Fatal error:  Uncaught exception 'Exception' with message 'DateTimeZone::__construct(): Unknown or bad timezone (UTC)' in /var/www/owncloud/lib/private/log/owncloud.php:69\nStack trace:\n#0 /var/www/owncloud/lib/private/log/owncloud.php(69): DateTimeZone->__construct('UTC')\n#1 [internal function]: OC_Log_Owncloud::write('PHP', 'OC\\Autoloader::...', 3)\n#2 /var/www/owncloud/lib/private/log.php(157): call_user_func(Array, 'PHP', 'OC\\Autoloader::...', 3)\n#3 /var/www/owncloud/lib/private/log.php(74): OC\\Log->log(3, 'OC\\Autoloader::...', Array)\n#4 /var/www/owncloud/lib/private/log/errorhandler.php(48): OC\\Log->critical('OC\\Autoloader::...', Array)\n#5 [internal function]: OC\\Log\\ErrorHandler->onShutdown()\n#6 {main}\n  thrown in /var/www/owncloud/lib/private/log/owncloud.php on line 69
[Wed Dec 10 22:48:09.258683 2014] [:error] [pid 14112] [client 84.162.13.99:58654] PHP Warning:  include(/var/www/owncloud/config/config.php): failed to open stream: Too many open files in system in /var/www/owncloud/lib/private/config.php on line 154, referer: https://joshuagleitze.de/owncloud/public.php?service=files&t=3c6420eb6c147bdbc6250e3dbfa07164&path=%2FWS%201%2FLA%2F%C3%9Cbung%2FInfo%2FFotos%2F2014-12-05
[Wed Dec 10 22:48:09.258722 2014] [:error] [pid 14112] [client 84.162.13.99:58654] PHP Warning:  include(): Failed opening '/var/www/owncloud/config/config.php' for inclusion (include_path='/var/www/owncloud/lib:.:/usr/share/php:/usr/share/pear') in /var/www/owncloud/lib/private/config.php on line 154, referer: https://joshuagleitze.de/owncloud/public.php?service=files&t=3c6420eb6c147bdbc6250e3dbfa07164&path=%2FWS%201%2FLA%2F%C3%9Cbung%2FInfo%2FFotos%2F2014-12-05
[Wed Dec 10 22:48:09.386847 2014] [core:crit] [pid 14051] (23)Too many open files in system: [client 127.0.0.1:53940] AH00529: /var/www/owncloud/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/var/www/owncloud/' is executable
[Wed Dec 10 22:48:09.424425 2014] [:error] [pid 14112] [client 84.162.13.99:58654] {"app":"PHP","message":"require_once(\\/var\\/www\\/owncloud\\/3rdparty\\/doctrine\\/dbal\\/lib\\/Doctrine\\/DBAL\\/Driver\\/PDOStatement.php): failed to open stream: Too many open files in system at \\/var\\/www\\/owncloud\\/lib\\/autoloader.php#142","level":3,"time":"2014-12-10T21:48:09+00:00"}, referer: https://joshuagleitze.de/owncloud/public.php?service=files&t=3c6420eb6c147bdbc6250e3dbfa07164&path=%2FWS%201%2FLA%2F%C3%9Cbung%2FInfo%2FFotos%2F2014-12-05
[Wed Dec 10 22:48:09.424515 2014] [:error] [pid 14112] [client 84.162.13.99:58654] PHP Fatal error:  require_once(): Failed opening required '/var/www/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php' (include_path='/var/www/owncloud/3rdparty/phpseclib/phpseclib/phpseclib:/var/www/owncloud/lib/private:/var/www/owncloud/config:/var/www/owncloud/3rdparty:/var/www/owncloud/apps:/var/www/owncloud/lib:.:/usr/share/php:/usr/share/pear:/var/www/owncloud') in /var/www/owncloud/lib/autoloader.php on line 142, referer: https://joshuagleitze.de/owncloud/public.php?service=files&t=3c6420eb6c147bdbc6250e3dbfa07164&path=%2FWS%201%2FLA%2F%C3%9Cbung%2FInfo%2FFotos%2F2014-12-05
[Wed Dec 10 22:48:09.424675 2014] [:error] [pid 14112] [client 84.162.13.99:58654] {"app":"PHP","message":"require_once(): Failed opening required '\\/var\\/www\\/owncloud\\/3rdparty\\/doctrine\\/dbal\\/lib\\/Doctrine\\/DBAL\\/Driver\\/PDOStatement.php' (include_path='\\/var\\/www\\/owncloud\\/3rdparty\\/phpseclib\\/phpseclib\\/phpseclib:\\/var\\/www\\/owncloud\\/lib\\/private:\\/var\\/www\\/owncloud\\/config:\\/var\\/www\\/owncloud\\/3rdparty:\\/var\\/www\\/owncloud\\/apps:\\/var\\/www\\/owncloud\\/lib:.:\\/usr\\/share\\/php:\\/usr\\/share\\/pear:\\/var\\/www\\/owncloud') at \\/var\\/www\\/owncloud\\/lib\\/autoloader.php#142","level":3,"time":"2014-12-10T21:48:09+00:00"}, referer: https://joshuagleitze.de/owncloud/public.php?service=files&t=3c6420eb6c147bdbc6250e3dbfa07164&path=%2FWS%201%2FLA%2F%C3%9Cbung%2FInfo%2FFotos%2F2014-12-05
[Wed Dec 10 22:48:09.652847 2014] [core:crit] [pid 14057] (23)Too many open files in system: [client 127.0.0.1:53941] AH00529: /var/www/owncloud/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/var/www/owncloud/' is executable
[Wed Dec 10 22:48:09.684389 2014] [:error] [pid 14056] [client 84.162.13.99:58655] {"app":"PHP","message":"require_once(\\/var\\/www\\/owncloud\\/3rdparty\\/doctrine\\/dbal\\/lib\\/Doctrine\\/DBAL\\/Driver\\/PDOStatement.php): failed to open stream: Too many open files in system at \\/var\\/www\\/owncloud\\/lib\\/autoloader.php#142","level":3,"time":"2014-12-10T21:48:09+00:00"}, referer: https://joshuagleitze.de/owncloud/public.php?service=files&t=3c6420eb6c147bdbc6250e3dbfa07164&path=%2FWS%201%2FLA%2F%C3%9Cbung%2FInfo%2FFotos%2F2014-12-05
[Wed Dec 10 22:48:09.684453 2014] [:error] [pid 14056] [client 84.162.13.99:58655] PHP Fatal error:  require_once(): Failed opening required '/var/www/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php' (include_path='/var/www/owncloud/3rdparty/phpseclib/phpseclib/phpseclib:/var/www/owncloud/lib/private:/var/www/owncloud/config:/var/www/owncloud/3rdparty:/var/www/owncloud/apps:/var/www/owncloud/lib:.:/usr/share/php:/usr/share/pear:/var/www/owncloud') in /var/www/owncloud/lib/autoloader.php on line 142, referer: https://joshuagleitze.de/owncloud/public.php?service=files&t=3c6420eb6c147bdbc6250e3dbfa07164&path=%2FWS%201%2FLA%2F%C3%9Cbung%2FInfo%2FFotos%2F2014-12-05
[Wed Dec 10 22:48:09.684599 2014] [:error] [pid 14056] [client 84.162.13.99:58655] {"app":"PHP","message":"require_once(): Failed opening required '\\/var\\/www\\/owncloud\\/3rdparty\\/doctrine\\/dbal\\/lib\\/Doctrine\\/DBAL\\/Driver\\/PDOStatement.php' (include_path='\\/var\\/www\\/owncloud\\/3rdparty\\/phpseclib\\/phpseclib\\/phpseclib:\\/var\\/www\\/owncloud\\/lib\\/private:\\/var\\/www\\/owncloud\\/config:\\/var\\/www\\/owncloud\\/3rdparty:\\/var\\/www\\/owncloud\\/apps:\\/var\\/www\\/owncloud\\/lib:.:\\/usr\\/share\\/php:\\/usr\\/share\\/pear:\\/var\\/www\\/owncloud') at \\/var\\/www\\/owncloud\\/lib\\/autoloader.php#142","level":3,"time":"2014-12-10T21:48:09+00:00"}, referer: https://joshuagleitze.de/owncloud/public.php?service=files&t=3c6420eb6c147bdbc6250e3dbfa07164&path=%2FWS%201%2FLA%2F%C3%9Cbung%2FInfo%2FFotos%2F2014-12-05
[Wed Dec 10 22:48:09.903840 2014] [core:crit] [pid 14112] (23)Too many open files in system: [client 127.0.0.1:53942] AH00529: /var/www/owncloud/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/var/www/owncloud/' is executable
[Wed Dec 10 22:48:09.936867 2014] [:error] [pid 14051] [client 84.162.13.99:58656] {"app":"PHP","message":"require_once(\\/var\\/www\\/owncloud\\/3rdparty\\/doctrine\\/dbal\\/lib\\/Doctrine\\/DBAL\\/Driver\\/PDOStatement.php): failed to open stream: Too many open files in system at \\/var\\/www\\/owncloud\\/lib\\/autoloader.php#142","level":3,"time":"2014-12-10T21:48:09+00:00"}, referer: https://joshuagleitze.de/owncloud/public.php?service=files&t=3c6420eb6c147bdbc6250e3dbfa07164&path=%2FWS%201%2FLA%2F%C3%9Cbung%2FInfo%2FFotos%2F2014-12-05
[Wed Dec 10 22:48:09.936922 2014] [:error] [pid 14051] [client 84.162.13.99:58656] PHP Fatal error:  require_once(): Failed opening required '/var/www/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php' (include_path='/var/www/owncloud/3rdparty/phpseclib/phpseclib/phpseclib:/var/www/owncloud/lib/private:/var/www/owncloud/config:/var/www/owncloud/3rdparty:/var/www/owncloud/apps:/var/www/owncloud/lib:.:/usr/share/php:/usr/share/pear:/var/www/owncloud') in /var/www/owncloud/lib/autoloader.php on line 142, referer: https://joshuagleitze.de/owncloud/public.php?service=files&t=3c6420eb6c147bdbc6250e3dbfa07164&path=%2FWS%201%2FLA%2F%C3%9Cbung%2FInfo%2FFotos%2F2014-12-05
[Wed Dec 10 22:48:09.937099 2014] [:error] [pid 14051] [client 84.162.13.99:58656] {"app":"PHP","message":"require_once(): Failed opening required '\\/var\\/www\\/owncloud\\/3rdparty\\/doctrine\\/dbal\\/lib\\/Doctrine\\/DBAL\\/Driver\\/PDOStatement.php' (include_path='\\/var\\/www\\/owncloud\\/3rdparty\\/phpseclib\\/phpseclib\\/phpseclib:\\/var\\/www\\/owncloud\\/lib\\/private:\\/var\\/www\\/owncloud\\/config:\\/var\\/www\\/owncloud\\/3rdparty:\\/var\\/www\\/owncloud\\/apps:\\/var\\/www\\/owncloud\\/lib:.:\\/usr\\/share\\/php:\\/usr\\/share\\/pear:\\/var\\/www\\/owncloud') at \\/var\\/www\\/owncloud\\/lib\\/autoloader.php#142","level":3,"time":"2014-12-10T21:48:09+00:00"}, referer: https://joshuagleitze.de/owncloud/public.php?service=files&t=3c6420eb6c147bdbc6250e3dbfa07164&path=%2FWS%201%2FLA%2F%C3%9Cbung%2FInfo%2FFotos%2F2014-12-05
[Wed Dec 10 22:48:10.159852 2014] [core:crit] [pid 14056] (23)Too many open files in system: [client 127.0.0.1:53943] AH00529: /var/www/owncloud/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/var/www/owncloud/' is executable
[Wed Dec 10 22:48:10.191464 2014] [:error] [pid 14057] [client 84.162.13.99:58657] {"app":"PHP","message":"require_once(\\/var\\/www\\/owncloud\\/3rdparty\\/doctrine\\/dbal\\/lib\\/Doctrine\\/DBAL\\/Driver\\/PDOStatement.php): failed to open stream: Too many open files in system at \\/var\\/www\\/owncloud\\/lib\\/autoloader.php#142","level":3,"time":"2014-12-10T21:48:10+00:00"}, referer: https://joshuagleitze.de/owncloud/public.php?service=files&t=3c6420eb6c147bdbc6250e3dbfa07164&path=%2FWS%201%2FLA%2F%C3%9Cbung%2FInfo%2FFotos%2F2014-12-05
[Wed Dec 10 22:48:10.191525 2014] [:error] [pid 14057] [client 84.162.13.99:58657] PHP Fatal error:  require_once(): Failed opening required '/var/www/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php' (include_path='/var/www/owncloud/3rdparty/phpseclib/phpseclib/phpseclib:/var/www/owncloud/lib/private:/var/www/owncloud/config:/var/www/owncloud/3rdparty:/var/www/owncloud/apps:/var/www/owncloud/lib:.:/usr/share/php:/usr/share/pear:/var/www/owncloud') in /var/www/owncloud/lib/autoloader.php on line 142, referer: https://joshuagleitze.de/owncloud/public.php?service=files&t=3c6420eb6c147bdbc6250e3dbfa07164&path=%2FWS%201%2FLA%2F%C3%9Cbung%2FInfo%2FFotos%2F2014-12-05
[Wed Dec 10 22:48:10.191708 2014] [:error] [pid 14057] [client 84.162.13.99:58657] {"app":"PHP","message":"require_once(): Failed opening required '\\/var\\/www\\/owncloud\\/3rdparty\\/doctrine\\/dbal\\/lib\\/Doctrine\\/DBAL\\/Driver\\/PDOStatement.php' (include_path='\\/var\\/www\\/owncloud\\/3rdparty\\/phpseclib\\/phpseclib\\/phpseclib:\\/var\\/www\\/owncloud\\/lib\\/private:\\/var\\/www\\/owncloud\\/config:\\/var\\/www\\/owncloud\\/3rdparty:\\/var\\/www\\/owncloud\\/apps:\\/var\\/www\\/owncloud\\/lib:.:\\/usr\\/share\\/php:\\/usr\\/share\\/pear:\\/var\\/www\\/owncloud') at \\/var\\/www\\/owncloud\\/lib\\/autoloader.php#142","level":3,"time":"2014-12-10T21:48:10+00:00"}, referer: https://joshuagleitze.de/owncloud/public.php?service=files&t=3c6420eb6c147bdbc6250e3dbfa07164&path=%2FWS%201%2FLA%2F%C3%9Cbung%2FInfo%2FFotos%2F2014-12-05
[Wed Dec 10 22:48:10.445868 2014] [core:crit] [pid 14051] (23)Too many open files in system: [client 127.0.0.1:53944] AH00529: /var/www/owncloud/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/var/www/owncloud/' is executable
[Wed Dec 10 22:48:10.480038 2014] [:error] [pid 14112] [client 84.162.13.99:58658] {"app":"PHP","message":"require_once(\\/var\\/www\\/owncloud\\/3rdparty\\/doctrine\\/dbal\\/lib\\/Doctrine\\/DBAL\\/Driver\\/PDOStatement.php): failed to open stream: Too many open files in system at \\/var\\/www\\/owncloud\\/lib\\/autoloader.php#142","level":3,"time":"2014-12-10T21:48:10+00:00"}, referer: https://joshuagleitze.de/owncloud/public.php?service=files&t=3c6420eb6c147bdbc6250e3dbfa07164&path=%2FWS%201%2FLA%2F%C3%9Cbung%2FInfo%2FFotos%2F2014-12-05
[Wed Dec 10 22:48:10.480099 2014] [:error] [pid 14112] [client 84.162.13.99:58658] PHP Fatal error:  require_once(): Failed opening required '/var/www/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php' (include_path='/var/www/owncloud/3rdparty/phpseclib/phpseclib/phpseclib:/var/www/owncloud/lib/private:/var/www/owncloud/config:/var/www/owncloud/3rdparty:/var/www/owncloud/apps:/var/www/owncloud/lib:.:/usr/share/php:/usr/share/pear:/var/www/owncloud') in /var/www/owncloud/lib/autoloader.php on line 142, referer: https://joshuagleitze.de/owncloud/public.php?service=files&t=3c6420eb6c147bdbc6250e3dbfa07164&path=%2FWS%201%2FLA%2F%C3%9Cbung%2FInfo%2FFotos%2F2014-12-05
[Wed Dec 10 22:48:10.480241 2014] [:error] [pid 14112] [client 84.162.13.99:58658] {"app":"PHP","message":"require_once(): Failed opening required '\\/var\\/www\\/owncloud\\/3rdparty\\/doctrine\\/dbal\\/lib\\/Doctrine\\/DBAL\\/Driver\\/PDOStatement.php' (include_path='\\/var\\/www\\/owncloud\\/3rdparty\\/phpseclib\\/phpseclib\\/phpseclib:\\/var\\/www\\/owncloud\\/lib\\/private:\\/var\\/www\\/owncloud\\/config:\\/var\\/www\\/owncloud\\/3rdparty:\\/var\\/www\\/owncloud\\/apps:\\/var\\/www\\/owncloud\\/lib:.:\\/usr\\/share\\/php:\\/usr\\/share\\/pear:\\/var\\/www\\/owncloud') at \\/var\\/www\\/owncloud\\/lib\\/autoloader.php#142","level":3,"time":"2014-12-10T21:48:10+00:00"}, referer: https://joshuagleitze.de/owncloud/public.php?service=files&t=3c6420eb6c147bdbc6250e3dbfa07164&path=%2FWS%201%2FLA%2F%C3%9Cbung%2FInfo%2FFotos%2F2014-12-05
[Wed Dec 10 22:48:10.708853 2014] [core:crit] [pid 14057] (23)Too many open files in system: [client 127.0.0.1:53945] AH00529: /var/www/owncloud/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/var/www/owncloud/' is executable
[Wed Dec 10 22:48:10.738360 2014] [:error] [pid 14056] [client 84.162.13.99:58659] {"app":"PHP","message":"require_once(\\/var\\/www\\/owncloud\\/3rdparty\\/doctrine\\/dbal\\/lib\\/Doctrine\\/DBAL\\/Driver\\/PDOStatement.php): failed to open stream: Too many open files in system at \\/var\\/www\\/owncloud\\/lib\\/autoloader.php#142","level":3,"time":"2014-12-10T21:48:10+00:00"}, referer: https://joshuagleitze.de/owncloud/public.php?service=files&t=3c6420eb6c147bdbc6250e3dbfa07164&path=%2FWS%201%2FLA%2F%C3%9Cbung%2FInfo%2FFotos%2F2014-12-05
[Wed Dec 10 22:48:10.738418 2014] [:error] [pid 14056] [client 84.162.13.99:58659] PHP Fatal error:  require_once(): Failed opening required '/var/www/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php' (include_path='/var/www/owncloud/3rdparty/phpseclib/phpseclib/phpseclib:/var/www/owncloud/lib/private:/var/www/owncloud/config:/var/www/owncloud/3rdparty:/var/www/owncloud/apps:/var/www/owncloud/lib:.:/usr/share/php:/usr/share/pear:/var/www/owncloud') in /var/www/owncloud/lib/autoloader.php on line 142, referer: https://joshuagleitze.de/owncloud/public.php?service=files&t=3c6420eb6c147bdbc6250e3dbfa07164&path=%2FWS%201%2FLA%2F%C3%9Cbung%2FInfo%2FFotos%2F2014-12-05
[Wed Dec 10 22:48:10.738601 2014] [:error] [pid 14056] [client 84.162.13.99:58659] {"app":"PHP","message":"require_once(): Failed opening required '\\/var\\/www\\/owncloud\\/3rdparty\\/doctrine\\/dbal\\/lib\\/Doctrine\\/DBAL\\/Driver\\/PDOStatement.php' (include_path='\\/var\\/www\\/owncloud\\/3rdparty\\/phpseclib\\/phpseclib\\/phpseclib:\\/var\\/www\\/owncloud\\/lib\\/private:\\/var\\/www\\/owncloud\\/config:\\/var\\/www\\/owncloud\\/3rdparty:\\/var\\/www\\/owncloud\\/apps:\\/var\\/www\\/owncloud\\/lib:.:\\/usr\\/share\\/php:\\/usr\\/share\\/pear:\\/var\\/www\\/owncloud') at \\/var\\/www\\/owncloud\\/lib\\/autoloader.php#142","level":3,"time":"2014-12-10T21:48:10+00:00"}, referer: https://joshuagleitze.de/owncloud/public.php?service=files&t=3c6420eb6c147bdbc6250e3dbfa07164&path=%2FWS%201%2FLA%2F%C3%9Cbung%2FInfo%2FFotos%2F2014-12-05
[Wed Dec 10 22:48:10.945873 2014] [core:crit] [pid 14112] (23)Too many open files in system: [client 127.0.0.1:53946] AH00529: /var/www/owncloud/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/var/www/owncloud/' is executable
[Wed Dec 10 22:48:10.972931 2014] [:error] [pid 14051] [client 84.162.13.99:58660] {"app":"PHP","message":"require_once(\\/var\\/www\\/owncloud\\/3rdparty\\/doctrine\\/dbal\\/lib\\/Doctrine\\/DBAL\\/Driver\\/PDOStatement.php): failed to open stream: Too many open files in system at \\/var\\/www\\/owncloud\\/lib\\/autoloader.php#142","level":3,"time":"2014-12-10T21:48:10+00:00"}, referer: https://joshuagleitze.de/owncloud/public.php?service=files&t=3c6420eb6c147bdbc6250e3dbfa07164&path=%2FWS%201%2FLA%2F%C3%9Cbung%2FInfo%2FFotos%2F2014-12-05
[Wed Dec 10 22:48:10.972986 2014] [:error] [pid 14051] [client 84.162.13.99:58660] PHP Fatal error:  require_once(): Failed opening required '/var/www/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php' (include_path='/var/www/owncloud/3rdparty/phpseclib/phpseclib/phpseclib:/var/www/owncloud/lib/private:/var/www/owncloud/config:/var/www/owncloud/3rdparty:/var/www/owncloud/apps:/var/www/owncloud/lib:.:/usr/share/php:/usr/share/pear:/var/www/owncloud') in /var/www/owncloud/lib/autoloader.php on line 142, referer: https://joshuagleitze.de/owncloud/public.php?service=files&t=3c6420eb6c147bdbc6250e3dbfa07164&path=%2FWS%201%2FLA%2F%C3%9Cbung%2FInfo%2FFotos%2F2014-12-05
[Wed Dec 10 22:48:10.973120 2014] [:error] [pid 14051] [client 84.162.13.99:58660] {"app":"PHP","message":"require_once(): Failed opening required '\\/var\\/www\\/owncloud\\/3rdparty\\/doctrine\\/dbal\\/lib\\/Doctrine\\/DBAL\\/Driver\\/PDOStatement.php' (include_path='\\/var\\/www\\/owncloud\\/3rdparty\\/phpseclib\\/phpseclib\\/phpseclib:\\/var\\/www\\/owncloud\\/lib\\/private:\\/var\\/www\\/owncloud\\/config:\\/var\\/www\\/owncloud\\/3rdparty:\\/var\\/www\\/owncloud\\/apps:\\/var\\/www\\/owncloud\\/lib:.:\\/usr\\/share\\/php:\\/usr\\/share\\/pear:\\/var\\/www\\/owncloud') at \\/var\\/www\\/owncloud\\/lib\\/autoloader.php#142","level":3,"time":"2014-12-10T21:48:10+00:00"}, referer: https://joshuagleitze.de/owncloud/public.php?service=files&t=3c6420eb6c147bdbc6250e3dbfa07164&path=%2FWS%201%2FLA%2F%C3%9Cbung%2FInfo%2FFotos%2F2014-12-05
[Wed Dec 10 22:48:11.186848 2014] [core:crit] [pid 14056] (23)Too many open files in system: [client 127.0.0.1:53947] AH00529: /var/www/owncloud/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/var/www/owncloud/' is executable
[Wed Dec 10 22:48:11.261043 2014] [:error] [pid 13816] [client 84.162.13.99:58647] {"app":"PHP","message":"file_put_contents(\\/var\\/www\\/owncloud\\/data\\/josh\\/thumbnails\\/34471\\/1903-with-aspect.png): failed to open stream: Too many open files in system at \\/var\\/www\\/owncloud\\/lib\\/private\\/files\\/storage\\/local.php#160","level":3,"time":"2014-12-10T21:48:11+00:00"}, referer: https://joshuagleitze.de/owncloud/public.php?service=files&t=3c6420eb6c147bdbc6250e3dbfa07164&path=%2FWS%201%2FLA%2F%C3%9Cbung%2FInfo%2FFotos%2F2014-12-05
[Wed Dec 10 22:48:11.314399 2014] [core:error] [pid 14112] (23)Too many open files in system: AH02179: apr_socket_accept: (client socket)
[Wed Dec 10 22:48:11.666762 2014] [access_compat:error] [pid 14056] [client 127.0.0.1:53948] AH01797: client denied by server configuration: /var/www/owncloud/data/htaccesstest.txt
sh: error while loading shared libraries: libc.so.6: cannot open shared object file: Error 23
sh: error while loading shared libraries: libc.so.6: cannot open shared object file: Error 23
[Wed Dec 10 22:48:11.906062 2014] [:error] [pid 13816] [client 84.162.13.99:58647] {"app":"PHP","message":"require_once(\\/var\\/www\\/owncloud\\/lib\\/private\\/db\\/statementwrapper.php): failed to open stream: Too many open files in system at \\/var\\/www\\/owncloud\\/lib\\/autoloader.php#142","level":3,"time":"2014-12-10T21:48:11+00:00"}, referer: https://joshuagleitze.de/owncloud/public.php?service=files&t=3c6420eb6c147bdbc6250e3dbfa07164&path=%2FWS%201%2FLA%2F%C3%9Cbung%2FInfo%2FFotos%2F2014-12-05
[Wed Dec 10 22:48:11.906131 2014] [:error] [pid 13816] [client 84.162.13.99:58647] PHP Fatal error:  require_once(): Failed opening required '/var/www/owncloud/lib/private/db/statementwrapper.php' (include_path='/var/www/owncloud/3rdparty/phpseclib/phpseclib/phpseclib:/var/www/owncloud/lib/private:/var/www/owncloud/config:/var/www/owncloud/3rdparty:/var/www/owncloud/apps:/var/www/owncloud/lib:.:/usr/share/php:/usr/share/pear:/var/www/owncloud') in /var/www/owncloud/lib/autoloader.php on line 142, referer: https://joshuagleitze.de/owncloud/public.php?service=files&t=3c6420eb6c147bdbc6250e3dbfa07164&path=%2FWS%201%2FLA%2F%C3%9Cbung%2FInfo%2FFotos%2F2014-12-05
[Wed Dec 10 22:48:11.906284 2014] [:error] [pid 13816] [client 84.162.13.99:58647] {"app":"PHP","message":"require_once(): Failed opening required '\\/var\\/www\\/owncloud\\/lib\\/private\\/db\\/statementwrapper.php' (include_path='\\/var\\/www\\/owncloud\\/3rdparty\\/phpseclib\\/phpseclib\\/phpseclib:\\/var\\/www\\/owncloud\\/lib\\/private:\\/var\\/www\\/owncloud\\/config:\\/var\\/www\\/owncloud\\/3rdparty:\\/var\\/www\\/owncloud\\/apps:\\/var\\/www\\/owncloud\\/lib:.:\\/usr\\/share\\/php:\\/usr\\/share\\/pear:\\/var\\/www\\/owncloud') at \\/var\\/www\\/owncloud\\/lib\\/autoloader.php#142","level":3,"time":"2014-12-10T21:48:11+00:00"}, referer: https://joshuagleitze.de/owncloud/public.php?service=files&t=3c6420eb6c147bdbc6250e3dbfa07164&path=%2FWS%201%2FLA%2F%C3%9Cbung%2FInfo%2FFotos%2F2014-12-05
[Wed Dec 10 22:48:12.161323 2014] [access_compat:error] [pid 14056] [client 127.0.0.1:53950] AH01797: client denied by server configuration: /var/www/owncloud/data/htaccesstest.txt
[Wed Dec 10 22:48:12.376630 2014] [:error] [pid 13816] [client 127.0.0.1:34804] {"app":"PHP","message":"require_once(\\/var\\/www\\/owncloud\\/lib\\/private\\/db\\/statementwrapper.php): failed to open stream: Too many open files in system at \\/var\\/www\\/owncloud\\/lib\\/autoloader.php#142","level":3,"time":"2014-12-10T21:48:12+00:00"}
[Wed Dec 10 22:48:12.376703 2014] [:error] [pid 13816] [client 127.0.0.1:34804] PHP Fatal error:  require_once(): Failed opening required '/var/www/owncloud/lib/private/db/statementwrapper.php' (include_path='/var/www/owncloud/3rdparty/phpseclib/phpseclib/phpseclib:/var/www/owncloud/lib/private:/var/www/owncloud/config:/var/www/owncloud/3rdparty:/var/www/owncloud/apps:/var/www/owncloud/lib:.:/usr/share/php:/usr/share/pear:/var/www/owncloud') in /var/www/owncloud/lib/autoloader.php on line 142
[Wed Dec 10 22:48:12.376887 2014] [:error] [pid 13816] [client 127.0.0.1:34804] {"app":"PHP","message":"require_once(): Failed opening required '\\/var\\/www\\/owncloud\\/lib\\/private\\/db\\/statementwrapper.php' (include_path='\\/var\\/www\\/owncloud\\/3rdparty\\/phpseclib\\/phpseclib\\/phpseclib:\\/var\\/www\\/owncloud\\/lib\\/private:\\/var\\/www\\/owncloud\\/config:\\/var\\/www\\/owncloud\\/3rdparty:\\/var\\/www\\/owncloud\\/apps:\\/var\\/www\\/owncloud\\/lib:.:\\/usr\\/share\\/php:\\/usr\\/share\\/pear:\\/var\\/www\\/owncloud') at \\/var\\/www\\/owncloud\\/lib\\/autoloader.php#142","level":3,"time":"2014-12-10T21:48:12+00:00"}
[Wed Dec 10 22:48:12.691353 2014] [access_compat:error] [pid 13905] [client 127.0.0.1:53952] AH01797: client denied by server configuration: /var/www/owncloud/data/htaccesstest.txt
[Wed Dec 10 22:48:12.916043 2014] [:error] [pid 14057] [client 84.162.13.99:58661] PHP Fatal error:  require_once(): Failed opening required '/var/www/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php' (include_path='/var/www/owncloud/3rdparty/phpseclib/phpseclib/phpseclib:/var/www/owncloud/lib/private:/var/www/owncloud/config:/var/www/owncloud/3rdparty:/var/www/owncloud/apps:/var/www/owncloud/lib:.:/usr/share/php:/usr/share/pear:/var/www/owncloud') in /var/www/owncloud/lib/autoloader.php on line 142, referer: https://joshuagleitze.de/owncloud/public.php?service=files&t=3c6420eb6c147bdbc6250e3dbfa07164&path=%2FWS%201%2FLA%2F%C3%9Cbung%2FInfo%2FFotos%2F2014-12-05
[Wed Dec 10 22:48:13.167312 2014] [access_compat:error] [pid 13905] [client 127.0.0.1:53954] AH01797: client denied by server configuration: /var/www/owncloud/data/htaccesstest.txt
[Wed Dec 10 22:48:18.089368 2014] [access_compat:error] [pid 14057] [client 127.0.0.1:53956] AH01797: client denied by server configuration: /var/www/owncloud/data/htaccesstest.txt
[Wed Dec 10 22:48:18.544384 2014] [access_compat:error] [pid 14051] [client 127.0.0.1:53958] AH01797: client denied by server configuration: /var/www/owncloud/data/htaccesstest.txt
[Wed Dec 10 22:48:21.194411 2014] [access_compat:error] [pid 14051] [client 127.0.0.1:53960] AH01797: client denied by server configuration: /var/www/owncloud/data/htaccesstest.txt
[Wed Dec 10 22:48:21.585510 2014] [access_compat:error] [pid 13905] [client 127.0.0.1:53962] AH01797: client denied by server configuration: /var/www/owncloud/data/htaccesstest.txt
[Wed Dec 10 22:48:24.050511 2014] [access_compat:error] [pid 13905] [client 127.0.0.1:53964] AH01797: client denied by server configuration: /var/www/owncloud/data/htaccesstest.txt
[Wed Dec 10 22:48:24.238577 2014] [access_compat:error] [pid 14002] [client 127.0.0.1:53966] AH01797: client denied by server configuration: /var/www/owncloud/data/htaccesstest.txt
[Wed Dec 10 22:49:46.804260 2014] [access_compat:error] [pid 13816] [client 127.0.0.1:34825] AH01797: client denied by server configuration: /var/www/owncloud/data/htaccesstest.txt
[Wed Dec 10 22:49:49.961619 2014] [access_compat:error] [pid 14135] [client 127.0.0.1:34827] AH01797: client denied by server configuration: /var/www/owncloud/data/htaccesstest.txt
[Wed Dec 10 22:50:03.197754 2014] [access_compat:error] [pid 14132] [client 127.0.0.1:34836]

ownCloud log (data/owncloud.log)

The access denied message repeats quite often before this

{"app":"PHP","message":"file_put_contents(\/var\/www\/owncloud\/data\/.htaccess): failed to open stream: Permission denied at \/var\/www\/owncloud\/lib\/private\/setup.php#267","level":3,"time":"2014
-12-10T21:48:12+00:00"}
{"app":"PHP","message":"require_once(\/var\/www\/owncloud\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Driver\/PDOStatement.php): failed to open stream: Too many open files in system at \/var\/www
\/owncloud\/lib\/autoloader.php#142","level":3,"time":"2014-12-10T21:48:12+00:00"}
{"app":"PHP","message":"require_once(): Failed opening required '\/var\/www\/owncloud\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Driver\/PDOStatement.php' (include_path='\/var\/www\/owncloud\/3r
dparty\/phpseclib\/phpseclib\/phpseclib:\/var\/www\/owncloud\/lib\/private:\/var\/www\/owncloud\/config:\/var\/www\/owncloud\/3rdparty:\/var\/www\/owncloud\/apps:\/var\/www\/owncloud\/lib:.:\/usr\/sh
are\/php:\/usr\/share\/pear:\/var\/www\/owncloud') at \/var\/www\/owncloud\/lib\/autoloader.php#142","level":3,"time":"2014-12-10T21:48:12+00:00"}
{"app":"PHP","message":"file_put_contents(\/var\/www\/owncloud\/data\/.htaccess): failed to open stream: Permission denied at \/var\/www\/owncloud\/lib\/private\/setup.php#267","level":3,"time":"2014
-12-10T21:48:13+00:00"}
{"app":"PHP","message":"file_put_contents(\/var\/www\/owncloud\/data\/.htaccess): failed to open stream: Permission denied at \/var\/www\/owncloud\/lib\/private\/setup.php#267","level":3,"time":"2014
-12-10T21:48:13+00:00"}

The access denied message repeats quite often in between

{"app":"PHP","message":"file_put_contents(\/var\/www\/owncloud\/data\/.htaccess): failed to open stream: Permission denied at \/var\/www\/owncloud\/lib\/private\/setup.php#267","level":3,"time":"2014-12-10T21:50:39+00:00"}
{"app":"PHP","message":"file_put_contents(\/var\/www\/owncloud\/data\/.htaccess): failed to open stream: Permission denied at \/var\/www\/owncloud\/lib\/private\/setup.php#267","level":3,"time":"2014-12-10T21:50:40+00:00"}
{"app":"core","message":"Login failed: 'username' (Remote IP: '141.70.81.151', X-Forwarded-For: '')","level":2,"time":"2014-12-10T21:50:48+00:00"}
{"app":"core","message":"Login failed: 'username' (Remote IP: '141.70.81.151', X-Forwarded-For: '')","level":2,"time":"2014-12-10T21:50:48+00:00"}

The login failes messages repeat very often after this

The .htaccess file is of course not writeable for the apache user, I set my permissions like this (according to the manual):

chown -R root:root /var/www/owncloud
chown www-data:www-data /var/www/owncloud/config/config.php
chown www-data:www-data /var/www/owncloud/config/
chown -R www-data:www-data /var/www/owncloud/data/
chown root:root /var/www/owncloud/data/.htaccess
chown www-data:www-data /var/www/owncloud/apps/
@LukasReschke
Copy link
Member

Thanks a lot for reporting issues back to us!

We need some more information to properly support you with your issue!

Can I ask you to follow our guidelines for submitting bugs as described here: https://github.com/owncloud/core/blob/master/CONTRIBUTING.md

Thanks a lot!

@LukasReschke
Copy link
Member

@PVince81 @MorrisJobke looks familiar:

{
    "app": "PHP",
    "message": "require_once(\/var\/www\/owncloud\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Driver\/PDOStatement.php): failed to open stream: Too many open files in system at \/var\/www
\/owncloud\/lib\/autoloader.php#142",
    "level": 3,
    "time": "2014-12-10T21:48:12+00:00"
}

@LukasReschke LukasReschke added this to the need more information milestone Dec 11, 2014
@LukasReschke
Copy link
Member

@jGleitz On which FS type is the ownCloud instance stored? (ext/fat/nfs/etc...)

@LukasReschke
Copy link
Member

Possible related to #10392 in some way.

@jGleitz Is XDebug installed on the server?

\cc @DeepDiver1975 FYI

@PVince81
Copy link
Contributor

Do you have XDebug + PHP 5.6 ?

@jGleitz
Copy link
Author

jGleitz commented Dec 11, 2014

@LukasReschke vzfs . (It's a virtual server)

@jGleitz
Copy link
Author

jGleitz commented Dec 11, 2014

@PVince81 PHP 5.5.9 XDebug is not installed (but I can of course install it, if that helps)

@LukasReschke LukasReschke removed this from the need more information milestone Dec 11, 2014
@LukasReschke
Copy link
Member

Mhm, my best guesses are that either flock is not working correctly here or that we have some file handle leaks here and that messes up things…

… will provide a test script for that later this week or early next week …

@LukasReschke LukasReschke self-assigned this Dec 11, 2014
@MorrisJobke
Copy link
Contributor

@jGleitz No. It just triggered a problem with the "too many files open". The question just want to drop this possible trouble-maker. ;)

@sbh01
Copy link

sbh01 commented Dec 12, 2014

MorrisJobke - what is about my issue????
owncloud/music#294
Maybe we will do smth to fix it???

@AubreyHewes
Copy link

Reading this from @jGleitz #9736 still seems to be a relevant issue; still without an answer.

Open files (Or possibly unclosed files) may be the problem; crashing a possible oc config read which defaults back to known config; which is then written to stateful config?

I have never had time to look in to it properly and also never had time to set up parallel envs for all diverse clients/client-versions that may have been propagating the problem.

@jGleitz
Copy link
Author

jGleitz commented Dec 15, 2014

I want to inform you that this issue occured again on my installation. (Relevant because it obviously happens under 7.0.4, too.)

The behaviour was as described. The Logs were:

Apache

[Mon Dec 15 18:38:09.324852 2014] [:error] [pid 14482] [client 141.3.221.245:54484] PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 4104 bytes) in /var/www/owncloud/lib/private/log.php on line 154, referer: https://joshuagleitze.de/owncloud/public.php?service=files&t=3c6420eb6c147bdbc6250e3dbfa07164
[Mon Dec 15 19:04:36.239735 2014] [:error] [pid 17221] [client 141.70.81.144:33168] {"app":"PHP","message":"shell_exec(): Unable to execute 'command -v libreoffice' at \\/var\\/www\\/owncloud\\/lib\\/private\\/preview\\/office.php#18","level":3,"time":"2014-12-15T18:04:36+00:00"}, referer: https://joshuagleitze.de/owncloud/public.php?service=files&t=3c6420eb6c147bdbc6250e3dbfa07164
[Mon Dec 15 19:04:36.239929 2014] [:error] [pid 17221] [client 141.70.81.144:33168] {"app":"PHP","message":"shell_exec(): Unable to execute 'command -v openoffice' at \\/var\\/www\\/owncloud\\/lib\\/private\\/preview\\/office.php#20","level":3,"time":"2014-12-15T18:04:36+00:00"}, referer: https://joshuagleitze.de/owncloud/public.php?service=files&t=3c6420eb6c147bdbc6250e3dbfa07164
[Mon Dec 15 19:04:36.242279 2014] [:error] [pid 17221] [client 141.70.81.144:33168] {"app":"PHP","message":"fopen(\\/var\\/www\\/owncloud\\/data\\/owncloud.log): failed to open stream: Too many open files in system at \\/var\\/www\\/owncloud\\/lib\\/private\\/log\\/owncloud.php#87","level":3,"time":"2014-12-15T18:04:36+00:00"}, referer: https://joshuagleitze.de/owncloud/public.php?service=files&t=3c6420eb6c147bdbc6250e3dbfa07164
[Mon Dec 15 19:04:36.244867 2014] [:error] [pid 17030] [client 141.70.81.144:65254] PHP Fatal error:  Uncaught exception 'Exception' with message 'DateTimeZone::__construct(): Unknown or bad timezone (UTC)' in /var/www/owncloud/lib/private/log/owncloud.php:69\nStack trace:\n#0 /var/www/owncloud/lib/private/log/owncloud.php(69): DateTimeZone->__construct('UTC')\n#1 [internal function]: OC_Log_Owncloud::write('PHP', 'DateTimeZone::_...', 3)\n#2 /var/www/owncloud/lib/private/log.php(157): call_user_func(Array, 'PHP', 'DateTimeZone::_...', 3)\n#3 /var/www/owncloud/lib/private/log.php(74): OC\\Log->log(3, 'DateTimeZone::_...', Array)\n#4 /var/www/owncloud/lib/private/log/errorhandler.php(55): OC\\Log->critical('DateTimeZone::_...', Array)\n#5 [internal function]: OC\\Log\\ErrorHandler->onException(Object(Exception))\n#6 {main}\n  thrown in /var/www/owncloud/lib/private/log/owncloud.php on line 69, referer: https://joshuagleitze.de/owncloud/public.php?service=files&t=3c6420eb6c147bdbc6250e3dbfa07164
[Mon Dec 15 19:04:36.245070 2014] [:error] [pid 17030] [client 141.70.81.144:65254] PHP Fatal error:  Uncaught exception 'Exception' with message 'DateTimeZone::__construct(): Unknown or bad timezone (UTC)' in /var/www/owncloud/lib/private/log/owncloud.php:69\nStack trace:\n#0 /var/www/owncloud/lib/private/log/owncloud.php(69): DateTimeZone->__construct('UTC')\n#1 [internal function]: OC_Log_Owncloud::write('PHP', 'Uncaught except...', 3)\n#2 /var/www/owncloud/lib/private/log.php(157): call_user_func(Array, 'PHP', 'Uncaught except...', 3)\n#3 /var/www/owncloud/lib/private/log.php(74): OC\\Log->log(3, 'Uncaught except...', Array)\n#4 /var/www/owncloud/lib/private/log/errorhandler.php(48): OC\\Log->critical('Uncaught except...', Array)\n#5 [internal function]: OC\\Log\\ErrorHandler->onShutdown()\n#6 {main}\n  thrown in /var/www/owncloud/lib/private/log/owncloud.php on line 69, referer: https://joshuagleitze.de/owncloud/public.php?service=files&t=3c6420eb6c147bdbc6250e3dbfa07164
[Mon Dec 15 19:04:36.488168 2014] [:error] [pid 17237] [client 141.70.81.151:32133] PHP Fatal error:  Uncaught exception 'Exception' with message 'DateTimeZone::__construct(): Unknown or bad timezone (UTC)' in /var/www/owncloud/lib/private/log/owncloud.php:69\nStack trace:\n#0 /var/www/owncloud/lib/private/log/owncloud.php(69): DateTimeZone->__construct('UTC')\n#1 [internal function]: OC_Log_Owncloud::write('PHP', 'DateTimeZone::_...', 3)\n#2 /var/www/owncloud/lib/private/log.php(157): call_user_func(Array, 'PHP', 'DateTimeZone::_...', 3)\n#3 /var/www/owncloud/lib/private/log.php(74): OC\\Log->log(3, 'DateTimeZone::_...', Array)\n#4 /var/www/owncloud/lib/private/log/errorhandler.php(55): OC\\Log->critical('DateTimeZone::_...', Array)\n#5 [internal function]: OC\\Log\\ErrorHandler->onException(Object(Exception))\n#6 {main}\n  thrown in /var/www/owncloud/lib/private/log/owncloud.php on line 69
[Mon Dec 15 19:04:36.488482 2014] [:error] [pid 17237] [client 141.70.81.151:32133] PHP Fatal error:  Uncaught exception 'Exception' with message 'DateTimeZone::__construct(): Unknown or bad timezone (UTC)' in /var/www/owncloud/lib/private/log/owncloud.php:69\nStack trace:\n#0 /var/www/owncloud/lib/private/log/owncloud.php(69): DateTimeZone->__construct('UTC')\n#1 [internal function]: OC_Log_Owncloud::write('PHP', 'Uncaught except...', 3)\n#2 /var/www/owncloud/lib/private/log.php(157): call_user_func(Array, 'PHP', 'Uncaught except...', 3)\n#3 /var/www/owncloud/lib/private/log.php(74): OC\\Log->log(3, 'Uncaught except...', Array)\n#4 /var/www/owncloud/lib/private/log/errorhandler.php(48): OC\\Log->critical('Uncaught except...', Array)\n#5 [internal function]: OC\\Log\\ErrorHandler->onShutdown()\n#6 {main}\n  thrown in /var/www/owncloud/lib/private/log/owncloud.php on line 69
[Mon Dec 15 19:04:36.501729 2014] [:error] [pid 17236] [client 141.70.81.151:65439] PHP Fatal error:  Uncaught exception 'Exception' with message 'DateTimeZone::__construct(): Unknown or bad timezone (UTC)' in /var/www/owncloud/lib/private/log/owncloud.php:69\nStack trace:\n#0 /var/www/owncloud/lib/private/log/owncloud.php(69): DateTimeZone->__construct('UTC')\n#1 [internal function]: OC_Log_Owncloud::write('PHP', 'fopen(/var/www/...', 3)\n#2 /var/www/owncloud/lib/private/log.php(157): call_user_func(Array, 'PHP', 'fopen(/var/www/...', 3)\n#3 /var/www/owncloud/lib/private/log.php(74): OC\\Log->log(3, 'fopen(/var/www/...', Array)\n#4 /var/www/owncloud/lib/private/log/errorhandler.php(48): OC\\Log->critical('fopen(/var/www/...', Array)\n#5 [internal function]: OC\\Log\\ErrorHandler->onShutdown()\n#6 {main}\n  thrown in /var/www/owncloud/lib/private/log/owncloud.php on line 69
[Mon Dec 15 19:04:37.256028 2014] [core:error] [pid 17030] (23)Too many open files in system: AH02179: apr_socket_accept: (client socket)
[Mon Dec 15 19:04:43.063922 2014] [access_compat:error] [pid 17214] [client 127.0.0.1:41510] AH01797: client denied by server configuration: /var/www/owncloud/data/htaccesstest.txt
[Mon Dec 15 19:04:45.461393 2014] [access_compat:error] [pid 17221] [client 127.0.0.1:41513] AH01797: client denied by server configuration: /var/www/owncloud/data/htaccesstest.txt
[Mon Dec 15 19:04:49.715628 2014] [access_compat:error] [pid 17237] [client 127.0.0.1:41516] AH01797: client denied by server configuration: /var/www/owncloud/data/htaccesstest.txt
[Mon Dec 15 19:04:55.917557 2014] [access_compat:error] [pid 17237] [client 127.0.0.1:41518] AH01797: client denied by server configuration: /var/www/owncloud/data/htaccesstest.txt
[Mon Dec 15 19:04:57.286534 2014] [access_compat:error] [pid 17210] [client 127.0.0.1:41521] AH01797: client denied by server configuration: /var/www/owncloud/data/htaccesstest.txt
[Mon Dec 15 19:04:58.365590 2014] [access_compat:error] [pid 16943] [client 127.0.0.1:41522] AH01797: client denied by server configuration: /var/www/owncloud/data/htaccesstest.txt
[Mon Dec 15 19:04:59.357617 2014] [access_compat:error] [pid 17237] [client 127.0.0.1:41524] AH01797: client denied by server configuration: /var/www/owncloud/data/htaccesstest.txt
[Mon Dec 15 19:05:00.652355 2014] [access_compat:error] [pid 16943] [client 127.0.0.1:50611] AH01797: client denied by server configuration: /var/www/owncloud/data/htaccesstest.txt
[Mon Dec 15 19:05:03.739350 2014] [access_compat:error] [pid 17248] [client 127.0.0.1:50612] AH01797: client denied by server configuration: /var/www/owncloud/data/htaccesstest.txt
[Mon Dec 15 19:05:08.161074 2014] [access_compat:error] [pid 17243] [client 127.0.0.1:50614] AH01797: client denied by server configuration: /var/www/owncloud/data/htaccesstest.txt
[Mon Dec 15 19:05:08.487815 2014] [access_compat:error] [pid 17237] [client 127.0.0.1:50615] AH01797: client denied by server configuration: /var/www/owncloud/data/htaccesstest.txt
[Mon Dec 15 19:05:09.929949 2014] [access_compat:error] [pid 17237] [client 127.0.0.1:50616] AH01797: client denied by server configuration: /var/www/owncloud/data/htaccesstest.txt
[Mon Dec 15 19:05:09.995065 2014] [access_compat:error] [pid 16943] [client 127.0.0.1:50617] AH01797: client denied by server configuration: /var/www/owncloud/data/htaccesstest.txt
[Mon Dec 15 19:05:10.320169 2014] [access_compat:error] [pid 17237] [client 127.0.0.1:50618] AH01797: client denied by server configuration: /var/www/owncloud/data/htaccesstest.txt
[Mon Dec 15 19:05:16.606761 2014] [access_compat:error] [pid 16943] [client 127.0.0.1:50620] AH01797: client denied by server configuration: /var/www/owncloud/data/htaccesstest.txt
[Mon Dec 15 19:05:17.107570 2014] [access_compat:error] [pid 17237] [client 127.0.0.1:50621] AH01797: client denied by server configuration: /var/www/owncloud/data/htaccesstest.txt
[Mon Dec 15 19:05:26.192487 2014] [access_compat:error] [pid 17221] [client 127.0.0.1:50628] AH01797: client denied by server configuration: /var/www/owncloud/data/htaccesstest.txt
[Mon Dec 15 19:05:29.927170 2014] [access_compat:error] [pid 17261] [client 127.0.0.1:50629] AH01797: client denied by server configuration: /var/www/owncloud/data/htaccesstest.txt
[Mon Dec 15 19:05:31.060089 2014] [access_compat:error] [pid 17264] [client 127.0.0.1:50631] AH01797: client denied by server configuration: /var/www/owncloud/data/htaccesstest.txt
[Mon Dec 15 19:05:31.551917 2014] [access_compat:error] [pid 17259] [client 127.0.0.1:50632] AH01797: client denied by server configuration: /var/www/owncloud/data/htaccesstest.txt
[Mon Dec 15 19:07:18.255072 2014] [access_compat:error] [pid 17253] [client 127.0.0.1:50660] AH01797: client denied by server configuration: /var/www/owncloud/data/htaccesstest.txt
[Mon Dec 15 19:07:18.754595 2014] [access_compat:error] [pid 17243] [client 127.0.0.1:50661] AH01797: client denied by server configuration: /var/www/owncloud/data/htaccesstest.txt
[Mon Dec 15 19:07:57.246488 2014] [access_compat:error] [pid 17251] [client 127.0.0.1:50662] AH01797: client denied by server configuration: /var/www/owncloud/data/htaccesstest.txt
[Mon Dec 15 19:07:57.749724 2014] [access_compat:error] [pid 17255] [client 127.0.0.1:50663] AH01797: client denied by server configuration: /var/www/owncloud/data/htaccesstest.txt
[Mon Dec 15 19:08:13.588033 2014] [access_compat:error] [pid 17253] [client 127.0.0.1:50667] AH01797: client denied by server configuration: /var/www/owncloud/data/htaccesstest.txt
[Mon Dec 15 19:08:15.638107 2014] [access_compat:error] [pid 17267] [client 127.0.0.1:50668] AH01797: client denied by server configuration: /var/www/owncloud/data/htaccesstest.txt
[Mon Dec 15 19:08:20.618548 2014] [access_compat:error] [pid 17255] [client 127.0.0.1:41583] AH01797: client denied by server configuration: /var/www/owncloud/data/htaccesstest.txt
[Mon Dec 15 19:08:30.035300 2014] [access_compat:error] [pid 17237] [client 127.0.0.1:50674] AH01797: client denied by server configuration: /var/www/owncloud/data/htaccesstest.txt
[Mon Dec 15 19:08:30.055732 2014] [:error] [pid 17266] [client 141.70.81.144:44616] creating sqlite db, referer: http://joshuagleitze.de/owncloud/index.php

Owncloud

{"app":"PHP","message":"file_put_contents(\/var\/www\/owncloud\/data\/.htaccess): failed to open stream: Permission denied at \/var\/www\/owncloud\/lib\/private\/setup.php#270","level":3,"time":"2014-12-15T18:04:45+00:00"}
{"app":"PHP","message":"file_put_contents(\/var\/www\/owncloud\/data\/.htaccess): failed to open stream: Permission denied at \/var\/www\/owncloud\/lib\/private\/setup.php#270","level":3,"time":"2014-12-15T18:04:49+00:00"}
{"app":"PHP","message":"file_put_contents(\/var\/www\/owncloud\/data\/.htaccess): failed to open stream: Permission denied at \/var\/www\/owncloud\/lib\/private\/setup.php#270","level":3,"time":"2014-12-15T18:04:55+00:00"}
{"app":"PHP","message":"file_put_contents(\/var\/www\/owncloud\/data\/.htaccess): failed to open stream: Permission denied at \/var\/www\/owncloud\/lib\/private\/setup.php#270","level":3,"time":"2014-12-15T18:04:57+00:00"}
{"app":"PHP","message":"file_put_contents(\/var\/www\/owncloud\/data\/.htaccess): failed to open stream: Permission denied at \/var\/www\/owncloud\/lib\/private\/setup.php#270","level":3,"time":"2014-12-15T18:04:58+00:00"}
{"app":"PHP","message":"file_put_contents(\/var\/www\/owncloud\/data\/.htaccess): failed to open stream: Permission denied at \/var\/www\/owncloud\/lib\/private\/setup.php#270","level":3,"time":"2014-12-15T18:04:59+00:00"}
{"app":"PHP","message":"file_put_contents(\/var\/www\/owncloud\/data\/.htaccess): failed to open stream: Permission denied at \/var\/www\/owncloud\/lib\/private\/setup.php#270","level":3,"time":"2014-12-15T18:05:00+00:00"}
{"app":"PHP","message":"file_put_contents(\/var\/www\/owncloud\/data\/.htaccess): failed to open stream: Permission denied at \/var\/www\/owncloud\/lib\/private\/setup.php#270","level":3,"time":"2014-12-15T18:05:02+00:00"}
{"app":"PHP","message":"file_put_contents(\/var\/www\/owncloud\/data\/.htaccess): failed to open stream: Permission denied at \/var\/www\/owncloud\/lib\/private\/setup.php#270","level":3,"time":"2014-12-15T18:05:08+00:00"}
{"app":"PHP","message":"file_put_contents(\/var\/www\/owncloud\/data\/.htaccess): failed to open stream: Permission denied at \/var\/www\/owncloud\/lib\/private\/setup.php#270","level":3,"time":"2014-12-15T18:05:08+00:00"}
{"app":"PHP","message":"file_put_contents(\/var\/www\/owncloud\/data\/.htaccess): failed to open stream: Permission denied at \/var\/www\/owncloud\/lib\/private\/setup.php#270","level":3,"time":"2014-12-15T18:05:09+00:00"}
{"app":"PHP","message":"file_put_contents(\/var\/www\/owncloud\/data\/.htaccess): failed to open stream: Permission denied at \/var\/www\/owncloud\/lib\/private\/setup.php#270","level":3,"time":"2014-12-15T18:05:09+00:00"}
{"app":"PHP","message":"file_put_contents(\/var\/www\/owncloud\/data\/.htaccess): failed to open stream: Permission denied at \/var\/www\/owncloud\/lib\/private\/setup.php#270","level":3,"time":"2014-12-15T18:05:10+00:00"}
{"app":"PHP","message":"file_put_contents(\/var\/www\/owncloud\/data\/.htaccess): failed to open stream: Permission denied at \/var\/www\/owncloud\/lib\/private\/setup.php#270","level":3,"time":"2014-12-15T18:05:16+00:00"}
{"app":"PHP","message":"file_put_contents(\/var\/www\/owncloud\/data\/.htaccess): failed to open stream: Permission denied at \/var\/www\/owncloud\/lib\/private\/setup.php#270","level":3,"time":"2014-12-15T18:05:17+00:00"}
{"app":"PHP","message":"file_put_contents(\/var\/www\/owncloud\/data\/.htaccess): failed to open stream: Permission denied at \/var\/www\/owncloud\/lib\/private\/setup.php#270","level":3,"time":"2014-12-15T18:05:26+00:00"}
{"app":"PHP","message":"file_put_contents(\/var\/www\/owncloud\/data\/.htaccess): failed to open stream: Permission denied at \/var\/www\/owncloud\/lib\/private\/setup.php#270","level":3,"time":"2014-12-15T18:05:29+00:00"}
{"app":"PHP","message":"file_put_contents(\/var\/www\/owncloud\/data\/.htaccess): failed to open stream: Permission denied at \/var\/www\/owncloud\/lib\/private\/setup.php#270","level":3,"time":"2014-12-15T18:05:31+00:00"}
{"app":"PHP","message":"file_put_contents(\/var\/www\/owncloud\/data\/.htaccess): failed to open stream: Permission denied at \/var\/www\/owncloud\/lib\/private\/setup.php#270","level":3,"time":"2014-12-15T18:05:31+00:00"}
{"app":"PHP","message":"file_put_contents(\/var\/www\/owncloud\/data\/.htaccess): failed to open stream: Permission denied at \/var\/www\/owncloud\/lib\/private\/setup.php#270","level":3,"time":"2014-12-15T18:07:18+00:00"}
{"app":"PHP","message":"file_put_contents(\/var\/www\/owncloud\/data\/.htaccess): failed to open stream: Permission denied at \/var\/www\/owncloud\/lib\/private\/setup.php#270","level":3,"time":"2014-12-15T18:07:18+00:00"}
{"app":"PHP","message":"file_put_contents(\/var\/www\/owncloud\/data\/.htaccess): failed to open stream: Permission denied at \/var\/www\/owncloud\/lib\/private\/setup.php#270","level":3,"time":"2014-12-15T18:07:57+00:00"}
{"app":"PHP","message":"file_put_contents(\/var\/www\/owncloud\/data\/.htaccess): failed to open stream: Permission denied at \/var\/www\/owncloud\/lib\/private\/setup.php#270","level":3,"time":"2014-12-15T18:07:57+00:00"}
{"app":"PHP","message":"file_put_contents(\/var\/www\/owncloud\/data\/.htaccess): failed to open stream: Permission denied at \/var\/www\/owncloud\/lib\/private\/setup.php#270","level":3,"time":"2014-12-15T18:08:13+00:00"}
{"app":"PHP","message":"file_put_contents(\/var\/www\/owncloud\/data\/.htaccess): failed to open stream: Permission denied at \/var\/www\/owncloud\/lib\/private\/setup.php#270","level":3,"time":"2014-12-15T18:08:15+00:00"}
{"app":"PHP","message":"file_put_contents(\/var\/www\/owncloud\/data\/.htaccess): failed to open stream: Permission denied at \/var\/www\/owncloud\/lib\/private\/setup.php#270","level":3,"time":"2014-12-15T18:08:20+00:00"}
{"app":"PHP","message":"file_put_contents(\/var\/www\/owncloud\/data\/.htaccess): failed to open stream: Permission denied at \/var\/www\/owncloud\/lib\/private\/setup.php#270","level":3,"time":"2014-12-15T18:08:30+00:00"}
{"app":"PHP","message":"file_put_contents(\/var\/www\/owncloud\/data\/.htaccess): failed to open stream: Permission denied at \/var\/www\/owncloud\/lib\/private\/setup.php#270","level":3,"time":"2014-12-15T18:08:31+00:00"}
{"app":"core","message":"Login failed: 'user1' (Remote IP: '84.162.0.149', X-Forwarded-For: '')","level":2,"time":"2014-12-15T18:08:32+00:00"}
{"app":"core","message":"Login failed: 'user1' (Remote IP: '84.162.0.149', X-Forwarded-For: '')","level":2,"time":"2014-12-15T18:08:32+00:00"}
{"app":"core","message":"Login failed: 'user1' (Remote IP: '84.162.0.149', X-Forwarded-For: '')","level":2,"time":"2014-12-15T18:08:32+00:00"}
{"app":"core","message":"Login failed: 'user1' (Remote IP: '84.162.0.149', X-Forwarded-For: '')","level":2,"time":"2014-12-15T18:08:32+00:00"}
{"app":"core","message":"Login failed: 'user2' (Remote IP: '141.3.208.9', X-Forwarded-For: '')","level":2,"time":"2014-12-15T18:08:33+00:00"}
{"app":"core","message":"Login failed: 'user2' (Remote IP: '141.3.208.9', X-Forwarded-For: '')","level":2,"time":"2014-12-15T18:08:33+00:00"}
{"app":"core","message":"Login failed: 'user2' (Remote IP: '141.3.208.9', X-Forwarded-For: '')","level":2,"time":"2014-12-15T18:08:33+00:00"}
{"app":"core","message":"Login failed: 'user2' (Remote IP: '141.3.208.9', X-Forwarded-For: '')","level":2,"time":"2014-12-15T18:08:33+00:00"}
{"app":"core","message":"Login failed: 'user1' (Remote IP: '84.162.0.149', X-Forwarded-For: '')","level":2,"time":"2014-12-15T18:08:34+00:00"}
{"app":"core","message":"Login failed: 'admin' (Remote IP: '84.162.0.149', X-Forwarded-For: '')","level":2,"time":"2014-12-15T18:08:50+00:00"}
{"app":"core","message":"Login failed: 'user3' (Remote IP: '95.114.62.122', X-Forwarded-For: '')","level":2,"time":"2014-12-15T18:08:53+00:00"}
{"app":"core","message":"Login failed: 'user3' (Remote IP: '95.114.62.122', X-Forwarded-For: '')","level":2,"time":"2014-12-15T18:08:53+00:00"}
{"app":"core","message":"Login failed: 'user3' (Remote IP: '95.114.62.122', X-Forwarded-For: '')","level":2,"time":"2014-12-15T18:08:53+00:00"}
{"app":"core","message":"Login failed: 'user3' (Remote IP: '95.114.62.122', X-Forwarded-For: '')","level":2,"time":"2014-12-15T18:08:53+00:00"}
{"app":"core","message":"Login failed: 'user2' (Remote IP: '141.70.81.151', X-Forwarded-For: '')","level":2,"time":"2014-12-15T18:08:54+00:00"}
{"app":"core","message":"Login failed: 'user2' (Remote IP: '141.70.81.151', X-Forwarded-For: '')","level":2,"time":"2014-12-15T18:08:54+00:00"}
{"app":"core","message":"Login failed: 'user2' (Remote IP: '141.70.81.151', X-Forwarded-For: '')","level":2,"time":"2014-12-15T18:08:54+00:00"}
{"app":"core","message":"Login failed: 'user2' (Remote IP: '141.70.81.151', X-Forwarded-For: '')","level":2,"time":"2014-12-15T18:08:54+00:00"}
{"app":"PHP","message":"Cannot modify header information - headers already sent at \/var\/www\/owncloud\/lib\/private\/json.php#17","level":3,"time":"2014-12-15T18:09:32+00:00"}
{"app":"PHP","message":"Cannot modify header information - headers already sent at \/var\/www\/owncloud\/lib\/private\/json.php#17","level":3,"time":"2014-12-15T18:09:35+00:00"}
{"app":"PHP","message":"Cannot modify header information - headers already sent at \/var\/www\/owncloud\/lib\/private\/json.php#17","level":3,"time":"2014-12-15T18:09:38+00:00"}
{"app":"PHP","message":"Cannot modify header information - headers already sent at \/var\/www\/owncloud\/lib\/private\/json.php#17","level":3,"time":"2014-12-15T18:09:41+00:00"}

@LukasReschke
Copy link
Member

@jGleitz Set config_is_read_only to true in your config.php for now and make the file read-only as a work-around.

@LukasReschke
Copy link
Member

Interesting pieces from the log:

sh: error while loading shared libraries: libc.so.6: cannot open shared object file: Error 23
sh: error while loading shared libraries: libc.so.6: cannot open shared object file: Error 23
sh: error while loading shared libraries: libc.so.6: cannot open shared object file: Error 23
sh: error while loading shared libraries: libc.so.6: cannot open shared object file: Error 23
sh: error while loading shared libraries: libc.so.6: cannot open shared object file: Error 23
sh: error while loading shared libraries: libc.so.6: cannot open shared object file: Error 23
sh: error while loading shared libraries: libc.so.6: cannot open shared object file: Error 23
sh: error while loading shared libraries: libc.so.6: cannot open shared object file: Error 23
sh: error while loading shared libraries: libc.so.6: cannot open shared object file: Error 23
sh: error while loading shared libraries: libc.so.6: cannot open shared object file: Error 23
sh: error while loading shared libraries: libc.so.6: cannot open shared object file: Error 23
sh: error while loading shared libraries: libc.so.6: cannot open shared object file: Error 23
sh: error while loading shared libraries: libc.so.6: cannot open shared object file: Error 23
[Wed Dec 10 22:48:08.377016 2014] [:error] [pid 14051] [client 84.162.13.99:58648] PHP Warning:  include(/var/www/owncloud/config/config.php): failed to open stream: Too many open files in system in /var/www/owncloud/lib/private/config.php on line 154, referer: https://joshuagleitze.de/owncloud/public.php?service=files&t=3c6420eb6c147bdbc6250e3dbfa07164&path=%2FWS%201%2FLA%2F%C3%9Cbung%2FInfo%2FFotos%2F2014-12-05
[Wed Dec 10 22:48:08.377098 2014] [:error] [pid 14051] [client 84.162.13.99:58648] PHP Warning:  include(): Failed opening '/var/www/owncloud/config/config.php' for inclusion (include_path='/var/www/owncloud/lib:.:/usr/share/php:/usr/share/pear') in /var/www/owncloud/lib/private/config.php on line 154, referer: https://joshuagleitze.de/owncloud/public.php?service=files&t=3c6420eb6c147bdbc6250e3dbfa07164&path=%2FWS%201%2FLA%2F%C3%9Cbung%2FInfo%2FFotos%2F2014-12-05
sh: error while loading shared libraries: libc.so.6: cannot open shared object file: Error 23```

@jGleitz
Copy link
Author

jGleitz commented Dec 15, 2014

@LukasReschke, yeah, I'll do that.

@LukasReschke
Copy link
Member

@jGleitz Can you let me know how you setup this server? - Which commands did you execute to install PHP and Apache? - Also did you change some default config options?

@LukasReschke
Copy link
Member

Also when you execute something like lsof -u www-data | awk '{print $2}' | sort | uniq -c | sort -n what is the output? - Can you see some excessive spikes?

@jGleitz
Copy link
Author

jGleitz commented Dec 16, 2014

@LukasReschke

lsof -u www-data | awk '{print $2}' | sort | uniq -c | sort -n
      1 PID
    155 1142
    156 934
    296 752
    297 31464
    297 903

@jGleitz
Copy link
Author

jGleitz commented Dec 16, 2014

@LukasReschke I rented the server at a hosting Company (1&1). I guess it was set up from a default image for their virtual machines. PHP and Apache was already installed when I moved in.
As I recall I have not made any changes except setting the timezone in PHP. I as well set up some virtual hosts in Apache, but that was already after the first incident of this bug. I know that there is a limit to the parallel opened files set by the VM the server is running in.

@powerswitch
Copy link

Same here, also VM hosted by 1&1. Error occured first in ownCloud 7.0.4 (stable), using webdav. I set the config to read only, which seems to work, but isn't nice at all.

Logs repeat these lines:

Error   PHP Use of undefined constant DEBUG - assumed 'DEBUG' at /home/owncloud/apps/ojsxc/appinfo/app.php#13
Debug   webdav  Sabre\DAV\Exception\NotAuthenticated: No basic authentication headers were found
Warning core    Login failed: '-hash-' (Remote IP: '95.91.0.0', X-Forwarded-For: '')

I cloud try to set up another cloud instance for testing purposes and for further investigation, if you want.

update1:
Seems to be a problem with webdav. The /index.php/settings/admin "Connectivity Checks" sometimes shows errors with it.

update2:
read_only doesn't work at all. Bug happily overwrites the file! Disabled my cloud temporarily, users are upset! :(

update3:

while true; do inotifywait -e modify config.php && cp config.php.backup config.php; done

update4:
script of update3 didn't work.

while true; do inotifywait config.php && cp config.php.backup config.php; done

This script works, but re-writes the config everytime it is read.

The server is a VM container, which has limited resources. I read the container's logs today and found some red alerts:

  • dcachesize: The total size of dentry and inode structures locked in the memory.
  • tcpsndbuf: The total size of send buffers for TCP sockets, i.e. the amount of kernel memory allocated for the data sent from an application to a TCP socket, but not acknowledged by the remote side yet.
  • quotaugidlimit: Number of user/group IDs allowed for the Container internal disk quota.
  • numfile: The number of files opened by all Container processes.

@MorrisJobke MorrisJobke added this to the 8.0-current milestone Jan 8, 2015
@LukasReschke
Copy link
Member

I'll get in touch with 1&1 and request a test instance. Hopefully this allows me finally to reproduce this issue reliably.

@jGleitz @powerswitch Can you let me know which product you exactly used so I can request it at well? Also how did you install it? Came it installed or had you to request a specific OS?

@LukasReschke
Copy link
Member

Let me setup the test machine later and do some monkey testing (aka clicking around)

@DeepDiver1975
Copy link
Member

awesome @LukasReschke

@manitooo
Copy link

Hello,

I've read all this thread due to my config.php getting reset all the time.
I've tried the changes in #13441 but my config.php file is still getting reseted.

Nevertheless, I've figure out that the main action I've done to reset my config.php file is an access from thunderbird calendar plugin (lightning ?)

My config is different that the ones I've seens here :
Ubuntu 12.04
Owncloud 7.0.4

Basically, the first workaround I've found is to save a working copy of config.php and CRON a copy of the save onto the config.php.

@LukasReschke
Copy link
Member

Please try the changes in #13621 as well

@LukasReschke
Copy link
Member

(and post your system information as well…)

@nickvergessen
Copy link
Contributor

@manitooo also #12785 (comment) would be nice, since it helps us a lot in finding the right places that cause this.

@manitooo
Copy link

@LukasReschke : I am not that fluent with git, so basically, some piece of changes are allright but those from #13621 , I am almost sure that I'll do some mistake.
I am not linked with the github repo, just install the tarball.

Nevertheless, I've implemented the @nickvergessen comment.

Besides, Here are some of my system informations

Steps to reproduce

no clue, just that it seems to be linked with icedove/iceowl (debian equivalent to thunderbird/lightning) while trying to sync with calendar

Expected behaviour

It should get synced (with my old 5.0 OC, it synced this way)

Actual behaviour

no sync at all, no messages, and config.php erased and replaced by a one byte file

Server configuration

Operating system:
Ubuntu 12.04

Web server:
Apache 2.2.22

Database:
mysql 5.5.40

PHP version:

ownCloud version: (see ownCloud admin page)
7.0.4
Updated from an older ownCloud or fresh install:
fresh install (unable to upgrade from 5.0.14)

List of activated apps:
Standard ones : files, calendard, contact, todo

The content of config/config.php:

<?php
$CONFIG = array (
  'instanceid' => 'ocf78dd241c2',
  'trusted_domains' => 
  array (
    0 => 'localcloud.pylum.fr',
  ),
  'datadirectory' => '/mnt/www/cloud/data',
  'overwrite.cli.url' => 'http://localcloud.pylum.fr',
  'dbtype' => 'mysql',
  'version' => '7.0.4.2',
  'dbname' => 'owncloud7',
  'dbhost' => 'localhost',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'oc_mikl',
  'installed' => true,
);

Are you using external storage, if yes which one: local/smb/sftp/...
Yes : smb : the cloud is stored directly on an smb mount partition

Are you using encryption: yes/no
no

Client configuration

Browser:
iceweasel (firefox)

Operating system:
debian-sid

Logs

Web server error log

127.0.0.1 - - [26/Jan/2015:21:37:21 +0100] "GET /cloud/data/htaccesstest.txt HTTP/1.0" 200 261 "-" "-"
192.168.0.254 - - [26/Jan/2015:21:37:19 +0100] "PROPFIND /cloud/index.php HTTP/1.1" 200 11345 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.4.0 Lightning/3.3.4"
192.168.0.254 - - [26/Jan/2015:21:37:21 +0100] "OPTIONS /cloud/remote.php/caldav/calendars/mikl/ HTTP/1.1" 302 507 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.4.0 Lightning/3.3.4"
192.168.0.254 - - [26/Jan/2015:21:37:22 +0100] "OPTIONS /cloud/index.php HTTP/1.1" 200 11345 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.4.0 Lightning/3.3.4"
192.168.0.254 - - [26/Jan/2015:21:37:25 +0100] "PROPFIND /cloud/remote.php/caldav/calendars/mikl/calendar/ HTTP/1.1" 302 507 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.4.0 Lightning/3.3.4"
192.168.0.254 - - [26/Jan/2015:21:37:26 +0100] "PROPFIND /cloud/index.php HTTP/1.1" 200 11345 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.4.0 Lightning/3.3.4"
192.168.0.254 - - [26/Jan/2015:21:37:29 +0100] "OPTIONS /cloud/remote.php/caldav/calendars/mikl/ HTTP/1.1" 302 507 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.4.0 Lightning/3.3.4"
192.168.0.254 - - [26/Jan/2015:21:37:30 +0100] "OPTIONS /cloud/index.php HTTP/1.1" 200 11345 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.4.0 Lightning/3.3.4"
192.168.0.254 - - [26/Jan/2015:21:37:33 +0100] "PROPFIND /cloud/remote.php/caldav/calendars/mikl/calendar/ HTTP/1.1" 302 507 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.4.0 Lightning/3.3.4"
192.168.0.254 - - [26/Jan/2015:21:37:33 +0100] "PROPFIND /cloud/index.php HTTP/1.1" 200 11345 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.4.0 Lightning/3.3.4"
192.168.0.254 - - [26/Jan/2015:21:37:36 +0100] "OPTIONS /cloud/remote.php/caldav/calendars/mikl/ HTTP/1.1" 302 507 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.4.0 Lightning/3.3.4"
127.0.0.1 - - [26/Jan/2015:21:37:38 +0100] "GET /cloud/data/htaccesstest.txt HTTP/1.0" 200 261 "-" "-"
192.168.0.254 - - [26/Jan/2015:21:37:36 +0100] "OPTIONS /cloud/index.php HTTP/1.1" 200 11345 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.4.0 Lightning/3.3.4"
192.168.0.254 - - [26/Jan/2015:21:37:39 +0100] "PROPFIND /cloud/remote.php/caldav/calendars/mikl/calendar/ HTTP/1.1" 302 507 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.4.0 Lightning/3.3.4"
192.168.0.254 - - [26/Jan/2015:21:37:39 +0100] "PROPFIND /cloud/index.php HTTP/1.1" 200 11345 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.4.0 Lightning/3.3.4"
192.168.0.254 - - [26/Jan/2015:21:37:42 +0100] "OPTIONS /cloud/remote.php/caldav/calendars/mikl/ HTTP/1.1" 302 507 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.4.0 Lightning/3.3.4"
192.168.0.254 - - [26/Jan/2015:21:37:43 +0100] "OPTIONS /cloud/index.php HTTP/1.1" 200 11345 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.4.0 Lightning/3.3.4"
192.168.0.254 - - [26/Jan/2015:21:37:45 +0100] "PROPFIND /cloud/remote.php/caldav/calendars/mikl/calendar/ HTTP/1.1" 302 507 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.4.0 Lightning/3.3.4"
127.0.0.1 - - [26/Jan/2015:21:37:48 +0100] "GET /cloud/data/htaccesstest.txt HTTP/1.0" 200 261 "-" "-"
192.168.0.254 - - [26/Jan/2015:21:37:46 +0100] "PROPFIND /cloud/index.php HTTP/1.1" 200 11345 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.4.0 Lightning/3.3.4"
192.168.0.254 - - [26/Jan/2015:21:37:49 +0100] "OPTIONS /cloud/remote.php/caldav/calendars/mikl/ HTTP/1.1" 302 507 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.4.0 Lightning/3.3.4"
192.168.0.254 - - [26/Jan/2015:21:37:49 +0100] "OPTIONS /cloud/index.php HTTP/1.1" 200 11345 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.4.0 Lightning/3.3.4"
192.168.0.254 - - [26/Jan/2015:21:37:52 +0100] "PROPFIND /cloud/remote.php/caldav/calendars/mikl/calendar/ HTTP/1.1" 400 7639 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.4.0 Lightning/3.3.4"

ownCloud log (data/owncloud.log)

{"app":"PHP","message":"fopen(\/mnt\/www\/cloud\/config\/config.php): failed to open stream: Text file busy at \/mnt\/www\/cloud\/lib\/private\/config.php#141","level":3,"time":"2015-01-26T19:51:45+00:00"}
{"app":"PHP","message":"fopen(\/mnt\/www\/cloud\/config\/config.php): failed to open stream: Text file busy at \/mnt\/www\/cloud\/lib\/private\/config.php#141","level":3,"time":"2015-01-26T19:51:45+00:00"}
{"app":"PHP","message":"file_put_contents(\/mnt\/www\/cloud\/config\/config.php): failed to open stream: Text file busy at \/mnt\/www\/cloud\/lib\/private\/config.php#211","level":3,"time":"2015-01-26T19:56:44+00:00"}
{"app":"PHP","message":"include(): Failed opening '\/mnt\/www\/cloud\/config\/config.php' for inclusion (include_path='\/mnt\/www\/cloud\/lib:.:\/usr\/share\/php:\/usr\/share\/pear') at \/mnt\/www\/cloud\/lib\/private\/config.php#154","level":3,"time":"2015-01-26T19:56:45+00:00"}
{"app":"PHP","message":"fopen(\/mnt\/www\/cloud\/config\/config.php): failed to open stream: Text file busy at \/mnt\/www\/cloud\/lib\/private\/config.php#141","level":3,"time":"2015-01-26T19:56:47+00:00"}
{"app":"PHP","message":"fopen(\/mnt\/www\/cloud\/config\/config.php): failed to open stream: Text file busy at \/mnt\/www\/cloud\/lib\/private\/config.php#141","level":3,"time":"2015-01-26T20:01:15+00:00"}
{"app":"PHP","message":"include(): Failed opening '\/mnt\/www\/cloud\/config\/config.php' for inclusion (include_path='\/mnt\/www\/cloud\/lib:\/usr\/share\/awl\/inc') at \/mnt\/www\/cloud\/lib\/private\/config.php#154","level":3,"time":"2015-01-26T20:01:15+00:00"}
{"app":"PHP","message":"fopen(\/mnt\/www\/cloud\/config\/config.php): failed to open stream: Text file busy at \/mnt\/www\/cloud\/lib\/private\/config.php#141","level":3,"time":"2015-01-26T20:01:15+00:00"}
{"app":"PHP","message":"file_put_contents(\/mnt\/www\/cloud\/config\/config.php): failed to open stream: Text file busy at \/mnt\/www\/cloud\/lib\/private\/config.php#211","level":3,"time":"2015-01-26T20:03:44+00:00"}
{"app":"PHP","message":"include(): Failed opening '\/mnt\/www\/cloud\/config\/config.php' for inclusion (include_path='\/mnt\/www\/cloud\/lib:.:\/usr\/share\/php:\/usr\/share\/pear') at \/mnt\/www\/cloud\/lib\/private\/config.php#154","level":3,"time":"2015-01-26T20:03:44+00:00"}
{"app":"PHP","message":"fopen(\/mnt\/www\/cloud\/config\/config.php): failed to open stream: Text file busy at \/mnt\/www\/cloud\/lib\/private\/config.php#141","level":3,"time":"2015-01-26T20:03:44+00:00"}
{"app":"PHP","message":"fopen(\/mnt\/www\/cloud\/config\/config.php): failed to open stream: Text file busy at \/mnt\/www\/cloud\/lib\/private\/config.php#141","level":3,"time":"2015-01-26T20:12:18+00:00"}
{"app":"PHP","message":"fopen(\/mnt\/www\/cloud\/config\/config.php): failed to open stream: Text file busy at \/mnt\/www\/cloud\/lib\/private\/config.php#141","level":3,"time":"2015-01-26T20:12:18+00:00"}
{"app":"PHP","message":"include(): Failed opening '\/mnt\/www\/cloud\/config\/config.php' for inclusion (include_path='\/mnt\/www\/cloud\/lib:.:\/usr\/share\/php:\/usr\/share\/pear') at \/mnt\/www\/cloud\/lib\/private\/config.php#154","level":3,"time":"2015-01-26T20:12:18+00:00"}
{"app":"PHP","message":"fopen(\/mnt\/www\/cloud\/config\/config.php): failed to open stream: Text file busy at \/mnt\/www\/cloud\/lib\/private\/config.php#141","level":3,"time":"2015-01-26T20:15:44+00:00"}
{"app":"PHP","message":"fopen(\/mnt\/www\/cloud\/config\/config.php): failed to open stream: Text file busy at \/mnt\/www\/cloud\/lib\/private\/config.php#141","level":3,"time":"2015-01-26T20:15:45+00:00"}
{"app":"PHP","message":"include(): Failed opening '\/mnt\/www\/cloud\/config\/config.php' for inclusion (include_path='\/mnt\/www\/cloud\/lib:\/usr\/share\/awl\/inc') at \/mnt\/www\/cloud\/lib\/private\/config.php#154","level":3,"time":"2015-01-26T20:15:45+00:00"}
{"app":"PHP","message":"fopen(\/mnt\/www\/cloud\/config\/config.php): failed to open stream: Text file busy at \/mnt\/www\/cloud\/lib\/private\/config.php#141","level":3,"time":"2015-01-26T20:16:45+00:00"}
{"app":"PHP","message":"fopen(\/mnt\/www\/cloud\/config\/config.php): failed to open stream: Text file busy at \/mnt\/www\/cloud\/lib\/private\/config.php#141","level":3,"time":"2015-01-26T20:16:45+00:00"}
{"app":"PHP","message":"include(): Failed opening '\/mnt\/www\/cloud\/config\/config.php' for inclusion (include_path='\/mnt\/www\/cloud\/lib:\/usr\/share\/awl\/inc') at \/mnt\/www\/cloud\/lib\/private\/config.php#154","level":3,"time":"2015-01-26T20:16:45+00:00"}
{"app":"PHP","message":"include(): Failed opening '\/mnt\/www\/cloud\/config\/config.php' for inclusion (include_path='\/mnt\/www\/cloud\/lib:.:\/usr\/share\/php:\/usr\/share\/pear') at \/mnt\/www\/cloud\/lib\/private\/config.php#154","level":3,"time":"2015-01-26T20:18:18+00:00"}
{"app":"PHP","message":"fopen(\/mnt\/www\/cloud\/config\/config.php): failed to open stream: Text file busy at \/mnt\/www\/cloud\/lib\/private\/config.php#141","level":3,"time":"2015-01-26T20:18:18+00:00"}
{"app":"PHP","message":"fopen(\/mnt\/www\/cloud\/config\/config.php): failed to open stream: Text file busy at \/mnt\/www\/cloud\/lib\/private\/config.php#141","level":3,"time":"2015-01-26T20:18:18+00:00"}
{"app":"PHP","message":"fopen(\/mnt\/www\/cloud\/config\/config.php): failed to open stream: Text file busy at \/mnt\/www\/cloud\/lib\/private\/config.php#141","level":3,"time":"2015-01-26T20:20:15+00:00"}
{"app":"PHP","message":"fopen(\/mnt\/www\/cloud\/config\/config.php): failed to open stream: Text file busy at \/mnt\/www\/cloud\/lib\/private\/config.php#141","level":3,"time":"2015-01-26T20:20:15+00:00"}
{"app":"PHP","message":"fopen(\/mnt\/www\/cloud\/config\/config.php): failed to open stream: Text file busy at \/mnt\/www\/cloud\/lib\/private\/config.php#141","level":3,"time":"2015-01-26T20:20:15+00:00"}
{"app":"PHP","message":"include(): Failed opening '\/mnt\/www\/cloud\/config\/config.php' for inclusion (include_path='\/mnt\/www\/cloud\/lib:.:\/usr\/share\/php:\/usr\/share\/pear') at \/mnt\/www\/cloud\/lib\/private\/config.php#154","level":3,"time":"2015-01-26T20:20:15+00:00"}
{"app":"PHP","message":"fopen(\/mnt\/www\/cloud\/config\/config.php): failed to open stream: Text file busy at \/mnt\/www\/cloud\/lib\/private\/config.php#141","level":3,"time":"2015-01-26T20:23:44+00:00"}
{"app":"PHP","message":"fopen(\/mnt\/www\/cloud\/config\/config.php): failed to open stream: Text file busy at \/mnt\/www\/cloud\/lib\/private\/config.php#141","level":3,"time":"2015-01-26T20:23:44+00:00"}
{"app":"PHP","message":"include(): Failed opening '\/mnt\/www\/cloud\/config\/config.php' for inclusion (include_path='\/mnt\/www\/cloud\/lib:.:\/usr\/share\/php:\/usr\/share\/pear') at \/mnt\/www\/cloud\/lib\/private\/config.php#154","level":3,"time":"2015-01-26T20:23:44+00:00"}
{"app":"PHP","message":"fopen(\/mnt\/www\/cloud\/config\/config.php): failed to open stream: Text file busy at \/mnt\/www\/cloud\/lib\/private\/config.php#141","level":3,"time":"2015-01-26T20:23:44+00:00"}
{"app":"PHP","message":"file_put_contents(\/mnt\/www\/cloud\/config\/config.php): failed to open stream: Text file busy at \/mnt\/www\/cloud\/lib\/private\/config.php#211","level":3,"time":"2015-01-26T20:28:14+00:00"}
{"app":"PHP","message":"fopen(\/mnt\/www\/cloud\/config\/config.php): failed to open stream: Text file busy at \/mnt\/www\/cloud\/lib\/private\/config.php#141","level":3,"time":"2015-01-26T20:28:14+00:00"}
{"app":"PHP","message":"fopen(\/mnt\/www\/cloud\/config\/config.php): failed to open stream: Text file busy at \/mnt\/www\/cloud\/lib\/private\/config.php#141","level":3,"time":"2015-01-26T20:28:14+00:00"}
{"app":"PHP","message":"include(): Failed opening '\/mnt\/www\/cloud\/config\/config.php' for inclusion (include_path='\/mnt\/www\/cloud\/lib:.:\/usr\/share\/php:\/usr\/share\/pear') at \/mnt\/www\/cloud\/lib\/private\/config.php#154","level":3,"time":"2015-01-26T20:28:16+00:00"}
{"app":"PHP","message":"file_put_contents(\/mnt\/www\/cloud\/config\/config.php): failed to open stream: Text file busy at \/mnt\/www\/cloud\/lib\/private\/config.php#211","level":3,"time":"2015-01-26T20:30:44+00:00"}
{"app":"PHP","message":"fopen(\/mnt\/www\/cloud\/config\/config.php): failed to open stream: Text file busy at \/mnt\/www\/cloud\/lib\/private\/config.php#141","level":3,"time":"2015-01-26T20:30:45+00:00"}
{"app":"PHP","message":"include(): Failed opening '\/mnt\/www\/cloud\/config\/config.php' for inclusion (include_path='\/mnt\/www\/cloud\/lib:.:\/usr\/share\/php:\/usr\/share\/pear') at \/mnt\/www\/cloud\/lib\/private\/config.php#154","level":3,"time":"2015-01-26T20:30:45+00:00"}
{"app":"PHP","message":"fopen(\/mnt\/www\/cloud\/config\/config.php): failed to open stream: Text file busy at \/mnt\/www\/cloud\/lib\/private\/config.php#141","level":3,"time":"2015-01-26T20:30:45+00:00"}
{"app":"PHP","message":"file_put_contents(\/mnt\/www\/cloud\/config\/config.php): failed to open stream: Text file busy at \/mnt\/www\/cloud\/lib\/private\/config.php#211","level":3,"time":"2015-01-26T20:33:14+00:00"}
{"app":"PHP","message":"file_put_contents(\/mnt\/www\/cloud\/config\/config.php): failed to open stream: Text file busy at \/mnt\/www\/cloud\/lib\/private\/config.php#211","level":3,"time":"2015-01-26T20:33:14+00:00"}
{"app":"PHP","message":"file_put_contents(\/mnt\/www\/cloud\/config\/config.php): failed to open stream: Text file busy at \/mnt\/www\/cloud\/lib\/private\/config.php#211","level":3,"time":"2015-01-26T20:33:14+00:00"}
{"app":"PHP","message":"fopen(\/mnt\/www\/cloud\/config\/config.php): failed to open stream: Text file busy at \/mnt\/www\/cloud\/lib\/private\/config.php#141","level":3,"time":"2015-01-26T20:33:15+00:00"}
{"app":"PHP","message":"include(): Failed opening '\/mnt\/www\/cloud\/config\/config.php' for inclusion (include_path='\/mnt\/www\/cloud\/lib:.:\/usr\/share\/php:\/usr\/share\/pear') at \/mnt\/www\/cloud\/lib\/private\/config.php#154","level":3,"time":"2015-01-26T20:33:18+00:00"}

Browser log

sorry no log

@LukasReschke
Copy link
Member

I actually might have a clue…

My assumption is that

core/lib/private/config.php

Lines 142 to 146 in 80560e7

if($file === $this->configFilePath && $filePointer === false) {
// Opening the main config might not be possible, e.g. if the wrong
// permissions are set (likely on a new installation)
continue;
}
is entered and so ownCloud will assume the config is empty… Let me try to verify this.

@AubreyHewes
Copy link

The problem also occured/occurs with clients who do not have access to the frontend interface.. native client-app access killed the config. So was/is a problem in the backend due to client-app/version requests.? #9736

Possibly combined with frontend request failure... sometimes the app-clients worked though when touching the frontend the config failed.. so maybe you are all on the right track.

LukasReschke added a commit that referenced this issue Jan 26, 2015
There might be the case that `fopen($file, 'r')` returns false and thus ownCloud might believe that the config file is empty and thus potentially leading to an overwrite of the config file.

This changeset introduces `file_exists` again which was used in ownCloud 5 where no such problems where reported and should not be affected by such problems.

Ref #12785 (comment)
@LukasReschke
Copy link
Member

@manitooo I have reason to believe that the change ing #13699 should mitigate your problem reported at #12785 (comment) (though there might be other problems in the same file as well)

Can you please try that change set as well? Thank you!

@LukasReschke
Copy link
Member

Please notice that the error reported by @manitooo looks different from the one reported by @jGleitz.

@manitooo's log:

{"app":"PHP","message":"file_put_contents(\/mnt\/www\/cloud\/config\/config.php): failed to open stream: Text file busy at \/mnt\/www\/cloud\/lib\/private\/config.php#211","level":3,"time":"2015-01-26T20:33:14+00:00"}

@jGleitz's log:

[Wed Dec 10 22:48:09.223346 2014] [:error] [pid 14057] [client 79.219.99.88:57897] PHP Warning:  include(/var/www/owncloud/config/config.php): failed to open stream: Too many open files in system in /var/www/owncloud/lib/private/config.php on line 154

@gudbergsen
Copy link

I have the same problem:

Operating system:
Windows 7

Web server:
Apache 2.4.9

Database:
mysql 5.0.11

PHP version:
5.5.11
ownCloud version:
7.0.3

Owncloud.log
{"app":"PHP","message":"touch(): Utime failed: No such file or directory at I:\Hjemmesider\intranet\lib\private\config.php#183","level":3,"time":"2015-01-29T01:12:48+00:00"}
{"app":"PHP","message":"touch(): Utime failed: No error at I:\Hjemmesider\intranet\lib\private\config.php#141","level":3,"time":"2015-01-29T01:12:48+00:00"}
{"app":"PHP","message":"filemtime(): stat failed for I:\Hjemmesider\intranet\data/pekj/54c9e186974b3 at I:\Hjemmesider\intranet\lib\private\files\storage\mappedlocal.php#155","level":3,"time":"2015-01-29T07:30:14+00:00"}
{"app":"PHP","message":"filemtime(): stat failed for I:\Hjemmesider\intranet\data/pekj/54c9e186974b3 at I:\Hjemmesider\intranet\lib\private\files\storage\mappedlocal.php#155","level":3,"time":"2015-01-29T07:30:14+00:00"}

@LukasReschke
Copy link
Member

@gudbergsen You're using Windows which thus is likely to be another problem and your owncloud log shows different information as well. – Can you please test with the above changes applied. Thanks.

#13699 should be easy to apply. #13621 requires a little bit more fiddling. The first one might already help.

@DeepDiver1975
Copy link
Member

@gudbergsen in case you are still facing problem - please open an new issue in there - THX

@manitooo
Copy link

OK, just a hint to make it easier to patch the sources. :

Then apply the patch... maybe this could help someone (sorry for kind of out of subject)

Regads... I'll do the patch ASAP

@manitooo
Copy link

Then, do not try the
patch -p0 < fix.patch
it will not suit patch statements

better try :

git apply --stat fix.patch

then checking what will be done by

git apply --check fix.patch

the, in case of no errors :

git am --signoff < fix.patch

For my case, the patch does not apply nicely :

# git apply --stat 001.patch     
 lib/private/allconfig.php     |   10 +++++
 lib/private/config.php        |   89 +++++++++++++++++++++++++++++++----------
 lib/private/legacy/config.php |   10 +++++
 lib/private/systemconfig.php  |   10 +++++
 lib/public/iconfig.php        |    8 ++++
 tests/lib/config.php          |   30 ++++++++++++++
 6 files changed, 135 insertions(+), 22 deletions(-)

# git apply --check 001.patch    
error: patch failed: lib/private/allconfig.php:70
error: lib/private/allconfig.php: patch does not apply
error: patch failed: lib/private/config.php:68
error: lib/private/config.php: patch does not apply
error: lib/private/systemconfig.php: No such file or directory
error: tests/lib/config.php: No such file or directory
zsh: exit 1     git apply --check 001.patch

I'll check later what I have to do

@DeepDiver1975
Copy link
Member

The patches are intent to be shipped with oc8 - applying them to oc7 will fail - yes

@DeepDiver1975
Copy link
Member

@LukasReschke I guess we did the best we could have done for OC8 - close?

@nickvergessen
Copy link
Contributor

jup, i discussed with lukas this morning and we will use a new ticket in case something comes up.

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

No branches or pull requests