I2Pd config produces errors - is it my fault?

Hello,

recently I have made a minimal NixOS install and wanted to try running i2pd on it.

However I get error shat make me think that I did something wrong.

Here is systemctl status (sty is polish for jan)

● i2pd.service - Minimal I2P router
     Loaded: loaded (/etc/systemd/system/i2pd.service; enabled; preset: enabled)
     Active: active (running) since Thu 2024-01-25 12:12:48 CET; 10h ago
   Main PID: 826 (i2pd)
         IP: 295.8M in, 272.7M out
         IO: 19.9M read, 287.1M written
      Tasks: 11 (limit: 4458)
     Memory: 77.9M
        CPU: 6min 4.462s
     CGroup: /system.slice/i2pd.service
             └─826 /nix/store/rbm50sdpjgvv1q6yrh4idgs8qp9hmnwh-i2pd-2.49.0/bin/i2pd --service --conf=/nix/store/9ayn93j2dmlnf5gqzrkvs4bci1sy38>

sty 25 13:21:38 S720 i2pd[826]: 13:21:38@595/error - RouterInfo: Can't open file /var/lib/i2pd/netDb/rx/routerInfo-xySSvKEjekIjPIzQw4uDrELmjCi>
sty 25 14:01:28 S720 i2pd[826]: 14:01:28@904/error - Addressbook: LeaseSet for address stats.i2p not found
sty 25 18:16:32 S720 i2pd[826]: 18:16:32@751/error - SSU2: Non zero packet number in SessionConfirmed
sty 25 18:32:04 S720 i2pd[826]: 18:32:04@595/error - RouterInfo: Can't open file /var/lib/i2pd/netDb/rn/routerInfo-nwKNnKL5~T8tzc6vlkJ3hvPoW61>
sty 25 18:32:43 S720 i2pd[826]: 18:32:43@595/error - RouterInfo: Can't open file /var/lib/i2pd/netDb/rn/routerInfo-nwKNnKL5~T8tzc6vlkJ3hvPoW61>
sty 25 18:32:47 S720 i2pd[826]: 18:32:47@595/error - RouterInfo: Can't open file /var/lib/i2pd/netDb/rn/routerInfo-nwKNnKL5~T8tzc6vlkJ3hvPoW61>
sty 25 18:32:55 S720 i2pd[826]: 18:32:55@595/error - RouterInfo: Can't open file /var/lib/i2pd/netDb/rn/routerInfo-nwKNnKL5~T8tzc6vlkJ3hvPoW61>
sty 25 19:52:50 S720 i2pd[826]: 19:52:50@751/error - SSU2: Send exception: Invalid argument to 180.151.61.117:0
sty 25 21:18:02 S720 i2pd[826]: 21:18:02@751/error - SSU2: Send exception: Invalid argument to 14.225.213.52:0
sty 25 22:12:46 S720 i2pd[826]: 22:12:46@545/error - Tunnel: Tunnel with id 2344958973 already exists

I have not encountered these errors before and so I do not know how to fix them.
I guess that the can't open file ones are nix related. Am I right?

And here is my config for it:

# i2pd config made for sharing
{ config, pkgs, ... }:

let
 i2pdPort =  30777;
 ntcp2Port = 30776;
 samPort = 7656; # default
 i2cpPort = 7654; # default
in
{
  services.i2pd = { enable = true;
    enableIPv6 = true;
    port = i2pdPort;
    ntcp2.port = ntcp2Port;
    # ssu.enable = true; # default

    bandwidth = 2048;
    floodfill = true;


    # APIs section
    proto = {
      # I2P Client Protocol
      i2cp = { enable = false;
        port = i2cpPort;
      };
      # another client protocol
      sam = { enable = false;
        port = samPort;
      };
      http.enable= false; # for eepsites mainly
    };
    websocket = {
      enable = false; # full duplex over TCP
      #port = 7666 # default
    };

    # Proxies
    proto.httpProxy = {
      enable = false;
      #port = 4444 # default 
      #outproxy = null;
    };
    proto.socksProxy = {
       enable= false; 
       #port = 4447 # default
       #outproxy= null;
       #outproxyPort = 4444 # default
    };

    # stuff that I probably won't use
    proto.i2pControl.enable = false; # remote control
    proto.bob.enable = false; # deprecated
  };

  networking.firewall = {
    allowedTCPPorts = [ i2pdPort ntcp2Port];
    allowedUDPPorts = [ i2pdPort ];
  };
}

I haven’t made my mind yet on how to handle ports and I am new overall to the nix language so if anybody has a suggestion, please leave it down below.

it’s not your fault, the module for its configuration is not updated to upstream. See i2pd module options map to outdated configuration, has no extraConfig or configFile option · Issue #228182 · NixOS/nixpkgs · GitHub

Okay, I see.

Thank you for the help.