stepbystep:maintenance

This is an old revision of the document!


Maintenance

  • 2021_03_10
$ composer update drupal/quick_node_clone
  - Upgrading drupal/quick_node_clone (1.13.0 => 1.14.0): Extracting archive
$ vendor/bin/drush updatedb
$ vendor/bin/drush cr
  • 2021_03_11

Align https://github.com/giancarlobi/strawberry_runners to https://github.com/esmero/strawberry_runners then

$ composer update strawberryfield/strawberry_runners
  - Upgrading strawberryfield/strawberry_runners (0.1.0.x-dev 4275b87 => 0.1.0.x-dev c2b0972)
$ vendor/bin/drush updatedb
$ vendor/bin/drush cr

Align https://github.com/giancarlobi/strawberryfield to https://github.com/esmero/strawberryfield

$ composer require 'professional-wiki/edtf:0.1.x-dev'
  - Installing professional-wiki/edtf (dev-master b22b34f)
$ composer update strawberryfield/strawberryfield
  - Upgrading strawberryfield/strawberryfield (dev-1.0.0-RC2 caf0380 => dev-1.0.0-RC2 fa44900)
$ vendor/bin/drush updatedb
$ vendor/bin/drush cr

Align https://github.com/giancarlobi/webform_strawberryfield to https://github.com/esmero/webform_strawberryfield

$ composer update strawberryfield/webform_strawberryfield
  - Upgrading strawberryfield/webform_strawberryfield (dev-1.0.0-RC2 1c1c601 => dev-1.0.0-RC2 48aebc7)
$ vendor/bin/drush updatedb
$ vendor/bin/drush cr
  • 2021_03_14
$ composer update drupal/config_inspector
  - Upgrading drupal/config_inspector (1.1.0 => 1.3.0)
$ vendor/bin/drush updatedb
$ vendor/bin/drush cr
  • 2021_03_15

Downgraded solr ocr plugin due to a probably issue.

$ cd ~
$ wget https://github.com/dbmdz/solr-ocrhighlighting/releases/download/0.5.0/solr-ocrhighlighting-0.5.0.jar
$ sudo systemctl stop solr
$ sudo mv /opt/solr/contrib/archipelago/lib/solr-ocrhighlighting-0.6.0-SNAPSHOT.jar ./
$ sudo mv solr-ocrhighlighting-0.5.0.jar /opt/solr/contrib/archipelago/lib/
$ sudo systemctl start solr

Align https://github.com/giancarlobi/strawberry_runners to https://github.com/esmero/strawberry_runners then

$ composer update strawberryfield/strawberry_runners
  - Upgrading strawberryfield/strawberry_runners (0.1.0.x-dev ef4c08b => 0.1.0.x-dev 653b4b9)
$ vendor/bin/drush updatedb
$ vendor/bin/drush cr
  • 2021_03_22

Twig tools required for json_decode function.

$ composer require drupal/twig_tools
$ vendor/bin/drush en twig_tools
$ vendor/bin/drush cr

More modules update

$ composer update strawberryfield/strawberryfield
  - Upgrading strawberryfield/strawberryfield (dev-1.0.0-RC2 fa44900 => dev-1.0.0-RC2 e799247)
$ vendor/bin/drush updatedb
$ vendor/bin/drush cr
 
$ composer update drupal/ds drupal/jquery_ui_datepicker drupal/metatag drupal/views_bulk_operations
  - Upgrading drupal/views_bulk_operations (3.10.0 => 3.12.0): Extracting archive
  - Upgrading drupal/ds (3.10.0 => 3.12.0): Extracting archive
  - Upgrading drupal/jquery_ui_datepicker (1.0.0 => 1.1.0): Extracting archive
  - Upgrading drupal/metatag (1.15.0 => 1.16.0): Extracting archive
$ vendor/bin/drush updatedb
$ vendor/bin/drush cr
  • 2021_03_29

Change Solr extra types to be better for Italian language. (see Solr)
Update Cantaloupe to version 5.0 released (see Cantaloupe)

  • 2021_03_30

Update strawberryfield RC2 and runners 0.1.0 to enable plaintext and solve search_api issue

$ composer update 'strawberryfield/strawberryfield' 'strawberryfield/strawberry_runners'
  - Upgrading strawberryfield/strawberry_runners (0.1.0.x-dev 653b4b9 => 0.1.0.x-dev 7d88aa6)
  - Upgrading strawberryfield/strawberryfield (dev-1.0.0-RC2 e799247 => dev-1.0.0-RC2 4ad59bf)
$ vendor/bin/drush updatedb
$ vendor/bin/drush cr

Set/clear strawberryfield flavor datasource fields (admin/config/search/search-api/index/drupal_content_to_solr_8/fields) General update

$ composer update
  - Upgrading professional-wiki/edtf (dev-master b22b34f => dev-master 52e48be): Checking out 52e48be75e from cache
  - Upgrading frictionlessdata/datapackage (dev-master d9e007d => dev-master 48e73fc): Checking out 48e73fc9b9 from cache
  - Upgrading symfony/finder (v5.2.3 => v5.2.4): Extracting archive
  - Upgrading phpseclib/phpseclib (3.0.5 => 3.0.6): Extracting archive
  - Upgrading google/apiclient-services (v0.163.0 => v0.166.0): Extracting archive
  - Upgrading symfony/filesystem (v4.4.19 => v4.4.21): Extracting archive
  - Upgrading drupal/facets (dev-1.x a941c92 => dev-1.x b1c616b): Checking out b1c616bacf from cache
  - Upgrading drupal/inline_entity_form (dev-1.x 52d28cc => dev-1.x 0c9fc28): Checking out 0c9fc2848b from cache
  - Upgrading drupal/restui (1.19.0 => 1.20.0): Extracting archive
  - Upgrading aws/aws-sdk-php (3.173.22 => 3.176.3): Extracting archive
  - Upgrading drupal/s3fs (dev-3.x 012cdc2 => dev-3.x d9c1ba9): Checking out d9c1ba9c0d from cache
  - Upgrading webmozart/assert (1.9.1 => 1.10.0): Extracting archive
  - Upgrading psy/psysh (v0.10.6 => v0.10.7): Extracting archive
$ vendor/bin/drush updatedb
 -------- ------------------- ------------- -----------------------------------
  Module   Update ID           Type          Description
 -------- ------------------- ------------- -----------------------------------
  s3fs     add_credentials_c   post-update   Add default config settings for
           ache_default                      credentials caching.
  s3fs     add_disable_versi   post-update   Set new config property
           on_sync_default                   "disable_version_sync" to default
                                             value.
  s3fs     add_read_only_def   post-update   Set new config property default
           ault                              value for "read_only".
  s3fs     delete_no_rewrite   post-update   Remove obsolete no_rewrite_cssjs
           _cssjs_setting                    config entry (removed in
                                             alpha17).
  s3fs     migrate_instance_   post-update   Migrate Instance Profile
           profile_settings                  settings.
 -------- ------------------- ------------- -----------------------------------
 
$ vendor/bin/drush cr

Add Monolog to log hydroponics on filesystem
Prepare folder

$ mkdir /var/www/html/private/logs
$ sudo chgrp -R www-data private/logs
$ ls -l private/
drwxrwxr-x 2 gestore  www-data 4096 Mar 30 10:22 logs
drwxrwxr-x 7 www-data www-data 4096 Mar 14 22:06 webform

Install, configure and enable

$ composer require 'drupal/monolog:^2.0@beta'
  - Installing drupal/monolog (2.0.0-beta2): Extracting archive
 
$ nano -w web/sites/default/settings.php
/**
 * Enable Monolog service
 *
 */
$settings['container_yamls'][] = 'sites/default/monolog.services.yml';
$ nano -w web/sites/default/monolog.services.yml
parameters:
  monolog.channel_handlers:
    hydroponics: ['rotating_file_hydroponics']
    hydroqueue: ['rotating_file_hydroponics']
    default: ['drupal.dblog']
 
services:
  monolog.handler.rotating_file_hydroponics:
    class: Monolog\Handler\RotatingFileHandler
    arguments: ['private://logs/hydroponics.log', 10, '%monolog.level.debug%']
$ vendor/bin/drush en monolog
$ vendor/bin/drush updatedb
$ vendor/bin/drush cr

Add Bootstrap For Drupal theme

$ composer require 'drupal/bfd:^2.61'
  - Installing drupal/bfd (2.61.0): Extracting archive

Set correct timezone

$ sudo timedatectl set-timezone Europe/Rome
$ timedatectl
               Local time: Wed 2021-03-31 09:13:10 CEST
           Universal time: Wed 2021-03-31 07:13:10 UTC
                 RTC time: Wed 2021-03-31 07:12:56
                Time zone: Europe/Rome (CEST, +0200)
  • 2021_04_08

We need enable datetime and datetime_range

$ vendor/bin/drush en datetime datetime_range
  • stepbystep/maintenance.1617873951.txt.gz
  • Last modified: 2021/04/08 11:25
  • by giancarlo