Permission problems with upgrade to NC32 (without recognize app)

I do not have the recognize app installed and I do not see which areas causes the problem. The complete nextcloud folder and all subdirectories are owned by www-data:www-data (and it worked since v15 …):

sudo -u www-data php updater.phar
Nextcloud Updater - version: v32.0.0beta1-13-gf6e4a9e dirty

Current version is 32.0.0.

Update to Nextcloud 32.0.1 available. (channel: "stable")
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-32.0.1.zip
Open changelog ↗

Steps that will be executed:
[ ] Check for expected files
[ ] Check for write permissions
[ ] Create backup
[ ] Downloading
[ ] Verify integrity
[ ] Extracting
[ ] Enable maintenance mode
[ ] Replace entry points
[ ] Delete old files
[ ] Move new files in place
[ ] Done

Start update? [y/N] y

Info: Pressing Ctrl-C will finish the currently running step and then stops the updater.

[✔] Check for expected files
[✘] Check for write permissions failed
The following places can not be written to:
    f7f3c22d647fa93ffbfbcc1e944041b3ebc043
    65e325e8dcb37fe3e698a803d0c047fd314455
    d1cd5c7685ecf65e6e234bf89508ccae26762f
    06b3ab65c38a8bb0e8b2a4ae3bee7704a5c054
    e01b18fffd95a0ca74b8cbc586ef6b53fa6a19
    fb99f7b62dbd76fdf9cfd66dfb57b56e8efd8d
    6144023ff015a422b431b1ca4319955bdf76c2
    52ffef98c9afccf64e9ad3860e5de19d626389
    6b0a433901753cac751385aa3af2dd47f58c26
    6897a87e5cf1c0c106f69e853b25a909c6b83e
    ca28758cfa478f9618f48b80ccb68ee86915d1
    52536812fa3f8ea9b94deac5fe05047572a5f8
    54e8815d5a74556c182e04223b44861db31d06
    4a906a1a53f425a49924733e599a443fc0a45b
    931852a06e4f8318c9b2dc69b7109dd8c586e6
    b09ecedf7d3889baa23a34cccd03ab55edd0f5
    05e4a042847c8037cd9d5fe902fcc8147a2909
    cb0adea947689f124a6ff0a6395870f6a76028
    9496b59082be2ce069bbb07708f94106565755
    bc68bfbb2c1037acdc380d4946112da26f233f
    88dda5e98624bc814257262efa1b0c5c07b86d
    36c7f7af8e9a885addfd4dd4b0c829aa5ab5ab
    5473ea6c7c846f7fa9eaa98bee5c5b61269e40
    39f7c41aef962348db99f7918c7c5e859cd702
    c4fa1a88082bb3689606948282f07e5bc3c44f
    9bec89927542af88ca1526789ee4a3899edb30
    pack-469f0002767db4bc53b42d0967bb6054e9178444.idx
    pack-469f0002767db4bc53b42d0967bb6054e9178444.pack
    a7080ec82f5b080d5bfdac911f1e12df63b688
    cc21750aacc358a96a65e89cd6c60a00b1e53b
    aac7fdf1fdd3cf0c0a6f6a11fbb490bd1714d1
    b45aa43e6f6fd53038c5372f055791c7a33ed4
    2d63e59ba6aa4da6120ae9797d3f958fa55040
    b02c6e17ae4beab19b38df8558afc4491fcff5
    c83584f026b77ddb0bd4fbf7c93563ff440e1c
    e52c0fd739e73634161a5d11f43c65d56e8268
    f3dba2809179951368b055df82493d0fb3338d
    4a755460784b42ffa013521785a32ffce0f732
    8788fd20d6dea411dba49a0f77e32d161326f4
    956772049ff3de1953f68731238473eec9b38e
    0c7014a2bc44ff88f20e21ffcd479d4ffcb6b0
    7ba21733e9450582c361f2fd7a4f20dbd9d7e9
    612c137eb52363b741b6ddd0bab66098121285
    87db193ff8e9d69db4602b93980950d19de14d
    0334477a6a7a650e0428bafce2bf6ec27f40e8
    a0282f8a7016b584dadf74c7e9be998eac2f08
    4b5de1844e4b3946a7c591685ec89831fc67b5
    13cc5e43390ee7b5c459dc06fcb3b0d0563abc
    33b1027a4ae095cbbde55e3dcd8cbe9fb675f7
    90236090177703fdc024eafd57dab9dc443764

Update failed. To resume or retry just execute the updater again.

Did you also check the permissions? Are the files and folders actually writeable?

I had the same problem, but different files were listed for me. I can’t remember exactly which ones they were, and I didn’t look into why it happened. I just reset the permissions for all folders and files using the following Bash script:

NCINSTALLPATH="/path/to/nextcloud"
NCDATAPATH="/path/to/nextcloud-data"

sudo -u www-data php "$NCINSTALLPATH"/occ maintenance:mode --on
chown -R www-data:www-data "$NCINSTALLPATH"
chown -R www-data:www-data "$NCDATAPATH"
find "$NCDATAPATH"/ -type d -exec chmod 750 {} \;
find "$NCDATAPATH"/ -type f -exec chmod 640 {} \;
find "$NCINSTALLPATH"/ -type d -exec chmod 750 {} \;
find "$NCINSTALLPATH"/ -type f -exec chmod 640 {} \;
if [ -d "$NCINSTALLPATH/apps/notify_push" ]; then
chmod ug+x "$NCINSTALLPATH"/apps/notify_push/bin/x86_64/notify_push
fi
if [ -d "$NCINSTALLPATH/apps/recognize" ]; then
chmod ug+x "$NCINSTALLPATH"/apps/recognize/bin/node
fi
sudo -u www-data php "$NCINSTALLPATH"/occ maintenance:mode --off

Depending on the number of folders and files, this process may take a while. If you only want to apply it to the affected files, just run the following commands for the parent folder of the listed files:

chown -R www-data:www-data /path/to/parent-folder/
find /path/to/parent-folder/ -type d -exec chmod 750 {} \;
find /path/to/parent-folder/ -type f -exec chmod 640 {} \;

This worked like a charme!

Thx for the quick and good support. :star_struck:

1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.