[systemd-devel] systemctl runs systemd-tty-ask-password-agent and hangs?

Albert Strasheim fullung at gmail.com
Tue Apr 19 08:02:51 PDT 2011


Hello again

I had the same problem again today trying to start a service.

The last few system calls made by systemd-tty-ask-password-agent are:

19048 mkdir("/run", 0755)               = -1 EEXIST (File exists)
19048 mkdir("/run/systemd", 0755)       = -1 EEXIST (File exists)
19048 mkdir("/run/systemd/ask-password", 0755) = -1 EEXIST (File exists)
19048 inotify_init1(O_CLOEXEC)          = 4
19048 inotify_add_watch(4, "/run/systemd/ask-password",
IN_CLOSE_WRITE|IN_MOVED_TO) = 1
19048 rt_sigprocmask(SIG_SETMASK, [INT TERM], NULL, 8) = 0
19048 signalfd4(-1, [INT TERM], 8, O_NONBLOCK|O_CLOEXEC) = 5
19048 open("/run/systemd/ask-password",
O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 6
19048 getdents(6, {{d_ino=9748, d_off=1, d_reclen=24, d_name="."}
{d_ino=9747, d_off=2, d_reclen=24, d_name=".."}}, 32768) = 48
19048 getdents(6, {}, 32768)            = 0
19048 close(6)                          = 0
19048 poll([{fd=4, events=POLLIN}, {fd=5, events=POLLIN}], 2, -1) = 1
([{fd=5, revents=POLLIN}])

I am running systemd-24-1.fc15.x86_64.

Full trace attached.

Regards

Albert

On Tue, Apr 5, 2011 at 10:06 AM, Albert Strasheim <fullung at gmail.com> wrote:
> Hello all
>
> Sometimes (not sure when), when I run
>
> systemctl stop foo.service
>
> where foo.service is in this state:
>
> foo.service loaded failed failed stop Foo
>
> systemctl just hangs. I can see that it has started a process called
>
> /bin/systemd-tty-ask-password-agent --watch
>
> which is apparently waiting for input of some kind, but I don't know
> where or what.
>
> It hangs until I kill systemctl with Ctrl-C.
>
> I'm running systemd-22-1.fc15.x86_64 and upgraded the machine from
> FC14 using yum distro-sync, if that matters.
>
> Regards
>
> Albert


More information about the systemd-devel mailing list