Displaying 3 results from an estimated 3 matches for "remote_open_writ".
2006 Oct 19
1
Writing with xapian-tcpsrv and php
Hi,
I think, there is missing constructor function supporting remote
writing for XapianWritableDatabase class in the php bindings (0.9.7).
This code:
$db = new XapianWritableDatabase(remote_open($db_host, $db_port),
$action);
returns:
Fatal error: No matching function for overloaded
'new_XapianWritableDatabase' (...)
$db = new XapianWritableDatabase($path, $action); works fine.
2009 Jul 23
1
tcp deamon and remote connection
Hi,
I'm trying to use xapian from php script with TCP daemon.
I started TCP daemon: xapian-tcpsrv --port 5050 --writable /path-to-db
When I trying to get access to it within my php-script with
remote_open_writable("localhost", 5050) or remote_open("localhost",
5050) apache fails with signal 11:
dev kernel: pid 35923 (httpd), uid 80: exited on signal 11
TCP demon also shows me different errors:
Connection from 127.0.0.1, port 62652
Got exception NetworkError: write failed (context: /...
2010 Sep 01
1
DatabaseLockError: REMOTE: unable to get write lock
Hi,
I'm using xapian(1.2.2) python interface to connect remote xapian-tcpserv daemon.
I'm starting the daemon as given below:
xapian-tcpsrv --port 9100 --interface 127.0.0.1 --writable ./xapiandb/
and in script.py:
import xapian as xa
db = xa.remote_open_writable('localhost', 9100)
# other stuff
# ...
script is a long running program, and when i try to run another instance,
i get :
xapian.DatabaseLockError: REMOTE:Unable to get write lock on /home/hinoglu/xapiandb/ : already locked
Please correct me if i'm wrong, writelock is...