You are not logged in.

#1 2013-08-15 01:04:59

EvanPurkhiser
Member
From: San Francisco
Registered: 2010-08-17
Posts: 225
Website

[Solved] Cannot find unit for notify message of PID xxx (transmission)

Hey guys,

When running transmission as a systemd --user service and seeding some torrent I'm getting messages in the kernel ring buffer that look like this:

systemd[1]: Cannot find unit for notify message of PID 535

where PID 535 is the transmission daemon.

Here's my systemd --user service file for transmission-daemon

[Unit]
Description=Transmission Bit Torrent Daemon
Documentation=man:transmission-daemon(1)

[Service]
ExecStart=/usr/bin/transmission-daemon --foreground

[Install]
WantedBy=console.target

I'm not really sure what this message means. Any insight is appreciated!

Last edited by EvanPurkhiser (2013-10-23 18:04:15)

Offline

#2 2013-08-18 07:03:43

EvanPurkhiser
Member
From: San Francisco
Registered: 2010-08-17
Posts: 225
Website

Re: [Solved] Cannot find unit for notify message of PID xxx (transmission)

I appear to have fixed this by changing my systemd/user/transmission.service to Type=notify.

Presumably the notification was bubbling up to the systemd[1] process and couldn't be handled there. I'm not entirely sure why transmission is sending out so many notifications (perhaps notifications for torrent status?)

Offline

#3 2013-08-18 08:34:53

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [Solved] Cannot find unit for notify message of PID xxx (transmission)

A notification send via sd_notify is supposed to reach systemd; see the description of Type=notify in the systemd.service man page. The service file that comes with transmission does contain this type specification, so your copy was incomplete/outdated.

Offline

#4 2013-08-18 08:42:00

EvanPurkhiser
Member
From: San Francisco
Registered: 2010-08-17
Posts: 225
Website

Re: [Solved] Cannot find unit for notify message of PID xxx (transmission)

You're right. The problem was that I was running transmission as a systemd --user service without Type=notify, so the notification wasn't being handled by my systemd --user instance, and was being caught by the systemd --system instance, which doesn't know about the systemd --user transmission.service. So that's what the warning was from. (At least I think that's why!)

The reason mine didn't have the Type=notify was because I hadn't looked at the /systemd/system/transmission.service before writing mine =P

Last edited by EvanPurkhiser (2013-08-18 08:42:44)

Offline

#5 2013-08-18 09:06:30

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [Solved] Cannot find unit for notify message of PID xxx (transmission)

Right, I didn't pay enough attention to the '[1]' part. Now the 'bubbling up' makes more sense smile

Offline

Board footer

Powered by FluxBB