recognize icon indicating copy to clipboard operation
recognize copied to clipboard

[Bug]: Upgrade to NC 32 RC2 Check for write permissions failed

Open AndyXheli opened this issue 1 year ago • 19 comments

⚠️ This issue respects the following points: ⚠️

Bug description

Not sure why im getting this all of a sudden i upgraded from NC 31.0.8 to NC 32 RC1 with no issues and now im getting the bellow error. I checked everything has.

chown -R www-data:www-data /var/www/nextcloud

[✘] Check for write permissions failed The following places can not be written to: THIRD_PARTY_TF_C_LICENSES ctstring_internal.h ctstring.h trt_convert_api.h tf_tensor.h tf_file_statistics.h tf_datatype.h c_api_experimental.h c_api_experimental.h dlpack.h c_api.h c_api_macros.h tf_status.h tf_attrtype.h c_api.h tf_tstring.h tensor_interface.h LICENSE libtensorflow_framework.so.2 libtensorflow.so.2.9.1 libtensorflow.so.2 libtensorflow_framework.so.2.9.1 libtensorflow.so libtensorflow_framework.so THIRD_PARTY_TF_C_LICENSES ctstring_internal.h ctstring.h tf_tensor.h tf_file_statistics.h tf_datatype.h c_api_experimental.h c_api_experimental.h dlpack.h c_api.h c_api_macros.h tf_status.h tf_attrtype.h c_api.h tf_tstring.h tensor_interface.h LICENSE libtensorflow_framework.so.2 libtensorflow.so.2.9.1 libtensorflow.so.2 libtensorflow_framework.so.2.9.1 libtensorflow.so libtensorflow_framework.so

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

Steps to reproduce

1.Upgrade to NC 32 RC2 2. 3.

Expected behavior

Should upgrade

Nextcloud Server version

32

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.4

Web server

Apache (supported)

Database engine version

MariaDB

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

  • [x] Default user-backend (database)
  • [ ] LDAP/ Active Directory
  • [ ] SSO - SAML
  • [ ] Other

Configuration report


List of activated Apps


Nextcloud Signing status


Nextcloud Logs


Additional info

No response

AndyXheli avatar Sep 12 '25 16:09 AndyXheli

Can you check the permissions of those files? Even if the www-data user and group own the files, they might not have write permission on them.

provokateurin avatar Sep 15 '25 08:09 provokateurin

yea looks like the write permission was gone not sure why tho happen after the 32 upgrade ?

AndyXheli avatar Sep 15 '25 16:09 AndyXheli

Do you know which app the files belong to? Maybe the tar archive has the wrong permissions inside (and they are probably not changed on upgrade and it is assumed that the permissions are simply correct already).

provokateurin avatar Sep 15 '25 16:09 provokateurin

Also look like they are connected with /var/www/nextcloud/apps/recognize/node_modules

/var/www/nextcloud/apps/recognize/node_modules/@tensorflow/tfjs-node-gpu/deps/include/tensorflow/core/platform/ctstring_internal.h
/var/www/nextcloud/apps/recognize/node_modules/@tensorflow/tfjs-node/deps/include/tensorflow/core/platform/ctstring_internal.h
/var/www/nextcloud/apps/recognize/node_modules/@tensorflow/tfjs-node-gpu/deps/include/tensorflow/core/platform/ctstring.h
/var/www/nextcloud/apps/recognize/node_modules/@tensorflow/tfjs-node/deps/include/tensorflow/core/platform/ctstring.h
/var/www/nextcloud/apps/recognize/node_modules/@tensorflow/tfjs-node-gpu/deps/include/tensorflow/compiler/tf2tensorrt/trt_convert_api.h
/var/www/nextcloud/apps/recognize/node_modules/@tensorflow/tfjs-node-gpu/deps/include/tensorflow/c/tf_tensor.h
/var/www/nextcloud/apps/recognize/node_modules/@tensorflow/tfjs-node/deps/include/tensorflow/c/tf_tensor.h
/var/www/nextcloud/apps/recognize/node_modules/@tensorflow/tfjs-node-gpu/deps/include/tensorflow/c/tf_file_statistics.h
/var/www/nextcloud/apps/recognize/node_modules/@tensorflow/tfjs-node/deps/include/tensorflow/c/tf_file_statistics.h
/var/www/nextcloud/apps/recognize/node_modules/@tensorflow/tfjs-node-gpu/deps/include/tensorflow/c/tf_datatype.h
/var/www/nextcloud/apps/recognize/node_modules/@tensorflow/tfjs-node/deps/include/tensorflow/c/tf_datatype.h
/var/www/nextcloud/apps/recognize/node_modules/@tensorflow/tfjs-node-gpu/deps/include/tensorflow/c/c_api_experimental.h
/var/www/nextcloud/apps/recognize/node_modules/@tensorflow/tfjs-node-gpu/deps/include/tensorflow/c/eager/c_api_experimental.h
/var/www/nextcloud/apps/recognize/node_modules/@tensorflow/tfjs-node/deps/include/tensorflow/c/c_api_experimental.h
/var/www/nextcloud/apps/recognize/node_modules/@tensorflow/tfjs-node/deps/include/tensorflow/c/eager/c_api_experimental.h
/var/www/nextcloud/apps/recognize/node_modules/@tensorflow/tfjs-node-gpu/deps/include/tensorflow/c/eager/dlpack.h
/var/www/nextcloud/apps/recognize/node_modules/@tensorflow/tfjs-node/deps/include/tensorflow/c/eager/dlpack.h
/var/www/nextcloud/apps/recognize/node_modules/@tensorflow/tfjs-node-gpu/deps/include/tensorflow/c/eager/c_api.h
/var/www/nextcloud/apps/recognize/node_modules/@tensorflow/tfjs-node-gpu/deps/include/tensorflow/c/c_api.h
/var/www/nextcloud/apps/recognize/node_modules/@tensorflow/tfjs-node/deps/include/tensorflow/c/eager/c_api.h
/var/www/nextcloud/apps/recognize/node_modules/@tensorflow/tfjs-node/deps/include/tensorflow/c/c_api.h
/var/www/nextcloud/apps/recognize/node_modules/@tensorflow/tfjs-node-gpu/deps/include/tensorflow/c/c_api_macros.h
/var/www/nextcloud/apps/recognize/node_modules/@tensorflow/tfjs-node/deps/include/tensorflow/c/c_api_macros.h
/var/www/nextcloud/apps/recognize/node_modules/@tensorflow/tfjs-node-gpu/deps/include/tensorflow/c/tf_status.h
/var/www/nextcloud/apps/recognize/node_modules/@tensorflow/tfjs-node/deps/include/tensorflow/c/tf_status.h
/var/www/nextcloud/apps/recognize/node_modules/@tensorflow/tfjs-node-gpu/deps/include/tensorflow/c/tf_attrtype.h
/var/www/nextcloud/apps/recognize/node_modules/@tensorflow/tfjs-node/deps/include/tensorflow/c/tf_attrtype.h
/var/www/nextcloud/apps/recognize/node_modules/@tensorflow/tfjs-node-gpu/deps/include/tensorflow/c/tf_tstring.h
/var/www/nextcloud/apps/recognize/node_modules/@tensorflow/tfjs-node/deps/include/tensorflow/c/tf_tstring.h
/var/www/nextcloud/apps/recognize/node_modules/@tensorflow/tfjs-node-gpu/deps/include/tensorflow/c/tensor_interface.h
/var/www/nextcloud/apps/recognize/node_modules/@tensorflow/tfjs-node/deps/include/tensorflow/c/tensor_interface.h
/var/www/nextcloud/apps/recognize/node_modules/@tensorflow/tfjs-node-gpu/deps/lib/libtensorflow.so.2.9.1
/var/www/nextcloud/apps/recognize/node_modules/@tensorflow/tfjs-node/deps/lib/libtensorflow.so.2.9.1
/var/www/nextcloud/apps/recognize/node_modules/@tensorflow/tfjs-node-gpu/deps/lib/libtensorflow_framework.so.2.9.1
/var/www/nextcloud/apps/recognize/node_modules/@tensorflow/tfjs-node/deps/lib/libtensorflow_framework.so.2.9.1

AndyXheli avatar Sep 15 '25 17:09 AndyXheli

Hi @AndyXheli Thank you for taking the time to give feedback! I can confirm this issue and have a produced a fix which will make it into the next release.

marcelklehr avatar Sep 16 '25 09:09 marcelklehr

Just wanted to update from 32.0.0 to 32.0.1 and got the same error. Bug is now back? Update from 31ish to 32 was flawless

ornago avatar Oct 24 '25 07:10 ornago

^^ same

tecjam avatar Oct 24 '25 08:10 tecjam

Hi, for the first time I have received a version of this error - I was able to set the write permissions for some of the errors, in the end I remove the local LLM app to remove the python write permission errors I got:

[✘] Check for write permissions failed The following places can not be written to: python python3.10 python3 python3.12 python python3.10 python3 python python3 python3.12

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

john-2000 avatar Oct 24 '25 08:10 john-2000

Just wanted to update from 32.0.0 to 32.0.1 and got the same error. Bug is now back? Update from 31ish to 32 was flawless

Same here. Please reporn this issues

mkgeeky avatar Oct 24 '25 12:10 mkgeeky

What app are those file located in ?

AndyXheli avatar Oct 24 '25 12:10 AndyXheli

Same issue occured while updating Nextcloud AIO from 32.0.0 to 32.01. With NC AIO 31.x.x no problems. It looks like it's the app recognize.

docker exec --user www-data -it nextcloud-aio-nextcloud bash -c "php updater/updater.phar --no-interaction --no-backup && php occ app:enable nextcloud-aio --force"
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 ↗

Updater run in non-interactive mode.

Start update

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:
    c_api.h
    c_api_experimental.h
    c_api_macros.h
    tensor_interface.h
    tf_attrtype.h
    tf_datatype.h
    tf_file_statistics.h
    tf_status.h
    tf_tensor.h
    tf_tstring.h
    c_api.h
    c_api_experimental.h
    dlpack.h
    ctstring.h
    ctstring_internal.h
    libtensorflow.so.2.9.1
    libtensorflow_framework.so.2.9.1
    libtensorflow_framework.so
    libtensorflow_framework.so.2
    libtensorflow.so
    libtensorflow.so.2
    THIRD_PARTY_TF_C_LICENSES
    LICENSE
    c_api.h
    c_api_experimental.h
    c_api_macros.h
    tensor_interface.h
    tf_attrtype.h
    tf_datatype.h
    tf_file_statistics.h
    tf_status.h
    tf_tensor.h
    tf_tstring.h
    c_api.h
    c_api_experimental.h
    dlpack.h
    ctstring.h
    ctstring_internal.h
    trt_convert_api.h
    libtensorflow.so.2.9.1
    libtensorflow_framework.so.2.9.1
    libtensorflow_framework.so
    libtensorflow_framework.so.2
    libtensorflow.so
    libtensorflow.so.2
    THIRD_PARTY_TF_C_LICENSES
    LICENSE

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

Wotisrv avatar Oct 24 '25 13:10 Wotisrv

Same as above. Upgraded to 32.0.1 from 32.0.0, same errors as everyone else.

CrustyB avatar Oct 25 '25 05:10 CrustyB

I have the same issue, upgrading from 32.0.0 to 32.0.1, I also have the Recognize App installed.

walker93 avatar Oct 25 '25 13:10 walker93

I disabled and uninstalled Recognize app, and then this error disappeared. However, the download of the new version did not start at all.

Wotisrv avatar Oct 25 '25 14:10 Wotisrv

The fix, luckily is easy with some manual intervention. I'll guide you through it. First, go to the apps dir, then change dir modes to 755 and file modes to 644 for the recognize app. I do it as follows:

cd apps
find recognize -type d -exec chmod 755 {} +
find recognize -type f -exec chmod 644 {} +

So, from the apps directory, execute those two find commands one after the other. You need to put those three commands in exactly as shown, including the empty curly brackets {} and the + at the end.

voidzero avatar Oct 25 '25 20:10 voidzero

I do not have the recognize app installed, but with more cryptic data (so I don't know which folders to fix):

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.

PifPof73 avatar Oct 28 '25 10:10 PifPof73

v10.0.5 is out now

marcelklehr avatar Oct 28 '25 11:10 marcelklehr

@PifPof73 If you don't have recognize installed, you're likely in the wrong repo here ;)

marcelklehr avatar Oct 28 '25 11:10 marcelklehr

@PifPof73 If you don't have recognize installed, you're likely in the wrong repo here ;)

Uh - sorry. I will repost it in the main repo....

PifPof73 avatar Oct 28 '25 12:10 PifPof73