-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathfix-sqlite-tx-db-page-size-issue.html
More file actions
637 lines (532 loc) · 34.9 KB
/
fix-sqlite-tx-db-page-size-issue.html
File metadata and controls
637 lines (532 loc) · 34.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width">
<title>Fix SQLite Transaction Database Page Size Issue - XAG Ledger Dev Portal</title>
<!-- favicon -->
<link rel="apple-touch-icon" sizes="180x180" href="assets/favicons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="16x16" href="assets/favicons/favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="assets/favicons/favicon-32x32.png">
<link rel="manifest" href="assets/favicons/site.webmanifest">
<link rel="shortcut icon" href="favicon.ico">
<meta name="msapplication-TileColor" content="#25A768">
<meta name="msapplication-config" content="assets/favicons/browserconfig.xml">
<meta name="theme-color" content="#25A768">
<!-- jQuery -->
<script src="assets/vendor/jquery-1.11.1.min.js"></script>
<!-- Stylesheet -->
<link href="assets/css/devportal.css" rel="stylesheet" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
<!-- syntax highlighting -->
<link rel="stylesheet" href="assets/vendor/docco.min.css" />
<script src="assets/vendor/highlight.min.js"></script>
<!-- expandable code samples -->
<script src="assets/js/expandcode.js"></script>
<!-- multi-code selection tabs -->
<script src="assets/js/multicodetab.js"></script>
<script>
$(document).ready(function() {
$(".multicode").minitabs();
hljs.initHighlighting();
make_code_expandable();
});
</script>
</head>
<body class="xrp-ledger-dev-portal sidebar-primary lang-en ">
<nav class="navbar fixed-top navbar-expand-lg navbar-light bg-white">
<a href="index.html" class="navbar-brand"><img src="assets/img/logo.png" class="logo" height="44" alt="XAG Ledger Dev Portal" /></a>
<button class="navbar-toggler" type="button" data-toggle="slide-collapse" data-target="#navbarHolder" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse justify-content-end" id="navbarHolder">
<ul class="nav navbar-nav">
<li class="nav-item">
<a class="nav-link" href="dev-tools.html">Dev Tools</a>
</li>
<li class="nav-item">
<a class="nav-link" href="http://xagfans.com/" target="blank">BBS</a>
</li>
</ul><!-- /.navbar-nav -->
<div class="github-edit-wrap">
<a href="https://github.com/xagfans/docs/tutorials/manage-the-rippled-server/troubleshooting/fix-sqlite-tx-db-page-size-issue.md" target="_blank" class="github-edit">Edit</a>
</div><!-- /.github-edit -->
<div class="nav navbar-nav language-selector">
<div class="dropdown">
<button class="btn btn-outline-secondary dropdown-toggle" type="button" id="language_selector_header_btn" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
English
</button>
<div class="dropdown-menu" aria-labelledby="language_selector_header_btn">
<a class="dropdown-item" href="/fix-sqlite-tx-db-page-size-issue.html">English</a>
<a class="dropdown-item" href="/cn/fix-sqlite-tx-db-page-size-issue.html">中文</a>
</div><!--/.dropdown-menu-->
</div><!--/.dropdown-->
</div><!--/.language-selector-->
</div><!--/#navbarHolder-->
<div class="menu-overlay"></div>
</nav>
<div class="container-fluid" role="document" id="main_content_wrapper">
<div class="row">
<!-- Right sidebar first so it's at the beginning for mobile layouts -->
<aside class="right-sidebar col-lg-3 order-lg-4 p-0" role="complementary">
<div class="card" id="page-toc-wrapper">
<div class="card-header">
<h4>In this document</h4>
</div>
<ul class="card-body">
<li class="level-1"><a href="#fix-sqlite-transaction-database-page-size-issue">Fix SQLite Transaction Database Page Size Issue</a></li>
<li class="level-2"><a href="#background">Background</a></li>
<li class="level-2"><a href="#detection">Detection</a></li>
<li class="level-3"><a href="#proactive-detection">Proactive Detection</a></li>
<li class="level-3"><a href="#reactive-detection">Reactive Detection</a></li>
<li class="level-2"><a href="#fix">Fix</a></li>
<li class="level-3"><a href="#prerequisites">Prerequisites</a></li>
<li class="level-3"><a href="#migration-process">Migration Process</a></li>
<li class="level-2"><a href="#see-also">See Also</a></li>
</ul>
</div>
</aside>
<!-- main column -->
<main class="main col-md-7 col-lg-6 order-md-3 " role="main" id="main_content_body">
<nav class="breadcrumbs-wrap p-0 p-md-3" aria-label="breadcrumb">
<ul class="breadcrumb bg-white">
<li class="breadcrumb-item"><a href="index.html">Home</a></li>
<li class="active breadcrumb-item"><a href="docs.html">Docs</a></li>
<li class="active breadcrumb-item"><a href="tutorials.html">Tutorials</a></li>
<li class="active breadcrumb-item"><a href="troubleshoot-the-rippled-server.html">Troubleshooting rippled</a></li>
<li class="active breadcrumb-item">Fix SQLite Transaction Database Page Size Issue</li>
</ul>
</nav><!--/.breadcrumbs-wrap--> <article class="pt-3 p-md-3">
<div class="content">
<h1 id="fix-sqlite-transaction-database-page-size-issue">Fix SQLite Transaction Database Page Size Issue</h1>
<p><code>rippled</code> servers with full <a href="ledger-history.html">ledger history</a> (or a very large amount of transaction history) and a database that was initially created with a <code>rippled</code> version earlier than 0.40.0 (released January 2017) may encounter a problem with their SQLite database page size that stops the server from operating properly. Servers that store only recent transaction history (the default configuration) and servers whose database files were created with <code>rippled</code> version 0.40.0 and later are not likely to encounter this problem.</p>
<p>This document describes steps to detect and correct this problem if it occurs.</p>
<h2 id="background">Background</h2>
<p><code>rippled</code> servers store a copy of their transaction history in a SQLite database. Before version 0.40.0, <code>rippled</code> configured this database to have a capacity of roughly 2TB. For most uses, this is plenty. However, full transaction history back to ledger 32570 (the oldest ledger version available in the production XAG Ledger history) is likely to exceed this exceed the SQLite database capacity. <code>rippled</code> servers version 0.40.0 and later create their SQLite database files with a larger capacity, so they are unlikely to encounter this problem.</p>
<p>The capacity of the SQLite database is a result of the database's <em>page size</em> parameter, which cannot be easily changed after the database is created. (For more information on SQLite's internals, see <a class="external-link" href="https://www.sqlite.org/fileformat.html" target="_blank">the official SQLite documentation <i aria-hidden="true" class="fa fa-external-link"></i></a>.) The database can reach its capacity even if there is still free space on the disk and filesystem where it is stored. As described in the <a href="#fix">Fix</a> below, reconfiguring the page size to avoid this problem requires a somewhat time-consuming migration process.</p>
<p class="devportal-callout tip"><strong>Tip:</strong> Full history is not necessary to operate a <code>rippled</code> server for most use cases. Servers with full transaction history may be useful for long-term analysis and archive purposes or as a precaution against disasters. For a less resource-intense way to contribute to the storage of transaction history, see <a href="history-sharding.html">History Sharding</a>.</p>
<h2 id="detection">Detection</h2>
<p>If your server is vulnerable to this problem, you can detect it two ways:</p>
<ul>
<li>You can detect the problem <a href="#proactive-detection">proactively</a> (before it causes problems) if your <code>rippled</code> server is <a class="external-link" href="https://github.com/ripple/rippled/releases/tag/1.1.0" target="_blank" title="BADGE_BLUE">version 1.1.0 <i aria-hidden="true" class="fa fa-external-link"></i></a> or later.</li>
<li>You can identify the problem <a href="#reactive-detection">reactively</a> (when your server is crashing) on any <code>rippled</code> version.</li>
</ul>
<p>In both cases, detection of the problem requires access to <code>rippled</code>'s server logs.</p>
<p class="devportal-callout tip"><strong>Tip:</strong> The location of the debug log depends on your <code>rippled</code> server's config file. The <a class="external-link" href="https://github.com/ripple/rippled/blob/master/cfg/rippled-example.cfg#L1139-L1142" target="_blank">default configuration <i aria-hidden="true" class="fa fa-external-link"></i></a> writes the server's debug log to the file <code>/var/log/rippled/debug.log</code>.</p>
<h3 id="proactive-detection">Proactive Detection</h3>
<p>To detect the SQLite page size problem proactively, you must be running <strong><a class="external-link" href="https://github.com/ripple/rippled/releases/tag/1.1.0" target="_blank" title="BADGE_BLUE">rippled 1.1.0 <i aria-hidden="true" class="fa fa-external-link"></i></a> or later</strong>. The <code>rippled</code> server writes a message such as the following in its debug log periodically, at least once every 2 minutes. (The exact numeric values from the log entry and the path to your transaction database depend on your environment.)</p>
<pre><code class="text">Transaction DB pathname: /opt/rippled/transaction.db; SQLite page size: 1024
bytes; Free pages: 247483646; Free space: 253423253504 bytes; Note that this
does not take into account available disk space.
</code></pre>
<p>The value <code>SQLite page size: 1024 bytes</code> indicates that your transaction database is configured with a smaller page size and does not have capacity for full transaction history. If the value is already 4096 bytes or higher, then your SQLite database should already have adequate capacity to store full transaction history and you do not need to perform the migration described in this document.</p>
<p>The <code>rippled</code> server halts if the <code>Free space</code> described in this log message becomes less than 524288000 bytes (500MB). If your free space is approaching that threshold, <a href="#fix">fix the problem</a> to avoid an unexpected outage.</p>
<h3 id="reactive-detection">Reactive Detection</h3>
<p>If your server's SQLite database capacity has already been exceeded, the <code>rippled</code> service writes a log message indicating the problem and halts.</p>
<h4 id="rippled-110-and-later">rippled 1.1.0 and Later</h4>
<p>On <code>rippled</code> versions 1.1.0 and later, the server shuts down gracefully with a message such as the following in the server's debug log:</p>
<pre><code class="text">Free SQLite space for transaction db is less than 512MB. To fix this, rippled
must be executed with the vacuum <sqlitetmpdir> parameter before restarting.
Note that this activity can take multiple days, depending on database size.
</code></pre>
<h4 id="earlier-than-rippled-110">Earlier than rippled 1.1.0</h4>
<p>On <code>rippled</code> versions before 1.1.0, the server crashes repeatedly with messages such as the following in the server's debug log:</p>
<pre><code class="text">Terminating thread doJob: AcquisitionDone: unhandled
N4soci18sqlite3_soci_errorE 'sqlite3_statement_backend::loadOne: database or
disk is full while executing "INSERT INTO [...]
</code></pre>
<h2 id="fix">Fix</h2>
<p>You can fix this issue using <code>rippled</code> on supported Linux systems according to the steps described in this document. In the case of a full-history server with system specs approximately matching the <a href="capacity-planning.html#recommendation-1">recommended hardware configuration</a>, the process may take more than two full days.</p>
<h3 id="prerequisites">Prerequisites</h3>
<ul>
<li>
<p>You must be running <strong><a class="external-link" href="https://github.com/ripple/rippled/releases/tag/1.1.0" target="_blank" title="BADGE_BLUE">rippled version 1.1.0 <i aria-hidden="true" class="fa fa-external-link"></i></a> or later</strong>.</p>
<ul>
<li>
<p><a href="install-rippled.html">Upgrade rippled</a> to the latest stable version before starting this process.</p>
</li>
<li>
<p>You can check what version of <code>rippled</code> you have installed locally by running the following command:</p>
<pre><code>rippled --version
</code></pre>
</li>
</ul>
</li>
<li>
<p>You must have enough free space to temporarily store a second copy of the transaction database, in a directory that is writable by the <code>rippled</code> user. This free space does not need to be in the same filesystem as the existing transaction database.</p>
<p>The transaction database is stored in the <code>transaction.db</code> file in the folder specified by your configuration's <code>[database_path]</code> setting. You can check the size of this file to see how much free space you need. For example:</p>
<pre><code>ls -l /var/lib/rippled/db/transaction.db
</code></pre>
</li>
</ul>
<h3 id="migration-process">Migration Process</h3>
<p>To migrate your transaction database to a larger page size, perform the following steps:</p>
<ol>
<li>
<p>Check that you meet all the <a href="#prerequisites">prerequisites</a>.</p>
</li>
<li>
<p>Create a folder to store temporary files during the migration process.</p>
<pre><code>mkdir /tmp/rippled_txdb_migration
</code></pre>
</li>
<li>
<p>Grant the <code>rippled</code> user ownership of the temporary folder so it can write files there. (This is not necessary if your temporary folder is somewhere the <code>rippled</code> user already has write access to.)</p>
<pre><code>chown rippled /tmp/rippled_txdb_migration
</code></pre>
</li>
<li>
<p>Confirm that your temporary folder has enough free space to store a copy of the transaction database.</p>
<p>For example, compare the <code>Avail</code> output from the <code>df</code> command to the <a href="#prerequisites">size of your <code>transaction.db</code> file</a>.</p>
<pre><code>df -h /tmp/rippled_txdb_migration
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 5.4T 2.6T 2.6T 50% /tmp
</code></pre>
</li>
<li>
<p>If <code>rippled</code> is still running, stop it:</p>
<pre><code>sudo systemctl stop rippled
</code></pre>
</li>
<li>
<p>Open a <code>screen</code> session (or other similar tool) so that the process does not stop when you log out:</p>
<pre><code>screen
</code></pre>
</li>
<li>
<p>Become the <code>rippled</code> user:</p>
<pre><code>sudo su - rippled
</code></pre>
</li>
<li>
<p>Run <code>rippled</code> executable directly, providing the <code>--vacuum</code> command with the path to the temporary directory:</p>
<pre><code>/opt/ripple/bin/rippled -q --vacuum /tmp/rippled_txdb_migration
</code></pre>
<p>The <code>rippled</code> executable immediately displays the following message:</p>
<pre><code>VACUUM beginning. page_size: 1024
</code></pre>
</li>
<li>
<p>Wait for the process to complete. This can take more than two full days.</p>
<p>When the process is complete, the <code>rippled</code> executable displays the following message, then exits:</p>
<pre><code>VACUUM finished. page_size: 4096
</code></pre>
<p>While you wait, you can detach your <code>screen</code> session by pressing <strong>CTRL-A</strong>, then <strong>D</strong>. Later, you can reattach your screen session with a command such as the following:</p>
<pre><code>screen -x -r
</code></pre>
<p>When the process is over, exit the screen session:</p>
<pre><code>exit
</code></pre>
<p>For more information on the <code>screen</code> command, see <a class="external-link" href="https://www.gnu.org/software/screen/manual/screen.html" target="_blank">the official Screen User's Manual <i aria-hidden="true" class="fa fa-external-link"></i></a> or any of the other many resources available online.</p>
</li>
<li>
<p>Restart the <code>rippled</code> service.</p>
<pre><code>sudo systemctl start rippled
</code></pre>
</li>
<li>
<p>Confirm that the <code>rippled</code> service started successfully.</p>
<p>You can use the <a href="get-started-with-the-rippled-api.html#commandline">commandline interface</a> to check the server status (unless you have configured your server not to accept JSON-RPC requests). For example:</p>
<pre><code>/opt/ripple/bin/rippled server_info
</code></pre>
<p>For a description of the expected response from this command, see the <a href="server_info.html">server_info method</a> documentation.</p>
</li>
<li>
<p>Watch the server's debug log to confirm that the <code>SQLite page size</code> is now 4096:</p>
<pre><code>tail -F /var/log/rippled/debug.log
</code></pre>
<p>The <a href="#proactive-detection">periodic log message</a> should also show significantly more free pages and free pages than it did before the migration.</p>
</li>
<li>
<p>Optionally, you may now remove the temporary folder you created for the migration process.</p>
<pre><code>rm -r /tmp/rippled_txdb_migration
</code></pre>
<p>If you mounted additional storage to hold the temporary copy of the transaction database, you can unmount and remove it now.</p>
</li>
</ol>
<h2 id="see-also">See Also</h2>
<ul>
<li><strong>Concepts:</strong><ul>
<li><a href="the-rippled-server.html">The <code>rippled</code> Server</a></li>
<li><a href="ledger-history.html">Ledger History</a></li>
</ul>
</li>
<li><strong>Tutorials:</strong><ul>
<li><a href="understanding-log-messages.html">Understanding Log Messages</a></li>
<li><a href="configure-full-history.html">Configure Full History</a></li>
</ul>
</li>
<li><strong>References:</strong><ul>
<li><a href="rippled-api.html">rippled API Reference</a><ul>
<li><a href="commandline-usage.html"><code>rippled</code> Commandline Usage</a></li>
<li><a href="server_info.html">server_info method</a></li>
</ul>
</li>
</ul>
</li>
</ul>
<!-- -->
<!-- -->
<!-- API object types -->
<!-- -->
<!-- -->
<!-- -->
<!-- rippled release notes links -->
</div>
</article>
</main>
<!-- Left sidebar last so it's at the end for mobile -->
<aside class="sidebar col-md-5 col-lg-3 p-0 order-md-1" role="complementary">
<div class="tree_nav">
<!---->
<div class="sidenav_parent">
<a href="tutorials.html"> Tutorials</a>
</div>
<!---->
<!---->
<div id="sidenav" role="tablist" aria-multiselectable="true">
<!---->
<div class="card">
<div class="card-header" role="tab" id="sidenav_cat_head_2">
<a class="collapsed sidenav_cat_toggler" role="button" data-toggle="collapse" href="#sidenav_collapse_2" aria-expanded="true" aria-controls="sidenav_collapse_2"></a>
<h5 class="card-title">
<a class="sidenav_cat_title" href="get-started.html">Get Started</a>
<!-- <a class="sidenav_cat_title" href="get-started.html">Get Started</a> -->
</h5>
</div><!-- /.card-header -->
<div id="sidenav_collapse_2" class="collapse" role="tabpanel" aria-labelledby="sidenav_cat_head_2">
<div class="card-body">
<ul class="sidebar_pagelist">
<li><a class="nosubcat-page" href="get-started-with-the-rippled-api.html">Get Started with XAG Ledger APIs</a></li>
<li><a class="nosubcat-page" href="set-up-secure-signing.html">Set Up Secure Signing</a></li>
<li><a class="nosubcat-page" href="get-started-with-rippleapi-for-javascript.html">Get Started with RippleAPI for JavaScript</a></li>
<li><a class="nosubcat-page" href="look-up-transaction-results.html">Look Up Transaction Results</a></li>
<li><a class="nosubcat-page" href="monitor-incoming-payments-with-websocket.html">Monitor Incoming Payments with WebSocket</a></li>
</ul>
</div><!-- /.card-body -->
</div><!-- /#sidenav_collapse2 -->
</div><!-- /.card -->
<!---->
<div class="card">
<div class="card-header" role="tab" id="sidenav_cat_head_8">
<a class="collapsed sidenav_cat_toggler" role="button" data-toggle="collapse" href="#sidenav_collapse_8" aria-expanded="true" aria-controls="sidenav_collapse_8"></a>
<h5 class="card-title">
<a class="sidenav_cat_title" href="use-simple-xrp-payments.html">Use Direct XAG Payments</a>
<!-- <a class="sidenav_cat_title" href="use-simple-xrp-payments.html">Use Simple XAG Payments</a> -->
</h5>
</div><!-- /.card-header -->
<div id="sidenav_collapse_8" class="collapse" role="tabpanel" aria-labelledby="sidenav_cat_head_8">
<div class="card-body">
<ul class="sidebar_pagelist">
<li><a class="nosubcat-page" href="send-xag.html">Send XAG</a></li>
<li><a class="nosubcat-page" href="reliable-transaction-submission.html">Reliable Transaction Submission</a></li>
</ul>
</div><!-- /.card-body -->
</div><!-- /#sidenav_collapse8 -->
</div><!-- /.card -->
<!---->
<div class="card">
<div class="card-header" role="tab" id="sidenav_cat_head_12">
<a class="collapsed sidenav_cat_toggler" role="button" data-toggle="collapse" href="#sidenav_collapse_12" aria-expanded="true" aria-controls="sidenav_collapse_12"></a>
<h5 class="card-title">
<a class="sidenav_cat_title" href="manage-account-settings.html">Manage Account Settings</a>
<!-- <a class="sidenav_cat_title" href="manage-account-settings.html">Manage Account Settings</a> -->
</h5>
</div><!-- /.card-header -->
<div id="sidenav_collapse_12" class="collapse" role="tabpanel" aria-labelledby="sidenav_cat_head_12">
<div class="card-body">
<ul class="sidebar_pagelist">
<li><a class="nosubcat-page" href="assign-a-regular-key-pair.html">Assign a Regular Key Pair</a></li>
<li><a class="nosubcat-page" href="change-or-remove-a-regular-key-pair.html">Change or Remove a Regular Key Pair</a></li>
<li><a class="nosubcat-page" href="disable-master-key-pair.html">Disable Master Key Pair</a></li>
<li><a class="nosubcat-page" href="set-up-multi-signing.html">Set Up Multi-Signing</a></li>
<li><a class="nosubcat-page" href="send-a-multi-signed-transaction.html">Send a Multi-Signed Transaction</a></li>
<li><a class="nosubcat-page" href="require-destination-tags.html">Require Destination Tags</a></li>
</ul>
</div><!-- /.card-body -->
</div><!-- /#sidenav_collapse12 -->
</div><!-- /.card -->
<!---->
<div class="card">
<div class="card-header" role="tab" id="sidenav_cat_head_20">
<a class="collapsed sidenav_cat_toggler" role="button" data-toggle="collapse" href="#sidenav_collapse_20" aria-expanded="true" aria-controls="sidenav_collapse_20"></a>
<h5 class="card-title">
<a class="sidenav_cat_title" href="use-specialized-payment-types.html">Use Specialized Payment Types</a>
<!-- <a class="sidenav_cat_title" href="use-specialized-payment-types.html">Use Specialized Payment Types</a> -->
</h5>
</div><!-- /.card-header -->
<!-- /#sidenav_collapse20 -->
</div><!-- /.card -->
<!---->
<div class="card">
<div class="card-header" role="tab" id="sidenav_cat_head_35">
<a class="collapsed sidenav_cat_toggler" role="button" data-toggle="collapse" href="#sidenav_collapse_35" aria-expanded="true" aria-controls="sidenav_collapse_35"></a>
<h5 class="card-title">
<a class="sidenav_cat_title" href="xrp-ledger-businesses.html">XAG Ledger Businesses</a>
<!-- <a class="sidenav_cat_title" href="xrp-ledger-businesses.html">XAG Ledger Businesses</a> -->
</h5>
</div><!-- /.card-header -->
<div id="sidenav_collapse_35" class="collapse" role="tabpanel" aria-labelledby="sidenav_cat_head_35">
<div class="card-body">
<ul class="sidebar_pagelist">
<li><a class="nosubcat-page" href="list-xag-as-an-exchange.html">List XAG as an Exchange</a></li>
<li><a class="nosubcat-page" href="list-your-exchange-on-xag-charts.html">List Your Exchange on XAG Charts</a></li>
</ul>
</div><!-- /.card-body -->
</div><!-- /#sidenav_collapse35 -->
</div><!-- /.card -->
<!---->
<div class="card active">
<div class="card-header" role="tab" id="sidenav_cat_head_39">
<a class="sidenav_cat_toggler" role="button" data-toggle="collapse" href="#sidenav_collapse_39" aria-expanded="true" aria-controls="sidenav_collapse_39"></a>
<h5 class="card-title">
<a class="sidenav_cat_title active-parent" href="manage-the-rippled-server.html">Manage the rippled Server</a>
<!-- <a class="sidenav_cat_title" href="manage-the-rippled-server.html">Manage the rippled Server</a> -->
</h5>
</div><!-- /.card-header -->
<div id="sidenav_collapse_39" class="collapse show" role="tabpanel" aria-labelledby="sidenav_cat_head_39">
<div class="card-body">
<ul class="sidebar_pagelist">
<li><a class="subcat-title" href="install-rippled.html">Install rippled</a></li>
<li><a class="subpage" href="system-requirements.html">System Requirements</a></li>
<li><a class="subpage" href="install-rippled-on-centos-rhel-with-yum.html">Install on CentOS/Red Hat with yum</a></li>
<li><a class="subpage" href="install-rippled-on-ubuntu.html">Install on Ubuntu or Debian Linux</a></li>
<li><a class="subpage" href="update-rippled-automatically-on-linux.html">Update Automatically on Linux</a></li>
<li><a class="subpage" href="update-rippled-manually-on-centos-rhel.html">Update Manually on CentOS/Red Hat</a></li>
<li><a class="subpage" href="update-rippled-manually-on-ubuntu.html">Update Manually on Ubuntu or Debian</a></li>
<li><a class="subpage" href="build-run-rippled-ubuntu.html">Build and Run rippled on Ubuntu</a></li>
<li><a class="subpage" href="build-run-rippled-macos.html">Build and Run rippled on macOS</a></li>
<li><a class="subpage" href="capacity-planning.html">Capacity Planning</a></li>
<li><a class="subpage" href="rippled-1-3-migration-instructions.html">rippled v1.3.x Migration Instructions</a></li>
<li><a class="subcat-title" href="configure-rippled.html">Configure rippled</a></li>
<li><a class="subpage" href="run-rippled-as-a-validator.html">Run rippled as a Validator</a></li>
<li><a class="subpage" href="run-rippled-as-a-wallet-server.html">Run rippled as a Wallet Server</a></li>
<li><a class="subpage" href="configure-statsd.html">Configure StatsD</a></li>
<li><a class="subpage" href="connect-your-rippled-to-the-xag-test-net.html">Connect Your rippled to an XAGL Altnet</a></li>
<li><a class="subpage" href="configure-online-deletion.html">Configure Online Deletion</a></li>
<li><a class="subpage" href="configure-advisory-deletion.html">Configure Advisory Deletion</a></li>
<li><a class="subpage" href="configure-history-sharding.html">Configure History Sharding</a></li>
<li><a class="subpage" href="configure-full-history.html">Configure Full History</a></li>
<li><a class="subpage" href="configure-grpc.html">Configure gRPC</a></li>
<li><a class="subpage" href="enable-public-signing.html">Enable Public Signing</a></li>
<li><a class="subcat-title" href="configure-peering.html">Configure Peering</a></li>
<li><a class="subpage" href="cluster-rippled-servers.html">Cluster rippled Servers</a></li>
<li><a class="subpage" href="configure-a-private-server.html">Configure a Private Server</a></li>
<li><a class="subpage" href="configure-the-peer-crawler.html">Configure the Peer Crawler</a></li>
<li><a class="subpage" href="forward-ports-for-peering.html">Forward Ports for Peering</a></li>
<li><a class="subpage" href="manually-connect-to-a-specific-peer.html">Manually Connect to a Specific Peer</a></li>
<li><a class="subpage" href="set-max-number-of-peers.html">Set Maximum Number of Peers</a></li>
<li><a class="subpage" href="use-a-peer-reservation.html">Use a Peer Reservation</a></li>
<li><a class="subcat-title" href="use-stand-alone-mode.html">Test rippled Functionality in Stand-Alone Mode</a></li>
<li><a class="subpage" href="start-a-new-genesis-ledger-in-stand-alone-mode.html">Start a New Genesis Ledger in Stand-Alone Mode</a></li>
<li><a class="subpage" href="load-a-saved-ledger-in-stand-alone-mode.html">Load a Saved Ledger in Stand-Alone Mode</a></li>
<li><a class="subpage" href="advance-the-ledger-in-stand-alone-mode.html">Advance the Ledger in Stand-Alone Mode</a></li>
<li><a class="subcat-title active-parent" href="troubleshoot-the-rippled-server.html">Troubleshooting rippled</a></li>
<li><a class="subpage" href="diagnosing-problems.html">Diagnosing Problems with rippled</a></li>
<li><a class="subpage" href="understanding-log-messages.html">Understanding Log Messages</a></li>
<li><a class="subpage" href="server-doesnt-sync.html">rippled Server Doesn't Sync</a></li>
<li><a class="subpage" href="server-wont-start.html">rippled Server Won't Start</a></li>
<li><a class="active subpage" href="#main_content_body">Fix SQLite Transaction Database Page Size Issue</a></li>
</ul>
</div><!-- /.card-body -->
</div><!-- /#sidenav_collapse39 -->
</div><!-- /.card -->
</div><!-- /#sidenav -->
</div><!-- /.tree_nav --> </aside>
</div><!--/.row (main layout)-->
</div>
<footer class="xrpl-footer" role="contentinfo">
<section class="container-fluid card-grid card-grid-Nx1">
<div class="card">
<div class="card-header">
<h5><a href="docs.html">Docs</a></h5>
</div><!--/.card-header-->
<div class="card-body">
<div class="children-display">
<ul>
<li class="level-1"><a href="concepts.html">Concepts</a></li>
<li class="level-1"><a href="tutorials.html">Tutorials</a></li>
<li class="level-1"><a href="references.html">References</a></li>
</ul>
</div> </div><!--/.card-body-->
<div class="flag-vertical">01</div>
</div><!--/.card -->
<div class="card">
<div class="card-header">
<h5><a href="use-cases.html">Use Cases</a></h5>
</div><!--/.card-header-->
<div class="card-body">
<div class="children-display">
<ul>
<li class="level-1"><a href="run-a-rippled-validator.html">Run a rippled Validator</a></li>
<li class="level-1"><a href="list-xrp-in-your-exchange.html">List XAG in Your Exchange</a></li>
<li class="level-1"><a href="contribute-code-to-rippled.html">Contribute Code to rippled</a></li>
<li class="level-1"><a href="contribute-code-to-ripple-lib.html">Contribute Code to ripple-lib</a></li>
</ul>
</div> </div><!--/.card-body-->
<div class="flag-vertical">02</div>
</div><!--/.card -->
<div class="card">
<div class="card-header">
<h5><a href="dev-tools.html">Dev Tools</a></h5>
</div><!--/.card-header-->
<div class="card-body">
<div class="children-display">
<ul>
<li class="level-1"><a href="xag-ledger-rpc-tool.html">RPC Tool</a></li>
<li class="level-1"><a href="websocket-api-tool.html">WebSocket API Tool</a></li>
<li class="level-1"><a target="_blank" href="https://scan.xrpgen.com/">XAG Ledger Explorer</a> <i class="fa fa-external-link"></i></li>
</ul>
</div> </div><!--/.card-body-->
<div class="flag-vertical">03</div>
</div><!--/.card -->
<div class="card">
<div class="card-header">
<h5><a href="https://xrpgen.com/" target="_blank">Xrpalike Gene<i class="fa fa-external-link"></i></a></h5>
</div><!--/.card-header-->
<!--/.card-body-->
<div class="flag-vertical">04</div>
</div><!--/.card -->
</section>
<section class="container-fluid p-5 pl-sm-0">
<nav role="navigation" class="d-flex mb-3 language-selector">
<img class="language_selector_icon" src="assets/img/icon-language-selector.svg" width="32" height="40" alt="language selection icon" />
<ul class="nav">
<li class="nav-item">
<a class="nav-link active" href="/fix-sqlite-tx-db-page-size-issue.html"><i class="fa fa-check-circle"></i> English</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/cn/fix-sqlite-tx-db-page-size-issue.html">中文</a>
</li>
</ul>
</nav>
<div class="absolute_bottom_footer">
<span>© XAG Ledger Project 2020</span>
<span><a href="">License</a></span>
</div><!-- /.absolute_bottom_footer -->
</section>
</footer>
<!-- Jump to top button -->
<a href="#main_content_wrapper" class="jump-to-top btn btn-primary btn-lg" role="button" title="Jump to top of page">Top</a>
<script type="text/javascript" src="assets/js/jump-to-top.js"></script>
<!-- Non-blocking resources -->
<!-- Bootstrap JS -->
<script src="assets/vendor/bootstrap.min.js"></script>
<!-- fontawesome icons -->
<link rel="stylesheet" href="assets/vendor/fontawesome/css/font-awesome.min.css" />
<!-- Algolia DocSearch -->
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
<script type="text/javascript"> docsearch({
apiKey: '70de5b9b8ef95460f3c6e04054b325b2',
indexName: 'xrpl',
inputSelector: '#topsearchbar',
algoliaOptions: { 'facetFilters': ["lang:en"] },
debug: false
});
</script>
<script type="application/javascript">
gtag('set', {'content_group1': 'Content Docs'});
</script>
</body>
</html>