Coder Social home page Coder Social logo

Comments (5)

LinuksGuru avatar LinuksGuru commented on June 15, 2024

I copied this script (inside NC Docker) into 2 addtional dirs
/bin
/var/www/html (where NC lives)

No changes, doesn't work, flow.log is empty.

from workflow_script.

LinuksGuru avatar LinuksGuru commented on June 15, 2024

I changed rule, File rename -> name matches -> /ok/i
Script still not invoked after file have been renamed (e.g. report.ods to report ok.ods). NextCloud sees script, since if it doesn't exists, it throws error when trying to save settings.
And NO log entries in nextcloud.log and flow.log which could indicate any info about this script. NextCloud/apache in docker, updated just today. Custom flow app also last version.

from workflow_script.

blizzz avatar blizzz commented on June 15, 2024

Are background jobs running there?

from workflow_script.

LinuksGuru avatar LinuksGuru commented on June 15, 2024

Yes, background jobs are running. BTW, I'm was able to (partially) solve this problem. Script IS activated only if it's located inside NC data directory. Any location outside NC data dir, e.g. /opt, /usr/bin, whatever, and no success, and no error message anywhere.

Additionally, NC 21 Docker/Apache (from Docker hub) comes with a security mechanism that prevents custom flow script to run anything from /usr/bin, for example, making it utterly useless. I added www-data to "users" group, no changes. Using sudo would be too awkward and complex because of too many options required in /etc/sudoers.

How to fix this? Thanks in advance.

from workflow_script.

blizzz avatar blizzz commented on June 15, 2024

Additionally, NC 21 Docker/Apache (from Docker hub) comes with a security mechanism that prevents custom flow script to run anything from /usr/bin, for example, making it utterly useless. I added www-data to "users" group, no changes. Using sudo would be too awkward and complex because of too many options required in /etc/sudoers.

How to fix this? Thanks in advance.

As this seems to be a setup issue I would like to ask you to raise your question in the forums: https://help.nextcloud.com

from workflow_script.

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.