<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Hi,</p>
<p>thank you for these insights and suggestions.</p>
<p>@greg: it is a ethernet wired network-drive.</p>
<p>The problem probably occurs due to hourly backup tasks. These are reading the GPKGs also during edit sessions. And that triggers the errors.</p>
<p>All the best<br /><span style="font-size: 10pt;">Simon</span></p>
<p><br /></p>
<p id="reply-intro">Am 13.08.2024 09:41, schrieb Francesco Pelullo:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<div id="replybody1">
<div dir="auto">
<div>Hi Simon,</div>
<div dir="auto"> </div>
<div dir="auto">We're usually store data in .gpkg on network drive.</div>
<div dir="auto"> </div>
<div dir="auto">Data access in read mode is very nice, also with dozen concurrent users.</div>
<div dir="auto"> </div>
<div dir="auto">Instead, writing data in .gpkg on network drive can cause errors, specially if from two or more concurrent users.</div>
<div dir="auto"> </div>
<div dir="auto">This is because of limits of SQLite format. In past, there was suggestions about a "semaphore" file that prevents to edit .gpkg file, if another user is editing.</div>
<div dir="auto"> </div>
<div dir="auto">My suggestion is: split .gpkg in smallest parts, assign every area (or part) to a user, merge parts at the end.</div>
<div dir="auto"> </div>
<div dir="auto">Or, use PostGIS.</div>
<div dir="auto"> </div>
<div dir="auto">Regards </div>
<div dir="auto"> </div>
<div dir="auto">Francesco</div>
<div dir="auto"> </div>
<div dir="auto"><br />
<div class="v1gmail_quote" dir="auto">
<div class="v1gmail_attr" dir="ltr">Il mar 13 ago 2024, 09:30 Simon Gröchenig via QGIS-User <<a href="mailto:qgis-user@lists.osgeo.org" rel="noreferrer">qgis-user@lists.osgeo.org</a>> ha scritto:</div>
<blockquote class="v1gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left: 1px solid #cccccc; padding-left: 1ex;">
<div style="font-size: 10pt; font-family: Verdana,Geneva,sans-serif;">
<div style="font-size: 10pt; font-family: Verdana,Geneva,sans-serif;">
<p>Hi list,</p>
<p>a project partner "sometimes" struggles to edit GPKGs that are saved on a network drive. Trying to modify the GPKG in QGIS results in the following error:</p>
<blockquote style="padding: 0px 0.4em; border-left: 2px solid #1010ff; margin: 0px;">
<p>Provider errors: OGR error committing transaction: sqlite3_exec(COMMIT) failed: disk I/O error</p>
</blockquote>
<p>No problems occur modifying the same GPKG when it is located on a local drive.</p>
<p>I found the following 8-year-old qgis-user thread: <a href="https://qgis-user.osgeo.narkive.com/bjrGqIjn/something-to-think-about-geopackage-and-wal" target="_blank" rel="noopener noreferrer">https://qgis-user.osgeo.narkive.com/bjrGqIjn/something-to-think-about-geopackage-and-wal</a></p>
<p>Is this thread related to the disk I/O error?</p>
<p>I would also like to ask if GPKGs or SQLite-DBs are still unsave to use from network drives!? Is there any current information about this somewhere?</p>
<p>Best regards<br />Simon</p>
<p><br /></p>
</div>
</div>
_______________________________________________<br />QGIS-User mailing list<br /><a href="mailto:QGIS-User@lists.osgeo.org" rel="noreferrer">QGIS-User@lists.osgeo.org</a><br />List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank" rel="noopener noreferrer">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br />Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank" rel="noopener noreferrer">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></blockquote>
</div>
</div>
</div>
</div>
</blockquote>
<p><br /></p>
<div id="signature">-- <br />
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">_____________________<br />Simon Gröchenig<br />GIS Support und Training<br />Treffling 73 - 9871 Seeboden - Österreich<br />Tel.: +43 699 11223122<br />E-Mail: <a href="mailto:simon@sgroe.at">simon@sgroe.at</a></div>
</div>
</body></html>