On Fri, Mar 26, 2004 at 05:23:54AM +0100, Stefan Onken wrote:
> I am trying to install sqwebmail on the company server. It's working
> fine on my private one, so it's a little bit annoying .. :) I tried
> both 3.6.2 and 4.0.x - but I am getting the same error message:
>
> Error:
> After successfully login in, any try to open a folder is giving me
> this error message:
> "Can't create cache file."
> (see screenshot http://www.stonki.de/sqwebmail.jpg)
>
> /var/log/messages:
> Mar 25 14:33:09 webserver sqwebmaild: Can't create cache file
> |./tmp/1080225189.M558352P19457_sqwebmail-db.webserver|: No such
> file or directory
>
> BUT (!):
> webserver:~ # ls
> -als /home/vpopmail/domains/xxxxxx.com/stefan.onken/Maildir/tmp/
> total 8
> ? ?4 drwx------ ? ?2 vpopmail vchkpw ? ? ? 4096 Mar 25 14:33 .
> ? ?4 drwx------ ? 10 vpopmail vchkpw ? ? ? 4096 Mar 25 12:33 ..
> ? ?0 -rw------- ? ?1 vpopmail vchkpw ? ? ? ? ?0 Mar 25 14:33
> 1080225189.M558352P19457_sqwebmail-db.webserver
>
> So its there....
Note that the error you see comes from sqwebmail/maildir.c:
if (dbobj_open(&tmpdb, save_tmpdbname, "N")) {
syslog(LOG_ERR, "Can't create cache file |%s|: %s\n", save_tmpdbname,
strerror(errno));
error("Can't create cache file.");
}
This in turn calls either bdbobj_open or gdbmobj_open [see dbobj.h].
So my guess is that the difference between your home and work machines is
something to do with the version of bdb and/or gdbm installed, or which one
it has decided to use (see dbobj.config and config.log)
But apart from that, have you checked you're not out of disk space or inodes
(df -i), and you don't have a filesystem quota for the 'vpopmail' user?
Although I'd expect a different error message than 'No such file or
directory' for those problems, it could be that bdbobj_open / gdbmobj_open
is setting errno to something else.
What if you do:
su - vpopmail
cd /home/vpopmail/domains/xxxxxx.com/stefan.onken/Maildir
echo "hello world" > tmp/foobar
cat /etc/passwd >> tmp/foobar
cat tmp/foobar
Is that successful?
Do you get a new zero-byte file each time you try to login, and the same
error message?
Brian.