MCMic / workflow_kitinerary

Nextcloud application to automatically convert travel documents into calendar events using KDE itinerary project
GNU Affero General Public License v3.0
5 stars 1 forks source link

Flow launched once, never worked again #72

Open y0grt opened 1 year ago

y0grt commented 1 year ago

After installing the app and setting up the tag and the flow, I've uploaded some files and the flow launched once per file, with the error you can see in the log below (one error per file). Then I installed the kitinerary-extractor binary and configured a symlink to /usr/local/bin, checking that the user www-data can execute it. Since then the flow never worked again. I've tried removing the app and beginning from scratch, without success.

Steps to reproduce

  1. Install workflow_itinerary
  2. Set up a collaborative tag
  3. Assign that collaborative tag to a folder
  4. Configure the flow using that tag
  5. Upload a .pdf file to that folder

Expected behaviour

kitinerary binary launches, some output on the logs.

Actual behaviour

Nothing happens.

app

app version: 1.2.0

Server configuration

Operating system: Ubuntu

Web server: Nginx

Database: PostgreSQL

PHP version: 8.2.9

Nextcloud Version: 27.0.2.1

Where did you install Nextcloud from: Docker

Signing status:

No errors have been found.

List of activated apps:

``` Enabled: - activity: 2.19.0 - admin_audit: 1.17.0 - announcementcenter: 6.6.2 - bruteforcesettings: 2.7.0 - calendar: 4.4.4 - cfg_share_links: 4.1.0 - checksum: 1.2.2 - cloud_federation_api: 1.10.0 - comments: 1.17.0 - contacts: 5.3.2 - contactsinteraction: 1.8.0 - dav: 1.27.0 - event_update_notification: 2.2.0 - external: 5.2.0 - extract: 1.3.6 - federatedfilesharing: 1.17.0 - file_sharing_invalid_notifier: 0.1.1 - files: 1.22.0 - files_accesscontrol: 1.17.0 - files_automatedtagging: 1.17.0 - files_downloadactivity: 1.16.0 - files_ebookreader: 0.0.1 - files_external: 1.19.0 - files_lock: 27.0.0 - files_markdown: 2.4.1 - files_pdfviewer: 2.8.0 - files_rightclick: 1.6.0 - files_sharing: 1.19.0 - files_trashbin: 1.17.0 - firstrunwizard: 2.16.0 - groupfolders: 15.0.2 - impersonate: 1.14.0 - logreader: 2.12.0 - lookup_server_connector: 1.15.0 - mail: 3.2.6 - memories: 5.2.1 - metadata: 0.19.0 - nextcloud_announcements: 1.16.0 - notifications: 2.15.0 - notify_push: 0.6.3 - oauth2: 1.15.1 - onlyoffice: 8.2.0 - password_policy: 1.17.0 - passwords: 2023.8.31 - pdf_downloader: 1.1.3 - permissions_overwrite: 0.1.10 - photos: 2.3.0 - polls: 5.2.0 - provisioning_api: 1.17.0 - quota_warning: 1.17.0 - recognize: 4.3.1 - related_resources: 1.2.0 - root_cache_cleaner: 0.1.5 - serverinfo: 1.17.0 - settings: 1.9.0 - sharebymail: 1.17.0 - sharelisting: 1.1.1 - side_menu: 3.10.3 - socialsharing_email: 2.6.0 - spreed: 17.0.3 - suspicious_login: 5.0.0 - systemtags: 1.17.0 - tasks: 0.15.0 - text: 3.8.0 - theming: 2.2.0 - twofactor_backupcodes: 1.16.0 - twofactor_nextcloud_notification: 3.7.0 - twofactor_totp: 9.0.0 - updatenotification: 1.17.0 - user_status: 1.7.0 - viewer: 2.1.0 - workflow_kitinerary: 1.2.0 - workflow_script: 1.12.0 - workflowengine: 2.9.0 ```

Nextcloud configuration:

``` { "system": { "debug": false, "apps_paths": [ { "path": "\/var\/www\/html\/apps", "url": "\/apps", "writable": false }, { "path": "\/var\/www\/html\/custom_apps", "url": "\/custom_apps", "writable": true } ], "profile.enabled": false, "allow_local_remote_servers": true, "overwriteprotocol": "https", "lost_password_link": "disabled", "integrity.check.disabled": false, "loglevel": 2, "logfile": "\/var\/www\/logs\/nextcloud.log", "log_type": "file", "logtimezone": "***", "log_rotate_size": 10485760, "installed": true, "updatechecker": false, "enable_avatars": true, "activity_expire_day": 365, "default_phone_region": "***", "allow_user_to_change_display_name": true, "trashbin_retention_obligation": "auto", "remember_login_cookie_lifetime": 604800, "session_lifetime": 28800, "login_form_autocomplete": false, "session_keepalive": true, "knowledgebaseenabled": true, "defaultapp": "files", "auth.bruteforce.protection.enabled": true, "versions_retention_obligation": "auto", "enable_previews": true, "check_for_working_webdav": true, "appcodechecker": true, "upgrade.disable-web": true, "trusted_domains": [ "***", "***" ], "trusted_proxies": "***REMOVED SENSITIVE VALUE***", "datadirectory": "***REMOVED SENSITIVE VALUE***", "tempdirectory": "\/tmp\/", "dbtype": "pgsql", "dbname": "***REMOVED SENSITIVE VALUE***", "dbuser": "***REMOVED SENSITIVE VALUE***", "dbhost": "***REMOVED SENSITIVE VALUE***", "dbport": "", "dbpassword": "***REMOVED SENSITIVE VALUE***", "memcache.local": "\\OC\\Memcache\\APCu", "memcache.locking": "\\OC\\Memcache\\Redis", "memcache.distributed": "\\OC\\Memcache\\Redis", "redis": { "host": "***REMOVED SENSITIVE VALUE***", "port": 0, "timeout": 1.5, "password": "***REMOVED SENSITIVE VALUE***" }, "filelocking.enabled": true, "mail_smtpmode": "smtp", "mail_smtpsecure": "tls", "mail_from_address": "***REMOVED SENSITIVE VALUE***", "mail_domain": "***REMOVED SENSITIVE VALUE***", "mail_smtpauthtype": "LOGIN", "mail_smtpauth": 1, "mail_smtphost": "***REMOVED SENSITIVE VALUE***", "mail_smtpport": "587", "mail_smtpname": "***REMOVED SENSITIVE VALUE***", "mail_smtppassword": "***REMOVED SENSITIVE VALUE***", "theme": "", "instanceid": "***REMOVED SENSITIVE VALUE***", "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "version": "27.0.2.1", "dbtableprefix": "oc_", "maintenance": false, "updater.release.channel": "stable", "simpleSignUpLink.shown": false, "overwrite.cli.url": "https:\/\/****", "preview_concurrency_all": "4", "preview_concurrency_new": 4, "enabledPreviewProviders": [ "OC\\Preview\\Imaginary", "OC\\Preview\\JPEG", "OC\\Preview\\GIF", "OC\\Preview\\HEIC", "OC\\Preview\\BMP", "OC\\Preview\\XBitmap", "OC\\Preview\\Movie", "OC\\Preview\\PNG", "OC\\Preview\\TIFF" ], "preview_imaginary_url": "http:\/\/aio-imaginary:9000", "preview_max_x": "2048", "preview_max_y": "2048", "jpeg_quality": "80", "memories.qsv": true, "memories.nvenc": false, "preview_max_memory": 4096, "preview_max_filesize_image": 256, "memories.tmp_path": "\/tmp", "memories.vod.ffmpeg": "\/usr\/bin\/ffmpeg", "memories.vod.ffprobe": "\/usr\/bin\/ffprobe", "memories.vod.path": "\/var\/www\/html\/custom_apps\/memories\/exiftool-bin\/go-vod-amd64", "memories.gis_type": 2, "memories.exiftool_no_local": true, "memories.vod.vaapi": true, "memories.vod.vaapi.low_power": true, "memories.vod.nvenc": false, "memories.vod.nvenc.scale": "npp", "memories.vod.nvenc.temporal_aq": true, "memories.vod.disable": false, "memories.vod.external": true, "memories.vod.connect": "go-vod:47788", "data-fingerprint": "***", "app_install_overwrite": [ "checksum", "extract", "file_sharing_invalid_notifier", "files_markdown", "memories", "metadata", "event_update_notification", "video_converter", "socialsharing_email", "quota_warning", "camerarawpreviews", "files_downloadactivity", "sharelisting", "pdf_downloader", "files_ebookreader", "workflow_kitinerary" ] } } ```

Are you using external storage, if yes which one: no

Are you using encryption: no

Server log (data/nextcloud.log)

``` [no app in context] Error: Exception: No kitinerary adapter is available at <> 0. /var/www/html/custom_apps/workflow_kitinerary/lib/Operation.php line 160 OCA\WorkflowKitinerary\Operation->findAvailableAdapter() 1. /var/www/html/apps/workflowengine/lib/AppInfo/Application.php line 104 OCA\WorkflowKitinerary\Operation->onEvent("*** sensitive parameters replaced ***", "*** sensitive parameters replaced ***", ["OCA\\WorkflowE ... "]) 2. /var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php line 251 OCA\WorkflowEngine\AppInfo\Application->OCA\WorkflowEngine\AppInfo\{closure}("*** sensitive parameters replaced ***") 3. /var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php line 73 Symfony\Component\EventDispatcher\EventDispatcher->callListeners([["Closure"]], "*** sensitive parameters replaced ***", "*** sensitive parameters replaced ***") 4. /var/www/html/lib/private/EventDispatcher/EventDispatcher.php line 94 Symfony\Component\EventDispatcher\EventDispatcher->dispatch("*** sensitive parameters replaced ***", "*** sensitive parameters replaced ***") 5. /var/www/html/lib/private/EventDispatcher/SymfonyAdapter.php line 98 OC\EventDispatcher\EventDispatcher->dispatch("*** sensitive parameters replaced ***", "*** sensitive parameters replaced ***") 6. /var/www/html/lib/private/Files/Node/HookConnector.php line 118 OC\EventDispatcher\SymfonyAdapter->dispatch("*** sensitive parameters replaced ***", "*** sensitive parameters replaced ***") 7. /var/www/html/lib/private/legacy/OC_Hook.php line 105 OC\Files\Node\HookConnector->postWrite([true,"*** ... "]) 8. /var/www/html/lib/private/Files/View.php line 1252 OC_Hook::emit("OC_Filesystem", "post_write", [true,"/***/ ... "]) 9. /var/www/html/lib/private/Files/View.php line 1184 OC\Files\View->runHooks(["create","write"], "***.pdf", true) 10. /var/www/html/lib/private/Files/View.php line 670 OC\Files\View->basicOperation("file_put_contents", "/***/files/Lib ... f", ["create","write"], null) 11. /var/www/html/lib/private/Files/Node/Folder.php line 188 OC\Files\View->file_put_contents("/***/files/Lib ... f", null) 12. <> OC\Files\Node\Folder->newFile("***.pdf", null) 13. /var/www/html/lib/private/Files/Node/LazyFolder.php line 74 call_user_func_array([["OC\\Files\\Node\\Folder"],"newFile"], ["*** ... l]) 14. /var/www/html/lib/private/Files/Node/LazyFolder.php line 428 OC\Files\Node\LazyFolder->__call("newFile", ["*** ... l]) 15. /var/www/html/apps/dav/lib/BulkUpload/BulkUploadPlugin.php line 92 OC\Files\Node\LazyFolder->newFile("***.pdf", null) 16. /var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89 OCA\DAV\BulkUpload\BulkUploadPlugin->httpPost(["Sabre\\HTTP\\Request"], ["Sabre\\HTTP\\Response"]) 17. /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php line 472 Sabre\DAV\Server->emit("method:POST", [["Sabre\\HTTP\\ ... ]]) 18. /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php line 253 Sabre\DAV\Server->invokeMethod(["Sabre\\HTTP\\Request"], ["Sabre\\HTTP\\Response"]) 19. /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php line 321 Sabre\DAV\Server->start() 20. /var/www/html/apps/dav/lib/Server.php line 364 Sabre\DAV\Server->exec() 21. /var/www/html/apps/dav/appinfo/v2/remote.php line 35 OCA\DAV\Server->exec() 22. /var/www/html/remote.php line 172 require_once("/var/www/html/a ... p") POST /remote.php/dav/bulk from *** by *** at 2023-08-18T12:40:20+02:00 ```
MCMic commented 1 year ago

My guess is that the flow works, but kitinerary-extractor finds nothing to extract from the files you sent. Have you tried to launch kitinerary-extractor by hand on the same files?