[Solved] FTP connection to NAS fails

On various Hardware and OS systems: pi / windows / routers / nas, etc

Moderator: leecollings

Post Reply
ReneF
Posts: 5
Joined: Friday 29 January 2016 13:46
Target OS: Raspberry Pi / ODroid
Domoticz version: V2.3530
Location: Berkhout
Contact:

[Solved] FTP connection to NAS fails

Post by ReneF »

I implemented the Domoticz_backup.sh script according the Wiki (Daily backup to external hdd) with the only changes made in IP numbers and user name and password.

Running the test via a SSH connection I get a 530 access denied message. (see below) On my NAS the user has all right's for access. Trying the path directly in a web browser works fine, including logging in on the NAS using the username and password

About to connect() to 192.168.1.40 port 21 (#0)
* Trying 192.168.1.40...
* connected
* Connected to 192.168.1.40 (192.168.1.40) port 21 (#0)
* FTP 0x174afb8 state change from STOP to WAIT220
< 220 NASFTPD Turbo station 1.3.5a Server (ProFTPD) [192.168.1.40]
> USER “user”
* FTP 0x174afb8 state change from WAIT220 to USER
< 331 Password required for “user”
> PASS “password”
* FTP 0x174afb8 state change from USER to PASS
< 530 Login incorrect.
* Access denied: 530
* Closing connection #0

Does any one have a suggestion what could be the case?
Last edited by ReneF on Wednesday 03 February 2016 23:00, edited 1 time in total.
pepijn
Posts: 251
Joined: Friday 12 July 2013 13:19
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: FTP connection to NAS fails

Post by pepijn »

Try to remove the quotes
ReneF
Posts: 5
Joined: Friday 29 January 2016 13:46
Target OS: Raspberry Pi / ODroid
Domoticz version: V2.3530
Location: Berkhout
Contact:

Re: FTP connection to NAS fails

Post by ReneF »

Thanks Pepijn.
You're suggestion worked. Maybe a good idea to mention this in the wiki.
Secondly I discovered that the NAS does not allow to write to a directory that is not created before running this script (see below)

> CWD Domoticz_backup
< 550 Domoticz_backup: No such file or directory
* Server denied you to change to the given directory

Rene
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest