Opened 21 months ago

Last modified 14 months ago

#1985 infoneeded_new defect

Runs as root

Reported by: n_i_c_k Owned by: zzz
Priority: minor Milestone: undecided
Component: package/debian Version: 0.9.29
Keywords: Cc:
Parent Tickets:

Description

After starting with '# service i2p start' all the i2p processes run as root and nothing runs as i2psvc.

My sources line is 'deb http://deb.i2p2.no/ jessie main'. The machine arch is armv5tel. The i2p package version is '0.9.29-1ubuntu1'.

By editing /root/.i2p/eepsite/docroot/index.html I verified my eepsite was serving files from there.

I think I had better not leave i2p running like that but I'm happy to start it again to provide more information.

Subtickets (add)

Change History (4)

comment:1 Changed 21 months ago by zzz

  • Status changed from new to infoneeded_new
  • Did you originally install the package with 0.9.29 or earlier? If earlier, how long ago or what version?
  • Did you ever install i2p with the non-package installer?
  • Do you have a /var/lib/i2p/i2p-config directory with files in it? (you'll have to use sudo ls to see)
  • Do you have a i2psvc user in /etc/passwd?
  • What distribution?

comment:2 Changed 21 months ago by n_i_c_k

  • Status changed from infoneeded_new to new

Did you originally install the package with 0.9.29 or earlier? If
earlier, how long ago or what version?

Earlier: 0.9.26-1~deb8u+1 on 2016-08-02.

Did you ever install i2p with the non-package installer?

No.

Do you have a /var/lib/i2p/i2p-config directory with files in it?

No,

# ls /var/lib/i2p/i2p-config
ls: cannot access /var/lib/i2p/i2p-config: No such file or directory

Do you have a i2psvc user in /etc/passwd?

Yes,

# grep i2psvc /etc/passwd
i2psvc:x:112:118:I2P Router Daemon:/var/lib/i2p:/bin/false

What distribution?

# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 8.7 (jessie)
Release: 8.7
Codename: jessie

Hope that helps, happy to provide more.

comment:3 Changed 21 months ago by zzz

That helps, but I'm still not sure what's going on here. I'm going to do some guessing, since the guy was our debian package expert that set all this up isn't around any more.

It's possible that it wasn't set up as a service. I copied files from /var/lib/i2p/i2p-config to /root/.i2p and then started the service, and it ran as i2psvc, but using /root/.i2p. But then I did 'sudo dpkg-reconfigure i2p' and enabled as a service, and then tried it, and it used /var/lib/i2p/i2p-config. But then I switched it back again, and it still used /var/lib/i2p/i2p-config. And I never saw it running as root, only as i2psvc.

I looked at our startup code, and the is-running-as-service check is before the check for $HOME/.i2p existing, so I don't think the presence of /root/.i2p should make a difference... but you could try renaming it and see if it comes back.

Or maybe this is a systemd vs. non-systemd thing. Are you running systemd? I'm on ubuntu with systemd.

The cause seems to be running as root... unless it's running as i2psvc, it won't use /var/lib/i2p/i2p-config. But I don't know why it's running as root and can't reproduce that here.

comment:4 Changed 14 months ago by zzz

  • Status changed from new to infoneeded_new
Note: See TracTickets for help on using tickets.