Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Lftp commands leave defunct processes #689

Open
sernad opened this issue Jan 6, 2023 · 1 comment
Open

[BUG] Lftp commands leave defunct processes #689

sernad opened this issue Jan 6, 2023 · 1 comment

Comments

@sernad
Copy link

sernad commented Jan 6, 2023

Hi happy new year :D, we recently noticed that after running commands such as:

  • mkdir -p -f "/destination_route"

  • mirror --verbose=3 --log="/tmp/lftp.log" --no-empty-dirs --no-perms -P 10 -R "/tmp/lftpFile/" "/destination_route/";

Some ssh and sh processes linger after the execution (See image below). The file transfer and directories creation works OK, the problem are the defunct processes
image

We have tested:

  1. Running the lftp commands in a container to only see the new processes and isolate other variables
  2. Running the commands with the -c parameter
  3. Passing parameters in a file
  4. Upgrading lftp to the latest version (4.9.2 at the time of this post)

image

@sernad sernad changed the title [BUG] Lftp commands leave fefunct processes [BUG] Lftp commands leave defunct processes Jan 6, 2023
@alexkorsun
Copy link

alexkorsun commented Aug 7, 2023

We noticed the same issue on our end. Over time the number of processes goes to thousands, so they don't quit.
As an example, there is the command:

lftp -c 'set sftp:auto-confirm yes; set sftp:connect-program "ssh -a -x -i local-private-key" ; open -u "XXX","YYY" sftp://sftp-1:22; cls -1 --date --size -h --perms --block-size 1 ; exit'

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants