nextcloud / nextcloud/workflow_script

"File created" flow rule stops triggering after container restart

Đang mở
#486 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Ngôn ngữ chính
PHP
Star
89
Fork
19
Merge trung bình
6 giờ 38 phút
Pull request đã merge (30 ngày)
3

Mô tả

"File created" flow rule stops triggering after container restart (v3.0.0, Nextcloud AIO)
Description
The "Run script" flow with a "File created" trigger stops firing after a Nextcloud AIO container update/restart. The rule appears active in the UI but never triggers, even for files uploaded through the Nextcloud web interface.

Environment
Nextcloud version: 32.0.4.1
workflow_script version: 3.0.0
workflowengine version: 2.14.0
Installation: Nextcloud AIO (Docker)
Steps to Reproduce
Create a flow rule:
When: File created
and: File name matches /daily\d{4}-\d{2}-\d{2}_.*.gpx$/i
Run script: python3 /opt/phonetrack_timeline_updater.py --file "%f" --path "%n"
Rule works correctly after initial setup
Nextcloud AIO container is updated/restarted
Rule still shows as Active in Admin → Flow
Upload a file matching the pattern through the Nextcloud web UI
Script is never executed — no log entries, no side effects
Expected Behavior
The script should be triggered when a matching file is uploaded, even after a container restart. The rule is displayed as "Active" and should behave accordingly.

Actual Behavior
The rule silently stops working. No errors in nextcloud.log, no indication that the flow engine is attempting to run the script. Deleting and recreating the rule does not fix the issue.

Troubleshooting Done
✅ Confirmed workflow_script app is enabled (php occ app:list)
✅ Confirmed script exists and is executable at /opt/phonetrack_timeline_updater.py
✅ Script works correctly when run manually
✅ Deleted and recreated the flow rule — still doesn't trigger
✅ Uploaded test file through Nextcloud web UI (not filesystem) — still doesn't trigger
✅ No relevant errors in nextcloud.log
✅ Nextcloud cron is running (other background jobs work fine)
Notes
The rule worked reliably for about a week after initial setup (Jan 17–24, 2026)
After the container was updated, the rule stopped working permanently
This may be related to #65 and #90

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu bằng cách xem xét hành vi của workflow_script xung quanh trigger File created và các báo cáo liên quan #65 và #90. Tái hiện lỗi sau khi khởi động lại container Nextcloud AIO, sử dụng quy tắc Admin → Flow, php occ app status và các bước kiểm tra nextcloud.log được mô tả ở đây. Được xem là hoàn tất khi quy tắc đang hoạt động hiện có chạy script đã cấu hình cho các tệp được tải lên qua web phù hợp sau khi khởi động lại, kèm theo một bài kiểm thử hồi quy hoặc xác minh được ghi lại.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
docker, php
Lĩnh vực
backend
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
45/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.