Coder Social home page Coder Social logo

Comments (18)

blizzz avatar blizzz commented on June 1, 2024 1

I have the fix: #10. It's rather embarrassing and i have no explanation how it slipped in first place :-/

from workflow_script.

it25fg avatar it25fg commented on June 1, 2024 1

Hopefully this won't open the issue again... Simply want to confirm that my flavor of the issue (workflow not being run on upload or on modification via sync client) really has gone away. Many thanks @blizzz & keep up the good work!

from workflow_script.

blizzz avatar blizzz commented on June 1, 2024

A cronjob should be registered, the scripts are executed with a background job.

from workflow_script.

kgw4it avatar kgw4it commented on June 1, 2024

Hey. Thanks for the quick reply. I checked the oc_jobs table and I never saw an entry there that looked like it's related to the workflow_script app.
As far as I understand, here https://github.com/nextcloud/workflow_script/blob/master/lib/AppInfo/Application.php#L73 listeners are registered to execute in case a file gets added or updated or renamed. Therefore for every file I upload I would expect that this line https://github.com/nextcloud/workflow_script/blob/master/lib/AppInfo/Application.php#L44 is executed. But my debugging showed that this code only gets executed for previews that are generated after a file was uploaded, but never for the file itself.
That's why I assumed that something is wrong with the hooks..

Just to confirm setting up a single rule group without any rules and the following command echo "%e %i %a %o %n %f %x" >> /tmp/1.log, should in fact add a line to the /tmp/1.log file every time a file gets uploaded, right?

from workflow_script.

blizzz avatar blizzz commented on June 1, 2024

I share your expectations.

Just to confirm setting up a single rule group without any rules and the following command echo "%e %i %a %o %n %f %x" >> /tmp/1.log, should in fact add a line to the /tmp/1.log file every time a file gets uploaded, right?

Yes, however on systemd-based systems /tmp/ is usually jailed on a service subdirectory on /tmp, e.g. /tmp/systemd-private-3f055192b6d41929609a65440ab0fbc-httpd.service-95Rog0/tmp

from workflow_script.

idistech avatar idistech commented on June 1, 2024

Im seeing the same behaviour here - Ubuntu 16.04 - Ive placed the script and the output to /var/tmp and /var/www and /var/log/nextcloud but getting the same issue - is there somewhere were we can see an error log to you think ?

from workflow_script.

blizzz avatar blizzz commented on June 1, 2024

@idistech it must also have permission to write to those directories. if something is logged, then in the nextcloud log file within the data directory.

from workflow_script.

chasx003 avatar chasx003 commented on June 1, 2024

I'm having the same issues. I don't see any logs that even make me think the script is trying to run. Just trying to echo to a location that www-data owns.

Seems this person is also having the same issues https://help.nextcloud.com/t/help-with-workflow-external-scripts-app/47937

from workflow_script.

wiswedel avatar wiswedel commented on June 1, 2024

(almost) same for me. Script is only being triggerd on creation of a new text file from the web UI. Uploads, renamings, folder creation etc. aren't triggering anything.

from workflow_script.

it25fg avatar it25fg commented on June 1, 2024

Same here. The only event that causes a script to be executed is content modification. No exceptions in the log.
Besides, even content modification does not always trigger anything, for instance if the ruleset contains rules mentioning tags. I have created nextcloud/server#14401 for this as it seems to be a problem in the workflow framework.

from workflow_script.

blizzz avatar blizzz commented on June 1, 2024

I gave it a try as well, and yes there seem to be some issue, alas specific to checks. It worked for me when i restricted the user to be part of a group. This worked. What didn't:
mimetype – was interpreted as "application/octet-strem" instead of "plain/text"
tag – could not resolve the path to file ids

What are your failing rules?

from workflow_script.

it25fg avatar it25fg commented on June 1, 2024

Nice to meet you @blizzz

What are your failing rules?

First, I tested a simple rule 'file has tag' that never fired because of an exception in the workflow framework. Then, I found one rule that worked: this was a file name regexp. Later on, I noticed that even this was only fired on modification from the web frontend. Not on upload, and not on modification on a watched directory in a desktop client. That's all I've seen so far, I'll continue testing.

from workflow_script.

blizzz avatar blizzz commented on June 1, 2024

Heyo @it25fg :)

thanks for the input, I'll investigate that, too!

from workflow_script.

wiswedel avatar wiswedel commented on June 1, 2024

My rules were file name regexp and no rule at all which usually fires for every object everytime something happens (at least that's how files_automatictagging reacts)

from workflow_script.

blizzz avatar blizzz commented on June 1, 2024

i published the 1.0.1 with the fix

from workflow_script.

blizzz avatar blizzz commented on June 1, 2024

Thanks @it25fg for confirming and the nice words :)

from workflow_script.

orangeswim avatar orangeswim commented on June 1, 2024

hello, i see that this issue is already closed, but i'm running into the same issue.
Workflow external scripts 1.1.0
NextCloud 16.0.1

from workflow_script.

blizzz avatar blizzz commented on June 1, 2024

@orangeswim please open a new bug report with all requested details

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.