Opened 6 years ago

Closed 6 years ago

#943 closed enhancement (invalid)

Explicit is better than implicit.

Reported by: guest Owned by:
Priority: minor Milestone: 0.9.7
Component: wrapper Version: 0.9.5
Keywords: Cc:
Parent Tickets:

Description

Decided to copy my defaults to root i2p folder and here i am:
30/05/13 01:57:39 CRIT 1/1? er.startup.CreateRouterInfoJob?: Error writing out the new router information

java.io.FileNotFoundException?: C:\program files\i2p\router.info (Access is denied)
at java.io.FileOutputStream?.open(Native Method)
at java.io.FileOutputStream?.<init>(Unknown Source)
at java.io.FileOutputStream?.<init>(Unknown Source)
at net.i2p.util.SecureFileOutputStream?.<init>(SecureFileOutputStream?.java:41)
at net.i2p.router.startup.CreateRouterInfoJob?.createRouterInfo(CreateRouterInfoJob?.java:107)
at net.i2p.router.startup.RebuildRouterInfoJob?.rebuildRouterInfo(RebuildRouterInfoJob?.java:159)
at net.i2p.router.startup.LoadRouterInfoJob?.runJob(LoadRouterInfoJob?.java:47)
at net.i2p.router.JobQueueRunner?.runCurrentJob(JobQueueRunner?.java:134)
at net.i2p.router.JobQueueRunner?.run(JobQueueRunner?.java:75)
at java.lang.Thread.run(Unknown Source)
at net.i2p.util.I2PThread.run(I2PThread.java:85)

Just make a proper root setting or file (like ".i2puseshome"), then if it is there, check if you need to copy defaults by checking for %appdata%/i2p/router.config. Enable it by default.
Problem solved.

Subtickets

Change History (4)

comment:1 Changed 6 years ago by guest

...check if you need to copy defaults by checking for %appdata%/i2p/router.config, if yes then copy and use home; if no then do not copy and use home.

comment:2 Changed 6 years ago by guest

What file does it actually use to understand where to keep it's settings? I still don't get it.

comment:3 Changed 6 years ago by killyourtv

  • Component changed from unspecified to wrapper

I'm sorry, I'm not sure I understand what you're doing.

By default $HOME/.i2p (or %appdata%\i2p) is used. If you want another location you can explicitly set it with the variable "i2p.dir.config" in the wrapper.config file.

So you can set something like

wrapper.java.additional.5=-Di2p.dir.config=c:\where\you\want\it

If I understand your point, what you want is already possible.

comment:4 Changed 6 years ago by killyourtv

  • Resolution set to invalid
  • Status changed from new to closed

Re-reading this, I'm pretty sure I get it. If you want to explicitly set the path to I2P's config there's no reason why you can't/shouldn't. Set it in C:\Program Files\i2p\wrapper.config and be happy.

Note: See TracTickets for help on using tickets.