-
-
Notifications
You must be signed in to change notification settings - Fork 5.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
S3 sync issues in 2.6 #5875
Comments
Can you at least provide details as to what sync target you are using and provide the log files as requested on the issue template? |
S3 for sync target. Found the issue, after update the S3 region was blank. It's back to normal after inputing the region |
Oh, I thought that this option does not need to be filled in, I just fill in one and can use it, thanks |
I faced the same problem. |
The same problem occured in windows 10, too. Not just at macos |
Please let us know what URL you use to connect to S3. We need the complete URL to replicate the issue (you can replace the domain by @leematos, perhaps you would know what might be the issue? |
my URL is s3-cn-east-2.qiniucs.com |
My URL is like this:mynamespace.compat.objectstorage.us-phoenix-1.oraclecloud.com |
Could try adding "https://" in front of the URL to see if the validation passes? |
It worked! But a new problem arises: |
Thank u very much! My problem has solved. |
@leeh11, if you type the URL directly in a browser, does it work? Or perhaps this service only supports plain http (not https)? |
I tried both http and https in browser, no response. |
@leeh11 I'm using OCI as well. Adding region from the endpoint URL resolved the issue for me (at least on Linux). Here is my settings: |
I have the same config, but not worked on macOS and iOS(old version worked fine). If you have a iOS device please test it, tks. |
Afaik, the region is part of the S3 specs. However, maybe there's a way to retrieve and use a default region, if one is set for a user. Maybe @leematos can answer this, since he probably know the SDK and S3 API better. Regarding the endpoint: IMO the schema always belongs to the URL, even though an unencrypted endpoint makes not much sense, except for testing S3 locally. Thus automatically prefixing the URL with |
Same problem if you are using MinIO. |
@hoonnn can you be a bit more specific? does it work when you enter a proper URL with scheme and a region? |
@tessus Same error on android and mac. |
I'm also experiencing this issue on Windows 10 and mobile using the AWS S3 (beta) sync target. The sync button is present but doesn't do anything in Windows, and the sync errors on mobile. Note: 👆 before the update the AWS region was blank. I supplied a value based on the troubleshooting tips above. Note: 👆I originally supplied |
I'm going to guess it's caching some auth token and not clearing it properly. Maybe you'll have to delete the app and reinstall it. |
I'm the Dev that worked on this. To anyone still having problems, attempt to toggle forcePathStyle on/off and do a test sync. See if that changes your behavior. @up-umop In your screenshot i see "Success! Sync appears to be correct." which means on that device your settings are working and your client was able to auth and connect to your S3 provider. Use those settings on other clients and you should be successful. I'll look to add OCI to our examples in the docs based on what the users above found. |
Correct! Based on @laurent22's comment I was able to clear my mobile app cache, which allowed the verified credentials to work correctly. Once that went though, I updated the region in the Windows desktop app which again began to successfully sync. Thanks! |
Update: The sync works, I can see the objects created in s3. But the sync message has this error attached to it. The data seems to be all synced. have ##ed out identifiable info.
|
@aflip thanks. I recall seeing a variant of this in my testing. Are you using force path style toggled on or off? Can you try the opposite of whatever you are using? basically S3 exposes buckets in 2 ways (I can't remember off the top of my head the specific differences) but that toggle switches how requests are sent. |
@leematos I had it toggled on, and then i sync'd again with it toggled off, and the sync happens, but the error remains. |
@aflip would it be possible for you to make a test bucket I could use to see if I can generate this error to further debug? my email is find (dot) creativity (at) githubusername (dot) com |
@laurent22 sorry I was compiling the code in the wrong way so my changes were not picked up. I fixed it and created the PR #5923 |
@leematos I restarted the app a few times and now the error has disappeared. Thank you very much for the support. Also, i don't really know how to make a test bucket. I made this bucket etc. following a guide I found online, step by step. [SOLVED] |
@sbkg0002 -- can you try toggling force path style on/off and trying a test sync and a real sync? Did you ever attempt to set the region to |
Joplin cos(tencent Cloud Object Storage,Storage object service compatible with S3 API) synchronization directory level error: |
@vichbb -- I'm not sure I understand. Are you saying one folder won't sync? Can you share logs? |
There is no error, just a problem with the folder level, just like this, I create a new notebook in MAC: MyNote, and then create two new notebooks under MyNote: Note1 and Note2. Note1 has a note testA, note2 also has a note testB. Now the two note levels are myNote/Note1 /testA and myNote/Note2 /testB. But when I fully synced into cosine of s3. Then use Windows to synchronize again and become Note1 /testA and Note2 /testB with an empty notebook myNote. Now the hierarchy is Note1 and Note2 are not in MyNote, they're in the same layer. |
@vichbb thanks for this info. Let me do a test real quick:
|
Yes, that's it! |
@vichbb what version of joplin are you using on Windows? I just ran this test on Mac/iOS with both on latest and I did not see the effect you are talking about. Steps I followed: On Mac: make notebook p1. On iOS On ios The folder structure remained. At this point I think it's either an issue with Tencent COS or something outside of this syncing change, or 2.5 and 2.6 versions of joplin making different structures. |
Not that I can remember. It keeps bugging me with that message about |
windows:2.6.10 |
@laurent22 -- I think #5875 (comment) is a different problem than S3 syncing. Any recent changes come to mind that could be related? |
It has been sent to you. Thank you for your inspection |
I suspect the issue @vichbb is seeing isn't related to S3. Seems that the top-level notebook failed to sync for some reason - can be a network blip or clocks going out of sync or something else. You can try renaming the folder on the client where you have the folder (can even rename twice to keep the original name), then sync that client, and finally sync the other client. |
I tried. The folder name was changed normally, but the directory level after synchronization was still wrong. |
after update to 2.6.9. on macOS Monterey, the sync stoped working, pressing sync doesn't do anything, no errors, no nothing
The text was updated successfully, but these errors were encountered: