Comments (18)
I have the fix: #10. It's rather embarrassing and i have no explanation how it slipped in first place :-/
from workflow_script.
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.
A cronjob should be registered, the scripts are executed with a background job.
from workflow_script.
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.
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.
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.
@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.
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.
(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.
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.
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.
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.
Heyo @it25fg :)
thanks for the input, I'll investigate that, too!
from workflow_script.
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.
i published the 1.0.1 with the fix
from workflow_script.
Thanks @it25fg for confirming and the nice words :)
from workflow_script.
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.
@orangeswim please open a new bug report with all requested details
from workflow_script.
Related Issues (20)
- Can't run python script HOT 5
- %n parameter is broken on GROUP FOLDERS HOT 3
- Add Support for nextcloud 24 HOT 8
- Does the App follow semantic versioning? HOT 3
- add support für Nextcloud 25 HOT 2
- Fix lang resource not appearing on Transifex please HOT 2
- NC 24.x to 25.0.2,25.0.3,25.0.4 HOT 3
- Replace lint.yml with split workflows
- ffmpeg throwing "Invalid data found when processing input" HOT 3
- Update to 1.11.0: Failed opening required '/PATH/apps/workflow_script/composer/../vendor/autoload.php' in occ
- Adding a watermark to PDF files in Nextcloud HOT 1
- placeholder %i is not replaced because of wrong replacement of %s HOT 1
- Only 5 Tags available for Tag trigger HOT 1
- View::getLocalFolder() was removed HOT 1
- error when updating from 20.0.2 to 20.0.14 HOT 1
- Script is not executed with automatically assigned keyword HOT 1
- Add scripts management UI
- `shell_exec(): Unable to execute` HOT 2
- Just some question about the app… HOT 1
- [Feature request] Add display name as placeholder HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from workflow_script.