Synchronization Failed

Discussions about CSEntry
Post Reply
munirmdee1
Posts: 83
Joined: August 17th, 2015, 9:32 am
Location: Dar es Salaam, Tanzania

Synchronization Failed

Post by munirmdee1 »

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
[color=#800000][size=85][i][b]Munir Mdee
Software Developer (Data Processing)
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[/b][/i][/size][/color]
josh
Posts: 2403
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Synchronization Failed

Post by josh »

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: 83
Joined: August 17th, 2015, 9:32 am
Location: Dar es Salaam, Tanzania

Re: Synchronization Failed

Post by munirmdee1 »

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?
[color=#800000][size=85][i][b]Munir Mdee
Software Developer (Data Processing)
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[/b][/i][/size][/color]
munirmdee1
Posts: 83
Joined: August 17th, 2015, 9:32 am
Location: Dar es Salaam, Tanzania

Re: Synchronization Failed

Post by munirmdee1 »

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:
Screenshot_2016-09-06-16-07-37.png
You do not have the required permissions to view the files attached to this post.
[color=#800000][size=85][i][b]Munir Mdee
Software Developer (Data Processing)
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[/b][/i][/size][/color]
Gregory Martin
Posts: 1971
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Synchronization Failed

Post by Gregory Martin »

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/
Post Reply