From nobody Wed May 15 14:05:57 2024 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VfZkt12dFz5KwN5 for ; Wed, 15 May 2024 14:05:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VfZks70Cvz45nn for ; Wed, 15 May 2024 14:05:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1715781958; a=rsa-sha256; cv=none; b=jf3+9icrwA/17CFtTrUUhxFB9jYAjDH/DoFWBxuymR017lt+lO4Y4FZYL2fPG5I9hEAggO iGTGl6XMMObA2Ou2sCxcDFqNAtwh2piQp+sW7IZQh4fedfAvJN4qBVCBFajT39h4L0AMmf 8YSl2I9VFK4rxsZ/K9V6dQaYuV5HnHLoR7z+kPXHua7ySapeKhG7c/QaFsK9fsrCBIj9mx R0goHCKxnca8DP9rqq3JmcM0NYebcU8JyAxAewe7qwBKKUr26rtNcaSS/GZsUy0WtpV6wW 1I/pupVYOSsOymGJ/c7YQGagrs5dLzZK1bER9QxWwnPcyiPKzrRQZ4nbY1S5Eg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1715781958; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=t0DTsL7KFENUAnDlOfHcOvakmk2gG3FgtOx+oIB7afI=; b=ZYBG6MUBFER8v4ZS1gi3+n11KIte/OcDkeEy7p1kKQKTas8ebu1O8sMFy0AevxOkja9WLH z5KKy7wT9oQS00JhM6SLQ3whPkN+gaUM9VKoPWtsHhdNupSnivmHMwbryrvjxH6zR33QKE VssgUgdVROn63wrKMY1mSbQBimJTGHeFPYPRjDcZKaQ4TR+/5UTM8rlNimXuJgUfvXWKM3 VNufhXmRPhlrld78DvXhY2VWwl3kBPn6T4gZ6BH1PRJiYZ7eWbDR3C1EwgMx3bIED1ztfW YgA+Vq5t7f2fB1swSmB+5xTPmcf8i6ll0P8ymQGaGMCtf4AdIoZ5/FWA8F0+OQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VfZks6VQPzJQJ for ; Wed, 15 May 2024 14:05:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 44FE5vVn030683 for ; Wed, 15 May 2024 14:05:57 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 44FE5vux030682 for ports-bugs@FreeBSD.org; Wed, 15 May 2024 14:05:57 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 279011] deskutils/py-paperless-ngx: port affected by classifier training hanging Date: Wed, 15 May 2024 14:05:57 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: freebsd.bugzilla@mail.tinsuke.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: grembo@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports-bugs@freebsd.org Sender: owner-freebsd-ports-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D279011 Bug ID: 279011 Summary: deskutils/py-paperless-ngx: port affected by classifier training hanging Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: grembo@FreeBSD.org Reporter: freebsd.bugzilla@mail.tinsuke.com Assignee: grembo@FreeBSD.org Flags: maintainer-feedback?(grembo@FreeBSD.org) The port seems to be affected by this issue: https://github.com/paperless-ngx/paperless-ngx/discussions/2373 In short, on my instance, with 106 documents, 12 tag(s), 29 correspondent(s= ), 8 document type(s), 0 storage path(es), classifier training gets stuck/hangs indefinitely with 1 CPU showing 100% usage. The logs show: [2024-05-15 15:56:20,696] [DEBUG] [paperless.classifier] Document classification model does not exist (yet), not performing automatic matchin= g. [2024-05-15 15:56:20,697] [DEBUG] [paperless.classifier] Gathering data from database... [2024-05-15 15:56:20,843] [DEBUG] [paperless.classifier] 106 documents, 12 tag(s), 29 correspondent(s), 8 document type(s). 0 storage path(es) [2024-05-15 15:56:20,877] [DEBUG] [paperless.classifier] Vectorizing data... [2024-05-15 15:56:21,650] [DEBUG] [paperless.classifier] Training tags classifier... [2024-05-15 15:56:22,163] [DEBUG] [paperless.classifier] Training correspon= dent classifier... Running `su -l paperless -c 'paperless document_create_classifier'` shows: OMP: Warning #96: Cannot form a team with 16 threads, using 1 instead. OMP: Hint Consider unsetting KMP_DEVICE_THREAD_LIMIT (KMP_ALL_THREADS), KMP_TEAMS_THREAD_LIMIT, and OMP_THREAD_LIMIT (if any are set). As suggested in the linked discussion, adding this to /etc/profile fixes the issue for me: # Fix document classifier hanging: # https://github.com/paperless-ngx/paperless-ngx/discussions/2373#discussionc= omment-9244780 export OMP_NUM_THREADS=3D1 The port could either set this variable as well (as the NixOS port did: https://github.com/NixOS/nixpkgs/pull/299008), or try replacing the depende= ncy on openblas by mkl, but that seems to be problematic for FreeBSD: https://github.com/paperless-ngx/paperless-ngx/discussions/2373#discussionc= omment-8563927 --=20 You are receiving this mail because: You are the assignee for the bug.=