Occasional locks on SQLite

Created on 21 May 2019, over 5 years ago
Updated 7 October 2023, about 1 year ago

Problem/Motivation

Occasionally whilst running \Drupal\Tests\layout_builder\FunctionalJavascript\InlineBlockPrivateFilesTest::testPrivateFiles there are locks on the cache_config table.

Proposed resolution

tbd

Remaining tasks

User interface changes

None

API changes

None

Data model changes

None

Release notes snippet

N/a

πŸ› Bug report
Status

Active

Version

11.0 πŸ”₯

Component
SQLite driverΒ  β†’

Last updated 3 months ago

No maintainer
Created by

πŸ‡¬πŸ‡§United Kingdom alexpott πŸ‡ͺπŸ‡ΊπŸŒ

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡³πŸ‡ΏNew Zealand quietone

    This happened in #3312733-19: SQL migrations cannot be instantiated if database is not available and Node, Migrate Drupal modules are enabled β†’ , twice in March 2023.

    Testing Drupal\Tests\layout_builder\FunctionalJavascript\InlineBlockPrivateFilesTest
    E                                                                   1 / 1 (100%)
    
    Time: 00:23.517, Memory: 4.00 MB
    
    There was 1 error:
    
    1) Drupal\Tests\layout_builder\FunctionalJavascript\InlineBlockPrivateFilesTest::testPrivateFiles
    Behat\Mink\Exception\ElementNotFoundException: Form field with id|name|label|value "files[settings_block_form_field_file_0]" not found.
    
    /var/www/html/vendor/behat/mink/src/Element/TraversableElement.php:292
    /var/www/html/core/modules/layout_builder/tests/src/FunctionalJavascript/InlineBlockPrivateFilesTest.php:273
    /var/www/html/core/modules/layout_builder/tests/src/FunctionalJavascript/InlineBlockPrivateFilesTest.php:177
    /var/www/html/core/modules/layout_builder/tests/src/FunctionalJavascript/InlineBlockPrivateFilesTest.php:120
    /var/www/html/vendor/phpunit/phpunit/src/Framework/TestResult.php:728
  • πŸ‡ΊπŸ‡ΈUnited States tim.plunkett Philadelphia

    This just happened in HEAD
    https://www.drupal.org/pift-ci-job/2631320 β†’

    May be infrequent but it's still relevant

  • πŸ‡¬πŸ‡§United Kingdom catch

    Seeing similar in other tests too, see πŸ“Œ Random test failure in Drupal\Tests\demo_umami\FunctionalJavascript\PerformanceTest RTBC .

    1) Drupal\Tests\demo_umami\FunctionalJavascript\PerformanceTest::testPagesAnonymous
    Drupal\Core\Installer\Exception\InstallerException: Resolve all issues below to continue the installation. For help configuring your database server, see the installation handbook, or contact your hosting provider.Failed to connect to database. The database engine reports the following message: SQLSTATE[HY000]: General error: 5 database is locked.Does the database file exist?Does web server have permission to write to the database file?Does the web server have permission to write to the directory the database file should be created in?
    

    Can we set a higher default value for PDO::ATTR_TIMEOUT in the sqlite driver? (unless it's already very high)?

  • πŸ‡ΊπŸ‡ΈUnited States mfb San Francisco

    AFAIK, the default timeout is 60 seconds - \Drupal::database()->query('PRAGMA busy_timeout')->fetchField(); should show 60000 milliseconds.

Production build 0.71.5 2024