search for: db_open

Displaying 16 results from an estimated 16 matches for "db_open".

2007 Sep 23
0
A preliminary design for an external DB for rsync
...mary key. A database implementation may even choose to store the name in a separate table with a unique id if that is more efficient for it. If ACL and extended attribute information is included, it will be stored as an ID reference to separate tables. ----- Imagined calls that rsync would use: db_open(CONFIG_FILENAME_PTR, CHROOT_PATH_PTR, FLAGS); # CHROOT_PATH_PTR: can be NULL. # FLAGS: active-checksum-type, incl-acl-info, incl-xattr-info, etc. The chroot path modifies incoming filenames into a global DB context and strips the returned filenames down to work in a chroot (also ensures that no fi...
2008 Oct 29
1
Problem opening stub database for writing
I'm using Xapian 1.0.8 and the python bindings. I have a flint database which I can open fine by doing the following: db_name = '/path/to/db/db-name' database = xapian.WritableDatabase(db_name, xapian.DB_OPEN) However, if I have stub file at '/path/to/db/db-stub' containing the following: flint /path/to/db/db-name db_name = '/path/to/db/db-stub' database = xapian.WritableDatabase(db_name, xapian.DB_OPEN) returns the following: DatabaseOpeningError: No flint database found at path `/...
2009 Jun 18
1
delete and update
Hi All, I need to update or delete some documents from a Xapian database. and I haven't been able to find anything in the API , Is there a way to do it ? What would be the easiest way to do it ? Thanks.
2009 May 08
1
openldap 5.1 crashing
...rash ... following is info about my ldap. nss_ldap-253-3 php-ldap-5.1.6-5.el5 openldap-2.4.11-1.3.el5 openldap-servers-2.4.11-1.3.el5 compat-openldap-2.4.11_2.3.27-1.3.el5 openldap-clients-2.4.11-1.3.el5 openldap-devel-2.4.11-1.3.el5 And m getting error on command slapcat [root@ ldap]# slapcat bdb_db_open: DB_CONFIG for suffix "o=nerv_ldap" has changed. Performing database recovery to activate new settings. bdb_db_open: database "o=nerv_ldap": recovery skipped in read-only mode. Run manual recovery if errors are encountered. bdb(o=nerv_ldap): Logging region out of memory; you may...
2010 Feb 09
2
Provision script fails with Samba4 (latest git version)
...ovision with the latest git version. My provision command looks like so: # ./setup/provision --realm=TEST.DOMAIN --domain=DOMAIN --adminpass=pass - --server-role='domain controller' --ldap-backend-type=openldap - --slapd-path=/usr/sbin/slapd I get the following output from the command: hdb_db_open: database "cn=Schema,cn=Configuration,dc=test,dc=domain": db_open(/usr/local/samba4/private/ldap/db/schema/id2entry.bdb) failed: No such file or directory (2). backend_startup_one (type=hdb, suffix="cn=Schema,cn=Configuration,dc=test,dc=domain"): bi_db_open failed! (2) slap_star...
2007 Dec 13
2
backing up a database by locking while backup program runs
...e query finds nothing: "link:www.xapian.org/docs/admin_notes.html".) [1] http://www.xapian.org/docs/admin_notes.html I propose to use a simple PHP script like the following in order to obtain the write lock: <?php $h = new XapianWritableDatabase("/my/Xapian/database", DB_OPEN); sleep(99999); Regards, Ronan.
2019 Aug 06
2
Samba CTDB clustering panic
...: 17 stack frames: 50.samba: #0 /lib64/libsamba-util.so.0(log_stack_trace+0x1a) [0x7f599afd9aaa] 50.samba: #1 /lib64/libsamba-util.so.0(smb_panic+0x52) [0x7f599afd9bb2] 50.samba: #2 /usr/lib64/samba/libsamba-cluster-support-samba4.so(+0x77a0) [0x7f5997dab7a0] 50.samba: #3 /lib64/libsmbconf.so.0(db_open+0x253) [0x7f599b26db93] 50.samba: #4 /lib64/libsmbconf.so.0(regdb_init+0x86) [0x7f599b255566] 50.samba: #5 /lib64/libsmbconf.so.0(registry_init_common+0x6) [0x7f599b256e46] 50.samba: #6 /lib64/libsmbconf.so.0(registry_init_smbconf+0x26) [0x7f599b285d76] 50.samba: #7 /lib64/libsmbconf.so.0(+0x56...
2020 Sep 29
2
[CTDB] "use mmap = no" Causes wibind to fail
...sted by the wiki), winbind fails to start and the cluster grinds to a halt. Here is the error messages from systemd: Sep 28 22:14:17 tenzin systemd[1]: Starting Samba Winbind Daemon... Sep 28 22:14:18 tenzin winbindd[21609]: [2020/09/28 22:14:18.037190, 0] ../source3/lib/dbwrap/dbwrap_ctdb.c:1924(db_open_ctdb) Sep 28 22:14:18 tenzin winbindd[21609]: Could not open tdb /var/lib/ctdb/volatile/g_lock.tdb.0: Invalid argument Sep 28 22:14:18 tenzin winbindd[21609]: [2020/09/28 22:14:18.037574, 0] ../source3/lib/dbwrap/dbwrap_open.c:174(db_open) Sep 28 22:14:18 tenzin winbindd[21609]: failed to atta...
2018 Jun 28
4
CTDB upgrade to SAMBA 4.8.3
...samba/lib/libsamba-util.so.0(+0x2236a) [0x7fe42f84436a]  #2 /usr/local/samba/lib/libsamba-util.so.0(log_stack_trace+0) [0x7fe42f8445bc]  #3 /usr/local/samba/lib/private/libsamba-cluster-support-samba4.so(messaging_ctdb_connection+0x1f) [0x7fe42c5a211c]  #4 /usr/local/samba/lib/libsmbconf.so.0(db_open+0x2a6) [0x7fe42fcf7752]  #5 /usr/local/samba/lib/libsmbconf.so.0(regdb_init+0xdd) [0x7fe42fcd2fb2]  #6 /usr/local/samba/lib/libsmbconf.so.0(registry_init_common+0xd) [0x7fe42fcd7937]  #7 /usr/local/samba/lib/libsmbconf.so.0(registry_init_smbconf+0xd0) [0x7fe42fd18294]  #8 /usr/local/samba/lib...
2017 Dec 08
2
xapian 1.4 performance issue
Olly Betts writes: > On Thu, Dec 07, 2017 at 10:29:09AM +0100, Jean-Francois Dockes wrote: > > Recoll builds snippets by partially reconstructing documents out of index > > contents. > > > [...] > > > > The specific operation which has become slow is opening many term position > > lists, each quite short. > > The difference will actually
2017 Dec 13
0
xapian 1.4 performance issue
...ecified type. It's meant to just open the database in that case (and ignore the backend hint), but it actually seems to create a new database with the specified backend in the same directory. I'll fix that, but obviously that won't help with existing releases. You can try with Xapian::DB_OPEN first, then Xapian::DB_BACKEND_CHERT if that fails, though that's slightly racy. Not sure there's a better workaround though. > Another possibility for me would be to decide that Chert is good enough and > appropriate for Recoll, and bundle it together with the appropriate Xapian &g...
2018 Jun 28
0
CTDB upgrade to SAMBA 4.8.3
...o.0(+0x2236a) > [0x7fe42f84436a] > #2 /usr/local/samba/lib/libsamba-util.so.0(log_stack_trace+0) > [0x7fe42f8445bc] #3 > /usr/local/samba/lib/private/libsamba-cluster-support-samba4.so(messaging_ctdb_connection+0x1f) > [0x7fe42c5a211c] >  #4 /usr/local/samba/lib/libsmbconf.so.0(db_open+0x2a6) > [0x7fe42fcf7752] > #5 /usr/local/samba/lib/libsmbconf.so.0(regdb_init+0xdd) > [0x7fe42fcd2fb2] > #6 /usr/local/samba/lib/libsmbconf.so.0(registry_init_common+0xd) > [0x7fe42fcd7937] > #7 /usr/local/samba/lib/libsmbconf.so.0(registry_init_smbconf+0xd0) > [0x7fe42fd18294...
2019 Aug 07
0
Samba CTDB clustering panic
...ba: #0 /lib64/libsamba-util.so.0(log_stack_trace+0x1a) > [0x7f599afd9aaa] > 50.samba: #1 /lib64/libsamba-util.so.0(smb_panic+0x52) [0x7f599afd9bb2] > 50.samba: #2 /usr/lib64/samba/libsamba-cluster-support-samba4.so(+0x77a0) > [0x7f5997dab7a0] > 50.samba: #3 /lib64/libsmbconf.so.0(db_open+0x253) [0x7f599b26db93] > 50.samba: #4 /lib64/libsmbconf.so.0(regdb_init+0x86) [0x7f599b255566] > 50.samba: #5 /lib64/libsmbconf.so.0(registry_init_common+0x6) > [0x7f599b256e46] > 50.samba: #6 /lib64/libsmbconf.so.0(registry_init_smbconf+0x26) > [0x7f599b285d76] > 50.samba: #...
2009 Jan 18
2
Starting slapd: /bin/bash: /tmp/start-slapd.K12378: Permission denied
...db.004 -rw------- 1 ldap ldap 352256 Jan 16 17:41 __db.005 -rw------- 1 ldap ldap 24576 Jan 16 17:41 __db.006 -rw------- 1 ldap ldap 10485760 Jan 16 17:41 log.0000000001 When I run slaptest, it doesn't look great, but it doesn't look like a problem... $ sudo /usr/sbin/slaptest bdb_db_open: Warning - No DB_CONFIG file found in directory /var/lib/ldap: (2) Expect poor performance for suffix dc=XXXX,dc=net. bdb_db_open: db_open(/var/lib/ldap/id2entry.bdb) failed: No such file or directory (2) bdb(dc=XXXX,dc=net): Unknown locker ID: 0 backend_startup_one: bi_db_open failed! (2) slap_sta...
2011 Apr 21
1
How to Retrieve content of the document?
...uot;Total: $count files indexed\n"; I then used the following script to search for a query: #!/usr/bin/perl -w use strict; use Search::Xapian; my $DATABASE_DIR = '/home/rohit/Desktop/SET/DB'; my $db = Search::Xapian::WritableDatabase->new($DATABASE_DIR, Search::Xapian::DB_OPEN) or die "can't create write-able db object: $!\n"; my $enq = $db->enquire( 'steel'); printf "Running query '%s'\n", $enq->get_query()->get_description(); my @matches = $enq->matches(0, 10); print scalar(@matches) . " results fo...
2018 Jun 28
1
CTDB upgrade to SAMBA 4.8.3
...[0x7fe42f84436a] >> #2 /usr/local/samba/lib/libsamba-util.so.0(log_stack_trace+0) >> [0x7fe42f8445bc] #3 >> /usr/local/samba/lib/private/libsamba-cluster-support-samba4.so(messaging_ctdb_connection+0x1f) >> [0x7fe42c5a211c] >>  #4 /usr/local/samba/lib/libsmbconf.so.0(db_open+0x2a6) >> [0x7fe42fcf7752] >> #5 /usr/local/samba/lib/libsmbconf.so.0(regdb_init+0xdd) >> [0x7fe42fcd2fb2] >> #6 /usr/local/samba/lib/libsmbconf.so.0(registry_init_common+0xd) >> [0x7fe42fcd7937] >> #7 /usr/local/samba/lib/libsmbconf.so.0(registry_init_smbconf+0x...