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.

SQlite error: tables are not created

See original GitHub issue

Hello, I am trying to install lolisafe in production mode and for some reason lolisafe doesn’t generate the database tables at all. I’ve followed the six steps specified in the readme.md but as soon as I try to start it the following error is shown:

~/lolisafe# yarn start
yarn run v1.19.1
$ node ./lolisafe.js
[2019-10-21 11:42:38] { [Error: SQLITE_ERROR: no such table: files] errno: 1, code: 'SQLITE_ERROR' }
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

I’ve tried both with an unprivileged user and with root, both fail, so this is not a permissions issue. “ls” to the database directory shows the db file as 0 bytes. This is on a Debian Buster installation within a LXC container with a recent kernel. I am using the nodejs version available in Buster repositories (v10.15.2)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
rubenmdhcommented, Oct 21, 2019

Thank you for your fast response. After following the instructions you gave me, it works flawlessly.

Thank you for mantaining this fork, I’ve been using it for quite a while now and it is just awesome. I will close this issue now as the commit will roll out soon.

0reactions
BobbyWibowocommented, Oct 22, 2019

Aha, I had the impression that I also forced the min length on the login API, which was why I didn’t bother to suggest temporarily editing the input’s minlength attribute. I guess it wouldn’t make much sense to force it on the API to begin with, so I’ll leave it as it is. Anyway, good to know it’s working for you 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

SQLIte not creating database table - Stack Overflow
Error I get is: No such table: firstdatabase. This is my MySQLiteHelper class: public class MySQLiteHelper extends SQLiteOpenHelper { //Database ...
Read more >
Distinguishing CREATE TABLE failure (already exists ... - SQLite
Is there any good way to distinguish CREATE TABLE failure due to table already exists from other possible failures?
Read more >
SQLite Create Table with Examples
Introduction to SQLite CREATE TABLE statement · First, specify the name of the table that you want to create after the CREATE TABLE...
Read more >
get an error '(' AS or OF expected, got NOT...on the sql create ...
conn.close() except Error as e: print(e) def main(): database = (r"C:\sqlite\db\card.db") sql = '''CREATE TABLE IF NOT EXISTS cards (
Read more >
How to Create, Delete and Manage Databases - SQLite - Prisma
How to create tables only if they do not already exist ... );. SQLite will throw an error when attempting to create an...
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