Forums / Setup & design / Cannot extract text from openoffice documents via apache

Cannot extract text from openoffice documents via apache

Author Message

Massimo Sanna

Tuesday 11 September 2007 3:28:53 am

Hi there,
I'm implementing a website which should feature around 13gb of contents in pdf, doc and odt.
To index all this content, I'm using pdftotext and openoffice from command line, with eZ Publish 3.10rc1 and eZ Find 1.0beta3. There's a custom parser in place which launches a nifty python script which just spits out on stdout all the content of every readable openoffice document.

I'm able to run the php-cli scripts to reindex the website as root, but when I upload a new file to the website I get the following error in the index log file:

09/11/2007 [10:26]  filename: var/ezwebin_site/storage/original/application/b9b6c03340525f50463500b08883e1b2.odt
09/11/2007 [10:26]  creation of executable memory area failed: Permission denied
Error (<class uno.com.sun.star.uno.RuntimeException at 0xb7f3e0bc>) :exception type not found: bad_allocpure virtual method called
St9type_infoSt8bad_castSt10bad_typeidN10__cxxabiv117__class_type_infoEN10 __cxxabiv120__si_class_type_infoEN10__cxxabiv121__vmi_class_type_ infoEPKePeePKdPddPKfPffPKyPyyPKxPxxPKmPmmPKlPllPKjPjjPKiPiiPKtPttPKsP ssPKhPhhPKaPaaPKcPccPKwPwwPKbPbbPKvPvvN10__cxxabiv123__fundamental _type_infoEN10__cxxabiv117__array_type_infoEN10__cxxabiv120__function_type_ infoEN10__cxxabiv116__enum_type_infoEN10__cxxabiv1.__pbase_type_info

I tried to login as apache on the server, and infact launching the same script from the command line gave me the same error. After giving full ownership and write permissions to /var/www I've been able to run the python script from command line, but it still gives me the error when ezpublish launches it.

Anybody has some ideas on how to fix the permissions? I don't know what else to look :-(
Max

eZ debug

Timing: Jan 18 2025 10:29:53
Script start
Timing: Jan 18 2025 10:29:53
Module start 'content'
Timing: Jan 18 2025 10:29:53
Module end 'content'
Timing: Jan 18 2025 10:29:53
Script end

Main resources:

Total runtime0.1574 sec
Peak memory usage4,096.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 589.1016180.7969
Module start 'content' 0.00470.0052 769.898494.1016
Module end 'content' 0.00990.1475 864.0000523.9219
Script end 0.1574  1,387.9219 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00332.0918200.0002
Check MTime0.00140.8735200.0001
Mysql Total
Database connection0.00060.402810.0006
Mysqli_queries0.113972.36271410.0008
Looping result0.00140.89701390.0000
Template Total0.147193.510.1471
Template load0.00080.538710.0008
Template processing0.146392.916010.1463
Override
Cache load0.00060.388110.0006
Sytem overhead
Fetch class attribute can translate value0.00070.462910.0007
XML
Image XML parsing0.00030.179810.0003
General
dbfile0.00201.2842200.0001
String conversion0.00000.003230.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs