PI service freezes
Started by Andrey
Andrey
PI service freezes 16 February 2012, 18:51 |
We have win 2008 x64 server with PI installed (7.0.3)
For our purposes, we reading PI database by ODBC source aimed to its database
As I understand, when PI writing to db info about new printjobs and in the same time db reading by odbc, we have next application log:
1. Unexpected exception occurred in the application. Error message: HP LaserJet 3050 PCL 6 (CE001591P_IT) error: TCoreDB: The database file is locked: database is locked
and then next message
2. Unexpected exception occurred in the application. Error message: Monitoring thread abnormally terminated
DB locating at fileshare for read-only access. Why db is locked? How can I have read-only access for this db and have no locks on it?
Thanx!
|
Re: PI service freezes 16 February 2012, 23:30 |
Admin Registered: 12 years ago Posts: 5 652 |
I however have updated Print Inspector so that it now waits for up to 10 seconds for locks to be released.
Please try the latest build from here and let me know if it's helped.
Andrey
PI service hangs 17 February 2012, 00:26 |
Andrey
PI service hangs 17 February 2012, 00:31 |
|
PI service hangs 17 February 2012, 00:44 |
Admin Registered: 12 years ago Posts: 5 652 |
It does not see any updates because the version number has not changed. I gave you a link to version 7.0.3 with the only difference from the official release is waiting for locks to be released.
Andrey
PI service hangs 17 February 2012, 23:41 |
|
PI service hangs 18 February 2012, 00:30 |
Admin Registered: 12 years ago Posts: 5 652 |
Andrey
PI service hangs 18 February 2012, 00:40 |
|
PI service hangs 18 February 2012, 01:24 |
Admin Registered: 12 years ago Posts: 5 652 |
Andrey
PI service hangs 22 February 2012, 16:14 |
|
PI service hangs 22 February 2012, 16:26 |
Admin Registered: 12 years ago Posts: 5 652 |
Andrey
PI service hangs 22 February 2012, 18:06 |
[sendfile.su]
|
PI service hangs 22 February 2012, 22:46 |
Admin Registered: 12 years ago Posts: 5 652 |
Andrey
PI service hangs 27 February 2012, 18:08 |
|
PI service hangs 27 February 2012, 23:13 |
Admin Registered: 12 years ago Posts: 5 652 |
Andrey
PI service hangs 27 February 2012, 23:40 |
Andrey
PI service hangs 11 March 2012, 17:30 |
We have one more event in Application Log:
1. Unexpected exception occurred in the application. Error message: HP LaserJet 2300 PCL6_LAWYER error: TCoreDB: The database file is locked: database is locked
2. Unexpected exception occurred in the application. Error message: Monitoring thread abnormally terminated
I thought U resolve problem with locked database. Am I right? WHy this event occurs? Thanx
|
PI service hangs 11 March 2012, 18:51 |
Admin Registered: 12 years ago Posts: 5 652 |
It's okay that you access the database file from your own application or script, but you need to make sure your transaction does not run longer than 10 seconds. If it does, Print Inspector doesn't have much choice: it needs to update the database and write job information, but it's opened by another application. So it waits for this period of time and then reports an error if the database does not become available.
Hope this helps.
Andrey
PI service hangs 12 March 2012, 01:05 |
|
PI service hangs 13 March 2012, 18:37 |
Admin Registered: 12 years ago Posts: 5 652 |
However, if you have long-running reports, a better solution would be to switch the database journalling mode to WAL.
Provided your ODBC SQLite provider supports it, you can turn the database into WAL mode. To do so, download a SQLite management tool, and run the following query:
PRAGMA journal_mode=WAL
Print Inspector service must be stopped beforehand. If it succeeds and your ODBC provider supports WAL databases, you can read the database as long as you want, it does not block writing.
Let me know if you need any help.