An error occurred while updating Gutenberg: because we can’t copy some files, the upgrade was not installed. This is usually due to inconsistent file permissions.
1. There was an error when updating Gutenberg: because we can’t copy some files, the upgrade is not installed. This is usually due to inconsistent file permissions. as shown in Figure 1
2. Reference URL:https://www.shuijingwanwq.com/2021/02/19/4734/. The reason is that when Gutenberg was updated before, the root user was also used for operation updates.
3. Log in to the server and view /data/wwwroot/www.shuijingwanwq.com/wp-content/plugins/gutenbergThe user and user groups are root. as shown in Figure 2
[root@iZ23wv7v5ggZ wp-admin]# cd /data/wwwroot/www.shuijingwanwq.com/wp-content/plugins
[root@iZ23wv7v5ggZ plugins]# ls -l
total 68
drwxr-xr-x 4 www www 4096 Mar 8 10:03 akismet
drwxr-xr-x 10 www www 4096 Mar 9 09:44 backupwordpress
drwxr-xr-x 3 www www 4096 Aug 13 2020 classic-editor
drwxr-xr-x 7 www www 4096 Mar 1 15:31 contact-form-7
drwxr-xr-x 2 www www 4096 Dec 5 2019 disable-google-fonts
drwxr-xr-x 2 www www 4096 Dec 5 2019 golang-brush-for-syntaxhighlighter-evolved
drwxr-xr-x 6 root root 4096 Apr 1 21:11 gutenberg
drwxr-xr-x 2 www www 4096 Dec 5 2019 hello-dolly
drwxr-xr-x 6 www www 4096 Feb 19 11:30 hueman-addons
-rw-r--r-- 1 www www 30 Apr 16 2009 index.php
drwxr-xr-x 4 www www 4096 Apr 9 2020 kill-429
drwxr-xr-x 6 www www 4096 Dec 5 2019 light
drwxr-xr-x 5 www www 4096 Mar 31 10:44 nimble-builder
drwxr-xr-x 6 www www 4096 Mar 9 09:44 regenerate-thumbnails
drwxr-xr-x 6 www www 4096 Mar 11 10:27 syntaxhighlighter
drwxr-xr-x 2 www www 4096 Dec 5 2019 wp-cumulus
drwxr-xr-x 3 www www 4096 Feb 24 10:06 wp-pagenavi
4. Set the user and user groups of the directory Gutenberg to www. as shown in Figure 3
[root@iZ23wv7v5ggZ plugins]# chown -R www:www gutenberg
[root@iZ23wv7v5ggZ plugins]# ls -l
total 68
drwxr-xr-x 4 www www 4096 Mar 8 10:03 akismet
drwxr-xr-x 10 www www 4096 Mar 9 09:44 backupwordpress
drwxr-xr-x 3 www www 4096 Aug 13 2020 classic-editor
drwxr-xr-x 7 www www 4096 Mar 1 15:31 contact-form-7
drwxr-xr-x 2 www www 4096 Dec 5 2019 disable-google-fonts
drwxr-xr-x 2 www www 4096 Dec 5 2019 golang-brush-for-syntaxhighlighter-evolved
drwxr-xr-x 6 www www 4096 Apr 1 21:11 gutenberg
drwxr-xr-x 2 www www 4096 Dec 5 2019 hello-dolly
drwxr-xr-x 6 www www 4096 Feb 19 11:30 hueman-addons
-rw-r--r-- 1 www www 30 Apr 16 2009 index.php
drwxr-xr-x 4 www www 4096 Apr 9 2020 kill-429
drwxr-xr-x 6 www www 4096 Dec 5 2019 light
drwxr-xr-x 5 www www 4096 Mar 31 10:44 nimble-builder
drwxr-xr-x 6 www www 4096 Mar 9 09:44 regenerate-thumbnails
drwxr-xr-x 6 www www 4096 Mar 11 10:27 syntaxhighlighter
drwxr-xr-x 2 www www 4096 Dec 5 2019 wp-cumulus
drwxr-xr-x 3 www www 4096 Feb 24 10:06 wp-pagenavi
[root@iZ23wv7v5ggZ plugins]#
5. Update Gutenberg again, successfully updated. as shown in Figure 4



