-
Notifications
You must be signed in to change notification settings - Fork 310
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
fresh install with split-config breaks the addressbook #69
Comments
Thanks for the report and thanks for pinging me about the i2pgit.org registration. The amount of spam registration is unbelievable, people need to get in touch with me to get the accounts enabled. I approved your account a moment ago. I think, based on what you said, there's no way we get out of it without looking at all those references to |
These are all the non-comment, non-translation occurences to the string
|
I think where you went astray here is having separate router, config, and app dirs. Nobody does that and probably not tested. In trunk they're the same by default and we kinda use them interchangeably. In our startup we just set config and everything else defaults to that. In particular the migration of files to those three (one) dirs at first startup (as implemented in WorkingDir.java) may not have the right files go to the right places, or maybe we're not consistent elsewhere in the code. Yes we can work on cleanup/fixes but it won't be in time for our next release in December. As a workaround you may wish to set them all the same or do symlinks, I don't know how you want to deal with new vs. existing installs but that's your field of expertise. But I think you may hit more weird problems if they're not all effectively pointing to the same place. That's on us that we haven't really said that anywhere before. As far as the ../ in addressbook/config.txt, it really doesn't matter, it should work split or non-split install as long as the dir settings are all the same. And it really doesn't matter, because hosts.txt is copied from install dir to config dir, and then imported into hostsdb.blockfile (BlockfileNamingService) on first run. The files to be imported are hardcoded to be in the router dir, we're not looking in the config.txt file to see what to import. Neither hosts.txt is never modified. I guess hosts.txt isn't where we think it should be so it doesn't get imported. Hopefully that explains what's going on, sorry for the trouble. |
I'm the maintainer for i2p on Gentoo and we found an issue when freshly installing the package. We are using there a split-install, having a directory in /usr/share/i2p for the install and a separated user directory in /var/lib/i2p. The launcher is started in the install dir, with
-Di2p.dir.app=/var/lib/i2p/app -Di2p.dir.config=/var/lib/i2p/config -Di2p.dir.router=/var/lib/i2p/router
.Now, when starting the router for the first time, some install files are copied to the user directory. The hosts.txt is put by it in the config dir.
The default config of the addressbook points to some relative files (for eg
defaultSettings.put("router_addressbook", "../hosts.txt")
), which is only valid in a non-split setup. The addressbook files resides in the router directory, not in the config one. So we end up with an empty addressbook, which isn't even able to sync with subscriptions as no address can be resolved.I'm unsure of how to best approach it, I see a few ways to do so but not a clear one (from what I gathered, there is not a dedicated way to know what is the known list of address)
router_addressbook
wants to update it@eyedeekay, btw I registered on git.idk.i2p around a month ago, I would happily continue the conversation there if you accept me :)
The text was updated successfully, but these errors were encountered: