corecmd.exe not using correct port

Report client bugs
Locked
PaulLavallee
Posts: 3
Joined: Wed Oct 05, 2011 4:51 pm

corecmd.exe not using correct port

Post by PaulLavallee »

I set up a SSH/SFTP site through the GUI using port 22 and I am able to connect and download files.

When I execute corecmd using the site I created, it tries to connect using port 21 (if I do not specify the -s option) or port 0 (if I do specify the -s option). I know this from the log file.

Does anyone know why corecmd is not using the port I specified in the Site Manager? Is there any way to fix this problem? This site can only be reached through port 22. Below is my exact command:

corecmd.exe -site LOCKBOX -d /home/lockboxPRJ/Subscriber20110913.txt -p d:\sysadmin\ -log d:\sysadmin\FTP.log

I am a registered user, but the support@coreftp.com mailbox is full :(
cp
Posts: 124
Joined: Sun Sep 11, 2011 5:18 am

Post by cp »

Are you using the latest build? There was a registry issue that would show up in builds before 1693 causing the wrong port. The latest build should fix it.

Also consider using -s at the beginning of the command line (silent mode)
PaulLavallee
Posts: 3
Joined: Wed Oct 05, 2011 4:51 pm

Post by PaulLavallee »

I am using build 1695. When I add -s to the command line, it tries to connect using port 0:

corecmd.exe -s -site LOCKBOX -d /home/lockboxPRJ/Subscriber20110913.txt -p d:\sysadmin\ -log d:\sysadmin\FTP.log

Log file:

10/05/11 16:22

Resolving ...

Connect socket #1760 to 10.5.55.201, port 0...Can't establish connection --> :0 @ Wed Oct 05 16:22:27 2011
(0-5)ReconnectRetry #1, Connecting to ...Resolving ...

Connect socket #1760 to 10.5.55.201, port 0...Can't establish connection --> :0 @ Wed Oct 05 16:22:33 2011
(0-5)ReconnectRetry #2, Connecting to ...Resolving ...

Connect socket #1764 to 10.5.55.201, port 0...Can't establish connection --> :0 @ Wed Oct 05 16:22:38 2011
(0-5)Connection Failedsent 14, recd 14

Total uploaded files: 0

Total uploaded data: 0

Total downloaded files: 0

Total downloaded data: 0
cp
Posts: 124
Joined: Sun Sep 11, 2011 5:18 am

Post by cp »

Are you running this from the command line with the same account?

Just wondering if the IP address matches, and if this is pointing to the correct site profile. If you are running it in a script and it is using the system account, it would not be able to see your site profile by default.
PaulLavallee
Posts: 3
Joined: Wed Oct 05, 2011 4:51 pm

Post by PaulLavallee »

Good catch! The IP address is not correct. Although I am running this command line with the same account as I set up the site profile, corecmd is not picking up the correct IP address from the site profile. I do know that corecmd is seeing my site profiles because if I change the corecmd to use the site name "foobar", I get a "Can't find site profile!" message in the log.

Is there some setting that I am missing that would cause this behavior? I have two other corecmd scripts that are working fine, which is why this is so baffling to me.
ForumAdmin
Site Admin
Posts: 987
Joined: Mon Mar 24, 2003 4:37 am

Post by ForumAdmin »

Try renaming the site to something different. There might be a site name matching problem.
Locked