[Bug 1295521] Re: cannot shutdown/suspend/restart from the GUI

2014-03-28 Thread Martin Pitt
The various PAM packages explicitly declare themselves as multi-arch
compatible. Of course they could just drop their Multi-Arch: flag again
so that you can only have the native PAM stack installed, not a foreign
arch one in parallel. However, I suppose there was a specific reason to
make them multi-arch compatible. Steve, do you know why this is
beneficial, and how we could debug what's going on here if you install
both stacks at the same time? Thanks!

** Changed in: lightdm
   Status: New => Invalid

** Summary changed:

- cannot shutdown/suspend/restart from the GUI
+ Installing i386 and amd64 PAM stacks causes shutdown/logout/etc. to break

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1295521

Title:
  Installing i386 and amd64 PAM stacks causes shutdown/logout/etc. to
  break

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/1295521/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1295521] Re: cannot shutdown/suspend/restart from the GUI

2014-03-27 Thread Julien Aubin
Hi,

I've also fixed the issue for the suspend feature and lightdm feature by
removing packages libpam-modules:i386 and libpam-cap:i386, which have
the same kind of conflict as explained above. I don't know what happened
during the upgrade, but it looks like the upgrade tool was a bit lost
between i386 and amd64 packages.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1295521

Title:
  cannot shutdown/suspend/restart from the GUI

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/1295521/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1295521] Re: cannot shutdown/suspend/restart from the GUI

2014-03-27 Thread Julien Aubin
To avoid this, it might be possible to set some kind of conflict between
the i386 module and the amd64 module ? OK it smells, but this might be
an option. What do you think ?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1295521

Title:
  cannot shutdown/suspend/restart from the GUI

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/1295521/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1295521] Re: cannot shutdown/suspend/restart from the GUI

2014-03-27 Thread Julien Aubin
Hi,

I had both libpam-systemd:i386 and libpam-sytemd:amd64 on my AMD64
system and this confused PAM.

The upstart job now works fine, I don't have the "cannot start daemon".
I didn't post the result of "sudo start systemd-logind" but it said
"started daemon systemd-logind" or something like this. And just after
that reboot and shutdown menu entries appeared in KDE but not the
suspend one.

The only wrong things remaining is that I cannot suspend from the GUI
(but restart and shutdown appear in the KDE menu) and from lightdm
suspend/reboot/shutdown entries are still disabled even after rebooting,
restarting lightdm or reinstalling it.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1295521

Title:
  cannot shutdown/suspend/restart from the GUI

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/1295521/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1295521] Re: cannot shutdown/suspend/restart from the GUI

2014-03-27 Thread Martin Pitt
Do I get that right, you have an amd64 system, but had  libpam-
systemd:i386 installed, and that confused PAM? Hmm, I wonder how this
can be avoided.

With the right libpam-systemd installed, do you still get that "Cannot
launch daemon" error? What does the upstart job say now (i. e. sudo
start systemd-logind)?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1295521

Title:
  cannot shutdown/suspend/restart from the GUI

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/1295521/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1295521] Re: cannot shutdown/suspend/restart from the GUI

2014-03-27 Thread Julien Aubin
Hi,

To answer your questions :
1/
julien@pcathlon64:~$ aptitude search libpam-systemd
i   libpam-systemd  - system and 
service manager - PAM module   
i   libpam-systemd:i386 - system and 
service manager - PAM module 
(I tried to reinstall it, does not fix the problem)

2/
administrateur@pcathlon64:~$ sudo start systemd-logind
[sudo] password for administrateur: 
systemd-logind stop/pre-start, process 4754

And when I do then ps aux|grep 4754, no process is returned. In my syslog, I 
get the following message :
Mar 27 08:08:09 pcathlon64 dbus[1280]: [system] Activating service 
name='org.freedesktop.login1' (using servicehelper)
Mar 27 08:08:09 pcathlon64 dbus[1280]: [system] Activated service 
'org.freedesktop.login1' failed: Cannot launch daemon, file not found or 
permissions invalid


OK I've found the issue :
1/ remove libpam-systemd:i386 and libsystemd-login0:i386

Now everything should be fine.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1295521

Title:
  cannot shutdown/suspend/restart from the GUI

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/1295521/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1295521] Re: cannot shutdown/suspend/restart from the GUI

2014-03-27 Thread Julien Aubin
However with the update (and a restart) I've seen that the
suspend/restart/shutdown icons are still grayed out in my lightdm, and
that the suspend menu is still missing from my KDE, but things are
better

** Changed in: systemd (Ubuntu)
   Status: Incomplete => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1295521

Title:
  cannot shutdown/suspend/restart from the GUI

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/1295521/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1295521] Re: cannot shutdown/suspend/restart from the GUI

2014-03-27 Thread Martin Pitt
> 5260  mkdir("/run/systemd/seats", 0755) = -1 ENOENT (No such file or
directory)

That's worrying.  That means that the /etc/init/systemd-logind.conf
upstart job failed somehow.

 * Do you have the libpam-systemd package installed? If that's missing,
nothing will work really.

 * If you do "sudo start systemd-logind", what does that say?

** Changed in: systemd (Ubuntu)
   Status: Confirmed => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1295521

Title:
  cannot shutdown/suspend/restart from the GUI

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/1295521/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1295521] Re: cannot shutdown/suspend/restart from the GUI

2014-03-26 Thread Julien Aubin
After installing pamcap in 64 bits message "PAM unable to
dlopen(pam_cap.so): /lib/security/pam_cap.so" disappeared, however the
issue is still there. :-(

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1295521

Title:
  cannot shutdown/suspend/restart from the GUI

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/1295521/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1295521] Re: cannot shutdown/suspend/restart from the GUI

2014-03-26 Thread Julien Aubin
Another stuff in my auth.log which may help :
Mar 26 21:13:14 pcathlon64 sudo: PAM unable to dlopen(pam_cap.so): 
/lib/security/pam_cap.so: Ne peut ouvrir le fichier d'objet p
artagé: Aucun fichier ou dossier de ce type
Mar 26 21:13:14 pcathlon64 sudo: PAM adding faulty module: pam_cap.so

-- On every login

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1295521

Title:
  cannot shutdown/suspend/restart from the GUI

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/1295521/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1295521] Re: cannot shutdown/suspend/restart from the GUI

2014-03-26 Thread Julien Aubin
Also tried with qdbus with the following line (as I'm using KDE) :
qdbus --system org.freedesktop.login1 /org/freedesktop/login1 
org.freedesktop.login1.Manager.CanReboot
Error: org.freedesktop.DBus.Error.Spawn.ExecFailed
Cannot launch daemon, file not found or permissions invalid

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1295521

Title:
  cannot shutdown/suspend/restart from the GUI

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/1295521/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1295521] Re: cannot shutdown/suspend/restart from the GUI

2014-03-26 Thread Julien Aubin
I've also found this in my syslog :
Mar 26 07:46:00 pcathlon64 dbus[1249]: [system] Activating service 
name='org.freedesktop.login1' (using servicehelper)
Mar 26 07:46:00 pcathlon64 dbus[1249]: [system] Activated service 
'org.freedesktop.login1' failed: Cannot launch daemon, file not found or 
permissions invalid

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1295521

Title:
  cannot shutdown/suspend/restart from the GUI

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/1295521/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1295521] Re: cannot shutdown/suspend/restart from the GUI

2014-03-25 Thread Julien Aubin
Attached file.

** Attachment added: "logind.txt"
   
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1295521/+attachment/4043358/+files/logind.txt

** Changed in: systemd (Ubuntu)
   Status: Incomplete => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1295521

Title:
  cannot shutdown/suspend/restart from the GUI

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/1295521/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1295521] Re: cannot shutdown/suspend/restart from the GUI

2014-03-25 Thread Martin Pitt
> Failed to save seat data for seat0: No such file or directory

Interesting. But the mere fact that this worked and got so far shows
that logind isn't running by default, which it should. Can you please do

   sudo strace -fvvs1024 -o /tmp/logind.txt /lib/systemd/systemd-logind

and attach /tmp/logind.txt? This should give a better idea about the
"Failed to save seat data for seat0".

** Changed in: systemd (Ubuntu)
   Status: Confirmed => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1295521

Title:
  cannot shutdown/suspend/restart from the GUI

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/1295521/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1295521] Re: cannot shutdown/suspend/restart from the GUI

2014-03-25 Thread Julien Aubin
** Changed in: systemd (Ubuntu)
   Status: Incomplete => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1295521

Title:
  cannot shutdown/suspend/restart from the GUI

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/1295521/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1295521] Re: cannot shutdown/suspend/restart from the GUI

2014-03-25 Thread Julien Aubin
Hi,

For the output, it gives me the following :
administrateur@pcathlon64:~$  sudo /lib/systemd/systemd-logind
[sudo] password for administrateur: 
Watching system buttons on /dev/input/event1 (Power Button)
Watching system buttons on /dev/input/event0 (Power Button)
New seat seat0.
Failed to save seat data for seat0: No such file or directory

However it does not crash...

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1295521

Title:
  cannot shutdown/suspend/restart from the GUI

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/1295521/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1295521] Re: cannot shutdown/suspend/restart from the GUI

2014-03-25 Thread Martin Pitt
If you run

  sudo /lib/systemd/systemd-logind

what happens? I suppose this crashes somehow? If not, press Control-C to
end it again. Please copy&paste the output.

> logind (now replaced with systemd)

For the record, that's wrong. ConsoleKit has been replaced with logind,
and we don't use systemd (in the sense of "pid 1") yet.

** Changed in: systemd (Ubuntu)
   Status: Confirmed => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1295521

Title:
  cannot shutdown/suspend/restart from the GUI

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/1295521/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1295521] Re: cannot shutdown/suspend/restart from the GUI

2014-03-25 Thread Julien Aubin
Oh and from my lightdm logs I also get the following messages :

QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: Aucun 
fichier ou dossier de ce type
QFileSystemWatcher: failed to add paths: /var/lib/lightdm/.config/ibus/bus
Bus::open: Can not get ibus-daemon's address.
IBusInputContext::createInputContext: no connection to ibus-daemon
QDBusError("org.freedesktop.DBus.Error.Spawn.ExecFailed", "Cannot launch 
daemon, file not found or permissions invalid")
QDBusError("org.freedesktop.DBus.Error.Spawn.ExecFailed", "Cannot launch 
daemon, file not found or permissions invalid")
QDBusError("org.freedesktop.DBus.Error.Spawn.ExecFailed", "Cannot launch 
daemon, file not found or permissions invalid")
QDBusError("org.freedesktop.DBus.Error.Spawn.ExecFailed", "Cannot launch 
daemon, file not found or permissions invalid")

Don't know if it is related...

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1295521

Title:
  cannot shutdown/suspend/restart from the GUI

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/1295521/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1295521] Re: cannot shutdown/suspend/restart from the GUI

2014-03-24 Thread Julien Aubin
Hi,

When launching gdbus, error is :
julien@pcathlon64:~$ gdbus call -y -d org.freedesktop.login1 -o 
/org/freedesktop/login1 -m org.freedesktop.login1.Manager.CanReboot
Erreur : GDBus.Error:org.freedesktop.DBus.Error.Spawn.ExecFailed: Cannot launch 
daemon, file not found or permissions invalid

When trying to reboot :
julien@pcathlon64:~$  gdbus call -y -d org.freedesktop.login1 -o 
/org/freedesktop/login1 -m org.freedesktop.login1.Manager.Reboot true
Erreur : GDBus.Error:org.freedesktop.DBus.Error.Spawn.ExecFailed: Cannot launch 
daemon, file not found or permissions invalid

julien@pcathlon64:~$ loginctl
Failed to issue method call: Cannot launch daemon, file not found or 
permissions invalid

Actually I had a similar bug with Saucy which has been fixed with an
update of logind (now replaced with systemd)

** Changed in: systemd (Ubuntu)
   Status: Incomplete => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1295521

Title:
  cannot shutdown/suspend/restart from the GUI

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/1295521/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1295521] Re: cannot shutdown/suspend/restart from the GUI

2014-03-24 Thread Martin Pitt
As your normal user in a GUI session, can you please give me the output
of

  gdbus call -y -d org.freedesktop.login1 -o /org/freedesktop/login1 -m
org.freedesktop.login1.Manager.CanReboot

That ought to be something like "('yes',)".

If that says yes,  can you confirm that rebooting works with

  gdbus call -y -d org.freedesktop.login1 -o /org/freedesktop/login1 -m
org.freedesktop.login1.Manager.Reboot true

Thanks!

** Changed in: systemd (Ubuntu)
   Status: New => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1295521

Title:
  cannot shutdown/suspend/restart from the GUI

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/1295521/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1295521] Re: cannot shutdown/suspend/restart from the GUI

2014-03-24 Thread Martin Pitt
Oh, if it doesn't work, please copy&paste the entire output, there
should be an error message (like permission denied by polkit or
something). Please also give me the output of "loginctl".

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1295521

Title:
  cannot shutdown/suspend/restart from the GUI

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/1295521/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1295521] Re: cannot shutdown/suspend/restart from the GUI

2014-03-24 Thread Julien Aubin
** Also affects: lightdm
   Importance: Undecided
   Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1295521

Title:
  cannot shutdown/suspend/restart from the GUI

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/1295521/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1295521] Re: cannot shutdown/suspend/restart from the GUI

2014-03-22 Thread Julien Aubin
** Package changed: shadow (Ubuntu) => lightdm (Ubuntu)

** Package changed: lightdm (Ubuntu) => systemd (Ubuntu)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1295521

Title:
  cannot shutdown/suspend/restart from the GUI

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1295521/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs