Troubleshooting: Cache not Found



The other day, I had trouble logging into Application Designer at a new location. Basically, changing the cache directory is what solved my problem, but here are the details.

Error Message: Could not create shared cache.

The IT staff deleted my profile and reconfigured my App Designer settings, but that did not help.

I found this post, but at the time it had no solution.  So, it really did not help.

So, I went to Configuration Manager and turned on the trace.  I checked “SQL Statement”,”SQL Statement Variables”, and “SQL Informational Trace” for the options.

In the file, I saw a bunch of lines that looked like this:

1-16     07.55.55    0.012000 ERROR: CCacheFile::CCacheFile file C:\\PS\\CACHE\\NDHS\\PDM.KEY open failure : system errno = 9
1-17     07.55.55    0.001000 ERROR: CCacheFile::CCacheFile file C:\\PS\\CACHE\\NDHS\\PDM.DAT open failure : system errno = 9
1-18     07.55.55    0.000000 Cache failed to position to 0 (0x0); arrived at -1 (0xffffffff); errno = 9-Bad file descriptor; file = -1-C:\\PS\\CACHE\\NDHS\\PDM.KEY; _doserrno = 0; GLE() = 183; e:\\pt84710b-retail\\peopletools\\SRC\\psmgr\\cache.cpp, line 2162
1-19     07.55.55    0.000000 ERROR: CCacheFile::Seek file -1:C:\\PS\\CACHE\\NDHS\\PDM.KEY _getosfhandle failed : system errno = 9
1-20     07.55.55    0.000000 ERROR: CCacheFile::Seek file C:\\PS\\CACHE\\NDHS\\PDM.KEY open failure : system errno = 9
1-21     07.55.58    3.321000 Cache failed to position to 0 (0x0); arrived at -1 (0xffffffff); errno = 9-Bad file descriptor; file = -1-C:\\PS\\CACHE\\NDHS\\PDM.KEY; _doserrno = 0; GLE() = 0; e:\\pt84710b-retail\\peopletools\\SRC\\psmgr\\cache.cpp, line 2162

The file ended with:

Cache failed to position to 0 (0x0); arrived at -1 (0xffffffff); errno = 9-Bad file descriptor; file = -1-C:\\PS\\CACHE\\NDHS\\UPM.KEY; _doserrno = 0; GLE() = 183; e:\\pt84710b-retail\\peopletools\\SRC\\psmgr\\cache.cpp, line 2162
1-885    07.56.02    0.000000 ERROR: CCacheFile::Seek file -1:C:\\PS\\CACHE\\NDHS\\UPM.KEY _getosfhandle failed : system errno = 9
1-886    07.56.02    0.000000 ERROR: CCacheFile::Seek file C:\\PS\\CACHE\\NDHS\\UPM.KEY open failure : system errno = 9
1-887    07.56.02    0.000000 error CMgrImp::WriteCache: Unable to open cache
1-888    07.56.02    0.000000 ==================================================================================
1-889    07.56.02    0.000000 C:\\psoft\\bin\\client\\winx86\\pside.exe (9468) crash dump at 2007-09-17 07.56.02.000000
1-890    07.56.02    0.000000
1-891    07.56.02    0.001000 Cur#1.9468.NDHS RC=0 Dur=0.000000 COM Stmt=SELECT RELEASELABEL, RELEASEDTTM FROM PSRELEASE ORDER BY RELEASEDTTM DESC
1-892    07.56.02    0.006000 Cur#1.9468.NDHS RC=0 Dur=0.000000 COM Stmt=SELECT RELEASELABEL, RELEASEDTTM FROM PSRELEASE ORDER BY RELEASEDTTM DESC
1-893    07.56.02    0.005000 Database=NDHS/MICROSFT; ToolsRel=8.47.10; AppsRel=HRMS and Campus Solutions 8.90.00.000/SP 0; AppServer=; Server=n/a; Domain=; Platform=WinX86
1-894    07.56.02    0.000000
1-895    07.56.02    0.000000 Exception Code=c0000005; access violation (the memory at 0x000003e0 could not be written)
1-896    07.56.02    0.000000 Fault address=2d063dc2 0001:00262dc2 C:\\psoft\\bin\\client\\winx86\\PSSYS.dll
1-897    07.56.02    0.000000
1-898    07.56.02    0.000000 Windows Operating Environment:
1-899    07.56.02    0.000000     OS Version: Windows Server 2003 v5.2 (Build 3790: Service Pack 1)
1-900    07.56.02    0.000000     User Account: <redacted>
1-901    07.56.02    0.000000     Desktop: WinSta0\\Default
1-902    07.56.02    0.000000     OS Parms: %SystemRoot%\\system32\\csrss.exe ObjectDirectory=\\Windows SharedSection=1024,3072,512 Windows=On SubSystemType=Windows ServerDll=basesrv,1 ServerDll=winsrv:UserServerDllInitialization,3 ServerDll=winsrv:ConServerDllInitialization,2 ProfileControl=Off MaxRequestThreads=16
1-903    07.56.02    0.000000     Memory status (MB available/MB total): Physical 2299/3583; PageFile 3724/5475; Virtual 1953/2047
1-904    07.56.02    0.000000
1-905    07.56.02    0.000000 Processor State:
1-906    07.56.02    0.000000     eax=00000000 ebx=2bf476d0 ecx=01d1e878 edx=2d182678 esi=01d1e878 edi=00000000
1-907    07.56.02    0.000000     eip=2d063dc2 esp=0012f714 ebp=0012f840 iopl=0         nv up ei pl zr na pe nc
1-908    07.56.02    0.000000     cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00010246
1-909    07.56.02    0.000000
1-910    07.56.02    0.000000 Call stack:
1-911    07.56.02    0.003000 DbgHelp library API v4.0 rev 5
1-912    07.56.04    1.666000     Symbol path=.
1-913    07.56.04    0.000000     Frame    Address  Arguments to Routine...............
1-914    07.56.04    0.000000     0012f840 2d063dc2 00000000 00030000 00000001 00000000 PSSYS!StmSignon+462
1-915    07.56.04    0.000000     0012f8e0 2dd7b0f9 004711fc 00000000 00000001 00000000 PSTLS!CSignonDefProc::IsPrimarySignon+629
1-916    07.56.04    0.000000     0012f940 2dd7aa46 004711fc 00000000 00000001 01d2cc10 PSTLS!CSignon::Initiate+96
1-917    07.56.04    0.000000     0012f9fc 2dd4a253 00000000 01d2dcf0 00471158 00471620 PSTLS!TlsGetMenuWnd+173
1-918    07.56.04    0.000000     0012fd40 2dd47745 00471158 00471158 ffffffff 7c832742 PSTLS!CPSToolsApp::InitInstance+385
1-919    07.56.04    0.000000     0012ff08 0040e035 00000000 00020736 77e663dc 0043ffe7 0001:0000d035 C:\\psoft\\bin\\client\\winx86\\pside.exe
1-920    07.56.04    0.000000     0012ffc0 004c427b 00000000 00000000 7ffd8000 0000000f MFC71U!Ordinal1198+47
1-921    07.56.04    0.000000     0012fff0 77e523cd 0043fe47 00000000 78746341 00000020 kernel32!IsProcessorFeaturePresent+9e
1-922    07.56.04    0.011000
1-923    07.56.04    0.000000 ==================================================================================

I found a small posting about the message “bad file descriptor”, which in the Linux world seems to mean the file is corrupted.  So, I assumed something was wrong with the cache files.

I tried to open one of the files it was complaining about such as c:\PS\CACHE\NDHS\PDM.KEY, and notepad had no trouble at all reading the file.  I could have tried deleting the cache with configuration manager, but other people were using the box as it was a terminal services box.  So, I changed the cache directory from c:\ps\cache to c:\ps\cache\<my login name>


Share

1 Comment

  1. Anil says:

    Gr8 I also recieved the same error and changed tha location of cache to C:\ps\cache\anil

    It’s working fine now

    Thanks for the Help.

Leave a comment