GithubHelp home page GithubHelp logo

Comments (7)

upa avatar upa commented on May 27, 2024

Hi,

Could you please show the output of mscp with -vvv option and the output of ls -l /localcache/** to investigate the issue.

from mscp.

ayushbindlish avatar ayushbindlish commented on May 27, 2024

@upa
This is just before the kill:
image

 ls -l /localcache/**
-rw-r--r-- 1 root root     0 Dec 11 11:27 /localcache/245ceadc-de14-43dd-856c-cdf2b13c41b4.aux
-rw-r--r-- 1 root root     0 Dec 11 11:27 /localcache/245ceadc-de14-43dd-856c-cdf2b13c41b4.value
-rw-r--r-- 1 root root     0 Dec 11 11:27 /localcache/8efbfc36-40e6-47c2-9b4a-57b95171bcb4.aux
-rw-r--r-- 1 root root     0 Dec 11 11:27 /localcache/8efbfc36-40e6-47c2-9b4a-57b95171bcb4.value
-rw-r--r-- 1 root root 20480 Dec 11 11:27 /localcache/cache.db
-rw-r--r-- 1 root root    33 Dec 28 08:44 /localcache/dovertestbucket.md5sum
-rw-r--r-- 1 root root     0 Dec 11 06:06 /localcache/nvme_stash

/localcache/dovertestbucket:
total 4
drwxr-xr-x 56 root root 4096 Dec 20 11:40 atlassian

mscp_verbose.log.tar.gz

Also, another observation is that if the directory already exists at the destination, it messes up the location.

This is the command I used:
mscp -vvv -i test.pem /localcache/ [email protected]:/tmp/stash |tee mscp_verbose.log

On the second run it created ocalcache dir on remote host:

 ls -lart ./**
-rw-r--r-- 1 ubuntu ubuntu    0 Jan  9 20:17 ./245ceadc-de14-43dd-856c-cdf2b13c41b4.aux
-rw-r--r-- 1 ubuntu ubuntu   33 Jan  9 20:17 ./dovertestbucket.md5sum

./dovertestbucket:
total 12
drwxrwxr-x  3 ubuntu ubuntu 4096 Jan  9 20:17 .
drwxrwxr-x 12 ubuntu ubuntu 4096 Jan  9 20:17 atlassian
drwxrwxr-x  4 ubuntu ubuntu 4096 Jan  9 20:18 ..

./ocalcache:
total 16
drwxrwxr-x 4 ubuntu ubuntu 4096 Jan  9 20:18 ..
-rw-r--r-- 1 ubuntu ubuntu   33 Jan  9 20:18 dovertestbucket.md5sum
-rw-r--r-- 1 ubuntu ubuntu    0 Jan  9 20:18 245ceadc-de14-43dd-856c-cdf2b13c41b4.aux
drwxrwxr-x 3 ubuntu ubuntu 4096 Jan  9 20:18 .
drwxrwxr-x 3 ubuntu ubuntu 4096 Jan  9 20:18 dovertestbucket

from mscp.

upa avatar upa commented on May 27, 2024

Hi,

Thank you for the screenshot and logs. I have determined the reason of OOM. I will fix it soon.

On the second run it created ocalcache dir on remote host:

This is an expected behavior. scp also does so.

# Initial setup: There is srcdir and no dstdir.
ryzen1 ~ > mkdir srcdir
ryzen1 ~ > echo asdf > srcdir/asdf
ryzen1 ~ > ll srcdir
total 4.0K
-rw-rw-r-- 1 upa upa 5 Jan 10 21:18 asdf
ryzen1 ~ > ll dstdir
ls: cannot access 'dstdir': No such file or directory

# scp srcdir as dstdir. So, there is dstdir including the file asdf.
ryzen1 ~ > scp -r srcdir localhost:dstdir
asdf                                          100%    5    63.2KB/s   00:00    
ryzen1 ~ > ll dstdir
total 4.0K
-rw-rw-r-- 1 upa upa 5 Jan 10 21:18 asdf

# scp srcdir as dstdir again. As a result, there is srcdir under dstdir.
ryzen1 ~ > scp -r srcdir localhost:dstdir
asdf                                          100%    5    65.0KB/s   00:00    
ryzen1 ~ > ll dstdir/
total 8.0K
-rw-rw-r-- 1 upa upa    5 Jan 10 21:18 asdf
drwxrwxr-x 2 upa upa 4.0K Jan 10 21:18 srcdir

from mscp.

ayushbindlish avatar ayushbindlish commented on May 27, 2024

@upa For the second issue mscp seems to be creating the dir with a wrong name. The expected dir is "localcache" and it ends up creating "ocalcache"

from mscp.

upa avatar upa commented on May 27, 2024

Oh, I see. will investigate.

from mscp.

upa avatar upa commented on May 27, 2024

The dev branch now includes the fixes for both issues (the truncated remote dir name and OOM). Could you clone and build the dev branch, and test it in your environment? The OOM issue depends on the number of files being copied. I guess the fixed version should be suitable for almost all cases including yours. If it is ok, I will merge it into the main branch and make a new release.

from mscp.

upa avatar upa commented on May 27, 2024

Hi @ayushbindlish

I created the new release v0.1.3 including the fixes for this issue, and it is available on homebrew and ubuntu ppa. I believe the issues are resolved in your env, but if not, please make a new issue with detailed information.

Thanks.

from mscp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.