The issue

I tried updating acpl/flarum-lscache extension and now my site isn't loading, saying An error occurred while trying to load this page.

composer update acpl/flarum-lscache
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Package operations: 0 installs, 4 updates, 0 removals
  - Upgrading symfony/string (v6.3.2 => v6.3.5): Extracting archive
  - Upgrading s9e/text-formatter (2.14.1 => 2.14.2): Extracting archive
  - Upgrading flarum/core (v1.8.2 => v1.8.3): Extracting archive
  - Upgrading acpl/mobile-tab (1.2.0 => 1.4.1): Extracting archive
    Update of symfony/string failed
 0/3 [>---------------------------]   0%    Update of acpl/mobile-tab failed
    Update of s9e/text-formatter failed
    Update of flarum/core failed
 3/3 [============================] 100%
In Filesystem.php line 285:

  Could not delete /www/wwwroot/site.org/vendor/symfony/string/AbstractString.php:

Flarum information

Flarum core: 1.8.2
PHP version: 8.2.8
MySQL version: 10.7.3-MariaDB-log
Loaded extensions: Core, date, libxml, openssl, pcre, sqlite3, zlib, bcmath, ctype, curl, dom, fileinfo, filter, ftp, gd, gettext, hash, iconv, intl, json, mbstring, SPL, session, pcntl, standard, mysqlnd, PDO, pdo_mysql, pdo_sqlite, Phar, posix, random, Reflection, mysqli, shmop, SimpleXML, soap, sockets, sodium, sysvsem, tokenizer, xml, xmlreader, xmlwriter, zip, redis, gmp, Zend OPcache
+------------------------------------------+---------+--------+
| Flarum Extensions                        |         |        |
+------------------------------------------+---------+--------+
| ID                                       | Version | Commit |
+------------------------------------------+---------+--------+
| flarum-flags                             | v1.8.0  |        |
| flarum-approval                          | v1.8.0  |        |
| flarum-suspend                           | v1.8.1  |        |
| flarum-subscriptions                     | v1.8.0  |        |
| flarum-tags                              | v1.8.0  |        |
| flarum-sticky                            | v1.8.0  |        |
| flarum-markdown                          | v1.8.0  |        |
| afrux-forum-widgets-core                 | v0.1.7  |        |
| fof-user-directory                       | 1.3.2   |        |
| fof-follow-tags                          | 1.2.1   |        |
| fof-spamblock                            | 1.1.0   |        |
| fof-oauth                                | 1.5.3   |        |
| fof-impersonate                          | 1.1.1   |        |
| fof-byobu                                | 1.3.2   |        |
| flarumite-simple-discussion-views        | 1.2.1   |        |
| fof-merge-discussions                    | 1.4.1   |        |
| zerosonesfun-direct-links                | 3.1     |        |
| zerosonesfun-composer-preview            | 1.3     |        |
| the-turk-stickiest                       | 3.0.1   |        |
| the-turk-miserable-users                 | 1.0.2   |        |
| the-turk-diff                            | 1.1.2   |        |
| swaggymacro-only-starter                 | 0.6.6   |        |
| serakoi-flarumstaffbadge                 | 1.2.1   |        |
| rob006-last-post-avatar                  | 1.2.4   |        |
| ramesh-dada-bbcode-alerts                | 6.21    |        |
| noriods-auto-more                        | v1.0.0  |        |
| nearata-twofactor                        | v2.2.1  |        |
| nearata-related-discussions              | 1.4.0   |        |
| nearata-prevent-double-posting           | 1.1.0   |        |
| nearata-maintenance-mode                 | 1.0.0   |        |
| nearata-copy-code-to-clipboard           | v2.2.0  |        |
| mickmelon-coloured-usernames             | 0.1.1   |        |
| matteocontrini-imgur-upload              | v3.9.1  |        |
| matteociaroni-public-suspensions         | v1.0.0  |        |
| malago-ads                               | 0.3.2   |        |
| justoverclock-welcomebox                 | 2.0.2   |        |
| justoverclock-purify                     | 0.1.7   |        |
| justoverclock-feedback                   | 0.1.9   |        |
| justoverclock-edit-posts                 | 0.1.1   |        |
| justoverclock-discussion-info            | 0.1.5   |        |
| justoverclock-country-flags              | 0.2.1   |        |
| justoverclock-be-active-user-indicator   | 0.1.0   |        |
| justoverclock-auto-post-count-badge      | 0.2.0   |        |
| jslirola-login2seeplus                   | v0.2.1  |        |
| ianm-log-viewer                          | 0.1.1   |        |
| ianm-follow-users                        | 1.3.1   |        |
| glowingblue-password-strength            | 3.1.0   |        |
| fof-username-request                     | 1.2.1   |        |
| fof-user-bio                             | 1.3.0   |        |
| fof-subscribed                           | 1.1.3   |        |
| fof-stopforumspam                        | 1.2.3   |        |
| fof-socialprofile                        | 1.1.5   |        |
| fof-recaptcha                            | 1.3.0   |        |
| fof-profile-image-crop                   | 1.1.6   |        |
| fof-polls                                | 2.1.1   |        |
| fof-pages                                | 1.0.7   |        |
| fof-nightmode                            | 1.5.3   |        |
| fof-moderator-notes                      | 1.2.0   |        |
| fof-links                                | 1.2.0   |        |
| fof-linguist                             | 1.1.1   |        |
| fof-ignore-users                         | 1.2.0   |        |
| fof-forum-statistics-widget              | 1.1.0   |        |
| fof-formatting                           | 1.0.3   |        |
| fof-filter                               | 1.1.2   |        |
| fof-drafts                               | 1.2.5   |        |
| fof-disposable-emails                    | 1.0.0   |        |
| fof-best-answer                          | 1.3.2   |        |
| flarum-statistics                        | v1.8.0  |        |
| flarum-mentions                          | v1.8.2  |        |
| flarum-lock                              | v1.8.0  |        |
| flarum-likes                             | v1.8.0  |        |
| flarum-lang-english                      | v1.8.0  |        |
| flarum-emoji                             | v1.8.0  |        |
| flarum-bbcode                            | v1.8.0  |        |
| datlechin-title-length                   | v0.1.1  |        |
| datlechin-signup-button                  | v0.1.1  |        |
| datlechin-scroll-buttons                 | v1.1.0  |        |
| datlechin-keyboard-shortcuts             | v0.1.1  |        |
| clarkwinkelmann-username-blacklist       | 1.0.0   |        |
| clarkwinkelmann-popular-discussion-badge | 1.1.1   |        |
| clarkwinkelmann-no-email-notifications   | 1.0.0   |        |
| clarkwinkelmann-mass-actions             | 1.1.2   |        |
| clarkwinkelmann-mailing                  | 1.1.0   |        |
| clarkwinkelmann-group-list               | 1.0.0   |        |
| clarkwinkelmann-emojionearea             | 1.0.0   |        |
| clarkwinkelmann-discussion-open-position | 1.1.0   |        |
| clarkwinkelmann-discussion-bookmarks     | 2.0.0   |        |
| clarkwinkelmann-circle-groups            | 1.0.1   |        |
| blomstra-usercard-stats                  | 0.1.2   |        |
| blomstra-user-filter                     | 0.1.4   |        |
| blomstra-sort-order-toggle               | 0.2.0   |        |
| blomstra-flag-duplicates                 | 0.2.1   |        |
| askvortsov-pwa                           | v3.3.3  |        |
| askvortsov-moderator-warnings            | v0.6.3  |        |
| askvortsov-discussion-templates          | v0.8.3  |        |
| acpl-mobile-tab                          | 1.2.0   |        |
| acpl-lscache                             | v2.2.1  |        |
+------------------------------------------+---------+--------+
Installation path: /www/wwwroot/site.org
Queue driver: redis
Session driver: redis (Code override. Configured to file)
Scheduler status: Active
Mail driver: mail
Debug mode: off

    HD3D did you change something in your file permissions? Seems as composer couldn't action on all items. Or did you run composer with a different user?

    • HD3D replied to this.

      GreXXL I don't think I have changed anything in months, just today I tried updating the litespeed cache extension and getting this error

      No sir, I'm running composer as root user as always

      Edit: site is back online after downgrading acpl-lscache to v2.2.0

      But I'd love to solve this issue

      This error doesn't seem specific to any extension, it's an issue between Composer and your server filesystem.

      I suggest checking the file permissions for the .php file mentioned in the error message. If your root user is unable to delete it this would be a bit surprising but maybe it's become currupted.

      If you are unable to fix the file permissions you could delete/rename the entire vendor folder and run composer install to re-create every file with the correct permissions, then try updating again.