I am new to emacs, and after installed org-mode and org-roam, I try to execute “M-x org-roam-node-find”,an error occurred “Query timeout error: “Query timed out”, 30”. Any help is appreciate!
my config are as follows:
(use-package org-roam
:ensure t
:config
;; If using org-roam-protocol
(require 'org-roam-protocol)
:bind
("C-c n l" . org-roam-buffer-toggle)
("C-c n f" . org-roam-node-find)
("C-c n g" . org-roam-graph)
("C-c n i" . org-roam-node-insert)
("C-c n c" . org-roam-capture)
;; Dailies
("C-c n j" . org-roam-dailies-capture-today)
:custom
(org-roam-v2-ack t)
(org-roam-directory (string-join (cons my/all-notes '("content-org")) "/"))
(org-roam-capture-templates `(("d" "default" plain "%?"
:unnarrowed t
:if-new (file+head "%<%Y%m%d%H%M%S>-${slug}.org"
"#+TITLE: ${title}
#+AUTHOR: James
#+DATE: %U
#+HUGO_BASE_DIR: ../
#+HUGO_SECTION: notes
")))))
Org-roam relies on an Emacs package called emacsql and emacsql-sqlite to work with the sqlite database. Both of them should be installed automatically in your Emacs environment as a prerequisite for Org-roam when you install it.
emacsql-sqlite requires a C compiler (e.g. gcc or clang) to be present in your computer. How to install a C compiler depends on the OS that you use
After I added org-roam-db-autosync-mode to my config, the problem still exist.
In addition, M-x org-roam-db-build-cache or M-x org-roam-db-autosync-mode will lead to the same error : Error (use-package): org-roam/:config: Query timeout error: "Query timed out", 30