error: can't start new thread
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Duplicity |
Fix Released
|
Medium
|
Unassigned | ||
deja-dup (Ubuntu) |
Triaged
|
Critical
|
Unassigned | ||
duplicity (Ubuntu) |
In Progress
|
Undecided
|
Unassigned |
Bug Description
$ uname -a
Linux mbpr13b 4.13.0-16-generic #19-Ubuntu SMP Wed Oct 11 18:35:14 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
duplicity gets started daily via deja-dup automatically.
Every now and then (approx. every third time) I get the following error:
------------------
Failed with an unknown error.
Traceback (most recent call last):
File "/usr/bin/
with_
File "/usr/bin/
fn()
File "/usr/bin/
do_
File "/usr/bin/
restore(
File "/usr/bin/
restore_
File "/usr/lib/
for ropath in rop_iter:
File "/usr/lib/
for patch_seq in collated:
File "/usr/lib/
setrorps(
File "/usr/lib/
elems[i] = iter_list[i].next()
File "/usr/lib/
for path in path_iter:
File "/usr/lib/
tarinfo_list = [tar_iter.next()]
File "/usr/lib/
self.
File "/usr/lib/
self.current_fp = self.fileobj_
File "/usr/bin/
manifest.
File "/usr/bin/
fileobj = tdp.filtered_
File "/usr/lib/
fh = FileobjHooked(
File "/usr/lib/
return gpg.GPGFile(False, self, gpg_profile)
File "/usr/lib/
'logger': self.logger_fp})
File "/usr/lib/
create_fhs, attach_fhs)
File "/usr/lib/
process.
File "/usr/lib/
_start_
error: can't start new thread
--------------
Restarting deja-dup manually fixes the problem and the next few days, automatic backup will run correctly until (see above).
ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: duplicity 0.7.12-1ubuntu1
ProcVersionSign
Uname: Linux 4.13.0-16-generic x86_64
ApportVersion: 2.20.7-0ubuntu3
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Thu Oct 26 10:49:45 2017
InstallationDate: Installed on 2017-10-20 (5 days ago)
InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Release amd64 (20171018)
SourcePackage: duplicity
UpgradeStatus: No upgrade log present (probably fresh install)
Wolf Rogner (war-rsb) wrote : | #1 |
- Dependencies.txt Edit (2.6 KiB, text/plain; charset="utf-8")
- JournalErrors.txt Edit (141.0 KiB, text/plain; charset="utf-8")
- ProcCpuinfoMinimal.txt Edit (1.0 KiB, text/plain; charset="utf-8")
- ProcEnviron.txt Edit (310 bytes, text/plain; charset="utf-8")
Wolf Rogner (war-rsb) wrote : | #2 |
Kenneth Loafman (kenneth-loafman) wrote : | #3 |
The first launch after a reboot is one where the memory is less fragmented, and possibly where other tasks have not started, so clean memory access is most likely. The current manifest file reader takes in the full file at one time and breaks it apart in memory. This worked well when there was only volume information present, but the addition of the file-changed list made this operation much more memory intensive (added in 0.7.03). Forking a gpg task takes a good bit of memory and the error message sounds generic, so I'm inclined to lean towards memory issues.
To play it safe, I will change the status and leave this note that I'm sure it's related to:
https:/
Changed in duplicity (Ubuntu): | |
assignee: | nobody → Kenneth Loafman (kenneth-loafman) |
status: | New → In Progress |
Wolf Rogner (war-rsb) wrote : | #4 |
Please read my comment again:
Only when autostarted the error occurs. When launched manually (the memory situation is the same) it works.
And: I have 16 GB RAM on this machine. I think there will be some contiguous memory available.
Kenneth Loafman (kenneth-loafman) wrote : Re: [Bug 1727653] Re: duplicity fails with unknown error | #5 |
How many open files allowed ("ulimit -n")? Other than memory, "too many
open files" has been the culprit that keeps fork from working.
On Sat, Oct 28, 2017 at 1:10 PM, Wolf Rogner <email address hidden> wrote:
> Please read my comment again:
>
> Only when autostarted the error occurs. When launched manually (the
> memory situation is the same) it works.
>
> And: I have 16 GB RAM on this machine. I think there will be some
> contiguous memory available.
>
> --
> You received this bug notification because you are a bug assignee.
> https:/
>
> Title:
> duplicity fails with unknown error
>
> Status in duplicity package in Ubuntu:
> In Progress
>
> Bug description:
> $ uname -a
> Linux mbpr13b 4.13.0-16-generic #19-Ubuntu SMP Wed Oct 11 18:35:14 UTC
> 2017 x86_64 x86_64 x86_64 GNU/Linux
>
> duplicity gets started daily via deja-dup automatically.
>
> Every now and then (approx. every third time) I get the following
> error:
>
> ------------------
>
> Failed with an unknown error.
>
> Traceback (most recent call last):
> File "/usr/bin/
> with_tempdir(main)
> File "/usr/bin/
> fn()
> File "/usr/bin/
> do_backup(action)
> File "/usr/bin/
> restore(col_stats)
> File "/usr/bin/
> restore_
> File "/usr/lib/
> 560, in Write_ROPaths
> for ropath in rop_iter:
> File "/usr/lib/
> 523, in integrate_
> for patch_seq in collated:
> File "/usr/lib/
> 389, in yield_tuples
> setrorps(overflow, elems)
> File "/usr/lib/
> 378, in setrorps
> elems[i] = iter_list[i].next()
> File "/usr/lib/
> 107, in filter_path_iter
> for path in path_iter:
> File "/usr/lib/
> 121, in difftar2path_iter
> tarinfo_list = [tar_iter.next()]
> File "/usr/lib/
> 339, in next
> self.set_tarfile()
> File "/usr/lib/
> 333, in set_tarfile
> self.current_fp = self.fileobj_
> File "/usr/bin/
> manifest.
> File "/usr/bin/
> fileobj = tdp.filtered_
> File "/usr/lib/
> 119, in filtered_
> fh = FileobjHooked(
> File "/usr/lib/
> in filtered_open
> return gpg.GPGFile(False, self, gpg_profile)
> File "/usr/lib/
> i...
Wolf Rogner (war-rsb) wrote : Re: duplicity fails with unknown error | #6 |
ulimit -n -> 1024 (default install)
Kenneth Loafman (kenneth-loafman) wrote : | #7 |
You probably want to increase that. It's an extremely low limit. Search for "ubuntu increase max files limit" and you will find answers. Don't be miserly, set it at 32K or 64K.
summary: |
- duplicity fails with unknown error + error: can't start new thread |
Kenneth Loafman (kenneth-loafman) wrote : | #8 |
If you could, please test the latest bzr trunk version. I just fixed a major bug that was chewing up a lot of memory. That may help with this problem if the fix above does not work.
Václav Haisman (vzeman79) wrote : | #9 |
Re #8: Is there a PPA for that?
Kenneth Loafman (kenneth-loafman) wrote : Re: [Bug 1727653] Re: error: can't start new thread | #10 |
Daily duplicity builds -
https:/
On Tue, Oct 31, 2017 at 3:52 PM, Václav Haisman <email address hidden> wrote:
> Re #8: Is there a PPA for that?
>
> --
> You received this bug notification because you are a bug assignee.
> https:/
>
> Title:
> error: can't start new thread
>
> Status in duplicity package in Ubuntu:
> In Progress
>
> Bug description:
> $ uname -a
> Linux mbpr13b 4.13.0-16-generic #19-Ubuntu SMP Wed Oct 11 18:35:14 UTC
> 2017 x86_64 x86_64 x86_64 GNU/Linux
>
> duplicity gets started daily via deja-dup automatically.
>
> Every now and then (approx. every third time) I get the following
> error:
>
> ------------------
>
> Failed with an unknown error.
>
> Traceback (most recent call last):
> File "/usr/bin/
> with_tempdir(main)
> File "/usr/bin/
> fn()
> File "/usr/bin/
> do_backup(action)
> File "/usr/bin/
> restore(col_stats)
> File "/usr/bin/
> restore_
> File "/usr/lib/
> 560, in Write_ROPaths
> for ropath in rop_iter:
> File "/usr/lib/
> 523, in integrate_
> for patch_seq in collated:
> File "/usr/lib/
> 389, in yield_tuples
> setrorps(overflow, elems)
> File "/usr/lib/
> 378, in setrorps
> elems[i] = iter_list[i].next()
> File "/usr/lib/
> 107, in filter_path_iter
> for path in path_iter:
> File "/usr/lib/
> 121, in difftar2path_iter
> tarinfo_list = [tar_iter.next()]
> File "/usr/lib/
> 339, in next
> self.set_tarfile()
> File "/usr/lib/
> 333, in set_tarfile
> self.current_fp = self.fileobj_
> File "/usr/bin/
> manifest.
> File "/usr/bin/
> fileobj = tdp.filtered_
> File "/usr/lib/
> 119, in filtered_
> fh = FileobjHooked(
> File "/usr/lib/
> in filtered_open
> return gpg.GPGFile(False, self, gpg_profile)
> File "/usr/lib/
> in __init__
> 'logger': self.logger_fp})
> File "/usr/lib/
> line 374, in run
> create_fhs, attach_fhs)
> File "/usr/lib/
> line 420, in ...
Changed in duplicity: | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → Kenneth Loafman (kenneth-loafman) |
Changed in duplicity (Ubuntu): | |
assignee: | Kenneth Loafman (kenneth-loafman) → nobody |
Václav Haisman (vzeman79) wrote : | #11 |
I have tested with 0.7.14+
Wolf Rogner (war-rsb) wrote : | #12 |
Tested 0.7.14-
Failed with an unknown error.
Traceback (innermost last):
File "/usr/bin/
with_
File "/usr/bin/
fn()
File "/usr/bin/
do_
File "/usr/bin/
restore(
File "/usr/bin/
restore_
File "/usr/lib/
for ropath in rop_iter:
File "/usr/lib/
for patch_seq in collated:
File "/usr/lib/
setrorps(
File "/usr/lib/
elems[i] = iter_list[i].next()
File "/usr/lib/
for path in path_iter:
File "/usr/lib/
tarinfo_list = [tar_iter.next()]
File "/usr/lib/
self.
File "/usr/lib/
self.current_fp = self.fileobj_
File "/usr/bin/
manifest.
File "/usr/bin/
fileobj = tdp.filtered_
File "/usr/lib/
fh = FileobjHooked(
File "/usr/lib/
return gpg.GPGFile(False, self, gpg_profile)
File "/usr/lib/
'logger': self.logger_fp})
File "/usr/lib/
create_fhs, attach_fhs)
File "/usr/lib/
process.
File "/usr/lib/
_start_
error: can't start new thread
I saw there were 0.7.15 and 0.7.16 available already?
Kenneth Loafman (kenneth-loafman) wrote : | #13 |
0.7.15 is coming out soon, .16 down the road. .15 preview is in the daily builds.
Were you able to increase ulimit -n? What setting?
I'm going to need a debug log. Could you run this with -v9 and supply two files,
1) the first 200 lines of the log
2) the last 200 lines of the log
Please attach to the bug report. Munge if needed, bug do not change structure. Thanks!
Václav Haisman (vzeman79) wrote : | #14 |
I have bumped the file limit to 8k from 4k for last night's backup and still got the same error.
I am not sure how to run this in verbose mode. I am using it through deja-dup and its plugin that runs the backup every night.
What confuses me are the hanging gpg processes that I have reported about in https:/
Kenneth Loafman (kenneth-loafman) wrote : | #15 |
Do you have a passphrase on the backup? I don't see any key use, and it
looks like gpg-agent is turned off.
On the gpg processes, could you run an strace and see what fd it is hanging
on? "strace -p <pid>" should do it.
You can get a debug trace by doing: DEJA_DUP_DEBUG=1 deja-dup --backup
from the command line.
On Sat, Nov 4, 2017 at 7:46 AM, Václav Haisman <email address hidden> wrote:
> I have bumped the file limit to 8k from 4k for last night's backup and
> still got the same error.
>
> I am not sure how to run this in verbose mode. I am using it through
> deja-dup and its plugin that runs the backup every night.
>
> What confuses me are the hanging gpg processes that I have reported
> about in
> https:/
> would that be happening?
>
> --
> You received this bug notification because you are a bug assignee.
> https:/
>
> Title:
> error: can't start new thread
>
> Status in Duplicity:
> In Progress
> Status in duplicity package in Ubuntu:
> In Progress
>
> Bug description:
> $ uname -a
> Linux mbpr13b 4.13.0-16-generic #19-Ubuntu SMP Wed Oct 11 18:35:14 UTC
> 2017 x86_64 x86_64 x86_64 GNU/Linux
>
> duplicity gets started daily via deja-dup automatically.
>
> Every now and then (approx. every third time) I get the following
> error:
>
> ------------------
>
> Failed with an unknown error.
>
> Traceback (most recent call last):
> File "/usr/bin/
> with_tempdir(main)
> File "/usr/bin/
> fn()
> File "/usr/bin/
> do_backup(action)
> File "/usr/bin/
> restore(col_stats)
> File "/usr/bin/
> restore_
> File "/usr/lib/
> 560, in Write_ROPaths
> for ropath in rop_iter:
> File "/usr/lib/
> 523, in integrate_
> for patch_seq in collated:
> File "/usr/lib/
> 389, in yield_tuples
> setrorps(overflow, elems)
> File "/usr/lib/
> 378, in setrorps
> elems[i] = iter_list[i].next()
> File "/usr/lib/
> 107, in filter_path_iter
> for path in path_iter:
> File "/usr/lib/
> 121, in difftar2path_iter
> tarinfo_list = [tar_iter.next()]
> File "/usr/lib/
> 339, in next
> self.set_tarfile()
> File "/usr/lib/
> 333, in set_tarfile
> self.current_fp = self.fileobj_
> File "/usr/bin/
> manifest.
> File "/usr/bin/
> fileobj = tdp.filtered_
> ...
Wolf Rogner (war-rsb) wrote : | #16 |
@Kenneth:
I increased ulimit to 4096 -> same error
Then I wanted to understand how ulimit works:
ulimit influences the shell (bash!).
I can start duplicity via deja-dup from the console -> works
I can start deja-dup from the launcher (GNOME-Shell) and manually trigger backup (from the running application) -> works
If deja-dup is started via automatic mechanism (daily launch) -> error
Concluding:
The issue does not lie within duplicity (well this generates the error) but in the calling mechanism of deja-dup (which must provide duplicity with different environments depending on how it calls duplicity).
If my conclusion is correct:
Changing ulimit will not help locate the problem
Getting debug traces via console commands will not help locate the problem
We are looking in the wrong place
Maybe the issue should be forwarded to the deja-dup developers to see how they call duplicity on auto-backup.
Kenneth Loafman (kenneth-loafman) wrote : | #17 |
ulimit is settable system wide, so, at the end of /etc/security/
add the lines:
* soft nfile 16384
* hard nfile 32768
then reboot the system. That will set system wide limits for all tasks.
On Sun, Nov 5, 2017 at 4:29 AM, Wolf Rogner <email address hidden> wrote:
> @Kenneth:
>
> I increased ulimit to 4096 -> same error
>
> Then I wanted to understand how ulimit works:
>
> ulimit influences the shell (bash!).
>
>
> I can start duplicity via deja-dup from the console -> works
> I can start deja-dup from the launcher (GNOME-Shell) and manually trigger
> backup (from the running application) -> works
>
> If deja-dup is started via automatic mechanism (daily launch) -> error
>
> Concluding:
>
> The issue does not lie within duplicity (well this generates the error)
> but in the calling mechanism of deja-dup (which must provide duplicity
> with different environments depending on how it calls duplicity).
>
> If my conclusion is correct:
>
> Changing ulimit will not help locate the problem
> Getting debug traces via console commands will not help locate the problem
> We are looking in the wrong place
>
> Maybe the issue should be forwarded to the deja-dup developers to see
> how they call duplicity on auto-backup.
>
> --
> You received this bug notification because you are a bug assignee.
> https:/
>
> Title:
> error: can't start new thread
>
> Status in Duplicity:
> In Progress
> Status in duplicity package in Ubuntu:
> In Progress
>
> Bug description:
> $ uname -a
> Linux mbpr13b 4.13.0-16-generic #19-Ubuntu SMP Wed Oct 11 18:35:14 UTC
> 2017 x86_64 x86_64 x86_64 GNU/Linux
>
> duplicity gets started daily via deja-dup automatically.
>
> Every now and then (approx. every third time) I get the following
> error:
>
> ------------------
>
> Failed with an unknown error.
>
> Traceback (most recent call last):
> File "/usr/bin/
> with_tempdir(main)
> File "/usr/bin/
> fn()
> File "/usr/bin/
> do_backup(action)
> File "/usr/bin/
> restore(col_stats)
> File "/usr/bin/
> restore_
> File "/usr/lib/
> 560, in Write_ROPaths
> for ropath in rop_iter:
> File "/usr/lib/
> 523, in integrate_
> for patch_seq in collated:
> File "/usr/lib/
> 389, in yield_tuples
> setrorps(overflow, elems)
> File "/usr/lib/
> 378, in setrorps
> elems[i] = iter_list[i].next()
> File "/usr/lib/
> 107, in filter_path_iter
> for path in path_iter:
> File "/usr/lib/
> 121, in difftar2path_iter
> tarinfo_list = [tar_iter.next()]
> File "/usr/lib/
abautu (abautu-gmail) wrote : | #18 |
From /etc/xdg/
# Try to limit memory -- we have reports of runaway deja-dup-monitor processes
# but I can't reproduce it. So until we fix whatever is happening there, try
# this. LP: #1302416
Exec=sh -c "ulimit -v 1000000; ulimit -n 4096; exec /usr/lib/
In fact, limits file of monitor process (under /proc) shows:
Max open files 1024 1048576 files
abautu (abautu-gmail) wrote : | #19 |
The backup completed succesfully (while running automatically) after I changed in /etc/xdg/
Exec=sh -c "ulimit -v 1000000; exec /usr/lib/
to
Exec=sh -c "ulimit -v 1000000; ulimit -n 4096; exec /usr/lib/
Limits file of process under /proc still shows
Max open files 1024 1048576 files
Kenneth Loafman (kenneth-loafman) wrote : | #20 |
This will work when duplicity is run from DejaDup, not when it is run from the console or from cron.
The system wide solution above will work for all situations.
Håkon Enger (hakon-enger) wrote : | #21 |
Hello,
Today I hit the same problem as in bug #1722454, MemoryError in manifest.py. I am on Ubuntu 17.10 with duplicity 0.7.12-1ubuntu1. I also found a bugreport in Debian that seems to be the same thing: https:/
Here is my backtrace:
Traceback (most recent call last):
File "/usr/bin/
with_
File "/usr/bin/
fn()
File "/usr/bin/
do_
File "/usr/bin/
globals.
File "/usr/lib/
self.
File "/usr/lib/
add_to_sets(f)
File "/usr/lib/
if set.add_
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
mf = self.get_manifest()
File "/usr/lib/
return self.get_
File "/usr/lib/
return manifest.
File "/usr/lib/
self.
MemoryError
Wolf Rogner (war-rsb) wrote : | #22 |
Deja-Dup and duplicity seemed to work with kernel 4.13.0-19. After that (21 and 22) the issue reappeared.
Very frustrating.
Workaround: Start Deja-Dup manually after it failed.
Careful: Deja-dup claims that the backup has been carried out even when the above error occurs. In my case, there is no backup on the server (so, no, it did not back up, it might have collected the files).
Merry Christmas
Wolf Rogner (war-rsb) wrote : | #23 |
@Kenneth #17:
I verified that the settings recommended in comment #17 change nothing (several kernel updates later)
a) if anything, it should be nofile and not nfile
b) /etc/security/
c) ulimit is a bash parameter and cannot be applied system-wide.
d) even when called from the command line with as little as soft limit of 1024 (the default) Deja-Dup/duplicity works fine.
@abautu #19:
Nice try, nevertheless, it does not make Deja-Dup work either.
As I mentioned before: It's not a problem of duplicity but of Deja-Dup.
Launchpad Janitor (janitor) wrote : | #24 |
Status changed to 'Confirmed' because the bug affects multiple users.
Changed in deja-dup (Ubuntu): | |
status: | New → Confirmed |
Václav Haisman (vzeman79) wrote : | #25 |
So I have several (over 5) processes in the previously mentioned state: Duplicity with a dozen or so gpg processes under it, hanging, duplicity is being run as `usr/bin/duplicity restore`.
I have attached generated a core dump, downloaded symbols and analysed the core dump with GDB. This is the stack trace:
#0 0x00007f6a2a3130c4 in __GI___libc_write (fd=1, buf=buf@
#1 0x00007f6a2a291ba7 in _IO_new_file_write (f=0x7f6a2a5ea720 <_IO_2_1_stdout_>, data=0x55af2140
#2 0x00007f6a2a293782 in new_do_write (to_do=4096,
data=
#3 _IO_new_do_write (fp=0x7f6a2a5ea720 <_IO_2_1_stdout_>,
data=
#4 0x00007f6a2a2923bd in _IO_new_file_xsputn (f=0x7f6a2a5ea720 <_IO_2_1_stdout_>, data=<optimized out>, n=8192) at fileops.c:1323
#5 0x00007f6a2a28651b in __GI__IO_fwrite (buf=buf@
#6 0x00007f6a2a5f31ec in func_fp_write (cookie=
#7 0x00007f6a2a5f2b18 in flush_stream (stream=
#8 0x00007f6a2a5f3108 in es_write_fbf (stream=
buffer=
#9 0x00007f6a2a5f4313 in es_writen (stream=
at ../../src/
#10 0x00007f6a2a5f5fac in _gpgrt_fwrite (ptr=ptr@
#11 0x00007f6a2a5fae35 in gpgrt_fwrite (ptr=ptr@
#12 0x000055af1f4b53a2 in handle_plaintext (pt=pt@
#13 0x000055af1f4a0ddc in proc_plaintext (c=c@entry=
#14 0x000055af1f4a3d7b in do_proc_packets (ctrl=0x55af213
#15 0x000055af1f4a3f0a in proc_packets (ctrl=ctrl@
#16 0x000055af1f492aaf in handle_compressed (ctrl=0x55af213
at ../../g10/
#17 0x000055af1f4a1070 in proc_compressed (c=c@entry=
#18 0x000055af1f4a3c9b in do_proc_packets (ctrl=0x55af213
Václav Haisman (vzeman79) wrote : | #26 |
Debugging the Python process of Duplicity shows no polling or reading from appropriate number of pipes:
* 1 Thread 0x7f7f510d0740 (LWP 19797) 0x00007f7f50ce9f96 in futex_abstimed_
at ../sysdeps/
2 Thread 0x7f7f4d9b0700 (LWP 19801) 0x00007f7f50a01951 in __GI___poll (fds=0x559f3d51
3 Thread 0x7f7f469fd700 (LWP 19802) 0x00007f7f50a01951 in __GI___poll (fds=0x559f3d52
4 Thread 0x7f7f461fc700 (LWP 19960) 0x00007f7f50ceba4a in __waitpid (pid=19959, stat_loc=
5 Thread 0x7f7f3ffff700 (LWP 19962) 0x00007f7f50ceba4a in __waitpid (pid=19961, stat_loc=
6 Thread 0x7f7f3f7fe700 (LWP 19965) 0x00007f7f50ceba4a in __waitpid (pid=19964, stat_loc=
7 Thread 0x7f7f3effd700 (LWP 19967) 0x00007f7f50ceba4a in __waitpid (pid=19966, stat_loc=
8 Thread 0x7f7f3e7fc700 (LWP 19969) 0x00007f7f50ceba4a in __waitpid (pid=19968, stat_loc=
9 Thread 0x7f7f3dffb700 (LWP 19971) 0x00007f7f50ceba4a in __waitpid (pid=19970, stat_loc=
10 Thread 0x7f7f3d7fa700 (LWP 19973) 0x00007f7f50ceba4a in __waitpid (pid=19972, stat_loc=
11 Thread 0x7f7f3cff9700 (LWP 19975) 0x00007f7f50ceba4a in __waitpid (pid=19974, stat_loc=
12 Thread 0x7f7f2bfff700 (LWP 19977) 0x00007f7f50ceba4a in __waitpid (pid=19976, stat_loc=
13 Thread 0x7f7f2b7fe700 (LWP 19979) 0x00007f7f50ceba4a in __waitpid (pid=19978, stat_loc=
14 Thread 0x7f7f2affd700 (LWP 19981) 0x00007f7f50ceba4a in __waitpid (pid=19980, stat_loc=
15 Thread 0x7f7f2a7fc700 (LWP 19983) 0x00007f7f50ceba4a in __waitpid (pid=19982, stat_loc=
16 Thread 0x7f7f29ffb700 (LWP 19985) 0x00007f7f50ceba4a in __waitpid (pid=19984, stat_loc=
17 Thread 0x7f7f297fa700 (LWP 19988) 0x00007f7f50ceba4a in __waitpid (pid=19987, stat_loc=
Kenneth Loafman (kenneth-loafman) wrote : | #27 |
I think this is a duplicate of https:/
There are three options:
* Release tarball Install - https:/
* Daily duplicity builds - https:/
* Stable duplicity builds - https:/
NOTE: UNinstall duplicity first if it was installed via the distribution repository. For Ubuntu, that would be "sudo apt-get purge duplicity".
Changed in duplicity: | |
milestone: | none → 0.7.17 |
Václav Haisman (vzeman79) wrote : | #28 |
@Kenneth: The call stack is clearly different. Also, it does not explain the hanging threads in Duplicity and processes of GPG waiting on pipe write to return. Also, I have been running the PPA version last few months.
Kenneth Loafman (kenneth-loafman) wrote : | #29 |
Whoops! You are correct. I thought you were on 0.7.10 from a previous
message.
OK, what I need to see is:
- A debug run (-v9) with the first 200 lines and the last 200 lines,
- OS version, Python version, memory size.
On Mon, Jan 22, 2018 at 11:01 AM, Václav Haisman <email address hidden> wrote:
> @Kenneth: The call stack is clearly different. Also, it does not explain
> the hanging threads in Duplicity and processes of GPG waiting on pipe
> write to return. Also, I have been running the PPA version last few
> months.
>
> --
> You received this bug notification because you are a bug assignee.
> https:/
>
> Title:
> error: can't start new thread
>
> Status in Duplicity:
> In Progress
> Status in deja-dup package in Ubuntu:
> Confirmed
> Status in duplicity package in Ubuntu:
> In Progress
>
> Bug description:
> $ uname -a
> Linux mbpr13b 4.13.0-16-generic #19-Ubuntu SMP Wed Oct 11 18:35:14 UTC
> 2017 x86_64 x86_64 x86_64 GNU/Linux
>
> duplicity gets started daily via deja-dup automatically.
>
> Every now and then (approx. every third time) I get the following
> error:
>
> ------------------
>
> Failed with an unknown error.
>
> Traceback (most recent call last):
> File "/usr/bin/
> with_tempdir(main)
> File "/usr/bin/
> fn()
> File "/usr/bin/
> do_backup(action)
> File "/usr/bin/
> restore(col_stats)
> File "/usr/bin/
> restore_
> File "/usr/lib/
> 560, in Write_ROPaths
> for ropath in rop_iter:
> File "/usr/lib/
> 523, in integrate_
> for patch_seq in collated:
> File "/usr/lib/
> 389, in yield_tuples
> setrorps(overflow, elems)
> File "/usr/lib/
> 378, in setrorps
> elems[i] = iter_list[i].next()
> File "/usr/lib/
> 107, in filter_path_iter
> for path in path_iter:
> File "/usr/lib/
> 121, in difftar2path_iter
> tarinfo_list = [tar_iter.next()]
> File "/usr/lib/
> 339, in next
> self.set_tarfile()
> File "/usr/lib/
> 333, in set_tarfile
> self.current_fp = self.fileobj_
> File "/usr/bin/
> manifest.
> File "/usr/bin/
> fileobj = tdp.filtered_
> File "/usr/lib/
> 119, in filtered_
> fh = FileobjHooked(
> File "/usr/lib/
Václav Haisman (vzeman79) wrote : | #30 |
So, I have been experimenting. I have removed ulimit -v 100...0 out of the command line because I have unlimited limit by default. What I have added though is ulimit -s 16384 which doubles stack limit and I have also ulimit -n 2048 to double file limit. Todays backup passed without the usual exception.
I suggest others do the same. Find out file handle limits and stack size limits and try again with doubled values. And remove the VM limit if it actually sets a limit from unlimited.
Kenneth Loafman (kenneth-loafman) wrote : | #31 |
Thanks for catching that. Was the system installed with those limits, or
had you put them in earlier? I've never seen a distro that tried to limit
virtual memory.
On Wed, Jan 24, 2018 at 12:40 AM, Václav Haisman <email address hidden> wrote:
> So, I have been experimenting. I have removed ulimit -v 100...0 out of
> the command line because I have unlimited limit by default. What I have
> added though is ulimit -s 16384 which doubles stack limit and I have
> also ulimit -n 2048 to double file limit. Todays backup passed without
> the usual exception.
>
> I suggest others do the same. Find out file handle limits and stack size
> limits and try again with doubled values. And remove the VM limit if it
> actually sets a limit from unlimited.
>
> --
> You received this bug notification because you are a bug assignee.
> https:/
>
> Title:
> error: can't start new thread
>
> Status in Duplicity:
> In Progress
> Status in deja-dup package in Ubuntu:
> Confirmed
> Status in duplicity package in Ubuntu:
> In Progress
>
> Bug description:
> $ uname -a
> Linux mbpr13b 4.13.0-16-generic #19-Ubuntu SMP Wed Oct 11 18:35:14 UTC
> 2017 x86_64 x86_64 x86_64 GNU/Linux
>
> duplicity gets started daily via deja-dup automatically.
>
> Every now and then (approx. every third time) I get the following
> error:
>
> ------------------
>
> Failed with an unknown error.
>
> Traceback (most recent call last):
> File "/usr/bin/
> with_tempdir(main)
> File "/usr/bin/
> fn()
> File "/usr/bin/
> do_backup(action)
> File "/usr/bin/
> restore(col_stats)
> File "/usr/bin/
> restore_
> File "/usr/lib/
> 560, in Write_ROPaths
> for ropath in rop_iter:
> File "/usr/lib/
> 523, in integrate_
> for patch_seq in collated:
> File "/usr/lib/
> 389, in yield_tuples
> setrorps(overflow, elems)
> File "/usr/lib/
> 378, in setrorps
> elems[i] = iter_list[i].next()
> File "/usr/lib/
> 107, in filter_path_iter
> for path in path_iter:
> File "/usr/lib/
> 121, in difftar2path_iter
> tarinfo_list = [tar_iter.next()]
> File "/usr/lib/
> 339, in next
> self.set_tarfile()
> File "/usr/lib/
> 333, in set_tarfile
> self.current_fp = self.fileobj_
> File "/usr/bin/
> manifest.
> File "/usr/bin/
> fileobj = tdp.filtered_
> File "/u...
Václav Haisman (vzeman79) wrote : | #32 |
@Kenneth: The -v limit was suggested in comment #19.
Kenneth Loafman (kenneth-loafman) wrote : | #33 |
That does explain why you can't open more gpg threads. Each instance of gpg will take several file handles and eats more resources.
I'm going to leave this open for now. Perhaps duplicity should put out a warning after this error telling people to increase their num-files limits, or something similar.
Wolf Rogner (war-rsb) wrote : | #34 |
I cannot confirm that ulimit -s 16384 will heal the issue (suggested in #30). I have inserted ulimit -s 16384 to no avail.
Exec=sh -c "ulimit -v 1000000; ulimit -s 16384; ulimit -n 4096; exec /usr/lib/
-> still causes the issue.
Trying to check my file count I realized that Nautilus interupts file count and restarts regularly. This behaviour might be triggered by several symlinks.
Can it be that duplicity tries to follow a directory structure and gets confused if circular references via symlinks exist?
If so, I have to draw a link tree for further analysis.
Václav Haisman (vzeman79) wrote : | #35 |
On 26 January 2018 at 11:59, Wolf Rogner wrote:
> I cannot confirm that ulimit -s 16384 will heal the issue (suggested in
> #30). I have inserted ulimit -s 16384 to no avail.
>
> Exec=sh -c "ulimit -v 1000000; ulimit -s 16384; ulimit -n 4096; exec
> /usr/lib/
Can you try without the ulimit -v 1000000?
Have you killed the existing deja-dup-monitor process first?
What's your ulimit -a output?
>
> -> still causes the issue.
>
> Trying to check my file count I realized that Nautilus interupts file
> count and restarts regularly. This behaviour might be triggered by
> several symlinks.
>
> Can it be that duplicity tries to follow a directory structure and gets
> confused if circular references via symlinks exist?
>
> If so, I have to draw a link tree for further analysis.
>
Wolf Rogner (war-rsb) wrote : | #36 |
Sorry for the delay, I wanted to make sure my answer is accurate.
I have three machines set up with 17.10 afresh.
mbpr13a 8GB, 4.13.0-25-generic
mbpr15a 16GB, 4.13.0-25-generic
mbpr13b 16GB, 4.13.0-32-generic
mbpr15a does backups ooB
mbpr13a/b have the reported issue
The original line in /etc/xdg/
Exec=sh -c "ulimit -v 1000000; exec /usr/lib/
leads to the issue
Setting ulimit -n or ulimit -s additionally does not remedy the error
This line worked
Exec=sh -c "ulimit -s 16384; ulimit -n 4096; exec /usr/lib/
@Vaclav #35: I always test after reboot and consequently after suspend to RAM.
The solution works under those conditions.
What irritates my: mbpr15a works with the original line. ???
Kenneth Loafman (kenneth-loafman) wrote : | #37 |
It's probably the -n option (number of open files). The default is 1024
and that's way too low.
On Sun, Jan 28, 2018 at 4:07 AM, Wolf Rogner <email address hidden> wrote:
> Sorry for the delay, I wanted to make sure my answer is accurate.
>
> I have three machines set up with 17.10 afresh.
> mbpr13a 8GB, 4.13.0-25-generic
> mbpr15a 16GB, 4.13.0-25-generic
> mbpr13b 16GB, 4.13.0-32-generic
>
> mbpr15a does backups ooB
> mbpr13a/b have the reported issue
>
> The original line in
> /etc/xdg/
>
> Exec=sh -c "ulimit -v 1000000; exec /usr/lib/
> /deja-dup-monitor"
>
> leads to the issue
>
> Setting ulimit -n or ulimit -s additionally does not remedy the error
>
> This line worked
>
> Exec=sh -c "ulimit -s 16384; ulimit -n 4096; exec /usr/lib/
> gnu/deja-
>
> @Vaclav #35: I always test after reboot and consequently after suspend to
> RAM.
> The solution works under those conditions.
>
> What irritates my: mbpr15a works with the original line. ???
>
> --
> You received this bug notification because you are a bug assignee.
> https:/
>
> Title:
> error: can't start new thread
>
> Status in Duplicity:
> In Progress
> Status in deja-dup package in Ubuntu:
> Confirmed
> Status in duplicity package in Ubuntu:
> In Progress
>
> Bug description:
> $ uname -a
> Linux mbpr13b 4.13.0-16-generic #19-Ubuntu SMP Wed Oct 11 18:35:14 UTC
> 2017 x86_64 x86_64 x86_64 GNU/Linux
>
> duplicity gets started daily via deja-dup automatically.
>
> Every now and then (approx. every third time) I get the following
> error:
>
> ------------------
>
> Failed with an unknown error.
>
> Traceback (most recent call last):
> File "/usr/bin/
> with_tempdir(main)
> File "/usr/bin/
> fn()
> File "/usr/bin/
> do_backup(action)
> File "/usr/bin/
> restore(col_stats)
> File "/usr/bin/
> restore_
> File "/usr/lib/
> 560, in Write_ROPaths
> for ropath in rop_iter:
> File "/usr/lib/
> 523, in integrate_
> for patch_seq in collated:
> File "/usr/lib/
> 389, in yield_tuples
> setrorps(overflow, elems)
> File "/usr/lib/
> 378, in setrorps
> elems[i] = iter_list[i].next()
> File "/usr/lib/
> 107, in filter_path_iter
> for path in path_iter:
> File "/usr/lib/
> 121, in difftar2path_iter
> tarinfo_list = [tar_iter.next()]
> File "/usr/lib/
> 339, in next
> self.set_tarfile()
> File "/usr/lib/
> 333, in set_ta...
Wolf Rogner (war-rsb) wrote : | #38 |
Just adding -n 4096 or -s 16384 alone or in combination does not do the trick.
Only adding these two PLUS removing -v 1000000 works.
This and the fact that on my mbpr15a the original line works fine confuses me.
This seems to be a regression introduced by a fix for bug #1302416.
Changed in deja-dup (Ubuntu): | |
status: | Confirmed → Triaged |
importance: | Undecided → Critical |
tags: | added: regression-release |
Kenneth Loafman (kenneth-loafman) wrote : | #40 |
Please upgrade to the current version of duplicity, 0.7.16. This will assure that any bugs fixed since your release are available and may fix your issue. This applies especially to duplicity versions between 0.7.03 and 0.7.14 inclusive. There was a fix in 0.7.15 that reduced memory usage drastically, and will help with memory errors and inability to start new threads.
The bug that was resolved in 0.7.15:
* Fixed bug #1720159 - Cannot allocate memory with large manifest file since 0.7.03
- filelist is not read if --file-changed option in collection-status not present
- This will keep memory usage lower in non collection-status operations
There are three options:
* Release tarball Install - https:/
* Daily duplicity builds - https:/
* Stable duplicity builds - https:/
NOTE: UNinstall duplicity first if it was installed via the distribution repository. For Ubuntu, that would be "sudo apt-get purge duplicity".
Michael Terry (mterry) wrote : | #41 |
I'd also be curious if this is because of duplicity <0.7.16 or because of the ulimit line we use for deja-dup-monitor. It's not clear to me if I should change the ulimit line or if we just need to update duplicity for those users affected.
Kenneth Loafman (kenneth-loafman) wrote : | #42 |
I would bet the update will fix it. Huge manifests go into memory, in
bulk, and in lists. The lists stay around and if Python GC is not working
properly, the bulk reads do as well. During processing, there were as many
as 3 copies of the manifest in memory, one bulk, one the result of re
iteration, and the other in the collection list. That kind of misuse can
really screw up GC.
As answer to your question, changing to 'ulimit -n 10240' could help in a
very cases, but I would try both individually to see which one does the job.
If they are still on the 0.6-series, the 'ulimit' fix is the only one that
would work.
On Sun, Feb 11, 2018 at 12:34 PM, Michael Terry <email address hidden> wrote:
> I'd also be curious if this is because of duplicity <0.7.16 or because
> of the ulimit line we use for deja-dup-monitor. It's not clear to me if
> I should change the ulimit line or if we just need to update duplicity
> for those users affected.
>
> --
> You received this bug notification because you are a bug assignee.
> https:/
>
> Title:
> error: can't start new thread
>
> Status in Duplicity:
> In Progress
> Status in deja-dup package in Ubuntu:
> Triaged
> Status in duplicity package in Ubuntu:
> In Progress
>
> Bug description:
> $ uname -a
> Linux mbpr13b 4.13.0-16-generic #19-Ubuntu SMP Wed Oct 11 18:35:14 UTC
> 2017 x86_64 x86_64 x86_64 GNU/Linux
>
> duplicity gets started daily via deja-dup automatically.
>
> Every now and then (approx. every third time) I get the following
> error:
>
> ------------------
>
> Failed with an unknown error.
>
> Traceback (most recent call last):
> File "/usr/bin/
> with_tempdir(main)
> File "/usr/bin/
> fn()
> File "/usr/bin/
> do_backup(action)
> File "/usr/bin/
> restore(col_stats)
> File "/usr/bin/
> restore_
> File "/usr/lib/
> 560, in Write_ROPaths
> for ropath in rop_iter:
> File "/usr/lib/
> 523, in integrate_
> for patch_seq in collated:
> File "/usr/lib/
> 389, in yield_tuples
> setrorps(overflow, elems)
> File "/usr/lib/
> 378, in setrorps
> elems[i] = iter_list[i].next()
> File "/usr/lib/
> 107, in filter_path_iter
> for path in path_iter:
> File "/usr/lib/
> 121, in difftar2path_iter
> tarinfo_list = [tar_iter.next()]
> File "/usr/lib/
> 339, in next
> self.set_tarfile()
> File "/usr/lib/
> 333, in set_tarfile
> self.current_fp = self.fileobj_
> File "/usr/bin/
Changed in duplicity: | |
milestone: | 0.7.17 → none |
Kenneth Loafman (kenneth-loafman) wrote : | #43 |
I think this is fixed in the latest releases, however, the OPs are not responding and I have no test case to run against. Marking this incomplete until someone can confirm that it does not work on 0.7.17 and later.
Changed in duplicity: | |
assignee: | Kenneth Loafman (kenneth-loafman) → nobody |
status: | In Progress → Incomplete |
Miles (milesbeck) wrote : | #44 |
I'm also seeing this issue and I just purged Duplicity and then added it back with the PPA and I am still seeing the issue. I am using 0.7.17 now. What information can I provide to help fix this?
Ubuntu Version: UbuntuMate 17.10
uname -a
Linux 4.13.0-36-generic #40-Ubuntu SMP Fri Feb 16 20:07:48 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
ulimit -v
unlimited
ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 31429
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 31429
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
Kenneth Loafman (kenneth-loafman) wrote : | #45 |
Try upping your ulimit on num files from 1024 to 8192 or higher.
To do this for duplicity, run like so:
$ ulimit -n 8192
$ duplicity ...
To set this system wide see:
https:/
On Tue, Mar 6, 2018 at 9:06 PM, Miles <email address hidden> wrote:
> I'm also seeing this issue and I just purged Duplicity and then added it
> back with the PPA and I am still seeing the issue. I am using 0.7.17
> now. What information can I provide to help fix this?
>
> Ubuntu Version: UbuntuMate 17.10
>
> uname -a
> Linux 4.13.0-36-generic #40-Ubuntu SMP Fri Feb 16 20:07:48 UTC 2018 x86_64
> x86_64 x86_64 GNU/Linux
>
> ulimit -v
> unlimited
>
> ulimit -a
> core file size (blocks, -c) 0
> data seg size (kbytes, -d) unlimited
> scheduling priority (-e) 0
> file size (blocks, -f) unlimited
> pending signals (-i) 31429
> max locked memory (kbytes, -l) 64
> max memory size (kbytes, -m) unlimited
> open files (-n) 1024
> pipe size (512 bytes, -p) 8
> POSIX message queues (bytes, -q) 819200
> real-time priority (-r) 0
> stack size (kbytes, -s) 8192
> cpu time (seconds, -t) unlimited
> max user processes (-u) 31429
> virtual memory (kbytes, -v) unlimited
> file locks (-x) unlimited
>
> --
> You received this bug notification because you are subscribed to
> duplicity in Ubuntu.
> https:/
>
> Title:
> error: can't start new thread
>
> Status in Duplicity:
> Incomplete
> Status in deja-dup package in Ubuntu:
> Triaged
> Status in duplicity package in Ubuntu:
> In Progress
>
> Bug description:
> $ uname -a
> Linux mbpr13b 4.13.0-16-generic #19-Ubuntu SMP Wed Oct 11 18:35:14 UTC
> 2017 x86_64 x86_64 x86_64 GNU/Linux
>
> duplicity gets started daily via deja-dup automatically.
>
> Every now and then (approx. every third time) I get the following
> error:
>
> ------------------
>
> Failed with an unknown error.
>
> Traceback (most recent call last):
> File "/usr/bin/
> with_tempdir(main)
> File "/usr/bin/
> fn()
> File "/usr/bin/
> do_backup(action)
> File "/usr/bin/
> restore(col_stats)
> File "/usr/bin/
> restore_
> File "/usr/lib/
> 560, in Write_ROPaths
> for ropath in rop_iter:
> File "/usr/lib/
> 523, in integrate_
> for patch_seq in collated:
> File "/usr/lib/
> 389, in yield_tuples
> setrorps(overflow, elems)
> File "/usr/lib/
> 378, in setrorps
> elems[i] = iter_list[i].next()
> F...
Miles (milesbeck) wrote : | #46 |
I'm unable to increase the ulimit on my system. I've added the new size in limits.conf but that does not help. Running the command manually gives me a permissions error with files open. At this point the upgrade to 0.7.17 did not help so it appears something else need to be look at.
Changed in duplicity: | |
status: | Incomplete → Confirmed |
assignee: | nobody → Kenneth Loafman (kenneth-loafman) |
assignee: | Kenneth Loafman (kenneth-loafman) → nobody |
assignee: | nobody → Kenneth Loafman (kenneth-loafman) |
status: | Confirmed → In Progress |
Kenneth Loafman (kenneth-loafman) wrote : | #47 |
It's odd you would get an error on 'ulimit -n 8192'.
Do it again and paste in the full error message.
As to limits.conf, did you logout and log back in?
Do a 'ulimit -a' paste that in as well.
Miles (milesbeck) wrote : | #48 |
~$ ulimit -n 8192
bash: ulimit: open files: cannot modify limit: Operation not permitted
~$ ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 31429
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 31429
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
I did log out when initially adding to limits.conf. I've also rebooted a few times since this was added.
At the end of the limits.conf I have the following:
#@student hard nproc 20
#@faculty soft nproc 20
#@faculty hard nproc 50
#ftp hard nproc 0
#ftp - chroot /ftp
#@student - maxlogins 4
* soft nofile 10240
* hard nofile 10240
# End of file
Kenneth Loafman (kenneth-loafman) wrote : | #49 |
See this: https:/
Let me know if it works.
Miles (milesbeck) wrote : | #50 |
I was able to get the open files changed to 65535 using the above link. Today after I started my computer I got the same error I've been getting about not being able to create a new thread.
~$ ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 31429
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 65535
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 31429
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
Error I see when the backup runs automatically.
Traceback (innermost last):
File "/usr/bin/
with_
File "/usr/bin/
fn()
File "/usr/bin/
do_
File "/usr/bin/
restore(
File "/usr/bin/
restore_
File "/usr/lib/
for ropath in rop_iter:
File "/usr/lib/
for patch_seq in collated:
File "/usr/lib/
setrorps(
File "/usr/lib/
elems[i] = iter_list[i].next()
File "/usr/lib/
for path in path_iter:
File "/usr/lib/
tarinfo_list = [tar_iter.next()]
File "/usr/lib/
self.
File "/usr/lib/
self.current_fp = self.fileobj_
File "/usr/bin/
manifest.
File "/usr/bin/
fileobj = tdp.filtered_
File "/usr/lib/
fh = FileobjHooked(
File "/usr/lib/
return gpg.GPGFile(False, self, gpg_profile)
File "/usr/lib/
'logger': self.logger_fp})
File "/usr/lib/
create_fhs, attach_fhs)
File "/usr/lib/
...
Kenneth Loafman (kenneth-loafman) wrote : | #51 |
A few more requests then:
What command are you running? Full command line please.
How much memory do you have available to duplicity?
Is it being run under Deja-Dup, cron, or command line?
Miles (milesbeck) wrote : | #52 |
>A few more requests then:
>What command are you running? Full command line please.
This is running through deja-dup on start-up. The command that it's using is:
sh -c "ulimit -v 1000000; exec /usr/lib/
>How much memory do you have available to duplicity?
Not sure if this is what you want but this is what 'free -m' shows.
free -m
total used free shared buff/cache available
Mem: 7912 4373 415 145 3123 4241
Swap: 8127 0 8127
>Is it being run under Deja-Dup, cron, or command line?
Deja-Dup
Kenneth Loafman (kenneth-loafman) wrote : | #53 |
Try this then:
sh -c "ulimit -v 1000000; ulimit -n 8192; exec /usr/lib/
It adds the ulimit -n call and may do what you need now that the systemd settings are in place.
Kenneth Loafman (kenneth-loafman) wrote : | #54 |
Try running the command as:
DEJA_DUP_DEBUG=1 sh -c "ulimit -v 1000000; ulimit -n 8192; exec /usr/lib/
/deja-dup/
This will create a large debug log in ~/.cache/deja-dup/. Please add that as an attachment to this bug report.
Miles (milesbeck) wrote : | #55 |
>Try this then:
>sh -c "ulimit -v 1000000; ulimit -n 8192; exec /usr/lib/
>It adds the ulimit -n call and may do what you need now that the systemd settings are in place.
I added this and the backup did not start automatically yesterday so I tried to run it manually and am getting the permission error again:
~$ sh -c "ulimit -v 1000000; ulimit -n 8192; exec /usr/lib/
/deja-dup/
sh: 1: exec: /usr/lib/
>Try running the command as:
>DEJA_DUP_DEBUG=1 sh -c "ulimit -v 1000000; ulimit -n 8192; exec /usr/lib/
/deja-dup/
>This will create a large debug log in ~/.cache/deja-dup/. Please add that as an attachment to this bug report.
The above command also gives me a permission error:
~$ DEJA_DUP_DEBUG=1 sh -c "ulimit -v 1000000; ulimit -n 8192; exec /usr/lib/
/deja-dup/
sh: 1: exec: /usr/lib/
Trying the same command without the 'ulimit -n 8182' also gives me a permission error:
~$ DEJA_DUP_DEBUG=1 sh -c "ulimit -v 1000000; exec /usr/lib/
/deja-dup/
sh: 1: exec: /usr/lib/
I'm not sure what's going on now. I was getting permission errors as shown above. I tried the commands using 'su' and that did not help either. Then I tried taking my original command that would auto-start the backup and that did not error but also did not start anything. Then I tried all the commands above with the logging and that did not give the permission but it also did not create a log that I can find.
Kenneth Loafman (kenneth-loafman) wrote : | #56 |
From the permissions error message it looks like you tried to run that as yourself. Try going into root and running the commands again.
Changed in duplicity: | |
milestone: | none → 0.7.18 |
Changed in duplicity: | |
milestone: | 0.7.18 → none |
assignee: | Kenneth Loafman (kenneth-loafman) → nobody |
Changed in duplicity: | |
status: | In Progress → Fix Released |
I doubt this being a duplicate:
The error message differs and it only happens when deja-dup starts automatically.
When launched manually, deja-dup and duplicity work fine.
Currently only the first automatic launch after a reboot works. Every other attempt leads to the above mentioned error.