Questions tagged [sqlite]

SQLite is an in-process library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine.

Filter by
Sorted by
Tagged with
0 votes
2 answers
47 views

Why Docker doesn't throw error if I delete my SQLite database using bind volume mount?

So I have a project using Next.js + SQLite + Litestream (Database Backups on Cloudflare R2) + Docker & I tried to perform database delete on /data folder on container (./data/ on disk) to see if ...
deadcoder0904's user avatar
1 vote
0 answers
93 views

Use flock to back up sqlite?

I want to back up an SQLite database file without making a local copy to avoid flash memory wear. I'd also like to avoid moving the partition to a snapshottable file system like LVM. I figured I could ...
AndreKR's user avatar
  • 560
0 votes
2 answers
504 views

Does exim4's `${sqlite_quote ... }` expansion de-taint the expanded value?

I'm upgrading an exim4 installation which has some custom filters, to Debian 11. (Specifically, the filters are this.) Since that uses Exim 4.94, I've now run into the new-ish "tainted variables&...
wu-lee's user avatar
  • 115
2 votes
2 answers
2k views

On a system with fapolicyd enabled, how do I permit Java to run sqlitejdbc.so, which has a unique filename at each start?

My issue is fairly similar to this one: I have a Java application running on Rhel 8 that relies on an sqlite-jdcb driver. Unlike in that issue, my issue isn't with my filesystem being mounted with ...
ADS103's user avatar
  • 116
1 vote
1 answer
167 views

How can I safely stop postfix being picky about group permissions of sqlite database?

Background I set up an example postfix server using sqlite to store the aliases and mailbox details, (so that they could be updated live and have a single source of truth being the database.) I have ...
Alexx Roche's user avatar
8 votes
1 answer
945 views

Linux/ext4/sqlite: Can touching a file while it's being written to cause a race condition?

For context: I need to be able to reliably update the timestamp on some sqlite DB files which get intermittent updates on an ext4 filesystem. Can using the touch command (to update the last ...
Hart Simha's user avatar
  • 1,193
0 votes
2 answers
1k views

Cannot execute sqlite statement with Ansible command module - [Errno 2] No such file or directory: b'sqlite3'"

I am trying to run a simple query on many servers. I know 100% that the file and directory in question exist. I can do simple commands, such as ls, pwd, whoami, etc, and I can run the sqlite command ...
DevOpsSauce's user avatar
0 votes
1 answer
783 views

script backups sqlite database, when ran as a cron the db and names are mangled

I have a crontab: * * * * * /home/ipa/web/backup.sh > /dev/null 2>&1 (No it doesn't run every minute just testing here) The backup.sh has this: #!/usr/bin/env sh sqlite3 /home/ipa/web/...
Codejoy's user avatar
  • 149
-2 votes
1 answer
378 views

PHP 7.4 with last version of sqlite3

CentOS8 is distributed with sqlite3 version 3.26. I would like to build a php 7.4 RPM with the version 3.35 of sqlite3. Do you any advice to do so ?
fxbois's user avatar
  • 97
0 votes
1 answer
399 views

A (cron) job to run if file has changed

I need to backup a live sqlite db by running a command once a day. Only if the db file has changed since last backup. How could it be achieved on Centos 8 ?
Boppity Bop's user avatar
1 vote
1 answer
5k views

SQLSTATE[HY000]: General error: 8 attempt to write a readonly database

(maybe this question is suited for SO, but I don't think it's linked to my code). I'm using SQLite3 as a database engine for my Web app. I freshly deployed it on the production server, and it's not ...
LeRouteur's user avatar
  • 388
0 votes
1 answer
650 views

Postfix + SASL SQLite gives auxprop error on CentOS 7

I am receiving an unknown password verifier(s) auxprop error when trying to use SQLite for SASL authentication in Postfix on CentOS 7. It seems that the SQLite SQL engine is not found. Contents of /...
tater's user avatar
  • 1,475
0 votes
1 answer
264 views

How can I use the django shell while the server is running?

I have a django server deployed on digitalocean with gunicorn and nginx. I followed a tutorial, I think it was this one. Because of the tutorial I have django only installed in a virtualenv. When I ...
Sven's user avatar
  • 135
1 vote
1 answer
496 views

SQLite WAL concurrent write performance on UNIX systems

I have two setups: one runs on windows 10 (ntfs partition), the other on debian (ext4 partition). The R source code is the same. The main process starts 8 child-processes (P-SOCKS) -- on 8 vcores -- ...
Davor Josipovic's user avatar
3 votes
1 answer
11k views

sqlite3 module in python3.7 on CentOS

I'm trying to get a working version of Python 3.7 on CentOS, and the sticking point seems to be the built-in sqlite3 module. I'm building Python as follows (using a Dockerfile here for ...
Ken Williams's user avatar
2 votes
0 answers
2k views

Upgrading sqlite on Centos 7

I'm installing a Django app on a Centos 7 server. The app uses Django 2.2, which requires SQLite 3.8.3 or newer. Centos comes with SQLite 3.7 from 2013. When I compile SQLite 3 from sources and run ...
zmbq's user avatar
  • 675
0 votes
0 answers
1k views

How can I setup an SQLite database for serverless Cloud Functions?

I have some Serverless Lambda Functions and I would like to host an SQLite database with about a GB of data for free or very cheaply (1 USD per month). My initial thought is to use Amazon Elastic ...
david_adler's user avatar
0 votes
1 answer
214 views

Ubuntu 14.04 php7.1 sqlite driver could not find to install

My Laravel application has test environment to run on sqlite database but it's says the driver is missing and I could not find any solution to install the driver. Would someone help? I have the ...
Tajuddin Khandaker's user avatar
0 votes
0 answers
299 views

Update SQLite3 in PHP

I just checked my server's PHP 7.3.8 SQLite and its way old, 3.7.17, compared to the latest SQLite 3.29.0. Is there a stable way to include the new sqlite into PHP? PHP.INI doesn't have any ...
Michael Chourdakis's user avatar
1 vote
0 answers
381 views

How to fix the Sqlite3 differing versions using Python?

I had sqlite version 3.7.17 on centOS. I then installed from source code 3.28.0. Unfortunately the sqlite3 python module is still using version 3.7.17. Do I have to recompile python? [root@jenkins ~...
tread's user avatar
  • 453
0 votes
0 answers
2k views

ASP .NET CORE 2.0 web application on IIS showing sqlite error 14 "unable to open database file"

So I had run into a problem when I attempted to host a web application. Everything works fine in visual studio and when I use IIS express for debugging, but when I publish it and upload it to my ...
M W's user avatar
  • 1
0 votes
1 answer
388 views

How to convert a MediaWiki installation using MySQL to SQLite?

We're running a small own MediaWiki installation based on MySQL here. For simplicity reasons it would be great to convert this installation to an SQLite variant as it then would not require a separate ...
Regis May's user avatar
  • 103
0 votes
1 answer
4k views

How to update sqlite3 from python? [closed]

How to update sqlite3 from python? I am having problems with the old version of Slite3 for python3.6. I need to upgrade for version 3.22.0 or last root@server01# python3.6m Python 3.6.7 (default, ...
marcelo.delta's user avatar
2 votes
2 answers
716 views

Using SQLite through PHP without completely disabling SELinux

I'm trying to access an SQLite file on a CentOS7 box using PHP and the PDO library. I was getting read-only errors just like this question - https://stackoverflow.com/questions/3319112/sqlite-read-...
Pipupnipup's user avatar
1 vote
0 answers
56 views

What are the options to "atomically" stage different files (not having ZFS)

I need to take a backup of an SQLite3 DB matching the state of other applications writing to disk, besides a vault using the filesystem as a backend. I need to do this in a system with no ZFS so no ...
nbari's user avatar
  • 568
6 votes
1 answer
23k views

Enabling sqlite3 in php7

I want to enable sqlite3 in php.ini but when I try to load a PHP script this error happens: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/sqlite.so' - /usr/lib/php/...
user avatar
-3 votes
1 answer
362 views

Teamspeak 3 Database Error

I am working on a project for a 'redudant' teamspeak server wtih aws. Ive got most of what I need done, however I'm running into a snag. Teamspeak A is the primary server, and is running fine. I need ...
Travis N's user avatar
0 votes
0 answers
612 views

Fedora26 PHP 7.1.10 PDO_SQLITE Startup Warning: Unable to load dynamic library

php -v responds with : PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64 /php/modules/pdo_sqlite.so' - /usr/lib64/php/modules/pdo_sqlite.so: undefined symbol: ...
FlashL's user avatar
  • 11
0 votes
1 answer
2k views

Class 'Database\\SQLite3' not found

I've encoutered some problems with SQLite3 for PHP 7 on Ubuntu 16.04 LTS. After installing the module via sudo apt-get install php-sqlite3. Now, im trying to run this code: <?php namespace ...
Felix G's user avatar
  • 148
0 votes
1 answer
1k views

SQLite3 is crashing the JVM

I am using sqlite-jdbc 3.7.2 when i run my application, SQLLite is crashing the JVM. It is not happening consistently but it happened twice. Please help to find the issue. A fatal error has been ...
Mohan's user avatar
  • 103
4 votes
2 answers
5k views

SQLite on Google Cloud Persistent Disk

Does Google's Persistent Disk have proper reader/writer locks for concurrent access (many virtual machines accessing data from a single Persistent Disk) which is required for SQLite? According to the ...
Jon's user avatar
  • 143
0 votes
0 answers
142 views

Does Microsoft SQL Server have something similar to 'sqlite:///:memory:'?

Python 2.7 SQLAlchemy Microsoft SQL Server Management Studio 10.50.2500.0 Microsoft Analysis Services Client Tools 10.50.2500.0 Microsoft Data Access Components ...
BurningKrome's user avatar
8 votes
2 answers
30k views

Install sqlite latest version on Centos6.7

I'm trying to install the latests versions of sqlite (> 3.7.5) under Centos 6.7. So when I launch install command : yum install sqlite I get the following Message : Package sqlite-3.6.20-1.el6_7....
Zakaria Acharki's user avatar
6 votes
1 answer
2k views

How can I test whether fcntl() locks work with my NFS setup?

From the SQLite FAQ: Can multiple applications or multiple instances of the same application access a single database file at the same time? … SQLite uses reader/writer locks to ...
200_success's user avatar
  • 4,790
0 votes
0 answers
440 views

Upgrade SQLite Library for php 5.4

My php version is 5.4 This is what I get in phpinfo pdo_sqlite PDO Driver for SQLite 3.x enabled SQLite Library 3.6.20 I really need to update this driver. On PHP 5.3 you could do this with ...
user297670's user avatar
2 votes
1 answer
701 views

Inconsistent "unable to open database file" error from a CGI program using SQLite

I've been running a task program for a psychology experiment on my virtual private server with lighttpd 1.4.28 and Ubuntu 12.04. The experiment is a CGI program written in Perl using a Perl module I ...
Kodiologist's user avatar
3 votes
3 answers
24k views

SVN Checkin Failure(sqlite[S5]: database is locked)

I am facing this issue intermittently when I am trying to check-in files svn ci -m "commit message" file Warning: post commit FS processing had error: sqlite[S5]: database is locked Some more info ...
Prashant Lakhera's user avatar
0 votes
1 answer
527 views

Deploy MySQL/MariaDB on demand in a C# application

I'm creating a lightweight bug tracker, and I'm really having difficulties with people that don't know how to deploy and connect to a MySQL database on their own. What they should do is to create ...
Steinbitglis's user avatar
4 votes
3 answers
6k views

Inserting multiple lines into a sqlite column with bash script

I am trying to insert a value into my sqlite DB that consists of multiple lines and special characters. For example: { "foo"="$BAR" } I have been using the sqlite3 command but I dont know how to ...
JpaytonWPD's user avatar
0 votes
2 answers
2k views

Database password error in Owncloud migrating from SQLite to MySQL/MariaDB

In a Fedora system, I need to convert the Owncloud's SQLite database into a MySQL/MariaDB database I started installing MySQL: # systemctl enable mysqld # systemctl start mysqld $ ...
Germano Massullo's user avatar
3 votes
1 answer
3k views

Graphite SQLite3 DatabaseError: database is locked

While going through the initial installation and set up of Graphite on CentOS 6.4 using Apache mod_wsgi via the stock graphite-web rpm, I'm getting the following "DatabaseError: database is locked" ...
havoc1's user avatar
  • 153
1 vote
1 answer
120 views

Databbase file structure on disk [closed]

I'm an interested in the fundamentals of databases for a project that I am currently working on. Specifically the physical storage on disk and how rows and indexes are stored in a file. For the most ...
Yorick de Wid's user avatar
2 votes
2 answers
10k views

Graphite SQLite3 DatabaseError: attempt to write a readonly database

Running graphite under apache httpd, with slqite database, I have the correct folder permissions [root@liaan55 httpd]# ls -ltr /var/lib | grep graphite drwxr-xr-x. 2 apache apache 4096 ...
Anadi Misra's user avatar
0 votes
1 answer
322 views

Jenkins fighting with Django over permissions

I've got a Jenkins/Nginx server running. But I get the error from Django: attempt to write a readonly database So I solved this problem by changing the ownership of the project folder to the ...
user avatar
0 votes
1 answer
9k views

Unbuntu 14.04 + Nginx + PHP5-FPM + sqlite3 : pdo sqlite could not find driver

phpinfo() says I have SQLite 3.x driver for PDO. php.ini only mentions sqlite like so: [sqlite] ; http://php.net/sqlite.assoc-case ;sqlite.assoc_case = 0 [sqlite3] ;sqlite3.extension_dir = I ...
Rayhan Muktader's user avatar
1 vote
1 answer
2k views

yum list showing wrong version

I am trying to install freeswitch and while configuring it, it spits out the message. "checking for sqlite3 >= 3.6.20... Package sqlite3 was not found in the pkg-config search path. Perhaps ...
Arslan Mehboob's user avatar
0 votes
1 answer
115 views

I cannot find the SQLite Instance on Haskell / Snap based server

I have inherited a Haskell based server (on Ubuntu) on which SQLite is being used for authentication through the Snap SQLite-Auth module. After searching the server I am unable to locate the SQLite "...
Jay Blanchard's user avatar
1 vote
1 answer
184 views

Distributing load from Django App

I am currently approaching stages to move my first large-scale application out of development. I have talked with some CTOs who know what they're talking about, and I have been advised to do the ...
jdero's user avatar
  • 113
1 vote
0 answers
1k views

pysqlite for python 3.3.5 on Centos 6.5

I have compiled python 3.3.5 from source in the /opt folder as follows: yum install sqlite-devel ./configure --prefix=/opt/python3 make make install ln -s /opt/python3/bin/python3 /usr/bin/python3 I ...
user2284355's user avatar
1 vote
2 answers
1k views

How to force sqlite3 table to take next available id for auto increment in firefox sqlite3 manager?

We delete some records in a sqlite3 table (re-id record manually) and compact the db. However when adding a new record in firefox sqlite3 manager, the auto incremented id is not the next available id ...
user938363's user avatar