-
Notifications
You must be signed in to change notification settings - Fork 671
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
[Windows] Client does not sync .mwb MySQL Workbench files since version 2.4.0 #6610
Comments
Does the behaviour change if you close MySQL Workbench? Which messages related to this file do you see in the log file / log window? (CC @ckamm maybe related to locking?) |
Closing Workbench unfortunately does not change the behaviour. I just did the following: Result: After that I duplicated the .mwb inside the folder. The sync protocoll does not show any action. The log windows shows the following for the two actions:
Hope this helps tracking the issue. |
@sfadschm Thanks for the report and the log. This kind of behavior is unacceptable. Unfortunately the log only shows the file watcher and socket api communication: All it tells us is that it's not related to excludes/ignored files since otherwise Could you send me more of the log file? The full ( Since you say the client actively deletes the file I doubt that locks are involved. |
@ckamm thanks for the help, thats why I did not paste the whole logfile here. Just for clarification, the file does not get deleted from the local storage on the system with the 2.4.1 client. However, as the client does not seem to see the local file, but sees the file on the server, it deletes the file on the server upon syncing. Following from this, the client 2.3.4 (which runs nicely) on another system will see the deleted file on the server and thus delete its local copy on the second system, too. Best and thanks |
@sfadschm Okay, thanks for the clarification and for helping debug this issue. |
From the logs I got it looks like the file is seen locally and there's no db entry (EDIT: note this is
and that should make it
|
The line you cited is warehouse.sql, not warehouse.mwb. |
@sfadschm Oops, great point! My current best guess then is that @sfadschm Maybe a @ogoffart Have you seen this before? If my guess is true a non fatal abort like this seems very problematic - the whole sync finishes with a success. EDIT: No, that abort isn't it - it looks like the errors propagate correctly. |
Will try to do the logdebug this evening, tomorrow morning the latest. You will get it in your mails again. Did you again mean warehouse.mwb instead of warehouse.sql? :D |
@sfadschm This time I meant |
@sfadschm Thanks for the extra logs and testing. That makes it clear that there's no error during directory iteration. However, Could you check with
Also check the detailed permissions of the files: maybe the client can't iterate over it because the client user doesn't have permission to stat the file? Is there something else special about any of the parent directories? If you add a file that isn't a copy of warehouse.mwb, would that get seen and uploaded? Try with a file I've looked at differences in the windows file io between 2.3 and 2.4 but didn't see anything suspicious yet. @ogoffart It looks to me like errors from |
The error propagation issue is addressed by #6616. That does not solve the problem here yet though. |
@ckamm Thank you for the dedication in finding the bug :) I checked for additional files in the directory, neither hidden nor system files are present. Whatever file I add to the folder, it will get synced. Even if I create a text file and rename it to I noticed, that if I 7zip a not synchronised
As far as I recall, the file attirbute 0x120 marks However, after finding this, I did a rollback to 2.3.4 with both files in the directory. Although the file attribute of |
:-/ |
Looks reasonable. However, skipping should maybe be reported in the sync protokoll of the client, shouldn't it? |
It was changed from CSYNC_VIO_FILE_TYPE_UNKNOWN to CSYNC_FTW_TYPE_SKIP to ItemTypeSkip in e8f7adc#diff-2806ff908889e7dd2cf746917f9ec78fL186
It's definitely annoying, but if it worked before it should still work. |
As mentioned, it seems to be removed in some cases after zipping and unzipping the file in the 7z format. |
Just found that this bug has been reported to Workbench already in 2016 (#84028). Will try to put some pressure to it. Thank you guys for tracking down the issue! |
Linking for convenience :) https://bugs.mysql.com/bug.php?id=84028 |
Can we maybe implement an exception for .mwb files for as long as the issue at MySQL is open? |
For now I'm using a workaround by executing a batch file after saving the .mwb file to remove the temporary attribute. Might be helpful until the issue is resolved at MySQL:
|
Adding bug report for Workbench 8.0 for convenience: https://bugs.mysql.com/bug.php?id=91510 |
I'm glad there's a workaround and hope this'll get fixed upstream! |
Happens also for IE11 downloaded files: #6696 |
@sfadschm Do you want to test with https://download.owncloud.com/desktop/testing/ownCloud-2.4.3.10180rc1-setup.exe ? |
Happy to do so, yet I still don't think its the best solution to the problem. However, as the other developers (at Workench and IE) do not seem to care about it, we might not have another choice. Workbench files sync nicely now, freshly saved, copied and newly created too. Thanks for all the help :) |
@sfadschm :-) |
Expected behaviour
.mwb files should be recognized and synced normally (works fine up to version 2.3.4, even after a rollback from 2.4.x)
Actual behaviour
.mwb files are not recognized at all. When it gets created, it gets labeled with the blue “syncing” symbol, but this disappears within 1-2s. Looking into the client, no activity is reported, neither a syncing process nor an error, nor an ignored file. I anyway checked the ignored files list and none of the entries suits the file. Interestingly, if I change the files extension to “.txt”, it will still not be recognized or handled.
After a rollback to 2.3.4, the file will immediately be recognized and synced. Now with the file being inside the synced folder, after an automatic client update, it will even get deleted from the server (I now disabled automatic updates).
Steps to reproduce
Server configuration
Operating system: Debian
Web server: Apache
PHP version: 7.1
ownCloud version: latest version (stable channel)
Storage backend (external storage): shared host
Client configuration
Client version: latest
Operating system: Windows 10
OS language: german
The text was updated successfully, but these errors were encountered: