Hi everyone,
I have a problem here, I developed an Android data entry application using CEntry. It works fine, but when I send data to my ftp server, it displaying an error message saying:
Synchronization error:
Error logging to the server ftp://154.118.226.21/
failed to connect to /154.118.226.21 (port 21) after 10000ms
.
Can someone help me with the above error? what is the reason for that error and how to solve it?
Thanks
Synchronization Failed
-
munirmdee1
- Posts: 79
- Joined: August 17th, 2015, 9:32 am
- Location: Dar es Salaam, Tanzania
Synchronization Failed
Munir Mdee
Software Programmer
National Bureau of Statistic (NBS)
Jakaya Kikwete Road,
P.O.Box 2683,
Dodoma,TANZANIA
Mob: +255 755 740090
Email: munir.mdee@nbs.go.tz
munirmdee@gmail.com
Software Programmer
National Bureau of Statistic (NBS)
Jakaya Kikwete Road,
P.O.Box 2683,
Dodoma,TANZANIA
Mob: +255 755 740090
Email: munir.mdee@nbs.go.tz
munirmdee@gmail.com
-
josh
- Posts: 2403
- Joined: May 5th, 2014, 12:49 pm
- Location: Washington DC
Re: Synchronization Failed
The error means that CSPro could not establish a connection to your FTP server. It could be that the URL is incorrect. It could be that there is a problem with the network connection of your tablet. Could also be an issue with the firewall settings on your FTP server. I would make sure that you can connect using the same URL, username, password using an FTP client (for example FileZilla).
-
munirmdee1
- Posts: 79
- Joined: August 17th, 2015, 9:32 am
- Location: Dar es Salaam, Tanzania
Re: Synchronization Failed
Hi Josh,
Actually I used WinSCP to connect to the server, it connected successful, and I could transfer files from and to. I put Server IP Address 154.118.226.21, username and password the same im using in CSEntry android application PNC file:
.PNC file:-
[SyncFile]
Version=CSPro 6.3
AppName=THIS
[Connection]
Type=FTP
Host=ftp://154.118.226.21/
Username="username hiden"
Password="password hiden"
[Sync]
CreateServerPath=/%AppName%/Data
CreateServerPath=/%AppName%/Data/Arrived
ServerPath=/%AppName%/Data/Arrived
ClientPath=/Data
Put=*.*
In WinSCP it connects as I mentioned above. Can you check that PNC file syntax logic above maybe you can find whats wrong, I just hide username and password?
Actually I used WinSCP to connect to the server, it connected successful, and I could transfer files from and to. I put Server IP Address 154.118.226.21, username and password the same im using in CSEntry android application PNC file:
.PNC file:-
[SyncFile]
Version=CSPro 6.3
AppName=THIS
[Connection]
Type=FTP
Host=ftp://154.118.226.21/
Username="username hiden"
Password="password hiden"
[Sync]
CreateServerPath=/%AppName%/Data
CreateServerPath=/%AppName%/Data/Arrived
ServerPath=/%AppName%/Data/Arrived
ClientPath=/Data
Put=*.*
In WinSCP it connects as I mentioned above. Can you check that PNC file syntax logic above maybe you can find whats wrong, I just hide username and password?
Munir Mdee
Software Programmer
National Bureau of Statistic (NBS)
Jakaya Kikwete Road,
P.O.Box 2683,
Dodoma,TANZANIA
Mob: +255 755 740090
Email: munir.mdee@nbs.go.tz
munirmdee@gmail.com
Software Programmer
National Bureau of Statistic (NBS)
Jakaya Kikwete Road,
P.O.Box 2683,
Dodoma,TANZANIA
Mob: +255 755 740090
Email: munir.mdee@nbs.go.tz
munirmdee@gmail.com
-
munirmdee1
- Posts: 79
- Joined: August 17th, 2015, 9:32 am
- Location: Dar es Salaam, Tanzania
Re: Synchronization Failed
I tried also with FileZilla in my PC, in FileZilla it fails to connect only if I put port 21 which also in my tablet it complains about port 21. But if I put port number 22 in FileZilla it connects successful.
So I think in Android the problem is Port number 21 as it complains about port 21. Now how to change port number in CSEntry Syncronization? Refer to the image below:
So I think in Android the problem is Port number 21 as it complains about port 21. Now how to change port number in CSEntry Syncronization? Refer to the image below:
You do not have the required permissions to view the files attached to this post.
Munir Mdee
Software Programmer
National Bureau of Statistic (NBS)
Jakaya Kikwete Road,
P.O.Box 2683,
Dodoma,TANZANIA
Mob: +255 755 740090
Email: munir.mdee@nbs.go.tz
munirmdee@gmail.com
Software Programmer
National Bureau of Statistic (NBS)
Jakaya Kikwete Road,
P.O.Box 2683,
Dodoma,TANZANIA
Mob: +255 755 740090
Email: munir.mdee@nbs.go.tz
munirmdee@gmail.com
-
Gregory Martin
- Posts: 1948
- Joined: December 5th, 2011, 11:27 pm
- Location: Washington, DC
Re: Synchronization Failed
Here is information on how to specify the port in a FTP address: https://www.cs.tut.fi/~jkorpela/ftpurl.html
So try: ftp://154.118.226.21:22/
So try: ftp://154.118.226.21:22/