TM1 Instance is crashing because the process cannot access its own log file

Post Reply
AskAndAnswer
Posts: 41
Joined: Fri Jun 02, 2017 6:35 pm
OLAP Product: Planning Analytics
Version: 2.0...
Excel Version: 2016

TM1 Instance is crashing because the process cannot access its own log file

Post by AskAndAnswer »

The issue started after an upgrade to Planning Analytics 2.0.35. One of the instances is constantly crashing with the same error message:

153712 [] FATAL 2019-04-25 10:06:48.917 TM1.System.File TM1 Server Abort: sf_Write() - Write error on file "d:\tm1\dbname\logs\TM1ProcessError_20190425100638_76253712_process_name.log$". Error = error code:32 reason:"The process cannot access the file because it is being used by another process." file:"d:\tm1\dbname\logs\TM1ProcessError_20190425100638_76253712_process_name.log$"
buffer = 0x0000001FB5CA26D0, len= 32751

It looks like TM1 is creating an error log file and immediately locks it for the process that created it. It happens only in one database out of six that are running on the same server.

Any ideas? All your help is greatly appreciated.
dr.nybble
MVP
Posts: 160
Joined: Wed Aug 17, 2011 3:51 pm
OLAP Product: TM1
Version: 10.2.2
Excel Version: Excel 2007

Re: TM1 Instance is crashing because the process cannot access its own log file

Post by dr.nybble »

Have you checked with Process Explorer that indeed no other process is accessing that file?
AskAndAnswer
Posts: 41
Joined: Fri Jun 02, 2017 6:35 pm
OLAP Product: Planning Analytics
Version: 2.0...
Excel Version: 2016

Re: TM1 Instance is crashing because the process cannot access its own log file

Post by AskAndAnswer »

Thank you for your reply. Do you mean Microsoft Process Explorer? It does not exist on the server as of right now. Is there any other way to identify what could lock the file right after it was created by a process?
Wim Gielis
MVP
Posts: 3113
Joined: Mon Dec 29, 2008 6:26 pm
OLAP Product: TM1, Jedox
Version: PAL 2.0.9.18
Excel Version: Microsoft 365
Location: Brussels, Belgium
Contact:

Re: TM1 Instance is crashing because the process cannot access its own log file

Post by Wim Gielis »

Unless I am mistaken, Dr. Nybble is referring to this utility:
https://docs.microsoft.com/en-us/sysint ... ds/procmon
Best regards,

Wim Gielis

IBM Champion 2024
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
User avatar
gtonkin
MVP
Posts: 1198
Joined: Thu May 06, 2010 3:03 pm
OLAP Product: TM1
Version: Latest and greatest
Excel Version: Office 365 64-bit
Location: JHB, South Africa
Contact:

Re: TM1 Instance is crashing because the process cannot access its own log file

Post by gtonkin »

Process Explorer is also part of SysInternals like ProcMon.
FInd it here: https://docs.microsoft.com/en-us/sysint ... s-explorer
Bakkone
Posts: 119
Joined: Mon Oct 27, 2014 10:50 am
OLAP Product: TM1
Version: 10.2.2
Excel Version: 2013

Re: TM1 Instance is crashing because the process cannot access its own log file

Post by Bakkone »

I have this feeling that something changed within PA/TM1 in one of the later versions. I feel like it used to be that I could just turn off an instance. Change the location of the config file etc and everything was fine and dandy.

But as in the problem here. I've noticed that even when shutting down the instance, ie the TM1 server. The system still retains the connection to the "old" data folders and configs. Instead I have to shut down the all of the instances, admin, application servers in cognos config for it to properly release its hold of the data and logs.

So maybe try a full restart?
AskAndAnswer
Posts: 41
Joined: Fri Jun 02, 2017 6:35 pm
OLAP Product: Planning Analytics
Version: 2.0...
Excel Version: 2016

Re: TM1 Instance is crashing because the process cannot access its own log file

Post by AskAndAnswer »

It looks like the new version of TM1 is handling multi-threading differently. The root cause was that the process was in conflict with SaveDataAll process.
Drg
Regular Participant
Posts: 159
Joined: Fri Aug 12, 2016 10:02 am
OLAP Product: tm1
Version: 10.2.0 - 10.3.0
Excel Version: 2010

Re: TM1 Instance is crashing because the process cannot access its own log file

Post by Drg »

If you change metadata the answer -yes
AskAndAnswer
Posts: 41
Joined: Fri Jun 02, 2017 6:35 pm
OLAP Product: Planning Analytics
Version: 2.0...
Excel Version: 2016

Re: TM1 Instance is crashing because the process cannot access its own log file

Post by AskAndAnswer »

Looks like it's not only metadata that affects it.
Post Reply