Opened 6 months ago

Last modified 5 months ago

#68819 assigned defect

i2pd daemon does not start

Reported by: 5nefarious (Arvin Ignaci) Owned by: barracuda156
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc: catap (Kirill A. Korinsky)
Port: i2pd

Description

There seem to be some directory permission issues. i2pd needs access to /opt/local/var/db/i2pd, /opt/local/var/run/i2pd, and /opt/local/var/log/i2pd. These directories seem to be created during the install and are owned by root. However, the daemon itself runs under the user _i2pd and cannot access these directories as needed. I had to manually change the permissions of these directories to get the service to run.

Change History (3)

comment:1 Changed 6 months ago by jmroot (Joshua Root)

Cc: catap added
Owner: set to barracuda156
Status: newassigned

comment:2 Changed 6 months ago by barracuda156

Thanks for letting us know, we will address this.

comment:3 Changed 5 months ago by catap (Kirill A. Korinsky)

I can't reproduce this issue :(

√ macports-ports % sudo rm -rf /opt/local/var/run/i2pd
√ macports-ports % sudo rm -rf /opt/local/var/log/i2pd
√ macports-ports % ls -la /opt/local/var/log | grep i2pd
? macports-ports % ls -la /opt/local/var/run | grep i2pd
? macports-ports % sudo port activate i2pd
--->  Computing dependencies for i2pd
--->  Activating i2pd @2.50.0_0+logrotate+upnp
--->  Cleaning i2pd
--->  Some of the ports you installed have notes:
  i2pd has the following notes:
    i2pd status can be checked at: http://127.0.0.1:7070
    You may edit i2pd settings in /opt/local/etc/i2pd
    See also: https://i2pd.readthedocs.io/en/latest/user-guide/configuration
    Re using i2pd with web-browser: https://github.com/PurpleI2P/i2pdbrowser

    A startup item has been generated that will aid in starting i2pd with launchd. It is disabled by default. Execute the following command to start it, and to cause it to launch at startup:
    
        sudo port load i2pd
√ macports-ports % ls -la /opt/local/var/log | grep i2pd
drwxr-xr-x   3 _i2pd  _i2pd   96 Dec 20 16:07 i2pd
√ macports-ports % ls -la /opt/local/var/run | grep i2pd
drwxr-xr-x   3 _i2pd        _i2pd         96 Dec 20 16:07 i2pd
√ macports-ports %
Note: See TracTickets for help on using tickets.