baiwyc119 / lxmppd

Automatically exported from code.google.com/p/lxmppd
0 stars 0 forks source link

Traceback in prosodyctl deluser with SQL backend #496

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
$ prosodyctl adduser test@example.net
Enter new password:
Retype new password:
$

$ prosodyctl deluser test@example.net
lua: /usr/lib/prosody/util/datamanager.lua:352: cannot open 
/var/lib/prosody/example%2enet/: No such file or directory
stack traceback:
        [C]: in function 'dir'
        /usr/lib/prosody/util/datamanager.lua:352: in function 'purge'
        /usr/lib/prosody/core/storagemanager.lua:110: in function </usr/lib/prosody/core/storagemanager.lua:97>
        (tail call): ?
        (tail call): ?
        /usr/bin/prosodyctl:384: in function '?'
        /usr/bin/prosodyctl:861: in main chunk
        [C]: ?
$

But the user was successfully deleted:

$ prosodyctl deluser test@example.net
That user does not exist on this server
$

This is caused by datamanager trying to delete any list store files, but if 
none have been created it fails because of the directory not existing.

Original issue reported on code.google.com by MWild1 on 10 May 2015 at 1:17