You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Many deserialization exceptions are not reported to the user. These exceptions are all silently caught by catch (...) {}.
This makes troubleshooting much harder.
I follow https://docs.zerotier.com/roots/ to configure my own moon. But my moon file does not work; zerotier-cli listmoons shows nothing. I tried zerotier compiled with ZT_DEBUG=1, but no message related to moons printed. Then I read the code and tried to insert some fprintf, and it turns out that the method deserialize of World failed, throwing a ZT_EXCEPTION_INVALID_SERIALIZED_DATA_OVERFLOW, which is silently ignored.
if ((w.type() == World::TYPE_MOON)&&(w.id() == id)) {
addWorld(tPtr,w,true);
return;
}
} catch ( ... ) {}
After reading the code of the method, I finally figured out that the problem lies in the following code. I fixed my configuration by increasing the ZT_WORLD_MAX_ROOTS to a bigger number. The process of troubleshooting is not user-friendly.
Many deserialization exceptions are not reported to the user. These exceptions are all silently caught by
catch (...) {}
.This makes troubleshooting much harder.
I follow https://docs.zerotier.com/roots/ to configure my own moon. But my moon file does not work;
zerotier-cli listmoons
shows nothing. I tried zerotier compiled withZT_DEBUG=1
, but no message related to moons printed. Then I read the code and tried to insert somefprintf
, and it turns out that the methoddeserialize
ofWorld
failed, throwing aZT_EXCEPTION_INVALID_SERIALIZED_DATA_OVERFLOW
, which is silently ignored.ZeroTierOne/node/Topology.cpp
Lines 311 to 318 in 663ed73
After reading the code of the method, I finally figured out that the problem lies in the following code. I fixed my configuration by increasing the
ZT_WORLD_MAX_ROOTS
to a bigger number. The process of troubleshooting is not user-friendly.ZeroTierOne/node/World.hpp
Lines 228 to 230 in 663ed73
The text was updated successfully, but these errors were encountered: