-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
fast growing logfile due to "file not found" errors #27567
Comments
Check "oc_jobs", you probably have a huge backlog of tasks that cron didn't run. Running ajax cron once isn't enough. |
@PVince81 could you be a bit more specific about what you mean with
(keep in mind not everybody is developing owncloud as their dayjob) |
|
ok, so the backlog is indeed rather huge (117791 unrun jobs). most of these have a
|
ajax is not enough because it doesn't run often enough, known issue: #20380 Ajax cron used to be enough in older OC versions but more and more processing as been moved to cron over newer versions which makes this worse. |
so:
|
Seems only the documentation states it's the least reliable: https://doc.owncloud.org/server/9.1/admin_manual/configuration_server/background_jobs_configuration.html?highlight=cron#cron-jobs Maybe there should be a bigger warning, especially when the backlog is getting bigger. Moved your suggestions to a new ticket: #27574 |
ah i now see that running this is not obvious from the docs. as for the documentation on ajax-cron, it indeed does mention that this is the "least preferred" method, but i was not aware that any of the use-cases where ajax might become problematic applied to me, i just discarded that warning. (esp. i was not aware that i ever enabled an "activity app" on purpose; it is now clear to me that this is a bog standard/default application) |
I think you can post suggestions / improvements to that documentation over at: https://github.com/owncloud/documentation/issues |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
i'm using
owncloud-9.0.8-1.1
(Debian package as provided one owncloud.org).our instance has become a bit sluggish, so i investigated a bit and the first thing i noticed that the owncloud.log file has grown to a considerable size of ~15GB, but this was during the last 6 months (and it seems i forgot to configure logfile rotation).
so i manually rotated the logfile, only to discover that it seems to be growning increasingly fast:
in less than 24h, the logfile has grown by ~720MB(!).
quick logfile analysis
a quick glance at the logfile (the "small" 700MB file, not the unwieldly 15GB one) did not reveal anything very special (though my eyes still hurt due to excessive backslash spread).
most errors (about 70%, or 275000 lines) are about "File with id ... has not been found":
of these errors about 89% (245000 lines) come from only two users (and their
/files/
are about 5.2GB resp 8.8GB in size).cron
i'v read #25787, which suggests that the problem is either specific to 9.1 (which i don't use), or should go away automatically via the cron-scripts.
i'm using
AJAX
as the cron-backend, but i'm not sure whether it actually works.the admin page tells me that cron has last executed
just now
and accessing/owncloud/cron.php
yields awhich all sounds promising enough.
otoh, i tried to enable logrotation with a file-limit of
10 MB
, and this doesn't seem to work at all (given that the current file is 720MB large):Server configuration
Operating system: Debian GNU/Linux 8.7 (jessie)
Web server: apache2 (2.4.10-10+deb8u8)
Database: PostgreSQL9.4 (9.4.10-0+deb8u1)
PHP version: php5 (5.6.30+dfsg-0+deb8u1)
ownCloud version: 9.0.8 (stable)
Updated from an older ownCloud or fresh install: updated (about 8 months ago we migrated from owcloud-7 to owncloud-9.0.4; since then we have gradually updated to 9.0.8)
Where did you install ownCloud from:
via apt from http://download.owncloud.org/download/repositories/9.0/Debian_8.0/
Signing status (ownCloud 9.0 and above):
List of activated apps:
The content of config/config.php:
Are you using external storage, if yes which one: local/smb/sftp/...
no, but the local storage is mounted via NFS from a fileserver.
Are you using encryption: no
Are you using an external user-backend, if yes which one: LDAP
LDAP configuration (delete this part if not used)
ownCloud log (data/owncloud.log)
The text was updated successfully, but these errors were encountered: