Duplicity 失败,出现“打开文件过多”错误

Duplicity 失败,出现“打开文件过多”错误

Duplicity 不再备份。几个月来我一直在运行相同的备份脚本,但显然有些东西发生了变化。

GPGError: GPG Failed, see log below:
===== Begin GnuPG log =====
gpg: can't open `/home/username/.gnupg/random_seed': Too many open files
gpg: fatal: can't open /dev/urandom: Too many open files
gpg: WARNING: unsafe ownership on homedir `/home/username/.gnupg'
secmem usage: 2400/2400 bytes in 6/6 blocks of pool 2400/65536
===== End GnuPG log =====

$ cat /proc/sys/fs/file-max
100000

我可以用 ulimit 修复它吗?怎么做?

答案1

的输出是什么ulimit -n

要增加当前 shell 的值,您可以执行以下操作ulimit -n 100000

相关内容