Skip to content
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

Non-stop "Initialising Search Index" #51

Open
arthur-albuquerque opened this issue Jan 9, 2021 · 7 comments
Open

Non-stop "Initialising Search Index" #51

arthur-albuquerque opened this issue Jan 9, 2021 · 7 comments

Comments

@arthur-albuquerque
Copy link

Hi, I just downloaded ZotHero and I might be doing something wrong. It just doesn't find any of my citations. Would you please help me?

@masteranza
Copy link

Same here. We need a fix 😢

@aragorn-yang
Copy link

Same here.
The log is following.

OperationalError: database is locked
16:16:00 workflow.py:2082 INFO     for assistance, see: https://github.com/deanishe/zothero/issues
16:16:00 core.py:197 INFO     [core] searching for "log" ...
16:16:00 index.py:245 INFO     [index] 0 result(s) for u'log'
16:16:01 core.py:197 INFO     [core] searching for "log" ...
16:16:01 index.py:245 INFO     [index] 0 result(s) for u'log'
16:16:01 core.py:197 INFO     [core] searching for "lo" ...
16:16:01 index.py:245 INFO     [index] 0 result(s) for u'lo'
16:16:01 core.py:197 INFO     [core] searching for "lo" ...
16:16:01 index.py:245 INFO     [index] 0 result(s) for u'lo'
16:16:01 core.py:197 INFO     [core] searching for "l" ...
16:16:01 index.py:245 INFO     [index] 0 result(s) for u'l'
16:16:06 workflow.py:2080 ERROR    database is locked
Traceback (most recent call last):
  File "./lib/workflow/workflow.py", line 2073, in run
    func(self)
  File "./zh", line 714, in main
    return do_reindex()
  File "./zh", line 597, in do_reindex
    app.update_index(force=False)
  File "./lib/zothero/core.py", line 166, in update_index
    self.index.update(self.zotero, force)
  File "./lib/zothero/index.py", line 277, in update
    if not self._update(zot, force):
  File "./lib/zothero/index.py", line 325, in _update
    for e in it:
  File "./lib/zothero/zotero.py", line 268, in all_entries
    yield self._load_entry(row)
  File "./lib/zothero/zotero.py", line 320, in _load_entry
    e.citekey = self.bbt.citekey('{}_{}'.format(e.library, e.key))
  File "./lib/zothero/zotero.py", line 195, in bbt
    self._bbt = BetterBibTex(self.datadir)
  File "./lib/zothero/betterbibtex.py", line 48, in __init__
    row = conn.execute(SQL).fetchone()
OperationalError: database is locked
16:16:06 workflow.py:2082 INFO     for assistance, see: https://github.com/deanishe/zothero/issues

@aragorn-yang
Copy link

It works if Better BibTex is disabled in Zotero.
This seems to be an issue for Better BibTex rather than Zothero.

@twio142
Copy link

twio142 commented Mar 13, 2021

Same here. Have to restart Zotero every time for any changes to the libraries to be synced in the workflow.

@Miaoyifei-mz
Copy link

When I update Better BibTex to 5.2.138(The latest version,the problem goes away.(^▽^)

@dr-gu
Copy link

dr-gu commented May 6, 2021

My Better BibTex version is 5.4.5, but this problem remains unsolved.

@raivivek
Copy link

Restarting Zotero (quit, wait a few seconds, and reopen) should fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants