Skip to main content
1-Visitor
November 6, 2014
Question

CAD Agent Administration - Trying to configure an Agent, and failing...

  • November 6, 2014
  • 2 replies
  • 9053 views

Hi All,

I'm trying to configure an Agent for Creo 2.0 on a Windchill 10.2 monolithic install. I'm failing.

I've completed the set up using proe2pv_config and ended up with a proe_setup folder that contains a number of batch files that proe2pv_config generated.#

I then go into WC10.2 Worker Agent Administration to configure the new worker. This is where I get lost and confused.

ADD WORKER

I tell it the server name

I tell it the DATATYPE (I've selected PROE)

Worker Location

I tell it where the server is. (The Windchill server)

Worker Execution Command

I'm not too clear about this... I've told it the following;

'C:\ptc\creo_view_adapters\proe_setup\proeworker.bat' (This is where proe2pv_config created the bat file)

I apply the settings, save the file & Return to the Worker Agent Admin screen.

I see the new Agent in the list, Fab! but the Status is "Fails to Start". The flag under Actions is White & the tooltip states; "Executable not Safe".

Additionally the methodserver log has the following entry;

ERROR : wt.wvs.workeragent.ShapeType - Refused to start worker ukbas1wcs2-PROE:1, exe does not match any of the trusted prefixes

Can anyone shed any light on where I might be going wrong?

Many thanks!

2 replies

23-Emerald IV
November 6, 2014

Update or add worker.exe.whitelist.prefixes and worker.exe.whitelist.prefixes.<worker_host> properties in the <WT_HOME>/codebase/WEB-INF/conf/wvs.properties

See https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS140965

1-Visitor
November 6, 2014

Thanks Tom,

I still can't get passed the error! I followed (I think) the example in the link you provided so now my wvs.properties file has the following entry;

worker.exe.whitelist.prefixes=C\:\\ptc\\creo_view_adapters\\proe_setup

this matches the agent.ini file;

[agent]

numworkers=1

port=5600

transferpath=$(wt.temp)\transfer

;

[worker1]

distributed=false

autostart=true

host=MYSERVER

autobusystop=

autoidlestop=

starttime=15

startfromlocal=FALSE

autoerrorstop=false

remotepath=

hosttype=local

localpath=ftp:

exe=C:\ptc\creo_view_adapters\proe_setup\proeworker.bat

password=

maxinstances=1

shapetype=PROE

prompt=

availabletime=

username=

port=601

;

But it still returns the same error and result.

Quite annoying...

Bob.

23-Emerald IV
November 6, 2014

No, you don't list the entire path in the whitelist, only the partial path or drive.

For example, I have the Creo adapters installed on the "E" drive in a folder called "ptc". I have worker.exe.whitelist.prefixes = E:\ptc (use quotes when setting the value)

1-Visitor
November 6, 2014

Hey Bob, this is a long shot, but is the GS Worker Daemon started on your CAD worker machine?

Buddy

1-Visitor
November 6, 2014

Buddy,

I can honestly say that I have no idea! You've now introduced another factor I know nothing about!

How would I go about find out if it's running, and, if it's not, how do I start it?

Many thanks,

Bob

23-Emerald IV
November 6, 2014

When you installed the adapters, did you let it install the worker as a service (it is a checkbox option)?