Log is missing/not logging

Hi and thank you for reading this, i have some problems with my owncloud installation as you can see below, fact is i tried to set up a logrotate to take the log and archive it to not have a huge log to read through and find errors faster.

I’m medium experienced with serverside debian stuff and try to do it on my own, set up all the stuff and this is my first post here, sorry if it’s a bit scrambled.

Thanks a lot.

Steps to reproduce

  1. ?
  2. ?
  3. ?

Expected behaviour

Owncloud logging in /etc/www/owncloud/data/owncloud.log

Actual behaviour

Owncloud log missing, not being written or something like that

Server configuration

Operating system:
Debian 9
Web server:
Apache 2
PHP version:
ownCloud version: (see ownCloud admin page)
Updated from an older ownCloud or fresh install:
Where did you install ownCloud from:
i think it was git clone?
Signing status (ownCloud 9.0 and above):
i don’t know what this means.

Login as admin user into your ownCloud and access 
paste the results into https://gist.github.com/ and puth the link here.

No errors have been found.

The content of config/config.php:

<?php $CONFIG = array ( 'updatechecker' => false, 'instanceid' => 'ocvtuiuxcmos', 'passwordsalt' => 'REDACTED', 'secret' => 'REDACTED', 'trusted_domains' => array ( 0 => '', 1 => 'REDACTED', 2 => 'REDACTED', 3 => 'REDACTED', ), 'datadirectory' => '/var/www/owncloud/data', 'overwrite.cli.url' => '', 'dbtype' => 'mysql', 'version' => '', 'dbname' => 'owncloud', 'dbhost' => 'localhost', 'dbtableprefix' => 'oc_', 'dbuser' => 'REDACTED', 'dbpassword' => 'REDACTED', 'logtimezone' => 'UTC', 'installed' => true, 'mail_domain' => 'REDACTED', 'mail_from_address' => 'ownCloud', 'mail_smtpmode' => 'smtp', 'mail_smtpauthtype' => 'LOGIN', 'mail_smtpauth' => 1, 'mail_smtphost' => 'REDACTEDt', 'mail_smtpport' => '25', 'mail_smtpname' => 'REDACTEDt', 'mail_smtppassword' => 'REDACTED', 'memcache.local' => '\\OC\\Memcache\\Redis', 'filelocking.enabled' => 'true', 'memcache.distributed' => '\\OC\\Memcache\\Redis', 'memcache.locking' => '\\OC\\Memcache\\Redis', 'redis' => array ( 'host' => 'localhost', 'port' => 6379, 'timeout' => 0, 'dbindex' => 0, ), ); ``` Log in to the web-UI with an administrator account and click on 'admin' -> 'Generate Config Report' -> 'Download ownCloud config report' This report includes the config.php settings, the list of activated apps and other details in a well sanitized form. or If you have access to your command line run e.g.: sudo -u www-data php occ config:list system from within your ownCloud installation folder *ATTENTION:* Do not post your config.php file in public as is. Please use one of the above methods whenever possible. Both, the generated reports from the web-ui and from occ config:list consistently remove sensitive data. You still may want to review the report before sending. If done manually then it is critical for your own privacy to dilligently remove *all* host names, passwords, usernames, salts and other credentials before posting. You should assume that attackers find such information and will use them against your systems. ``` **List of activated apps:** Enabled: - activity: 2.4.2 - brute_force_protection: 1.0.1 - camerarawpreviews: 0.6.4 - comments: 0.3.0 - configreport: 0.1.2 - dav: 0.4.0 - federatedfilesharing: 0.3.1 - federation: 0.1.0 - files: 1.5.2 - files_external: 0.7.1 - files_external_dropbox: 1.1.0 - files_external_ftp: 0.2.1 - files_sharing: 0.11.0 - files_trashbin: 0.9.1 - files_versions: 1.3.0 - files_videoplayer: 0.9.9 - firstrunwizard: 1.1.1 - gallery: 16.1.1 - market: 0.4.0 - notifications: 0.4.1 - ownbackup: 19.1.0 - password_policy: 2.0.2 - provisioning_api: 0.5.0 - systemtags: 0.3.0 - updatenotification: 0.2.1 - wallpaper: 0.1 Disabled: - encryption - external - user_external ``` If you have access to your command line run e.g.: sudo -u www-data php occ app:list from within your ownCloud installation folder. ``` **Are you using external storage, if yes which one:** local/smb/sftp/... smb **Are you using encryption:** yes/no no **Are you using an external user-backend, if yes which one:** LDAP/ActiveDirectory/Webdav/... no ### Client configuration **Browser:** Firefox **Operating system:** Win7 ### Logs #### Web server error log ``` Insert your webserver log here ``` #### ownCloud log (data/owncloud.log) ``` Insert your ownCloud log here ``` #### Browser log ``` Insert your browser log here, this could for example include: a) The javascript console log b) The network log c) ... ```


i think the “etc” part of this path is not correct. You probably need to look into /var/www/owncloud/data/owncloud.log.

Oops, typo! meant that!

root@Debian:~# ls /var/www/owncloud/data/ |grep log
root@Debian:~# cat /var/www/owncloud/data/owncloud.log

it’s an empty file :confused:


maybe there is currently nothing what ownCloud needs to be logged into this file? My own owncloud.log is nearly empty as well and i have found only a few entries from my last successful update from ownCloud 10.1.0 to 10.1.1.

SMB error should be logged, ney?
I at least hope so!


unfortunately i’m not familiar with SMB so i can’t answer you this question. Maybe you need to adjust the loglevel of ownCloud within the config.php to a lower level to get more logging?

loglevel is set at 0!
i’m so sorry for producing such an stupid error xD