Why is ant script that worked in Harvest R7 failing in Harvest R12 with Broker connection error?

chandrakanth1984's picture

The below ant script is running successfully until yesterday using Harvest 7:

C:\Program Files\CA\SCM\hco.exe" -pn 'Check Out - Read Only' -b '${application.harvest.broker}' -ced -usr '${application.harvest.userId}' -pw '${application.harvest.password}' -en '${application.harvest.environment}' -st '${application.harvest.state}' -vp '${application.harvest.projectdir}' -r -op '${application.harvest.pc}' -sy -cp '${application.checkedout.src}' -s '${application.harvest.filepattern}

But the above ant script is throwing error as below after upgrading to Harvest 12:

E0306003e: Could not connect to Broker: rs2i/haprd5 (Error Code = -306 ).
Error: Could not attach to broker.

I am able to log in with the same broker and credentials to Harvest 12 using CA SCM workbench.

Please help me in this because all our nightly builds stopped due to this.

2 Answers

chandrakanth1984's picture

Hi All,

After Google research, trail and errors ant builds are working fine after the below change,

Deleting the file [b]"HClient.arg"[/b] from the installation folder [b]"C:\Program Files\CA\SCM"[/b] solved the problem fully.

Thanks,
Chandrakanth.

TechWell Contributor's picture

Just wanted to let you know we moved this from CMC Info over to here, the Harvest forum.

Hopefully it will get more eyes on it here.

CMCrossroads is a TechWell community.

Through conferences, training, consulting, and online resources, TechWell helps you develop and deliver great software every day.