question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to open database file

See original GitHub issue

Hi, I have tried to run nboost and encounter database issue (error message: unable to open database file)

This is my step:

  • setup and run elasticsearch locally (have tried to crud and works)
  • clone this repo and python setup.py install, then run nboost --uport 9200 (also have try the full example on README.md -then indexing the sample file nboost-index --file travel.csv --index_name travel --delim , --id_col
  • when I try to access the dashboard localhost:8000/nboost it only show the header (without config card widget)
  • when I try to curl "http://localhost:8000/travel/_search?pretty&q=passage:vegas&size=2"

it returning:

{"doc":null,"msg":"('unable to open database file',)","type":"OperationalError"}

am I missing any step?

I guess this is because I did not have the nboost.db file (and I did not find it in this repo)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
rajeshkpcommented, Apr 29, 2020

We are running into the above issue as well

1reaction
Fogggycommented, Apr 24, 2020

@nullphantom I’ve faced such an error. I’ve fixed it by creating /usr/local/lib/python3.7/site-packages/nboost/.cache folder.

Read more comments on GitHub >

github_iconTop Results From Across the Web

sqlite3.OperationalError: unable to open database file
PROBLEM You're using SQLite3, your DATABASE_NAME is set to the database file's full path, the database file is writeable by Apache, but you...
Read more >
Why do I get sqlite error, "unable to open database file"?
The solution is to make sure the directory containing the database file also has write access allowed to the process. In my case,...
Read more >
How to Fix SQLite Unable to Open Database File Issue?
If SQLite is unable to open the database file, this means that the SQLite database you are trying to open is corrupted.
Read more >
unable to open database file - SQLite Forum
Hi: I am shakoor, I develop a vb.net desktop application using SQLite database file, on updation of any table, it generate error "unable...
Read more >
Django : sqlite3.OperationalError: unable to open database file
Django : sqlite3.OperationalError: unable to open database file [ Beautify Your Computer : https://www.hows.tech/p/recommended.html ] Django ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found