jotta / jotta-cli-issues

45 stars 1 forks source link

Cannot download archive #129

Closed eljejer closed 3 years ago

eljejer commented 3 years ago

Make sure you are running the latest version of jotta-cli before reporting an issue.

jotta-cli release (jotta-cli version):

[odroid@VEBODROID ~]$ jotta-cli version
-------------------------------------------
jottad executable : /usr/bin/jottad
jottad appdata    : /var/lib/jottad
jottad version    : 0.8.36055
jotta-cli version : 0.8.36055
-------------------------------------------
OK

Description of problem: Over the last months I had 'parked' large (video) files on jottaloud because of storage shortage. Now I have an extra HDD and want to store these files locally again.

I enter the following command to accomplish this:

[odroid@VEBODROID ~]$ jotta-cli download 'Archive/iPhone 7 Plus' /mnt/WD/Vidoes

This gives the follwing (error) output:

the path [/mnt/WD/Vidoes/iPhone 7 Plus] does not exist. do you want to create it?: yes
> starting download Archive/iPhone 7 Plus => /mnt/WD/Vidoes/iPhone 7 Plus
> gathering metadata ... (ctrl-C to cancel)
> encountered error while gathering metadata..
ERROR  failed to start download: PathIsFile: File not found='/lvbaal/Jotta/Archive/iPhone 7 Plus' in path='/archive/iPhone 7 Plus'
XID: WmtHR2VQaHd5SFp5
        Error 1: FILE_NOT_FOUND

Expected: I don't know what's wrong and would expect jotta-cli to download this directory <Archives/iPhone 7 Plus> to my local drive

jotta-cli status (jotta-cli status):

[odroid@VEBODROID ~]$ jotta-cli status
------------------------------------------------------------------------------
 Account   : XXX@pm.me on Jottacloud
 Usage     : 3.73TiB / ( Unlimited )
 Device    : VEBODROID
------------------------------------------------------------------------------
 No folders added to backup yet
------------------------------------------------------------------------------
OK

Relevant logs for the issue (cat ~/.jottad/jottabackup.log)

[odroid@VEBODROID jotta-cli]$ cat ~/.jottad/jottabackup.log
cat: /home/odroid/.jottad/jottabackup.log: No such file or directory
[odroid@VEBODROID jotta-cli]$ 

The machine on which I want to perform the download is not the same as the machine where the backup's originated Traceback

Additional info: I would expect that this scenario, where the backup machine is different from the download machine, would not pose a problem in itself. Is this correct?

eljejer commented 3 years ago

Overview of directories:

odroid@VEBODROID ~]$ jotta-cli ls -l Archive/Video
Name                        Size  Checksum  LastModified  
--------------------------  ----  --------  ------------  
iPhone 7 Plus                                             
iPhone 7 Plus (2019-10-04)                                
Mate 10 Pro                                               
[odroid@VEBODROID ~]$ 
eljejer commented 3 years ago

Oops, forgot part of the path on jottacloud in the download commnand