Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

SFTP Storage not work #2297

Closed
Rainshaw opened this issue Aug 16, 2020 · 4 comments · Fixed by #4024
Closed

SFTP Storage not work #2297

Rainshaw opened this issue Aug 16, 2020 · 4 comments · Fixed by #4024
Assignees
Labels
migrate under review Acknowledged, awaiting further review

Comments

@Rainshaw
Copy link
Contributor

Describe the bug
Due to the clain

Base directory where files will be transferred to. The path must already exists and be writable by the user.

I found that not only base dir need to be create manually but also the sub folders do need!
if there is some dir not exists then will come to

info: (STORAGE/SFTP) Adding page aaa/bbb/ccc.md...
warn: No such file

To Reproduce
Steps to reproduce the behavior:

  1. Go to setting and set up SFTP
  2. Click on RUN
  3. Scroll down to the docker log
  4. See error

Expected behavior
subfolder auto create

Screenshots
If applicable, add screenshots to help explain your problem.

Host Info (please complete the following information):

  • OS: Docker
  • Wiki.js version: 2.4.107
  • Database engine: postgres 11.8

Additional context
Add any other context about the problem here.

@NGPixel NGPixel added the under review Acknowledged, awaiting further review label Aug 23, 2020
@dualmacops
Copy link

dualmacops commented Nov 5, 2020

Same problem.

Host Info:

OS: Docker
Wiki.js version: 2.5.170
Database engine: postgres 11.9

@dualmacops
Copy link

Well the problem is not exactly the same, when i activate the sftp i get:
info: (STORAGE/SFTP) Initializing...
warn: Cannot read property 'message' of null

And when i click export all i get:
info: (STORAGE/SFTP) Exporting all content to the remote server...
info: (STORAGE/SFTP) Adding page home.html...
warn: Cannot read property 'writeFile' of null

@Jamesits
Copy link
Contributor

Can reproduce. If a new folder is created, SFTP storage backend won't create the corresponding directory.
Environment:

  • Wiki.js 2.5.170 (Official Docker image)
  • Database: postgres
  • SFTP backup destination: TrueNAS 12.0 (destination permission set to 700)

@dualmacops
Copy link

For now i fixed my problem by doing a local storage and using RCLONE to move the files to the sftp.
Also i had to use the --sftp-disable-hashcheck in rclone to get it to work, so it might me a SFTP server fault in my case.

@NGPixel NGPixel closed this as completed Mar 21, 2021
@requarks requarks locked and limited conversation to collaborators Mar 21, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
migrate under review Acknowledged, awaiting further review
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants