Select to view content in your preferred language

10.1 - Cancelling Caching is not Cancelling

3713
6
06-20-2012 10:31 PM
PeterTimmers
Frequent Contributor
I have what looks like rogue caching jobs that won't cancel.

Clicking "Cancel Caching" in Cache Status doesn't work.
Cancelling Job in "Job Status" doesn't work.
Restarting ArcGIS service doesn't work. 

Any ideas?  

Can you go into the jobs directory (cachingtools_gpserver) and have deleting session?

EDIT: And now getting the following error when starting any new caching.
Could not service request. java.rmi.UnmarshalException: Error unmarshaling return header; nested exception is: java.net.SocketException: Connection reset
Tags (2)
0 Kudos
6 Replies
jonathangamble
Regular Contributor
Hi,

From ArcGIS Server Manager, have you tried stopping the CachingTools service?

Jon.
0 Kudos
PeterTimmers
Frequent Contributor
Nope that has no impact.  Mind you there is no (or little) cpu activity after the cancel, even though Caching Status says it's still happening.

There must he a job list somewhere.  I'm thinking it's the following directory.

<directories>\arcgisjobs\system\cachingtools_gpserver

When you start a job the associated job id directory gets created, then a bunch of worker jobs.  

Cancelling was always a bit hit and miss in 10.0... but you could always restart the service.
0 Kudos
jonathangamble
Regular Contributor
Luckily, stopping the caching service has worked for me.  Unfortunately I can't think of what would be causing your issue.  If I remember correctly, 10.1 SP1 will add a job status window where we can see what jobs are currently running - hopefully it also offers an easier way to cancel jobs.

Interested to see if anyone else can offer up some advice.
0 Kudos
MattSimmons
Deactivated User
I had the same issue in my 10.1 dev environment.  Canceling the cache in server manager didn't seem to do anything.  I actually deleted the service, and deleted the cache directories.
Later, on a different service, I canceled a cache using Catalog and it did work - but it took a while for it to wrap up the job.
0 Kudos
GarimaTiwari
Esri Contributor
I have what looks like rogue caching jobs that won't cancel.

Clicking "Cancel Caching" in Cache Status doesn't work.
Cancelling Job in "Job Status" doesn't work.
Restarting ArcGIS service doesn't work. 

Any ideas?  

Can you go into the jobs directory (cachingtools_gpserver) and have deleting session?

EDIT: And now getting the following error when starting any new caching.
Could not service request. java.rmi.UnmarshalException: Error unmarshaling return header; nested exception is: java.net.SocketException: Connection reset


Peter,

Can you try the following steps and let us know the results:
1. Stop System/CachingTools service on ArcGIS Server
2. Delete the contents of the following directory �??arcgisserver/directories/arcgisjobs/sytem/cachingtools_gpserver�?�
3. Start System/CachingTools service on ArcGIS Server
4. Run the following tool form your ArcGIS Desktop, �??Toolboxes > System Toolboxes > Server Tools > Caching > Manage Map Server Cache Status�?� with "Manage Mode" set to "REBUILD_CACHE_STATUS"
5. Re-run the "Manage Map Server Cache Tiles" to generate/update cache on the map/image service.

Best Wishes,
Garima
0 Kudos
GarimaTiwari
Esri Contributor
Luckily, stopping the caching service has worked for me.  Unfortunately I can't think of what would be causing your issue.  If I remember correctly, 10.1 SP1 will add a job status window where we can see what jobs are currently running - hopefully it also offers an easier way to cancel jobs.

Interested to see if anyone else can offer up some advice.


Jon,

This functionality to view cache Job status is already available at 10.1 Final. Please see the following help document for further details:
Step #3 of http://resources.arcgis.com/en/help/main/10.1/index.html#//0154000005p9000000

Best Wishes,
Garima
0 Kudos