-
Notifications
You must be signed in to change notification settings - Fork 40
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
updateCheck method generate same packageHash against different release packages #129
Comments
for every version the difference will be significant and obviously the |
Yes, it is, every publishing version is different from each other. But according to the
step 3 will reproduce this issue , I think it's a common problem, not just in my case. |
Did you had code changes between your versions? |
Can you try reproducing the same with a minimal setup of an app? You can use this sample app: https://github.com/scrajesh/CodePushDemoApp I can reuse the same setup to further investigate the issue. |
react-native-code-push version is not specified in the demo, which version shall I use? |
I use this |
Reproduced the error with your demo either, node version is v10.17.0.
Step 8 is supposed to update to the latest version label v6 but failed. |
Can you reproduce with the steps above? @scrajesh |
Still not yet, trying the same in iOS. Will keep you posted. |
I use Digged into manifest.js in |
Followed the steps and still not yet able to reproduce so far. Now i'll try with If you're able to track those requests (for all the steps you've listed above), it'd really be great help. |
In the steps 2, 4, 6 above, how was the App modified? |
@datvong-wm Just some arbitrary changes on the title. Let me working on the latest version label v6
as well as in table
as well as in table
Now I have phone A updated with label v6 and phone B updated with label v8.
Phone B: Install apk --> update to v6 --> update to v7 -->update to v8 Phone A is failed to update from label v6 to label v8. |
@w000xj, finally we were able to reproduce the issue locally and provided a simple fix as of now. |
Thanks, and where can I find the fix? |
We are using the electrode-ota-server in our production environment as self-hosted code-push server, while there are pretty much errors recently saying:
upload error { Error: ER_DUP_ENTRY: Duplicate entry '90709eb9e55eafbea67271dad5df0be00dba4c811041bd428442a47c2bc0a68b' for key 'PRIMARY'
.So I picked one of the updateCheck request that produced the error, then debugged on our server and find out:
Say the client-installed-package is label v62, the latest version is v68, when the client call
CodePush.sync()
doing updateCheck, the error occurs, then I release a v69 update, call updateCheck, this error still occurs.According to this piece of code ,no matter what the client-installed-package is, say v62 and v67, the
zipfile
in the code will always contain the latest published package, thus the samedeltaResults
delivered to the upload method. So after I published a code-push release v69, client v67 call updateCheck, insertpackage_content
,package_diff
, everything is ok, then client v62 call updateCheck and find there is no record match v69 and v62 in thepackage_diff
, moving on execute the same code as v67, until the upload method which insert the same package intopackage_content
as v67 updateCheck does, the error appears.ps: v62, v67, v69 is the label of code-push release containing only one jsbundle file.
Is this a bug? or I just missed something?
need help
The text was updated successfully, but these errors were encountered: