Problem
The analysis of assets with the Google AI integration fail with an 500 internal server error. This error can appear in the web client’s pop-up notifications and in the application logs:
2025.07.02-13:59:00.475 INFO : T080: CommandExecutor: master.20250702.135900.406[censhare]: google_vision.update-data-action
com.censhare.support.util.DetailException: The following assets could not be processed: 67453 (status code: 500, reason phrase: 500: PreparedStatementCallback
nested exception is org.h2.jdbc.JdbcSQLNonTransientException: The database is read only; SQL statement:
The same error will appear in the Google AI’s service logs:
Jul 2 13:59:00 censhare-server google-ai[61219]: 2025-07-02 13:59:00.426 ERROR 61219 --- [nio-8033-exec-4] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.jdbc.UncategorizedSQLException: PreparedStatementCallback; uncategorized SQLException for SQL [...]; SQL state [90097]; error code [90097]; The database is read only; SQL statement:
Jul 2 13:59:00 censhare-server google-ai[61219]: INSERT INTO ProcessingRequest (...) VALUES(...) [90097-200]; nested exception is org.h2.jdbc.JdbcSQLNonTransientException: The database is read only; SQL statement:
Solution
The cause of the problem is wrong owner and permissions in the /opt/censer/google-ai/ directory, where the service is installed; specifically, the requestdb.mv.db requestdb.trace.db inside the db sub-directory. To resolve the issue, change the permissions so that censer and corpus users can write to the files and the /db/ sub-directory:
[root@censhare-server db]# ls -lah
total 28K
-rw-r--r-- 1 censer corpus 24K Jul 2 15:32 requestdb.mv.db
-rw-r--r-- 1 censer corpus 1.7K Jul 2 14:08 requestdb.trace.db
Not all the files inside /opt/censer/google-ai/ require writing permissions during runtime. The /db/ sub-directory and its files do since they are used for keeping track of the requests sent through the service.
\uD83D\uDCCE Related articles
- Performance Analysis
- Solve 'Unique Constraint (CORPUS.ASSET_PK)' Error Message during Checkout an Asset
- Renderer logs
- We get the NullPointerException 'MetadataAssetApplication.java:73' when trying to check out an asset. But it is still possible to use the function "edit metadata in same version...".
- Why the censhare Client / censhare Render-Client installer always takes an older version path?
- Why the clipping editor is empty?
- Which Part of an Error Message Is the Most Important (Cause / Caused By)?
- Google AI fails with 500 internal error: The database is read only
- Why are the preview as well as DPI size in pixels and color space information missing at a image asset, while the size in milimeter is shown?
- Troubleshoot InDesign error # 111626
- What Does the Error Mean Am.cantLockAsset - Asset Is Used by Someone Else. Please Retry Later?
- Performance test: HTTPS vs HTTP censhare web client?
- Virtual File System (VFS): Avoid Finder Error -36
- censhare Web Troubleshooting: Display issues in Internet Explorer
- What does the error message 'kImportPIFromFileCmdBoss' mean?
- Troubleshoot InDesign error # 29441
- Service-client troubleshooting
- Paragraph formats breaks when editing via Incopy Editor
- Error: database lock with waiter detected
- Status area in Admin Client - What is interesting for support?
- What's the meaning of this Apple Event Error-messages -1712 / -609 / -1701 ?
- Unable to execute HTTP request: Timeout waiting for connection from pool.
- Troubleshoot errors in Google video analysis
- NAGIOS Monitoring - Layout Service WARNING
- What should I do when my censhareClient is reporting a Java Heap Space error?
- Problem after trying to login in censhare 5 Web: HTTP Error 404
- Repair Indesign Layout via IDML Export
- Log out on censhare web doesn't work
- Customer receive unexpected results in the quick search - Fuzzy Logic
- Windows: Why is the error "CLSIDFromProgID failed [800401f3]" displayed?
- censhare Web Troubleshooting: Asset cannot be found on the web client
- Known error using Windows censhare-Client / censhare Render-Client installer
- censhare Branding issues: Some tips on troubleshooting
- Language dependent name of PDF joboptions in censhare admin
- Where is the hosts.xml located on my Operating System?
- Solve Error kPDFExportCmdBoss in the context of PDF creation
- Incomplete Master Data Cache (Cached Tables)
- Web error: Too many redirects
- Entry Page for Renderer and InDesignServer topics
- Checklist for (performance) problems
- Sign Up in New Documentation Partner Portal
- Broken UI and login screen in the widget in censhare Web
- Troubleshooting Stuck GLB Conversion (for the 3D Assets Enhancements Package)
- Render as a Service under Windows: Invalid RuntimeLib specified
- What does the error message 'Outdated asset data' mean?
- REST API call is no longer working after a version upgrade
- Troubleshooting 'com.censhare.server.rmi.RMI ServerException[ldap.sync-party-failed]: Access denied'; error
- Known issue with Database Updates
- Know how to Analyse Database Connections in censhare
- Error when logging in to Admin mode
- Retries on Error in Serverlog
- censhare Quick Search - Result Is Not as Expected (Caused by Using Stop Words)
- How to solve CDB Disk Issues
- Users Cannot Delete Stored Searches
- Troubleshoot flatplan error 'assetElement not found'
- Another RMI service call is currently active Errors
- Unable to Update Row error in flatplan
- Out Of Memory Process Killer (OOM killer)
- How to Troubleshoot Deadlock Detected Error within censhare
- Error Check-in asset failed with Content Editor in censhare Web
- How does censhare forward a layout to the Renderer/InDesignServer?
- Find out the Runtime of an XSLT Transformation
- InDesignServer - Find and remove unresponsive InDesignServer instances
- Server log file - lines with 'ignoring: '