pbirk@sandbox /var/www/sandbox (master) $ drush cc all WD php: TYPO3\PharStreamWrapper\Exception: Unexpected file extension in "phar:///usr/local/bin/drush/commands/core/locale.d8.drush.inc" in Drupal\Core\Security\PharExtensionInterceptor->assert() (line 38 of [error] /var/www/sandbox/misc/typo3/drupal-security/PharExtensionInterceptor.php). TYPO3\PharStreamWrapper\Exception: Unexpected file extension in "phar:///usr/local/bin/drush/commands/core/locale.d8.drush.inc" in Drupal\Core\Security\PharExtensionInterceptor->assert() (line 38 of /var/www/sandbox/misc/typo3/drupal-security/PharExtensionInterceptor.php). Drush command terminated abnormally due to an unrecoverable error. [error] pbirk@sandbox /var/www/sandbox (master) $ cd sites/all/patches/ pbirk@sandbox /var/www/sandbox/sites/all/patches (master) $ wget https://www.drupal.org/files/issues/2019-01-17/3026560-d7-20.patch --2019-01-17 15:46:37-- https://www.drupal.org/files/issues/2019-01-17/3026560-d7-20.patch Resolving www.drupal.org (www.drupal.org)... 151.101.1.175, 151.101.65.175, 151.101.129.175, ... Connecting to www.drupal.org (www.drupal.org)|151.101.1.175|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 670 [text/plain] Saving to: ‘3026560-d7-20.patch’ 3026560-d7-20.patch 100%[========================================================================================================================================>] 670 --.-KB/s in 0s 2019-01-17 15:46:37 (210 MB/s) - ‘3026560-d7-20.patch’ saved [670/670] pbirk@sandbox /var/www/sandbox/sites/all/patches (master) $ cd - /var/www/sandbox pbirk@sandbox /var/www/sandbox (master) $ clear pbirk@sandbox /var/www/sandbox (master) $ patch -p1 < sites/all/patches/3026560-d7-20.patch patching file misc/typo3/phar-stream-wrapper/src/PharStreamWrapper.php pbirk@sandbox /var/www/sandbox (master *) $ git status On branch master Changes not staged for commit: (use "git add ..." to update what will be committed) (use "git checkout -- ..." to discard changes in working directory) modified: misc/typo3/phar-stream-wrapper/src/PharStreamWrapper.php Untracked files: (use "git add ..." to include in what will be committed) sites/all/patches/ no changes added to commit (use "git add" and/or "git commit -a") pbirk@sandbox /var/www/sandbox (master *) $ git add . pbirk@sandbox /var/www/sandbox (master +) $ git commit -am 'https://www.drupal.org/files/issues/2019-01-17/3026560-d7-20.patch' [master 757d909] https://www.drupal.org/files/issues/2019-01-17/3026560-d7-20.patch 2 files changed, 22 insertions(+), 11 deletions(-) create mode 100644 sites/all/patches/3026560-d7-20.patch pbirk@sandbox /var/www/sandbox (master) $ drush cc all WD php: TYPO3\PharStreamWrapper\Exception: Unexpected file extension in "phar:///usr/local/bin/drush/commands/core/locale.d8.drush.inc" in Drupal\Core\Security\PharExtensionInterceptor->assert() (line 38 of [error] /var/www/sandbox/misc/typo3/drupal-security/PharExtensionInterceptor.php). TYPO3\PharStreamWrapper\Exception: Unexpected file extension in "phar:///usr/local/bin/drush/commands/core/locale.d8.drush.inc" in Drupal\Core\Security\PharExtensionInterceptor->assert() (line 38 of /var/www/sandbox/misc/typo3/drupal-security/PharExtensionInterceptor.php). Drush command terminated abnormally due to an unrecoverable error. [error] pbirk@sandbox /var/www/sandbox (master) $ mkdir ~/backups/drush-8.1.7/ pbirk@sandbox /var/www/sandbox (master) $ cd ~/backups/drush-8.1.7/ pbirk@sandbox ~/backups/drush-8.1.7 $ sudo ls /usr/local/bin/drush* /usr/local/bin/drush /usr/local/bin/drush.phar pbirk@sandbox ~/backups/drush-8.1.7 $ sudo mv /usr/local/bin/drush* . pbirk@sandbox ~/backups/drush-8.1.7 $ ls drush drush.phar pbirk@sandbox ~/backups/drush-8.1.7 $ cd pbirk@sandbox ~ $ drush status -bash: /usr/local/bin/drush: No such file or directory pbirk@sandbox ~ $ cd /usr/local/bin pbirk@sandbox /usr/local/bin $ sudo wget https://github.com/drush-ops/drush/releases/download/8.1.18/drush.phar --2019-01-17 15:52:37-- https://github.com/drush-ops/drush/releases/download/8.1.18/drush.phar Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113 Connecting to github.com (github.com)|192.30.253.112|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/3193843/b28bb380-edba-11e8-9d1d-b49e842ea066?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20190117%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190117T215237Z&X-Amz-Expires=300&X-Amz-Signature=35cb6b89e2392f48b04cde9d3cfaabb284343f920b592bf6950b25ed3c41aba7&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Ddrush.phar&response-content-type=application%2Foctet-stream [following] --2019-01-17 15:52:37-- https://github-production-release-asset-2e65be.s3.amazonaws.com/3193843/b28bb380-edba-11e8-9d1d-b49e842ea066?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20190117%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190117T215237Z&X-Amz-Expires=300&X-Amz-Signature=35cb6b89e2392f48b04cde9d3cfaabb284343f920b592bf6950b25ed3c41aba7&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Ddrush.phar&response-content-type=application%2Foctet-stream Resolving github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)... 52.216.16.176 Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|52.216.16.176|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 4690805 (4.5M) [application/octet-stream] Saving to: ‘drush.phar’ drush.phar 100%[========================================================================================================================================>] 4.47M 1.45MB/s in 3.1s 2019-01-17 15:52:40 (1.45 MB/s) - ‘drush.phar’ saved [4690805/4690805] pbirk@sandbox /usr/local/bin $ ls -al total 4608 drwxr-xr-x 2 root root 4096 Jan 17 15:52 . drwxr-xr-x 12 root root 4096 Oct 25 2017 .. -rwxr-xr-x 1 root root 498 Nov 16 2016 compass -rw-r--r-- 1 root root 4690805 Nov 21 17:24 drush.phar lrwxrwxrwx 1 root root 30 Apr 23 2018 moosh -> /usr/local/src/moosh/moosh.php -rwxr-xr-x 1 root root 486 Nov 16 2016 sass -rwxr-xr-x 1 root root 494 Nov 16 2016 sass-convert -rwxr-xr-x 1 root root 486 Nov 16 2016 scss pbirk@sandbox /usr/local/bin $ sudo chmod +x drush.phar pbirk@sandbox /usr/local/bin $ sudo ln -s drush.phar drush pbirk@sandbox /usr/local/bin $ sudo ls -al total 4608 drwxr-xr-x 2 root root 4096 Jan 17 15:53 . drwxr-xr-x 12 root root 4096 Oct 25 2017 .. -rwxr-xr-x 1 root root 498 Nov 16 2016 compass lrwxrwxrwx 1 root root 10 Jan 17 15:53 drush -> drush.phar -rwxr-xr-x 1 root root 4690805 Nov 21 17:24 drush.phar lrwxrwxrwx 1 root root 30 Apr 23 2018 moosh -> /usr/local/src/moosh/moosh.php -rwxr-xr-x 1 root root 486 Nov 16 2016 sass -rwxr-xr-x 1 root root 494 Nov 16 2016 sass-convert -rwxr-xr-x 1 root root 486 Nov 16 2016 scss pbirk@sandbox /usr/local/bin $ drush core-status PHP configuration : /etc/php/7.0/cli/php.ini PHP OS : Linux Drush script : /usr/local/bin/drush.phar Drush version : 8.1.18 Drush temp directory : /tmp Drush configuration : Drush alias files : /home/pbirk/.drush/ruralcenter.aliases.drushrc.php pbirk@sandbox /usr/local/bin $ cd /var/www/sandbox pbirk@sandbox /var/www/sandbox (master) $ drush cc all 'all' cache was cleared. [success] pbirk@sandbox /var/www/sandbox (master) $ git status On branch master nothing to commit, working directory clean pbirk@sandbox /var/www/sandbox (master) $ git log commit 757d909b42b10cfa842f7f8c88cfaca90de22601 Author: pbirk-rhrc Date: Thu Jan 17 15:47:08 2019 -0600 https://www.drupal.org/files/issues/2019-01-17/3026560-d7-20.patch commit efc51048817aa0acd8e628ecf7d4fb9515416517 Author: pbirk-rhrc Date: Thu Jan 17 15:43:44 2019 -0600 Permission updates commit bb6320595d6f78ba1e80eb24e561c6293f388cab Author: pbirk-rhrc Date: Thu Jan 17 15:42:41 2019 -0600 Drupal 7.63 pbirk@sandbox /var/www/sandbox (master) $ git revert 757d909b42b10cfa842f7f8c88cfaca90de22601 [master 2037f74] Revert "https://www.drupal.org/files/issues/2019-01-17/3026560-d7-20.patch" 2 files changed, 11 insertions(+), 22 deletions(-) delete mode 100644 sites/all/patches/3026560-d7-20.patch pbirk@sandbox /var/www/sandbox (master) $ drush cc all 'all' cache was cleared. [success] pbirk@sandbox /var/www/sandbox (master) $ sudo mkdir ~/backups/drush-8.1.18 pbirk@sandbox /var/www/sandbox (master) $ cd ~/backups/drush-8.1.18 pbirk@sandbox ~/backups/drush-8.1.18 $ sudo mv /usr/local/bin/drush* . pbirk@sandbox ~/backups/drush-8.1.18 $ drush status The program 'drush' is currently not installed. You can install it by typing: sudo apt install drush pbirk@sandbox ~/backups/drush-8.1.18 $ cd ../drush-8.1.7/ pbirk@sandbox ~/backups/drush-8.1.7 $ sudo cp ./drush* /usr/local/bin/ pbirk@sandbox ~/backups/drush-8.1.7 $ drush core-status PHP configuration : /etc/php/7.0/cli/php.ini PHP OS : Linux Drush script : /home/pbirk/backups/drush-8.1.7/drush.phar Drush version : 8.1.7 Drush temp directory : /tmp Drush configuration : Drush alias files : /home/pbirk/.drush/ruralcenter.aliases.drushrc.php pbirk@sandbox ~/backups/drush-8.1.7 $ cd /var/www/sandbox pbirk@sandbox /var/www/sandbox (master) $ drush cc all 'all' cache was cleared. [success] pbirk@sandbox /var/www/sandbox (master) $ drush status Drupal version : 7.63 Site URI : http://default Database driver : mysql Database hostname : localhost Database port : Database username : sandbox Database name : sandbox Database : Connected Drupal bootstrap : Successful Drupal user : Default theme : bartik Administration theme : seven PHP configuration : /etc/php/7.0/cli/php.ini PHP OS : Linux Drush script : /usr/local/bin/drush Drush version : 8.1.7 Drush temp directory : /tmp Drush configuration : Drush alias files : /home/pbirk/.drush/ruralcenter.aliases.drushrc.php Install profile : standard Drupal root : /var/www/sandbox Drupal Settings File : sites/default/settings.php Site path : sites/default File directory path : sites/default/files Temporary file directory path : /tmp pbirk@sandbox /var/www/sandbox (master) $ git log commit 2037f74a6e80f235e72cfd77ad8db3a8084acf9e Author: pbirk-rhrc Date: Thu Jan 17 15:54:36 2019 -0600 Revert "https://www.drupal.org/files/issues/2019-01-17/3026560-d7-20.patch" This reverts commit 757d909b42b10cfa842f7f8c88cfaca90de22601. commit 757d909b42b10cfa842f7f8c88cfaca90de22601 Author: pbirk-rhrc Date: Thu Jan 17 15:47:08 2019 -0600 https://www.drupal.org/files/issues/2019-01-17/3026560-d7-20.patch commit efc51048817aa0acd8e628ecf7d4fb9515416517 Author: pbirk-rhrc Date: Thu Jan 17 15:43:44 2019 -0600 Permission updates commit bb6320595d6f78ba1e80eb24e561c6293f388cab Author: pbirk-rhrc Date: Thu Jan 17 15:42:41 2019 -0600 Drupal 7.63 pbirk@sandbox /var/www/sandbox (master) $