These are chat archives for HelloZeroNet/ZeroNet

22nd
Mar 2016
Vlad Beskrovnyy
@vlad20012
Mar 22 2016 05:04
@HelloZeroNet I found very strange bug with optional files. I'm trying to change some optional file and publish its changes. I use 2 hosts with public ips and opened ports. On first host I perform ... siteSign ... --publish (ZeroNet node also running), on second receiving changes. On first iteration (file not exists) all working good. But when I changing the file and perform siteSign command, file disappears. Really. file that I just changed, deleted. Further, after the creation of the same file, it remains in place, but on second host I don't receive changes. Very important that file is optional, with normal files all working well.
Vlad Beskrovnyy
@vlad20012
Mar 22 2016 05:17
Heh, I could not reproduce it on a different host.
Vlad Beskrovnyy
@vlad20012
Mar 22 2016 05:23
Very strange... Whatever it was, optional file changes are not pushes to other hosts
Vlad Beskrovnyy
@vlad20012
Mar 22 2016 05:46
Ok, this "file disappearing" reproduces only if ZeroNet node running with the same data dir as siteSign performing . Version latest - r1069
ZeroNet
@HelloZeroNet
Mar 22 2016 14:10
@vlad20012 Please open a github issue for it if you able to reproduce it
Vlad Beskrovnyy
@vlad20012
Mar 22 2016 14:14
I play around a bit first. And think it's 2 issues. "file disappearing" and optional file changes are not pushes
Vlad Beskrovnyy
@vlad20012
Mar 22 2016 14:21
And is it correct to perform siteSign --publish when ZeroNet node is running? It (expected) writes lot of errors about port binding and tor
ZeroNet
@HelloZeroNet
Mar 22 2016 15:19
New optional file will not be requested by the peer until it's clients not requesting it.
So if a peer receives an update for an optional file, the zeronet deletes the old file because it's no longer valid
using siteSign --publish is correct while running zeronet, the binding errors are expected and normal. If binding is failed and ZeroNet is already running then it will use it for distributing files instead of starting a new instance.