-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rApache and RSQLite (3.8) on CentOS6 #60
Comments
Try reinstalling RSQlite. On Sunday, November 9, 2014, Melanie Bacou notifications@github.com wrote:
|
I removed and reinstalled RSQLite (from github), but problem persists. It works no problem in an interactive R console, but fails through rApache/OpenCPU. This might be another CentOS or security issue unfortunately. Maybe I should report this to OpenCPU instead. |
Also, just to add I also tried to install RSQLite from source, but that didn't solve the rApache problem either. |
What happened when you tried to install it from source? |
There might be another piece of software loading a sqlite library before
|
@jeffreyhorner All right, I did try to start Apache without mod_php -- haven't tried to disable all other modules (painful process). Will try to use ldd systematically and report back here. |
One other thing. Check the output of .libPaths from rApache and make sure
|
Here is for .libPaths through rApache. All very standard and there's only one RSQLite.
I'm not loading a host of R packages aside from data.table, stringr, raster, rgdal. Here is a OpenCPU session info:
Also looking for sqlite headers and libraries on the system. Both PHP and Python seem to come with their own as well. Could that be an issue?
I tried ldd on Apache binary and modules:
I coudn't find one reference to sqlite. I'm starting to wonder if the error message might be one of those odd permission errors, maybe apache not having the right access to my .sqlite database? On that thought, the database is currently not inside my package, does it need to be? |
Definitely disable php and python support for apache, restart and see if
|
Jeff, so I can confirm the culprit is mod_php (I thought I had disabled it before logging this issue, but I must have done that wrong, apologies). Disabling that module takes care of the conflict and requests are successful again. I tried to re-enable it and moving the
Thanks! |
This should be resolved in the dev version since we now always use the bundled sqlite |
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary. |
I have a problem using RSQLite 1.0.0 with rApache. In an interactive R console, everything works as expected, but when sending a request to the same package with OpenCPU/rApache, I get a version mismatch error.
SQLite 3.8 doesn't seem available from CentOS6 repos, so not sure what's the easiest way around.
Thanks, --Mel.
The text was updated successfully, but these errors were encountered: