SQlite error: tables are not created
See original GitHub issueHello, 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:
- Created 4 years ago
- Comments:7 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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 👍