fboucquez / symbol-bootstrap

A tool that allows you to quickly configure and setup Symbol testnets and nodes.
Apache License 2.0
47 stars 27 forks source link

The server seed folder not present under the node folder after upgrade #163

Closed Wayonb closed 3 years ago

Wayonb commented 3 years ago

Describe the bug After upgrading from 4.2 to 4.3, server is not able to find the seed folder.

  1. upgrade from 4.2 to 4.3
  2. reset data
  3. try to start the server
2021-02-20 15:09:56.586982 0x00007fcdf2854ac0: <info> (extensions::ProcessBootstrapper.cpp@121) registering dynamic extension extension.transactionsink 
2021-02-20 15:09:56.587071 0x00007fcdf2854ac0: <info> (plugins::PluginModule.cpp@83) loading plugin from /usr/catapult/lib/libextension.unbondedpruning.so 
2021-02-20 15:09:56.590488 0x00007fcdf2854ac0: <info> (extensions::ProcessBootstrapper.cpp@121) registering dynamic extension extension.unbondedpruning 
2021-02-20 15:09:56.590566 0x00007fcdf2854ac0: <info> (server::LocalNode.cpp@103) importing seed directory 
2021-02-20 15:09:56.591603 0x00007fcdf2854ac0: <fatal> (process::ProcessMain.cpp@75) 
thread: server catapult
unhandled exception while running local node!
Dynamic exception type: std::filesystem::__cxx11::filesystem_error
std::exception::what: filesystem error: directory iterator cannot open directory: No such file or directory [./seed]
fboucquez commented 3 years ago

Reset data doesn't upgrade the configuration. Have you run reset or --upgrade?

Wayonb commented 3 years ago

I am looking at some of the nodes which fail in testnet

  1. upgraded from 4.2 to 4.3 with the --upgrade

After step above, there is no seed folder in the target/node/api-node

fboucquez commented 3 years ago

I see, it's an odd bug (only happens when mixing --upgrade and resetData). PR soon

fboucquez commented 3 years ago

Fixed