{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/18726","labels_url":"https://api.github.com/repos/owncloud/core/issues/18726/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/18726/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/18726/events","html_url":"https://github.com/owncloud/core/issues/18726","id":104184789,"number":18726,"title":"PHP error when running cron.php from cli","user":{"login":"individual-it","id":2425577,"avatar_url":"https://avatars.githubusercontent.com/u/2425577?v=3","gravatar_id":"","url":"https://api.github.com/users/individual-it","html_url":"https://github.com/individual-it","followers_url":"https://api.github.com/users/individual-it/followers","following_url":"https://api.github.com/users/individual-it/following{/other_user}","gists_url":"https://api.github.com/users/individual-it/gists{/gist_id}","starred_url":"https://api.github.com/users/individual-it/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/individual-it/subscriptions","organizations_url":"https://api.github.com/users/individual-it/orgs","repos_url":"https://api.github.com/users/individual-it/repos","events_url":"https://api.github.com/users/individual-it/events{/privacy}","received_events_url":"https://api.github.com/users/individual-it/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/core/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-01T04:33:11Z","updated_at":"2015-09-16T14:52:11Z","closed_at":null,"body":"I'm running OC on a bitnami VM.\r\nCron from Ajax or webcron work fine but not from cli/crontab\r\n\r\n### Steps to reproduce\r\n1. start bitnami VM with ownCloud 8.1.1\r\n2. set \"Use system's cron service to call the cron.php file every 15 minutes.\"\r\n3. enable shell for \"daemon\" user in /etc/passwd\r\n4. run\r\n\r\n ````\r\nsudo -u bitnami /opt/bitnami/php/bin/php -f /opt/bitnami/apps/owncloud/htdocs/cron.php\r\n ````\r\n\r\n### Expected behaviour\r\ncron.php executes without errors\r\n\r\n### Actual behaviour\r\n\r\n````\r\nsudo -u bitnami /opt/bitnami/php/bin/php -f /opt/bitnami/apps/owncloud/htdocs/cron.php\r\nPHP Warning:  flock() expects parameter 1 to be resource, boolean given in /opt/bitnami/apps/owncloud/htdocs/lib/private/config.php on line 201\r\nPHP Fatal error:  Call to a member function getSystemConfig() on a non-object in /opt/bitnami/apps/owncloud/htdocs/lib/private/log.php on line 59\r\n````\r\n### Server configuration\r\n**Operating system**:\r\nLinux linux 3.13.0-55-generic #94-Ubuntu SMP Thu Jun 18 00:27:10 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux\r\nBitnami VM\r\n\r\n**Web server:**\r\nServer version: Apache/2.4.16 (Unix)\r\nServer built:   Aug  7 2015 10:28:13\r\n**Database:**\r\nVer 5.6.26 for linux-glibc2.5 on x86_64 \r\n**PHP version:**\r\nPHP 5.5.28\r\n**ownCloud version:** (see ownCloud admin page)\r\n8.1.1\r\n**Updated from an older ownCloud or fresh install:**\r\nfresh\r\n**List of activated apps:**\r\nEnabled:\r\n - files: 1.1.10\r\n - files_external: 0.2.3\r\n - files_locking: \r\n - files_sharing: 0.6.2\r\n - firstrunwizard: 1.1\r\n - provisioning_api: 0.2\r\n - updater: 0.6\r\nDisabled:\r\n - activity\r\n - encryption\r\n - external\r\n - files_pdfviewer\r\n - files_texteditor\r\n - files_trashbin\r\n - files_versions\r\n - files_videoviewer\r\n - gallery\r\n - templateeditor\r\n - user_external\r\n - user_ldap\r\n - user_webdavauth\r\n\r\n**The content of config/config.php:**\r\n\r\n```\r\n<?php\r\n$CONFIG = array (\r\n  'instanceid' => 'oc25f6hxruxt',\r\n  'passwordsalt' => 'xxxxxx',\r\n  'secret' => 'xxxxx',\r\n  'trusted_domains' =>\r\n  array (\r\n    0 => '10.49.35.124',\r\n    1 => '127.0.0.1',\r\n  ),\r\n  'datadirectory' => '/opt/bitnami/apps/owncloud/data',\r\n  'overwrite.cli.url' => 'http://localhost/owncloud',\r\n  'dbtype' => 'mysql',\r\n  'version' => '8.1.1.3',\r\n  'dbname' => 'bitnami_owncloud',\r\n  'dbhost' => 'localhost',\r\n  'dbtableprefix' => 'oc_',\r\n  'dbuser' => 'bn_owncloud',\r\n  'dbpassword' => 'xxxxx',\r\n  'logtimezone' => 'UTC',\r\n  'installed' => true,\r\n  'ldapIgnoreNamingRules' => false,\r\n  'loglevel' => 0,\r\n  'memcache.local' => '\\OC\\Memcache\\APCu'\r\n);\r\n\r\n```\r\n\r\n**Are you using external storage, if yes which one:** local/smb/sftp/...\r\nsmb\r\n**Are you using encryption:** yes/no\r\nno\r\n**Are you using an external user-backend, if yes which one:** LDAP/ActiveDirectory/Webdav/...\r\nno\r\n\r\n### Logs\r\n#### Web server error log\r\n\r\n```\r\n[Tue Sep 01 10:12:16.973947 2015] [lbmethod_heartbeat:notice] [pid 27840:tid 140336205166400] AH02282: No slotmem from mod_heartmonitor\r\n[Tue Sep 01 10:12:17.030566 2015] [mpm_event:notice] [pid 27840:tid 140336205166400] AH00489: Apache/2.4.16 (Unix) OpenSSL/1.0.1p configured -- resuming normal operations\r\n[Tue Sep 01 10:12:17.030959 2015] [core:notice] [pid 27840:tid 140336205166400] AH00094: Command line: '/opt/bitnami/apache2/bin/httpd.bin -f /opt/bitnami/apache2/conf/httpd.conf'\r\n```\r\n\r\n#### ownCloud log (data/owncloud.log)\r\n```\r\n{\"reqId\":\"kUH4H6kSV5s0VewD43sp\",\"remoteAddr\":\"10.49.32.166\",\"app\":\"PHP\",\"message\":\"Array to string conversion at \\/opt\\/bitnami\\/apps\\/owncloud\\/htdocs\\/lib\\/private\\/template\\/functions.php#36\",\"level\":3,\"time\":\"2015-09-01T04:27:53+00:00\"}\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/140765290","html_url":"https://github.com/owncloud/core/issues/18726#issuecomment-140765290","issue_url":"https://api.github.com/repos/owncloud/core/issues/18726","id":140765290,"user":{"login":"PVince81","id":277525,"avatar_url":"https://avatars.githubusercontent.com/u/277525?v=3","gravatar_id":"","url":"https://api.github.com/users/PVince81","html_url":"https://github.com/PVince81","followers_url":"https://api.github.com/users/PVince81/followers","following_url":"https://api.github.com/users/PVince81/following{/other_user}","gists_url":"https://api.github.com/users/PVince81/gists{/gist_id}","starred_url":"https://api.github.com/users/PVince81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PVince81/subscriptions","organizations_url":"https://api.github.com/users/PVince81/orgs","repos_url":"https://api.github.com/users/PVince81/repos","events_url":"https://api.github.com/users/PVince81/events{/privacy}","received_events_url":"https://api.github.com/users/PVince81/received_events","type":"User","site_admin":false},"created_at":"2015-09-16T14:52:11Z","updated_at":"2015-09-16T14:52:11Z","body":"@individual-it did you have any more luck with 8.1.3 ?\r\n\r\nThe flock error might be fixed there."}}