Description of problem: Logging is not working. The default logfile /var/lib/owncloud/data/owncloud.log is empty. Also setting a specific logfile in /etc/owncloud/config.php does not work (e.g. 'logfile' => '/var/log/owncloud.log',). Version-Release number of selected component (if applicable): owncloud-8.2.3-4.fc23.noarch owncloud-httpd-8.2.3-4.fc23.noarch owncloud-mysql-8.2.3-4.fc23.noarch How reproducible: Install owncloud. Set log level to 0, 1 or 2. Try to log in with false credentials. Actual results: The logfile is empty. Failed logins aren't logged for example. Expected results: There should be logged events in the logfile. Failed logins should be logged for example. As you can not determine failed logon attemps and ban users brute forcing logins this is a security issue.
Issue persists in owncloud-8.2.4-1.fc23: https://bodhi.fedoraproject.org/updates/FEDORA-2016-6f479decc6
Logging works with 'log_type' => 'owncloud',
The logging we ship in Fedora as default is the syslog type: https://doc.owncloud.org/server/8.2/admin_manual/configuration_server/config_sample_php_parameters.html As per the upstream docs logfile is only used if log type us set to 'owncloud' See our snippet here: http://pkgs.fedoraproject.org/cgit/rpms/owncloud.git/tree/owncloud-config.php If you want text logs to parse then, as you mentioned in c2, as per the upstream docs you need to set the log type to owncloud and then pick a writeable path by apache for logfile. To get the logs out of syslog for owncloud from the shipped config: journalctl -t ownCloud to get that syslog target, if rsyslog is running you could also filter against that. Incidentally please only place negative karma on an update if there is a regression from the existing package (ie bug doesn't exist in existing) and not for something that happens in both versions.
Thanks for the reply. Sorry for the mistake. Can you push this information into a README or to the wiki?
(In reply to Daniel Laczi from comment #4) > Thanks for the reply. Sorry for the mistake. Can you push this information > into a README or to the wiki? The README.fedora file we ship already has a section pointing out config.php and a link to the upstream docs: http://pkgs.fedoraproject.org/cgit/rpms/owncloud.git/tree/owncloud-README.fedora#n47 It also has a specific logging section pointing out the syslog behaviour: http://pkgs.fedoraproject.org/cgit/rpms/owncloud.git/tree/owncloud-README.fedora#n64
Thanks. I thought it was curious as it didn't display the logs in the web admin gui as well. Now I suppose that's normal behavior with syslog. But yeah, shame on me. I skipped the Logging section in docs and didn't check journalctl.