Jorge Concha C.
2022-Dec-27 14:31 UTC
[SOLVED] Re: Error: Failed to get quota resource STORAGE: quota-fs: quotactl(Q_GETQUOTA, NFS:/home) failed: No such file or directory
Finally, I found the problem. At build time, I had not installed the 'rpcgen' (RPM) package. Initially, I installed the original RPM of the Rocky-Linux distribution, having the same problem. I gather that the Rocky-Linux community is also creating the dovecot's rpm? without 'rpcgen' installed. Jorge Concha C. ?rea de Sistemas - CEC U. de Chile On 16-12-22 12:14, Jorge Concha C. wrote:> Hello everyone, > > I'm migrating my dovecot (imap) server from CentOS-6 to RockyLinux-9, > but I can't get the QUOTA-FS plugin to work. > > When trying the "doveadm quota get -u user" command, it returns an > error "doveadm(user): Error: Failed to get quota resource STORAGE: > quota-fs: quotactl(Q_GETQUOTA, nfs:/home) failed: No such file or > directory" > > If the user has his "$home" on a local drive, everything works fine, > but if the user has his $home on a nfs-filesystem, it throws that error. > > On CentOS-6, everything works fine, with the same users on the same > nfs-filesystem. > I don't know if it is the product of the OS change or the dovecot > version change. > > CentOS6 -> Dovecot 2.2.10 > RockyLinux-9 -> Dovecot 2.3.16 > > Does anyone have any ideas? > > Thanks >
Peter
2022-Dec-28 02:53 UTC
[SOLVED] Re: Error: Failed to get quota resource STORAGE: quota-fs: quotactl(Q_GETQUOTA, NFS:/home) failed: No such file or directory
On 28/12/22 03:31, Jorge Concha C. wrote:> Finally, I found the problem. > At build time, I had not installed the 'rpcgen' (RPM) package. > Initially, I installed the original RPM of the Rocky-Linux distribution, > having the same problem. > I gather that the Rocky-Linux community is also creating the dovecot's > rpm? without 'rpcgen' installed.I'm curious if you would get the same issue with the dovecot23 Ghettoforge packages in the gf-plus repo: http://ghettoforge.org https://mirror.ghettoforge.org/distributions/gf/el/9/plus/x86_64/ If so I wouldn't mind adding rpcgen as a build-dep to see if it helps. Peter
Peter
2022-Dec-30 08:47 UTC
[SOLVED] Re: Error: Failed to get quota resource STORAGE: quota-fs: quotactl(Q_GETQUOTA, NFS:/home) failed: No such file or directory
On 28/12/22 03:31, Jorge Concha C. wrote:> Finally, I found the problem. > At build time, I had not installed the 'rpcgen' (RPM) package. > Initially, I installed the original RPM of the Rocky-Linux distribution, > having the same problem. > I gather that the Rocky-Linux community is also creating the dovecot's > rpm? without 'rpcgen' installed.A little bit of background on this since I've been looking into it. Up through RHEL 7 the rpcgen binary was included in the glibc-common package, which is part of the standard build deps that are installed for all builds. As of RHEL 8 this binary was moved to it's own package and was not installed automatically as it was previously. This means that rquota (quota on NFS) worked fine up through EL7, but was broken for all builds starting with EL8. Since dovecot builds fine without rquota support it appears that the issue never came up before, or at least it never got the notice of Red Hat. The solution, as you point out is simple. rpcgen simply needs to be added as a BuildRequires line in the dovecot.spec file and the package will once again be built with rquota support as it was before. I filed a bug in Red Hat bugzilla, let's see if anything comes of it: https://bugzilla.redhat.com/show_bug.cgi?id=2157045 Peter