SFTP error out on first upload.

Re: SFTP error out on first upload.

Postby Jocko » Tue May 23, 2017 6:23 pm

iamola wrote:I did the additional conf, restarted and here is the log still:
It is not the right log file.
You must search in /tmp/var/log/proftpd/trace.log
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: SFTP error out on first upload.

Postby iamola » Sat May 27, 2017 6:29 pm

I did a grep search and this is the output:

2017-05-23 02:07:18,842 [1639] <sftp:7>: received request: OPEN /XXX/Backups/weekly/2017-05-23/XXX.tar.gz type=unknown;UNIX.mode=0600; (O_WRONLY|O_CREAT|O_TRUNC)
2017-05-23 02:23:02,515 [1723] <sftp:7>: received request: OPEN /XXX/Backups/weekly/2017-05-23/XXX.tar.gz type=unknown;UNIX.mode=0600; (O_WRONLY|O_CREAT|O_TRUNC)
2017-05-23 02:38:50,867 [1799] <sftp:7>: received request: OPEN /XXX/Backups/weekly/2017-05-23/XXX.tar.gz type=unknown;UNIX.mode=0600; (O_WRONLY|O_CREAT|O_TRUNC)
iamola
Donator VIP
Donator VIP
 
Posts: 90
Joined: Thu Sep 11, 2014 1:40 pm

Re: SFTP error out on first upload.

Postby Jocko » Sat May 27, 2017 7:07 pm

Thank Iamola but these lines are ok.

The issue should not be on sftp trace but ssh trace. I assume you must have this line somewhere
Code: Select all
<ssh2:20>: payload len (xxxxxxxxxx bytes) exceeds max payload len (262144), ignoring payload
which cause the line in ftp log "client sent buggy/malicious packet payload length, ignoring".

If you have it please to post more lines around this event :please
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: SFTP error out on first upload.

Postby iamola » Sun May 28, 2017 10:27 am

I tried doing a grep and there is a lot of data. Plus i cannot even open the file with terminal.
Could you help. I am still a no0b when it comes to cmd editting.
iamola
Donator VIP
Donator VIP
 
Posts: 90
Joined: Thu Sep 11, 2014 1:40 pm

Re: SFTP error out on first upload.

Postby Jocko » Sun May 28, 2017 10:32 am

Instead of using a Terminal, you can use cyberduck on a MAC laptop (<=> winscp) to have a GUI.

Then you can easily transfer on your laptop or edit the trace log.


---edit---
cyberduck is not a solution this sftp client failed with the ssh server (at least on a windows environment).
With filezilla, there is no issue (login 'root' and password set for the ssh server, by default is 'giveit2me')
https://filezilla-project.org/download.php?platform=osx
(As previously written filezilla is the best ftp/ftpes/sftp client)

What you can do also is to change the path on trace log.

So in the txt file put
Code: Select all
TraceLog /direct-usb/fvdw/trace.log
Trace scp:20 sftp:20 ssh2:20


Stop/restart the ftp server

Then you should read the file from the share fvdw (or use another one)
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: SFTP error out on first upload.

Postby iamola » Fri Jun 02, 2017 7:18 pm

Ok, going to try that now.
Sorry my macbook crashed so been out of it.
iamola
Donator VIP
Donator VIP
 
Posts: 90
Joined: Thu Sep 11, 2014 1:40 pm

Re: SFTP error out on first upload.

Postby iamola » Fri Jun 02, 2017 8:06 pm

I keep getting this error: Update of the FTP server, error : 1

Even when i change the location from fvdw to another folder. Help. Also, when this happens, FTP does not start.

FYI, running ver 17 now.
iamola
Donator VIP
Donator VIP
 
Posts: 90
Joined: Thu Sep 11, 2014 1:40 pm

Re: SFTP error out on first upload.

Postby Jocko » Fri Jun 02, 2017 8:32 pm

:scratch

Do you succeed to start the FTP server if you reset the option "additional conf file" on the FTP setup menu ?
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: SFTP error out on first upload.

Postby Jocko » Fri Jun 02, 2017 9:23 pm

I understand why you failed to start the server

On my side if I try to do the same thing I got
Code: Select all
2017-06-02 23:11:03,438 Sargas.local proftpd[3609]: error: /direct-usb/fvdw is a world-writable directory
2017-06-02 23:11:03,439 Sargas.local proftpd[3609]: fatal: TraceLog: error using TraceLog '/direct-usb/fvdw/trace.log': Operation not permitted on line 1 of '/share/1004/fvdw/addftp.conf'

As permissions on the share is 777, the server fails to create traceLog.

So
- still in fvdw create a subfolder 'sftplog'
- on a shell terminal set permissions on it
Code: Select all
chmod 755 /direct-usb/fvdw/sftplog

- on your additional conf file, use these new lines
Code: Select all
TraceLog /direct-usb/fvdw/sftplog/trace.log
Trace scp:20 sftp:20 ssh2:20
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: SFTP error out on first upload.

Postby iamola » Sat Jun 03, 2017 12:02 am

Ok, that works.
I'll update you tonight after the backup process runs.
iamola
Donator VIP
Donator VIP
 
Posts: 90
Joined: Thu Sep 11, 2014 1:40 pm

PreviousNext

Return to Development

Who is online

Users browsing this forum: Bing Bot and 3 guests