*** SOLVED *** Secure ftp (sftp) fails to create folders

Issues related to previewing and publishing your web site.
Post Reply
freris
 
 
Posts: 6
Joined: Wed Feb 07, 2018 7:10 pm

*** SOLVED *** Secure ftp (sftp) fails to create folders

Post by freris » Wed Feb 07, 2018 7:16 pm

Hi !
Please i need help for sftp.

During uploading, all in log is Ok. But no folders created to server.
I try to change chmod to 777 but no success.
Only if i first upload all files and folders via FileZilla i have success.

Any help is appreciated.

thank you

User avatar
Pablo
 
Posts: 12179
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Secure ftp (sftp) fails to create folders

Post by Pablo » Wed Feb 07, 2018 7:24 pm

Do you have the full version?
If yes, then what is is the exact error?

Did you it previously work or did it suddenly stop working? In that case it is usually a server related issue.

freris
 
 
Posts: 6
Joined: Wed Feb 07, 2018 7:10 pm

Re: Secure ftp (sftp) fails to create folders

Post by freris » Wed May 09, 2018 2:57 pm

Sorry I'm late to reply. I had a business trip.

Yes, I have the full version (order number 659088xx).

The problem is that does not upload folders except files. That is, it does not create on the server the folders that I have in the project.

No, it never worked. I do not think the problem is on the Server. I normally upload folders with FileZilla.
I do not know the problem but eventually I can not do the job for which I bought the add-on.
If you can fix it, I would be obliged to you.

The Server is Raspberry - pi version 3
Thanks

User avatar
Pablo
 
Posts: 12179
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Secure ftp (sftp) fails to create folders

Post by Pablo » Wed May 09, 2018 3:17 pm

There have not been other users that have this same problem. It seem to work for everyone else.

Maybe the (ftp) user does not have permissions to created folder?
Are there any errors in the publish log?

Can you create folders via the 'Explore' option?

freris
 
 
Posts: 6
Joined: Wed Feb 07, 2018 7:10 pm

Re: Secure ftp (sftp) fails to create folders

Post by freris » Wed May 09, 2018 5:32 pm

Thanks for your answer.

I'll check it out and let you know.

freris
 
 
Posts: 6
Joined: Wed Feb 07, 2018 7:10 pm

Re: Secure ftp (sftp) fails to create folders

Post by freris » Wed May 09, 2018 6:04 pm

Look please.
I attach two photos for you.

I found that always upload folders to /root folder. And files to /srv/http/doct that here is the server folder.

Look at 2 photos please.

Image
Image

Thank you

User avatar
Pablo
 
Posts: 12179
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Secure ftp (sftp) fails to create folders

Post by Pablo » Wed May 09, 2018 6:11 pm

I think you will need to set the home folder of the FTP account to the correct folder (in the server configuration).
The software cannot detect in which folder it is, so it assumes that it's in the root of the website.

freris
 
 
Posts: 6
Joined: Wed Feb 07, 2018 7:10 pm

Re: Secure ftp (sftp) fails to create folders

Post by freris » Wed May 09, 2018 6:20 pm

Ok i will try.

Thank you

freris
 
 
Posts: 6
Joined: Wed Feb 07, 2018 7:10 pm

Solved!: Secure ftp (sftp) fails to create folders

Post by freris » Wed May 09, 2018 6:53 pm

OK Solved. :D

Edit the file /etc/passwd

Changing

root:x:0:0:root:/root:/bin/bash

to

root:x:0:0:root:/srv/http/doct:/bin/bash that /srv/http/doct is my project directory.

And then restart sshd service AND >> ALL IS OK !!

Thank you !!!

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests