-
-
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 synchronization errors after upgrade to v2.2.6 #5287
Comments
I just upgraded to 2.2.6 from 2.1.9 on MacOS and I also have synchronization errors but they are different. I use S3 as well. and in log.txt:
|
Actually I had a similar error to your @plerohellec when I used the regional S3 endpoint. |
Hrm. @laurent22 are there new migrations/did the sync version change in 2.2.6? I just upgraded myself and it works on Mac so I'm drawing a blank but happy to keep debugging. If you'd be willing to debug with me you can email me at: find dot creativity at github username dot com and I'm happy to take a look with you both as I just implemented this 😓 |
It looks like ya'll are failing here: joplin/packages/lib/services/synchronizer/MigrationHandler.ts Lines 41 to 47 in c3f10d3
@plerohellec are you also using AWS directly or a different provider? |
If we are able to sync, I'm gonna get some logging set up on your environments, and then see if we can dump the output of syncTargetInfoText to see what the actual failure is. |
@leematos I'm using another provider (UpCloud) so my AWS S3 URL is https://documents.us-sjo1.upcloudobjects.com. I wonder if it's possible that the info.json file never got created during the migration? I took a quick look at the bucket and didn't see it but I would have to paginate a lot to be sure. Note that I also have another joplin-desktop instance running that is still on 2.1.8 and that is connected to that same bucket. |
@plerohellec, nah, I suspect it's there as your other instance would be upset about the info.json file not existing. If you are around and want to sync, I'm at my desk for the next hour or so. If not, you could also email me a test bucket on that provider and I can try it in my env to see if I get the same error (I'm on a Mac.) |
@leematos thanks, I sent you an email with the credentials for a test bucket at UpCloud. |
I've connected with @plerohellec and I have a test bucket that I am looking at now. I'm curious, while I look into that, can @plerohellec and @abjrcode can you both try a "check config" and see if that shows an error, It may get us the useful bits quickly. |
I was able to pull out the actual error:
@abjrcode I suspect yours is similar. The new SDK requires a region to be set, but it should be overriding it automatically is my current understanding. I'm gonna look into what logic is needed to get it squared away. |
I think two things need to happen if we want to proceed forward:
It's unclear to me if this will require me to make DB migrations? Do you have any example commits from maybe the making of joplin server that I can reference for adding a new setting for the AWS S3 target? Fastest fix: Revert. I'm off of my day job tomorrow so I will have some time to investigate then as well. |
Just reporting that I am also seeing the same error using the AWS S3 API for synchronization. I'm using a real S3 bucket for storage as well, not an S3 compliant endpoint. |
Did a little more digging.
@HugoReeves would you be able to make me an S3 test bucket so I can validate if your issue is the same? My email is here: #5287 (comment) @laurent22 I'm not sure if you can revoke/revert and roll foward the package, but I'd probably suggest it at this point to avoid further impact and I can keep looking into it. Sorry for the trouble everyone. I was attempting to fix an iOS bug, upgrade the AWS-sdk and shrink the package size. 😓 If you go back to the prior package your syncing should work as normal. Any version below 2.2.6 should not exhibit the problem: https://github.com/laurent22/joplin/releases?after=android-v2.2.3 |
To be more specific:
|
I need to get to sleep, but I:
At this point sync works with an UpCloud bucket. I'd like to also test and confirm with an AWS bucket if possible and then Laurent can decide how he wants to proceed. |
Sorry @leematos I live in a different time zone and wasn't around to help you out but I see you got to the bottom of it. |
@leematos, I've set back desktop 2.2 to a pre-release so that less people are affected by the issue. So if I understand correctly it doesn't affect actual AWS but compatible implementations like UpCloud, is that correct? I'm not sure why the info.json GET call is failing as it should be using the same AWS driver as any other call. Or maybe in those specific cases, all calls would fail anyway? (and it turns out the first one is for info.json) If I can help with something let me know. |
Hi @laurent22 I am using AWS S3 directly so I think the issue is applicable there too. |
Hi @laurent22 I had the issue too directly connecting to AWS S3. Rolling back to 2.2.5 solved the sync issue for now |
I have reverted the change for now so if you're having this issue please try the latest version:
It's not reverted on iOS and CLI yet. |
I installed 2.2.7 and can confirm S3 sync works again (to a real s3 origin) |
@spoit @abjrcode any way either of you could create an AWS testing bucket I could use? Email here: #5287 (comment) I know one half of the "real AWS s3" bucket issue is the region and that's solved, but I think the second half of empty check config error output is non-aws implementations having a space before the XML Error output, and I want to confirm if AWS has the same or not. |
@leematos I created a test bucket and mailed you the credentials |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may comment on the issue and I will leave it open. Thank you for your contributions. |
Hi, my current version is Joplin 2.3.5 (prod, win32) and everything works. I think that commit 6927335 fixed things for me |
Looking forward to the new version on IOS! |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may comment on the issue and I will leave it open. Thank you for your contributions. |
I'm still having this problem. Running version 2.6.10 (prod, linux) |
@RobertBohn -- If you could comment on #5875 I think that will be the right place to continue debugging. Please share your S3 target and any logs that you have showing an error on that issue. |
Same issue with 2.6.10, but now it works on Windows but not on Mac. |
@subzero355 -- If you could comment on #5875 I think that will be the right place to continue debugging. Please share your S3 target and any logs that you have showing an error on that issue. (If it's working in one place and not the other, then I suspect your sync settings are different.) |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may comment on the issue and I will leave it open. Thank you for your contributions. |
i also started experiencing this issue on 2.6.10 (Darwin). I've been syncing with my minio server successfully up to this point. Now developer tools is throwing an error because I don't have a region set.
I realize I was running with an unsupported option that was recently broken for sake of getting S3 out of beta. kind of a bummer though as I want to keep things self hosted. |
@zcmack -- you should be able to set a region and in theory self-hosted minio should work. Depending on your minio config it could be gibberish (blah as a region) or meaningful (subdomain), but the S3 v3 API needs a region whereas the older client would infer it. |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may comment on the issue and I will leave it open. Thank you for your contributions. |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, feel free to create a new issue with up-to-date information. |
S3 synchronization stopped working after upgrade to v2.2.6 and although it worked for me flawlessly for a over a year now.
Environment
Joplin version: v2.2.6
Platform: Windows 10
OS specifics: OS Build
19043.1110
Steps to reproduce
I just try to synchronize with my existing S3 bucket in
eu-central-1
which I have been using already for more than a year.I am using the following URL for S3:
https://s3.amazonaws.com/
and I tried switching to the regional endpointhttps://s3.eu-central-1.amazonaws.com/
and it didn't solve it.Describe what you expected to happen
S3 synchronization should work normally.
Logfile
The text was updated successfully, but these errors were encountered: