Opened 7 years ago

Closed 3 years ago

#677 closed defect (fixed)

Error writing out the SAM keys to sam.keys

Reported by: killyourtv Owned by: mkvore
Priority: maintenance Milestone: 0.9.24
Component: apps/SAM Version: 0.9.1
Keywords: Cc:
Parent Tickets: #1574


While playing with Python-I2P (apps/sam/python), the following was logged:

08/02/12 19:49:53.052 ERROR [Mv1Handler 1] net.i2p.sam.SAMBridge : Error writing out the SAM keys to sam.keys sam.keys (Permission denied)
     at Method)
     at net.i2p.sam.SAMBridge.storeKeys(
     at net.i2p.sam.SAMBridge.addKeystream(
     at net.i2p.sam.SAMv1Handler.execSessionMessage(
     at net.i2p.sam.SAMv1Handler.handle(

My $I2P is r/o.

I realize that this is probably a simple fix but I don't know how...


Change History (3)

comment:1 Changed 7 years ago by zzz

  • Milestone changed from 0.9.2 to 0.9.3
  • Owner set to mkvore
  • Status changed from new to assigned

SAM doesn't appear to ever have been converted to use the standard I2PAppContext directory methods like getAppDir() to put files in the right place.

Not sure if this is just an issue for the python examples or if the core SAM lib needs to be changed. I can't really mess with this myself because I don't know what iMule uses or needs. Assigning to mkvore.

A workaround is for you to specify the full path for the sam.keys file... somehow...

comment:2 Changed 6 years ago by str4d

  • Milestone 0.9.3 deleted

comment:3 Changed 3 years ago by zzz

  • Milestone set to 0.9.24
  • Parent Tickets set to 1574
  • Resolution set to fixed
  • Status changed from assigned to closed

The sam.keys file is specified on the command line as the first argument. As a workraound you may specify the full path there.

Fixed in 386f2ebd9587cfaac9be078cb8e49775afb1575a to be 0.9.23-4 to use the config dir instead of the base dir if it doesn't already exist in the base dir.

Note: See TracTickets for help on using tickets.