You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Too many small log files when the "--logdir <file>" parameter is used #2497
It can happen that I have a sync run interrupt at about each minute.
From OC client 1.7.0 on, creating a log file by using the parameter --logdir <dir> results in many small files. Scrolling through the logging then means opening many individual files.
Can starting a new file be triggered by not only a new sync run, but also by the condition that the file must larger than e.g. 5 MB or was created more than e.g. 1 hour ago?
My current workaround:
I use the logfile <file> parameter or the F12 function.
This cannot be used for continuous logging and it requires manual action.
Steps to reproduce
Use the parameter --logdir <dir> to create log files.
Do not change any file. So there is nothing to update.
Have many sync interrupts.
Expected behavior
A limited number of logging files. E.g. only a new file after each hour or 5 MB size.
Client configuration
ownCloud version: 1.7.0
Operating system: Win XP, (Win 7 or Win 8)
Browser: Google Chrome (or Firefox or IE11)
Server configuration
ownCloud version: 7.0.3 (stable)
List of activated apps: default apps + encryption
External storage: no
Encryption: yes
OC server installed at a Dutch webhosting company. 4-5 GB storage.
Control via DirectAdmin and installation by using Installatron.
Own (non-shared) IP and using https.
Operating system: Linux Hosting Package
Web server: Apache
Database: MySQL
PHP version: native, 5.5.
Oops, the problem is different for Win XP and Win 7/8.
When using the command "C:\Program Files\ownCloud\owncloud.exe" --logdir logdirWin XP stores the log files in the folder C:\Program Files\ownCloud\logdir and creates a new log file at each sync run. E.g. Pause/Resume results in a new log file. Result: Too many log files.
Win 7/8 stores the log files in the folder C:\Users\"username"\AppData\Local\VirtualStore\Program Files (x86)\ownCloud\logdir and does not create a new log file for each sync run.
Only Quit OC and Restart (with the logging parameter set) will generate a new log file.
Which behavior is intended for all operating systems?
A new log file at each sync run now happens only on Win XP.
Somehow the software detects a new sync run again and again.
A typical log file begins and ends like this:
11-16 12:42:16:046 0x5d85d78 folderwatcher.cpp:153 detected changes in folders: QSet("C:/Documents and Settings/Vincent/My Documents/ownCloud/xxxCloud username/")
11-16 12:42:16:046 0x5d85d78 folderman.cpp:455 folder "ownCloud" is currently syncing. NOT scheduling.
..
..
..
11-16 12:47:20:078 0x5d85d78 syncjournaldb.cpp:68 void Mirall::SyncJournalDb::walCheckpoint() took 0 msec
11-16 12:47:20:078 0x5d85d78 syncjournaldb.cpp:1157 void Mirall::SyncJournalDb::commitInternal(const QString&, bool) Transaction commit "All Finished."
11-16 12:47:20:078 0x5d85d78 syncengine.cpp:812 CSync run took 1259
11-16 12:47:20:078 0x5d85d78 folder.cpp:837 -> SyncEngine finished without problem.
11-16 12:47:20:078 0x5d85d78 folder.cpp:422 Processing result list and logging took 0 Milliseconds.
11-16 12:47:20:078 0x5d85d78 folder.cpp:442 OO folder slotSyncFinished: result: 3
11-16 12:47:20:093 0x5d85d78 socketapi.cpp:320 SocketApi: Sending message: "STATUS:OK:C:\Documents and Settings\Vincent\My Documents\ownCloud\xxxCloud username\"
11-16 12:47:20:093 0x5d85d78 socketapi.cpp:320 SocketApi: Sending message: "UPDATE_VIEW:C:\Documents and Settings\Vincent\My Documents\ownCloud\xxxCloud username\"
11-16 12:47:20:781 0x5d85d78 owncloudgui.cpp:263 Folder in overallStatus Message: Mirall::Folder(0x64a1488) with name "ownCloud"
11-16 12:47:20:796 0x5d85d78 owncloudgui.cpp:180 Sync state changed for folder "ownCloud" : "Success"
I'm only syncing the folder xxxCloud username and some lines in the log file are referring to folder "ownCloud". I do not sync any folder named "ownCloud".
How is that possible?
Is that an indication for the root cause of a bug?
Before OC client 1.7.0 I did not have the problem of "too many log files".
Each time when OC tries to sync, I see a peak in the CPU usage by OC only up to at least 50%.
That seems to be much more than before and it seems also to be related to the interrupts.
I'm only syncing the folder xxxCloud username and this is what I get when I select the option "Choose What to Sync":
The root does not have the name xxxCloud username.
Ooops, I just discovered that ownCloud is the default alias folder name for the folder xxxCloud username !!!
The problem of too many log files on Win XP is still there.
Below is a complete new log file # 138. Somehow the syncing is aborted again and again.
Why is there a timeout at:
I planned to start file integrity tests on 4 connected PC's, a Win 8, Win 7 and 2 Win XP PC's.
Since OC client 1.7.0. I have problems on Win XP and cannot use these PC's for the tests.
On the oldest and slowest Win XP OC the program seem to run marginal better.
The tray icon shows at least that the sync is OK.
The log files each time cover a few minutes.
There no changed data files. Why each time a new log file?
Note: This time the OC client 1.7.0 was accidentally connected to an OC server 7.0.0 at another non-updated account and not yet to OC server 7.0.3 as above. That can be the reason why it runs different and marginally better.
I went back to OC client 1.6.4 on Win XP.
The program seems to run 100 times better.
A good response on user actions. Non-noticable CPU usage at a sync update, not many or large log files !!
For a file corruption test I used 500 MB, 300 folders, 3000 files.
These were uploaded to the OC 7.0.3 server by the Win XP OC client 1.6.4.
At the same time a Win 7 PC and a Win 8 PC, each with their own OC account, and using OC client 1.7.0, started downloading from the shared folder on the server.
I never had such huge log files from downloading:
Win XP client 1.6.4, uploading, 10 log files, size 2-26 MB , total 60 MB, about 2 hours upload time
Win 8 client 1.7.0, downloading, 3 log files, size 76-362 MB , total 487 MB, about 2 hours download time
Win 7 client 1.7.0, downloading, 3 log files, size 2-260 MB , total 402 MB, about 2 hours download time
The good thing: Previously this took up to 5 hours. Now 2 hours!
Conclusions up to now:
OC client 1.7.0 does not work on Win XP (Vista?). Maybe a too high CPU load.
OC client 1.7.0 generates huge log files. Why?
Some better log file size management is needed.
OC client 1.7.0 + OC server 7.0.3 works faster than previous versions.
I will report file corruption in a separate issue.
The logfiles are big because all the files always get an entry in the log files for every sync. This is required for us to debug properly. --logdir is a debug function that should normaly not be used unless you want to track a problem. as it would make the client much slower.
Activity
VincentvgNn commentedon Nov 16, 2014
Oops, the problem is different for Win XP and Win 7/8.
When using the command
"C:\Program Files\ownCloud\owncloud.exe" --logdir logdirWin XP stores the log files in the folderC:\Program Files\ownCloud\logdirand creates a new log file at each sync run. E.g. Pause/Resume results in a new log file. Result: Too many log files.Win 7/8 stores the log files in the folder
C:\Users\"username"\AppData\Local\VirtualStore\Program Files (x86)\ownCloud\logdirand does not create a new log file for each sync run.Only Quit OC and Restart (with the logging parameter set) will generate a new log file.
Which behavior is intended for all operating systems?
VincentvgNn commentedon Nov 16, 2014
A new log file at each sync run now happens only on Win XP.
Somehow the software detects a new sync run again and again.
A typical log file begins and ends like this:
I'm only syncing the folder
xxxCloud usernameand some lines in the log file are referring tofolder "ownCloud". I do not sync any folder named "ownCloud".How is that possible?
Is that an indication for the root cause of a bug?
Before OC client 1.7.0 I did not have the problem of "too many log files".
Each time when OC tries to sync, I see a peak in the CPU usage by OC only up to at least 50%.
That seems to be much more than before and it seems also to be related to the interrupts.
VincentvgNn commentedon Nov 17, 2014
I'm only syncing the folder

xxxCloud usernameand this is what I get when I select the option "Choose What to Sync":The root does not have the name
xxxCloud username.Ooops, I just discovered that
ownCloudis the default alias folder name for the folderxxxCloud username!!!VincentvgNn commentedon Nov 18, 2014
The problem of too many log files on Win XP is still there.
Below is a complete new log file # 138. Somehow the syncing is aborted again and again.
Why is there a timeout at:
Complete log file # 138:
VincentvgNn commentedon Nov 18, 2014
I planned to start file integrity tests on 4 connected PC's, a Win 8, Win 7 and 2 Win XP PC's.
Since OC client 1.7.0. I have problems on Win XP and cannot use these PC's for the tests.
On the oldest and slowest Win XP OC the program seem to run marginal better.
The tray icon shows at least that the sync is OK.
The log files each time cover a few minutes.
There no changed data files. Why each time a new log file?
Note: This time the OC client 1.7.0 was accidentally connected to an OC server 7.0.0 at another non-updated account and not yet to OC server 7.0.3 as above. That can be the reason why it runs different and marginally better.
Complete log file # 52:
VincentvgNn commentedon Nov 18, 2014
I went back to OC client 1.6.4 on Win XP.
The program seems to run 100 times better.
A good response on user actions. Non-noticable CPU usage at a sync update, not many or large log files !!
VincentvgNn commentedon Nov 18, 2014
For a file corruption test I used 500 MB, 300 folders, 3000 files.
These were uploaded to the OC 7.0.3 server by the Win XP OC client 1.6.4.
At the same time a Win 7 PC and a Win 8 PC, each with their own OC account, and using OC client 1.7.0, started downloading from the shared folder on the server.
I never had such huge log files from downloading:
The good thing: Previously this took up to 5 hours. Now 2 hours!
Conclusions up to now:
I will report file corruption in a separate issue.
ogoffart commentedon Jan 4, 2016
The logfiles are big because all the files always get an entry in the log files for every sync. This is required for us to debug properly.
--logdiris a debug function that should normaly not be used unless you want to track a problem. as it would make the client much slower.