Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5.0.0 fails to upgrade or install. #990

Closed
Aquilum opened this issue Oct 8, 2023 · 22 comments
Closed

5.0.0 fails to upgrade or install. #990

Aquilum opened this issue Oct 8, 2023 · 22 comments
Labels
bug Something isn't working

Comments

@Aquilum
Copy link

Aquilum commented Oct 8, 2023

Which version of recognize are you using?

5.0.0

Enabled Modes

Object recognition, Face recognition, Video recognition, Music recognition

TensorFlow mode

Normal mode

Downstream App

other, please specify below

Which Nextcloud version do you have installed?

27.1.2

Which Operating system do you have installed?

Ubuntu 20.04.6

Which database are you running Nextcloud on?

mySQL 8.0.4

Which Docker container are you using to run Nextcloud? (if applicable)

No response

How much RAM does your server have?

128GiB

What processor Architecture does your CPU have?

x86_64

Describe the Bug

Unable to upgrade or install afresh Recognize 5.0. It appears the installer is trying to modify the system Python install.

An error occurred during the request. Unable to proceed. Could not extract app recognize: Out-of-path file extraction {/tmp/oc_tmp_s0gWZL-folder/recognize/node_modules/@tensorflow/tfjs-node/build-tmp-napi-v8/node_gyp_bins/python3 --> /bin/python3}

Expected Behavior

Install and upgrade paths operational.

To Reproduce

  1. Attempt to upgrade or install Recognize 5.0

Debug log

No response

@Aquilum Aquilum added the bug Something isn't working label Oct 8, 2023
@github-actions
Copy link

github-actions bot commented Oct 8, 2023

Hello 👋

Thank you for taking the time to open this issue with recognize. I know it's frustrating when software
causes problems. You have made the right choice to come here and open an issue to make sure your problem gets looked at
and if possible solved.
I try to answer all issues and if possible fix all bugs here, but it sometimes takes a while until I get to it.
Until then, please be patient.
Note also that GitHub is a place where people meet to make software better together. Nobody here is under any obligation
to help you, solve your problems or deliver on any expectations or demands you may have, but if enough people come together we can
collaborate to make this software better. For everyone.
Thus, if you can, you could also look at other issues to see whether you can help other people with your knowledge
and experience. If you have coding experience it would also be awesome if you could step up to dive into the code and
try to fix the odd bug yourself. Everyone will be thankful for extra helping hands!
One last word: If you feel, at any point, like you need to vent, this is not the place for it; you can go to the forum,
to twitter or somewhere else. But this is a technical issue tracker, so please make sure to
focus on the tech and keep your opinions to yourself. (Also see our Code of Conduct. Really.)

I look forward to working with you on this issue
Cheers 💙

@ThesiiNCey
Copy link

i got the same error

'Could not extract app recognize: Out-of-path file extraction {/tmp/oc_tmp_sviIrQ-folder/recognize/node_modules/@tensorflow/tfjs-node/build-tmp-napi-v8/node_gyp_bins/python3 --> /bin/python3}'

@ralfbgithub
Copy link

Same on Raspberry Pi 4 with Alpine-Linux Container
Nextcloud 27.1.2
Recognize 4.3.2

Exception: Could not extract app recognize: Out-of-path file extraction {/data/nextcloudtemp/oc_tmp_JBOmiD-folder/recognize/node_modules/@tensorflow/tfjs-node/build-tmp-napi-v8/node_gyp_bins/python3 --> /bin/python3}

@RedKage
Copy link

RedKage commented Oct 8, 2023

Same, with trying to upgrade, then I disabled and deleted recognize, and upon installation it is doing the same thing

{
    "reqId": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
    "level": 3,
    "time": "XXXXXXXXXXXXXXXXXXXXXXXXXX",
    "remoteAddr": "XXXXXXXXXXXXXXXXXXX",
    "user": "XXXXXXXXXXXXXXXX",
    "app": "settings",
    "method": "POST",
    "url": "/settings/apps/enable",
    "message": "could not enable apps",
    "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36",
    "version": "27.0.2.1",
    "exception": {
        "Exception": "Exception",
        "Message": "Could not extract app recognize: Out-of-path file extraction {/$$$$$$$$$$$$$$$$/tmp/oc_tmp_LQ36Bv-folder/recognize/node_modules/@tensorflow/tfjs-node/build-tmp-napi-v8/node_gyp_bins/python3 --> /bin/python3}",
        "Code": 0,
        "Trace": [
            {
                "file": "/##################/nextcloud/apps/settings/lib/Controller/AppSettingsController.php",
                "line": 448,
                "function": "downloadApp",
                "class": "OC\\Installer",
                "type": "->",
                "args": [
                    "recognize"
                ]
            },
            {
                "file": "/##################/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
                "line": 230,
                "function": "enableApps",
                "class": "OCA\\Settings\\Controller\\AppSettingsController",
                "type": "->",
                "args": [
                    [
                        "recognize"
                    ],
                    []
                ]
            },
            {
                "file": "/##################/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
                "line": 137,
                "function": "executeController",
                "class": "OC\\AppFramework\\Http\\Dispatcher",
                "type": "->",
                "args": [
                    [
                        "OCA\\Settings\\Controller\\AppSettingsController"
                    ],
                    "enableApps"
                ]
            },
            {
                "file": "/##################/nextcloud/lib/private/AppFramework/App.php",
                "line": 183,
                "function": "dispatch",
                "class": "OC\\AppFramework\\Http\\Dispatcher",
                "type": "->",
                "args": [
                    [
                        "OCA\\Settings\\Controller\\AppSettingsController"
                    ],
                    "enableApps"
                ]
            },
            {
                "file": "/##################/nextcloud/lib/private/Route/Router.php",
                "line": 315,
                "function": "main",
                "class": "OC\\AppFramework\\App",
                "type": "::",
                "args": [
                    "OCA\\Settings\\Controller\\AppSettingsController",
                    "enableApps",
                    [
                        "OC\\AppFramework\\DependencyInjection\\DIContainer"
                    ],
                    [
                        "settings.AppSettings.enableApps"
                    ]
                ]
            },
            {
                "file": "/##################/nextcloud/lib/base.php",
                "line": 1071,
                "function": "match",
                "class": "OC\\Route\\Router",
                "type": "->",
                "args": [
                    "/settings/apps/enable"
                ]
            },
            {
                "file": "/##################/nextcloud/index.php",
                "line": 36,
                "function": "handleRequest",
                "class": "OC",
                "type": "::",
                "args": []
            }
        ],
        "File": "/##################/nextcloud/lib/private/Installer.php",
        "Line": 318,
        "message": "could not enable apps",
        "exception": {},
        "CustomMessage": "could not enable apps"
    }
}

The path /$$$$$$$$$$$$$$$$ (where it is looking for tmp/oc_tmp_LQ36Bv-folder/recognize) is inside my local user space. It's the PREFIX path.
The path /################## is the nextcloud install containing the phps.

@ThesiiNCey
Copy link

Same on Raspberry Pi 4 with Alpine-Linux Container Nextcloud 27.1.2 Recognize 4.3.2

Exception: Could not extract app recognize: Out-of-path file extraction {/data/nextcloudtemp/oc_tmp_JBOmiD-folder/recognize/node_modules/@tensorflow/tfjs-node/build-tmp-napi-v8/node_gyp_bins/python3 --> /bin/python3}

Recognize 4.3.2 was the latest working version on my case only 5.0.0 make problems

@oswaldo-be
Copy link

same here on ubuntu LTS
Linux 5.15.60-1-pve x86_64
PHP Version: 8.1.2
nextcloud 27.12
[no app in context] Fehler: Exception: Could not extract app recognize: Out-of-path file extraction {/tmp/oc_tmp_1ju6LC-folder/recognize/node_modules/@tensorflow/tfjs-node/build-tmp-napi-v8/node_gyp_bins/python3 --> /bin/python3} at <>

@maxnatt
Copy link

maxnatt commented Oct 8, 2023

nextcloud:27.1.1-apache Docker image is affected as well.

@ralfi
Copy link

ralfi commented Oct 8, 2023

same here with Docker 27.1.1

@killerb77
Copy link

same here.

@Termikkazan
Copy link

Termikkazan commented Oct 8, 2023

I have the same as everyone else. Debian (proxmox container)

Could not extract app recognize: Out-of-path file extraction {/tmp/oc_tmp_yLYIif-folder/recognize/node_modules/@tensorflow/tfjs-node/build-tmp-napi-v8/node_gyp_bins/python3 --> /bin/python3}

@DenuxPlays
Copy link
Contributor

Nextcloud AIO is also affected (at least v7.4.0 Beta)
Link to my comment here

@Haidafraid
Copy link

Same here. Fresh install.
Ubuntu 20.04 Nextcloud 27.1.2 php8.2.
Trying to install via Web Admin and cli

Error given:
Could not extract app recognize: Out-of-path file extraction {/tmp/oc_tmp_ahUkwR-folder/recognize/node_modules/@tensorflow/tfjs-node/build-tmp-napi-v8/node_gyp_bins/python3 --> /bin/python3}

@bendschs
Copy link

bendschs commented Oct 8, 2023

same here

@GVLLIFESTYLE
Copy link

fresh install also does not work:

App "recognize" cannot be installed because appinfo file cannot be read.

@MikeDuncan1
Copy link

#metoo

@HenkVirtual
Copy link

I am getting this;
sudo -u nginx php occ app:update recognize recognize new version available: 5.0.0 recognize couldn't be updated

@Jaime-GP
Copy link

Jaime-GP commented Oct 9, 2023

Same error with docker nextcloud:stable. With the old and fresh image

Could not extract app recognize: Out-of-path file extraction {/tmp/oc_tmp_ahUkwR-folder/recognize/node_modules/@tensorflow/tfjs-node/build-tmp-napi-v8/node_gyp_bins/python3 --> /bin/python3}

@Radiicall
Copy link

Manual install seems to work in-case anyone here wants to get it working asap

@marcelklehr
Copy link
Member

Hello everyone! Sorry for the problems and thanks for the feedback! I'll churn out a fix asap.

@marcelklehr
Copy link
Member

v5.0.1 is out now, but it might take a while (up to an hour) before your nextcloud instance picks it up.

@maxnatt
Copy link

maxnatt commented Oct 9, 2023

Thank you!

@delabat
Copy link

delabat commented Oct 10, 2023

v5.0.1 solved the issue... Thank you for the really fast fix guys!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests