Skip to content
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

fix: Migrate dialog does not show in v0.114.2 #3101

Merged
merged 5 commits into from
Apr 19, 2024
Merged

fix: Migrate dialog does not show in v0.114.2 #3101

merged 5 commits into from
Apr 19, 2024

Conversation

devchenyan
Copy link
Collaborator

@devchenyan
Copy link
Collaborator Author

devchenyan commented Apr 3, 2024

/package
Packaging for test is done in 8535546814. @devchenyan

@Danie0918
Copy link
Collaborator

@Keith-CY @homura Please have a review.

_typos.toml Outdated Show resolved Hide resolved
@silySuper
Copy link
Collaborator

silySuper commented Apr 7, 2024

/package
Packaging for test is done in 8585392191. @silySuper

@Keith-CY Keith-CY mentioned this pull request Apr 7, 2024
@silySuper
Copy link
Collaborator

I have start 0.113.0 full node on local,and open test package above,but can not see migrate tip.
image

What should I do to have migrate effect?

@Keith-CY
Copy link
Collaborator

Keith-CY commented Apr 7, 2024

I have start 0.113.0 full node on local,and open test package above,but can not see migrate tip. image

What should I do to have migrate effect?

Replacing the chain data(default location /Users/{User name}/Library/Application Support/Neuron/chains/testnet/data) with one synced by CKB@v0.113.0 and CKB@v0.110.2 should trigger the migration.

@silySuper
Copy link
Collaborator

This is my files in chains path,no testnet files.My testnet files is in node files
截屏2024-04-07 17 10 15
截屏2024-04-07 17 11 22

@Keith-CY
Copy link
Collaborator

Keith-CY commented Apr 7, 2024

This is my files in chains path,no testnet files.My testnet files is in node files 截屏2024-04-07 17 10 15 截屏2024-04-07 17 11 22

The path I mentioned above is the default one. It can be set in Settings => Data => CKB Node &Config, so you can replace the testnet/data in your custom node data directory to trigger the migration.

@silySuper
Copy link
Collaborator

截屏2024-04-07 17 44 09 截屏2024-04-07 17 44 17 Only internal node has this path settings,and the file name is mainnet ,not testnet.So you mean I can change this internal node path to my 0.113 testnet data ,that I can trigger the migration?

@Keith-CY
Copy link
Collaborator

Keith-CY commented Apr 7, 2024

截屏2024-04-07 17 44 09 截屏2024-04-07 17 44 17 Only internal node has this path settings,and the file name is mainnet ,not testnet.So you mean I can change this internal node path to my 0.113 testnet data ,that I can trigger the migration?

IMO, the user-specified full node(3rd option in this case) should be able to set the data directory, it may be a bug, need confirmation from @Danie0918

You can replace the data in your own node directory to trigger the migration if you're using the self-hosted node.

The migration is triggered when your active CKB node starts and it finds its data is too old. So in fact the replacement should be taken in the directory of your active/selected node.

@Danie0918
Copy link
Collaborator

截屏2024-04-07 17 44 09 截屏2024-04-07 17 44 17 Only internal node has this path settings,and the file name is mainnet ,not testnet.So you mean I can change this internal node path to my 0.113 testnet data ,that I can trigger the migration?

IMO, the user-specified full node(3rd option in this case) should be able to set the data directory, it may be a bug, need confirmation from @Danie0918

This should be a bug that needs to be fixed.

@silySuper
Copy link
Collaborator

截屏2024-04-07 17 44 09 截屏2024-04-07 17 44 17 Only internal node has th,is path settings,and the file name is mainnet ,not testnet.So you mean I can change this internal node path to my 0.113 testnet data ,that I can trigger the migration?

IMO, the user-specified full node(3rd option in this case) should be able to set the data directory, it may be a bug, need confirmation from @Danie0918

This should be a bug that needs to be fixed.

OK, @devchenyan

@yanguoyu
Copy link
Collaborator

yanguoyu commented Apr 8, 2024

截屏2024-04-07 17 44 09 截屏2024-04-07 17 44 17 Only internal node has this path settings,and the file name is mainnet ,not testnet.So you mean I can change this internal node path to my 0.113 testnet data ,that I can trigger the migration?

IMO, the user-specified full node(3rd option in this case) should be able to set the data directory, it may be a bug, need confirmation from @Danie0918

This should be a bug that needs to be fixed.

I don't think so. If the selected node is not an internal node, it can not be set the data path. At that the users start the ckb node, so we will not show the migrate dialog and show the data path. And we can not get the ckb data path, all of the ckb node and data are controlled by the users.

@silySuper
Copy link
Collaborator

What is the conclusion?Need to add path setting in testnet node? @Danie0918

@yanguoyu
Copy link
Collaborator

What is the conclusion?Need to add path setting in testnet node? @Danie0918

Migrate dialog only shows when selecting the Internal node, so you should test by selecting the Internal Node.

@silySuper
Copy link
Collaborator

silySuper commented Apr 12, 2024

/package
Packaging for test is done in 8655624884. @silySuper

@silySuper
Copy link
Collaborator

I have replace data to /Volumes/My\ Passport/ckb节点/ckb_v0.108.1_x86_64-apple-darwin-portable/testnet/data ,but can not see migrate dialog.

2024-04-12.15.21.02.mov

@silySuper
Copy link
Collaborator

@devchenyan please check this issue~

@devchenyan
Copy link
Collaborator Author

devchenyan commented Apr 17, 2024

@devchenyan please check this issue~

@silySuper

  1. Completely uninstall neuron
  2. Use a low version of neuron to synchronise data
  3. Use the test package to synchronise data, trigger the migration.

@silySuper
Copy link
Collaborator

silySuper commented Apr 18, 2024

@devchenyan please check this issue~

@silySuper

  1. Completely uninstall neuron
  2. Use a low version of neuron to synchronise data
  3. Use the test package to synchronise data, trigger the migration.
    actually I think neuron v114.2 is the test package because of the title,does old testnet data create by old version(v108) can not trigger the migration, before which lower version can use? @devchenyan

@@ -26,6 +26,11 @@ const platform = (): string => {
}
}

enum NeedMigrateMsg {
Wants = 'CKB wants to migrate the data into new format',
Recommends = 'CKB recommends migrating your data into a new format',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Recommends = 'CKB recommends migrating your data into a new format',
// https://github.com/nervosnetwork/ckb/blob/31bcecddc8ad5b7d0a30399ef55a5ce0a359bb7e/shared/src/shared_builder.rs#L79
Recommends = 'CKB recommends migrating your data into a new format',

@silySuper
Copy link
Collaborator

@devchenyan please check this issue~

@silySuper

  1. Completely uninstall neuron
  2. Use a low version of neuron to synchronise data
  3. Use the test package to synchronise data, trigger the migration.
    actually I think neuron v114.2 is the test package because of the title,does old testnet data create by old version(v108) can not trigger the migration, before which lower version can use? @devchenyan
截屏2024-04-18 11 46 30

When last version is not null and !v108 both true,can trigger the migration ?

@silySuper
Copy link
Collaborator

Find the reason,path should choose to testnet file,not testnet/data file.

@silySuper
Copy link
Collaborator

Maybe internal node data path choose can add tips to tell users which directory can be used is better @Danie0918

@Danie0918
Copy link
Collaborator

Maybe internal node data path choose can add tips to tell users which directory can be used is better @Danie0918

This can only be suggested to the user and may still cause this problem. Any other solutions? @devchenyan @yanguoyu

@yanguoyu
Copy link
Collaborator

Maybe internal node data path choose can add tips to tell users which directory can be used is better @Danie0918

This can only be suggested to the user and may still cause this problem. Any other solutions? @devchenyan @yanguoyu

I believe the user only needs to know the root directory of the ckb data, it's unnecessary to understand the meaning of each directory of the ckb data root directory.

@Keith-CY Keith-CY merged commit ac57230 into develop Apr 19, 2024
23 checks passed
@Keith-CY Keith-CY deleted the fix-374 branch April 19, 2024 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants