-
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
Owncloud.log goes crazy. #24488
Comments
@DeepDiver1975 @PVince81 There are two problems here, one is that we don't trim the string when logging, resulting in stupidly long messages like those shown here (caused by an image embedded in base64 in the vcard). I'd suggest when logging DB errors (I believe stack traces already do this?) we trim any parameters to a sensible length? |
Pull request welcome |
|
Okay - I guess this is because the avatar image is just hugh .... we need to limit this ... @msrv any idea what the size of the avatar of that one user is which is causing the error? |
Thank you for your replys! root@vsrv23643:/srv/oc-data/USERDATA# du -sch avatar.* |
I've the same issue. I've temporary resolved settings all my.cnf 16MB reference to 32MB and restart mysql. By phpMyAdmin I saved the big blog fields and try to extract the jpeg stored in vcard by an online extractor (http://www.docx2doc.com/convert/vcf-to-jpg.html) There are 2 stranghe things:
You can download the extracted and decoded MIME-Base64 300KB jpeg file: https://moredrive.unimore.it/index.php/s/pz3OlDj3zh9ZIgV Now the questions are:
Someone is able to give me an answer or put me in the right direction to solve this problem? Thank You |
@Dallo71 That JPG that you have is not the image stored as an avatar within the VCF, but rather just a representation of some of the data from the VCF in an image format (hence the VCF to JPG converter). You have at some point uploaded an image as an avatar for a contact, which was too large, so updating the database failed. The bug with ownCloud here is that we then dump the entire thing to the log, which is bad. Also, we don't check the avatar size. |
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. |
Hi,
as advised on the owncloud forum, i am opening a ticket here.
A few weeks ago (after 9 or 9.0.1 upgrade, can't really tell), the admin panel of my owncloud installation became inaccessible. If i try to access it, the whole server appliance freezes, gives a 504 gateway timeout and needs to be stopped and then started again (restart alone does not work). I will describe in detail:
Steps to reproduce
Expected behaviour
Tell us what should happen
admin panel should open, no error should be present
Actual behaviour
Tell us what happens instead
log file is spammed within seconds and now looks like this:
{"reqId":"IVGC+Iesg4A2EMGc9UmP","remoteAddr":"","app":"core","message":"Error while running background job (class: OCA\\DAV\\CardDAV\\SyncJob, arguments: ): {\"Exception\":\"Doctrine\\\\DBAL\\\\Exception\\\\DriverException\",\"Message\":\"An exception occurred while executing 'UPDATE
oc_cardsSET
carddata= ?,
lastmodified= ?,
size= ?,
etag= ? WHERE (
uri= ?) AND (
addressbookid= ?)' with params [\\\"BEGIN:VCARD\\\\r\\\\nVERSION:3.0\\\\r\\\\nPRODID:-\\\\\\\/\\\\\\\/Sabre\\\\\\\/\\\\\\\/Sabre VObject 3.5.0...
And so on. The logfile is HUGE and i cannot really extract useful information from it.
Server configuration
Operating system:
Debian Jessie with apparmor (makes no difference if enabled or disabled completely), /srv is a separate parition with nosuid, nodev, noexec.
Web server:
Nginx 1.1.10 + Naxsi (disabled or enabled or not compiled makes no difference) + Php5 - FPM, all behind SSLH as transparent proxy
Database:
MariaDB 15.1
PHP version:
5.6.20
ownCloud version: (see ownCloud admin page)
9.0.2
Updated from an older ownCloud or fresh install:
Updated
Where did you install ownCloud from:
tarball from websites
Signing status (ownCloud 9.0 and above):
dont know what this means
List of activated apps:
Enabled:
Client configuration
Browser:
Firefox latest
Operating system:
Windows 10
Logs
Web server error log
error-log.txt
ownCloud log (data/owncloud.log)
owncloud-log.txt
The text was updated successfully, but these errors were encountered: