backup icon indicating copy to clipboard operation
backup copied to clipboard

Unable to use external storage

Open dodedodo opened this issue 3 years ago • 5 comments

I got an sftp external storage configured. I verified it's working by copying data to it trough nextcloud. However, the backup app shows "No external storage available.

My external storage setup: image

Backup app: image (note the 'unable to fetch external storage' message)

I'm running nc v23.0.0 with backup app v1.0.0 through the official docker image with MySQL as database. I cannot see any error messages in nextcloud.log or docker logs (includes apache error and access logs).

EDIT: Upon further inspection I found a failed GET request to https://redacted.tld/ocs/v2.php/apps/backup/external. It's an error 400 with a body

{
   "ocs":{
      "meta":{
         "status":"failure",
         "statuscode":400,
         "message":"no authentication parameters specified"
      },
      "data":[]
      }
}

dodedodo avatar Dec 07 '21 00:12 dodedodo

Do you have anything in nextcloud.log ?

you can also use:

./occ backup:external:list and ./occ backup:external:add

ArtificialOwl avatar Dec 07 '21 11:12 ArtificialOwl

Ok, seems that the RSA private key is not supported

ArtificialOwl avatar Dec 07 '21 11:12 ArtificialOwl

Ok, seems that the RSA private key is not supported

Thanks, this helped me out.

I configured 2 external storages, one with sftp password and the second with sftp RSA private key. The storage app would only work if I removed the sftp RSA private key storage. So it seems RSA private key is not only unsupported, but it breaks the backup app if you use sftp RSA at all.

dodedodo avatar Dec 07 '21 14:12 dodedodo

Same problem on my side. Neither a external SFTP storage with public RSA key or a SFTP storage with private RSA key works. (Backup App v1.0.3)

JoelKle avatar Dec 19 '21 19:12 JoelKle

Idem. External SFTP storage with RSA key doesn't work. (Backup App v1.0.3) +-----------+------+----------------+ | StorageId | Path | Storage Folder | +-----------+------+----------------+ In SFTP.php line 106:

no authentication parameters specified

backup:external:list

pascalrheaume avatar Dec 22 '21 13:12 pascalrheaume