No password for the « admin » UNIX user

Hi,

If I try to install any application, custom or not, I get a failed. “Installation failed” on red. And when use the log button I can get the message Pas de mot de passe pour l’utilisateur « admin »

If I try from command line, same, it’s not working.
Example with transmission from cli :

 root@kraton:~# yunohost app install transmission
Téléchargement...
Extraction...
Terminé.
chown: spec non valide: « admin: »
chown: spec non valide: « admin: »
Choose a domain for Transmission : wayang.fr
Choose a path for Transmission (default: /torrent) : 
Exécution du script...
Pas de mot de passe pour l'utilisateur « admin »
Erreur : Échec de l'installation
root@kraton:~# 

End of log file :
 Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/bottle.py", line 862, in _handle
    return route.call(**args)
  File "/usr/lib/python2.7/dist-packages/bottle.py", line 1728, in wrapper
    rv = callback(*a, **ka)
  File "/usr/lib/python2.7/dist-packages/moulinette/interfaces/api.py", line 596, in wrapper
    return callback(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/moulinette/interfaces/api.py", line 292, in messages
    del self.queues[s_id]
KeyError: 'a91750390365be85b04f6502853511e77a4269e2'
chown: spec non valide: « admin: »
chown: spec non valide: « admin: »

Are you able to connect via SSH as the admin user ?

Try to run slapcat | grep -C5 "dn: cn=admin"

You should get a cn=admin,dc=yunohost,dc=org and a cn=admin,ou=sudo,dc=yunohost,dc=org entries.

(On my server: )

# slapcat | grep -C5 "dn: cn=admin"
createTimestamp: 20140102143917Z
entryCSN: 20140102143917.809719Z#000000#000#000000
modifiersName: cn=admin,dc=yunohost,dc=org
modifyTimestamp: 20140102143917Z

dn: cn=admin,dc=yunohost,dc=org
structuralObjectClass: organizationalRole
entryUUID: 675a2ac2-0807-1033-8234-e19dd5fd6084
creatorsName: cn=admin,dc=yunohost,dc=org
createTimestamp: 20140102143917Z
gidNumber: 1007
--
createTimestamp: 20140102162200Z
entryCSN: 20140102162200.177093Z#000000#000#000000
modifiersName: cn=admin,dc=yunohost,dc=org
modifyTimestamp: 20140102162200Z

dn: cn=admins,ou=groups,dc=yunohost,dc=org
objectClass: posixGroup
objectClass: top
memberUid: admin
gidNumber: 4001
cn: admins
--
memberUid: testuser
entryCSN: 20141013092946.385613Z#000000#000#000000
modifiersName: cn=admin,dc=yunohost,dc=org
modifyTimestamp: 20141013092946Z

dn: cn=admin,ou=sudo,dc=yunohost,dc=org
cn: admin
sudoCommand: ALL
sudoUser: admin
objectClass: sudoRole
objectClass: top

Then, check that the debian package is installed:

# dpkg -l | grep libpam-ldapd      
ii  libpam-ldapd:amd64               0.8.10-4                      amd64        PAM module for using LDAP as an authentication service

Tell me if one of those things is missing.

Ok, so the package was not installed.
So I installed it

apt-get install libpam-ldapd

My postinst configuration of pam was KO, so I launched it again

/usr/sbin/pam-auth-update

Then everything was checked

No error anymore in logs about the user admin, can chown admin:admin too. Still need a last restart of yunohost-api

service yunohost-api restart

And it’s back

Ok, it looks like everything is working, including installation of transmission for example.
But this time, I try the unofficial piwik, and again an error about password for admin empty appears. I cannot see in this specific app where it’s coming from it. Will see tomorrow.

There is no reference to the admin UNIX user in the Piwik install script:

But you have to choose one of your YunoHost’s user to appear as the Piwik admin. Maybe you did that wrong ?

Yes, I know, this app is not doing anything with admin user.

In fact, after some reboot/yunohost-api restart/pam reconfiguration with the command upper, it has accepted this time the installation of piwik (by the way, seems initialisation is not properly working, will ask the maintener)

After that I can install strut too. But when I install jirafeau, it fails again, complaining about admin user again.
And yes, the chown command is not working. I don’t understand how it can goes back to the “not working” situation. So I restart service, reconfigure pam, purge libpam-ldapd … and it’s working again. Until few commands and stop working again …

I’m lost on this, no logs on syslog, messages, slapd, yunohost