Coder Social home page Coder Social logo

Comments (24)

marcelklehr avatar marcelklehr commented on August 27, 2024 4

Fixed in dec7e58

from recognize.

DecaTec avatar DecaTec commented on August 27, 2024 3

what other manual way is there besides what i tried? i also tried the webinterface, same issue

Move the recognize folder out of the apps folder. Next, download the release archive from the release page and unpack it in the apps folder. Then chown -R www-data:www-data /var/www/nextcloud/apps/recognize.
After that, the upgrade is done in the browser.

from recognize.

marcelklehr avatar marcelklehr commented on August 27, 2024 1

Hi, sorry for your troubles and thank you for reporting! The new version seems to have some toothing problems. I'll investigate and release patches soon.

from recognize.

marcelklehr avatar marcelklehr commented on August 27, 2024 1

It seems I cannot circumvent this bug, so I've reopened it here and over here: nextcloud/server#26708

from recognize.

vanderheyde avatar vanderheyde commented on August 27, 2024 1

attempted both 1.6 release and 1.5.8 release, same results

from recognize.

GVLLIFESTYLE avatar GVLLIFESTYLE commented on August 27, 2024

yap exactly.
and if you try to reinstall you receive this error:
Could not extract app recognize: Out-of-path file extraction {/tmp/oc_tmp_T0cTMU-folder/recognize/node_modules/@tensorflow/tfjs-node-gpu/deps/lib/libtensorflow.so.2 --> libtensorflow.so.2.5.0}

from recognize.

hdridder avatar hdridder commented on August 27, 2024

Same problem here: Message":"Could not extract app recognize: Out-of-path file extraction {/volume1/@tmp/oc_tmp_aYHmf1-folder/recognize/node_modules/@tensorflow/tfjs-node-gpu/deps/lib/libtensorflow.so.2 --> libtensorflow.so.2.5.0}

from recognize.

GVLLIFESTYLE avatar GVLLIFESTYLE commented on August 27, 2024

When will you push it to the nextcloud store?
Their is still the old version avialable.

from recognize.

marcelklehr avatar marcelklehr commented on August 27, 2024

New version is available now. Let me know if there are additional issues ♥️

from recognize.

hdridder avatar hdridder commented on August 27, 2024

Thanks. Upgrade from the GUI failed. On the commandline it reports:

# sudo -u http php74 /var/www/nextcloud/occ app:update recognize
Nextcloud is in maintenance mode - no apps have been loaded

recognize new version available: 1.5.3
/volume1/web/nextcloud/apps/recognize/bin/node-v14.17.4-linux-armv7l: error while loading shared libraries: libatomic.so.1: cannot open shared object file: No such file or directory
recognize updated

Despite the error message recognize is now reported to be on version 1.5.3
The library reported in the error does exist on the filesystem

# ls -l /volume1/web/nextcloud/apps/recognize/bin/node-v14.17.4-linux-armv7l
-rwxr-xr-x 1 http http 67904012 Aug 20 20:06 /volume1/web/nextcloud/apps/recognize/bin/node-v14.17.4-linux-armv7l

from recognize.

marcelklehr avatar marcelklehr commented on August 27, 2024

@hdridder Are you running on armv7l? The library reported missing is libatomic.so.1

from recognize.

hdridder avatar hdridder commented on August 27, 2024

Yes it is armv71 on a synology DS214÷

from recognize.

spicemint avatar spicemint commented on August 27, 2024

I just tried to install the app on 21.0.4, raspbian:
sudo -u www-data /usr/bin/php /var/www/nextcloud/occ app:install recognize Error: Could not extract app recognize: Out-of-path file extraction {/tmp/oc_tmp_pofTyG-folder/recognize/node_modules/@tensorflow/tfjs-node-gpu/deps/lib/libtensorflow.so.2 --> libtensorflow.so.2.5.0}

from recognize.

DecaTec avatar DecaTec commented on August 27, 2024

A manual update of the app seems to work.

from recognize.

spicemint avatar spicemint commented on August 27, 2024

A manual update of the app seems to work.

what other manual way is there besides what i tried? i also tried the webinterface, same issue

from recognize.

vanderheyde avatar vanderheyde commented on August 27, 2024

Trying DecaTec's solution showed a 'Saving of node binary failed' message. I had to put the old recognize folder back and manually turn the maintenance mode off in config.php

   "message":{
      "Exception":"Exception",
      "Message":"Saving of node binary failed",
      "Code":0,
      "Trace":[
         {
            "file":"/var/www/nextcloud/apps/recognize/lib/Migration/RegisterBinary.php",
            "line":55,
            "function":"downloadBinary",
            "class":"OCA\\Recognize\\Migration\\RegisterBinary",
            "type":"->",
            "args":[
               "v14.17.4",
               "arm64"
            ]
         },
         {
            "file":"/var/www/nextcloud/lib/private/Repair.php",
            "line":118,
            "function":"run",
            "class":"OCA\\Recognize\\Migration\\RegisterBinary",
            "type":"->",
            "args":[
               {
                  "__class__":"OC\\Repair"
               }
            ]
         },
         {
            "file":"/var/www/nextcloud/lib/private/legacy/OC_App.php",
            "line":1062,
            "function":"run",
            "class":"OC\\Repair",
            "type":"->",
            "args":[
               
            ]
         },
         {
            "file":"/var/www/nextcloud/lib/private/legacy/OC_App.php",
            "line":1004,
            "function":"executeRepairSteps",
            "class":"OC_App",
            "type":"::",
            "args":[
               "*** sensitive parameter replaced ***",
               {
                  "step":"OCA\\Recognize\\Migration\\RegisterBinary"
               }
            ]
         },
         {
            "file":"/var/www/nextcloud/lib/private/Updater.php",
            "line":340,
            "function":"updateApp",
            "class":"OC_App",
            "type":"::",
            "args":[
               "*** sensitive parameters replaced ***"
            ]
         },
         {
            "file":"/var/www/nextcloud/lib/private/Updater.php",
            "line":260,
            "function":"doAppUpgrade",
            "class":"OC\\Updater",
            "type":"->",
            "args":[
               
            ]
         },
         {
            "file":"/var/www/nextcloud/lib/private/Updater.php",
            "line":132,
            "function":"doUpgrade",
            "class":"OC\\Updater",
            "type":"->",
            "args":[
               "21.0.4.1",
               "21.0.4.1"
            ]
         },
         {
            "file":"/var/www/nextcloud/core/ajax/update.php",
            "line":214,
            "function":"upgrade",
            "class":"OC\\Updater",
            "type":"->",
            "args":[
               
            ]
         }
      ],
      "File":"/var/www/nextcloud/apps/recognize/lib/Migration/RegisterBinary.php",
      "Line":104,
      "CustomMessage":"--"
   }

from recognize.

marcelklehr avatar marcelklehr commented on August 27, 2024

@vanderheyde Make sure you chown to the right user. It should be the user of your http server (the one you use for running occ).

from recognize.

vanderheyde avatar vanderheyde commented on August 27, 2024

@vanderheyde Make sure you chown to the right user. It should be the user of your http server (the one you use for running occ).

I did. Also attempted to update via commandline with same result:

/var/www/nextcloud/apps$ chown -R www-data:www-data recognize/
/var/www/nextcloud/apps$ cd ..
/var/www/nextcloud$ sudo -u www-data php ./occ upgrade
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Setting log level to debug
Turned on maintenance mode
Updating database schema
Updated database
Updating <recognize> ...
Exception: Saving of node binary failed
Update failed
Maintenance mode is kept active
Resetting log level

from recognize.

marcelklehr avatar marcelklehr commented on August 27, 2024

I guess, then you'll have to wait until this issue is fixed :/

from recognize.

marcelklehr avatar marcelklehr commented on August 27, 2024

fyi, this appears to be fixed in v22

from recognize.

KruyKaze avatar KruyKaze commented on August 27, 2024

from recognize.

marcelklehr avatar marcelklehr commented on August 27, 2024

Is it a package size issue?

Yep, I'm working on it :)

from recognize.

Sputnikchen avatar Sputnikchen commented on August 27, 2024

Not working since version 1.5.8:
Nextcloud 21.0.3
Recognize 1.6.3
TensorFlow 2.5.0 {/usr/lib/libtensorflow.so.2 -> libtensorflow.so.2.5.0}
sudo -u www-data php ./occ app:install recognize
Error: Could not extract app recognize: Out-of-path file extraction {/tmp/oc_tmp_UhJNSO-folder/recognize/node_modules/@tensorflow/tfjs-node/deps/lib/libtensorflow.so.2 --> libtensorflow.so.2.5.0}

from recognize.

marcelklehr avatar marcelklehr commented on August 27, 2024

To be clear: This is a bug in nextcloud < 22 that I cannot circumvent without bloating up the bundle causing the appstore to reject the bundle. (I have tried.)

from recognize.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.