Error "Can't establish connection"

Report client bugs
Locked
spieler
Posts: 12
Joined: Wed Sep 07, 2011 8:53 pm

Error "Can't establish connection"

Post by spieler »

I received an error where I couldn't establish a connection. The client had a return code of 0. The other thing that happened is that when the command initially completed the -dira file did not exist although shortly thereafter it did exist. I have three nearly identical find commands that run and the first two returned
File not found - LOGS\DIR_IFDCL2.TXT
but the last one completed successfully. When I looked in the directory, it is now there. Unfortunately, I don't have timestamps in my log to verify with the modified date on the file itself.

Here is the command that I was running.
corecmd.exe -s -site a_Prod -B -OS -newest -p d:\download\IFDCL2 -FN IFDCL2.zip -log logs\log_IFDCL2.txt -dira /ch logs\dir_IFDCL2.txt

Here is the log file
03/29/12 12:00
Resolving a.com...
Connect socket #308 to a.b.c.d, port 20021...Can't establish connection --> a.com:20021 @ Thu Mar 29 12:01:14 2012
(0-38)Connection Faileddirectory errorsent 5, recd 5
Total uploaded files: 0
Total uploaded data: 0
Total downloaded files: 0
Total downloaded data: 0

Thanks,
Gary
ForumAdmin
Site Admin
Posts: 987
Joined: Mon Mar 24, 2003 4:37 am

Post by ForumAdmin »

Currently you can't use the -dir commands with transfer commands (-d -u). They need to be issued separately in different command lines.

Also it's recommended you use the fully qualified path for any log files.
spieler
Posts: 12
Joined: Wed Sep 07, 2011 8:53 pm

Post by spieler »

My statement doesn't actually use -d or -u. I have some scripts to create my command line and even though I list the path in the command line it is ignored. I only empty out the -u or -p. I should also empty out those additional items for clarity, but technically it makes no difference. I could switch to full path names, but that hasn't been an issue. I've been running this command several times a day since October and have only had an issue a few times.
Locked