From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,NO_DNS_FOR_FROM, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from [192.168.1.3] (unknown [101.128.125.217]) by gnuweeb.org (Postfix) with ESMTPSA id 5D6257E257; Mon, 3 Oct 2022 13:04:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1664802297; bh=PNeG5xiob99XftAGU1pWAU1MNl4oOdfG/COTMmzaV/U=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=qSWoxrWLWfVwxa4JyWcn1LNztNeSyCAEIdolMlO8XSakPZlQQqvNQJsEysZKDOK4x 7kk7OKWeHQjMuozt2bRKbGf/f9UcBJwx4lCWmpasEfce7N/KnAdS7uAz05Maay/mzP euH8qqpbUpeJzkYz/8ZGmq+wyPZBpHc/dSCY5WNVzdOIunE74U3xyGCNNglmh0ig0k 49iffhJkFaNRhIxKwXa04VB2ZcA0XhWsUtglMX0n0yKFuta6HV91CWGWhrHJ+vSJBG OchCxewwAZMll2kxcyFlPg8jiZjRcersDHkPs4DEQeWXRt0sHrJCcOfHXOlcfAfV0I Qes3MTkOa5Oqw== Message-ID: Date: Mon, 3 Oct 2022 20:04:51 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: [PATCH v1 00/26] The complete version of the Discord bot To: Ammar Faizi Cc: Alviro Iskandar Setiawan , GNU/Weeb Mailing List References: <20221001130355.784-1-kiizuha@gnuweeb.org> <7c6e2632-b8b2-a7dd-f972-07b2b864c20a@gnuweeb.org> Content-Language: en-US From: Muhammad Rizki In-Reply-To: <7c6e2632-b8b2-a7dd-f972-07b2b864c20a@gnuweeb.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: On 03/10/2022 19.48, Ammar Faizi wrote: > Hi, > > I have tested the bot, it runs well when it delivers an email that > doesn't have an attachment, but sometimes it is broken. See the > traces below. Also, the files in storage dir are not deleted. Do > you know what may be going wrong here? > > Files are not deleted: > > ammarfaizi2@integral2:~/app/lore-daemon.dev/daemon$ ls dscord/storage -l > total 0 > drwxrwxr-x 1 ammarfaizi2 ammarfaizi2  78 Sep  3 17:25 > 23035eeb480f2b3501ba0841ef10ce3f > drwxrwxr-x 1 ammarfaizi2 ammarfaizi2  12 Oct  3 19:42 > 6766c45fa800d71173893158b2c7d640 > drwxrwxr-x 1 ammarfaizi2 ammarfaizi2   0 Sep  3 17:22 > 78380c23529749c280e4cca46f7519c9 > drwxrwxr-x 1 ammarfaizi2 ammarfaizi2   0 Sep  3 17:23 > a23e986acc2c75d08a3e98377f06bbfe > drwxrwxr-x 1 ammarfaizi2 ammarfaizi2 356 Sep  3 17:22 > b241bd7c932c70e6a81d107da019cb67 > drwxrwxr-x 1 ammarfaizi2 ammarfaizi2  12 Sep  3 17:25 > bcaac8364eaf04951d504faa1f1df826 > drwxrwxr-x 1 ammarfaizi2 ammarfaizi2   0 Sep  3 17:23 > c36cdede05b536d395c5b55dbae92288 > ammarfaizi2@integral2:~/app/lore-daemon.dev/daemon$ > Hi, We know this issue has been going on for a long time, and we still haven't figured out how to solve it, maybe because it wasn't mutexed first or something. I haven't tested it for the lock mutex file deletion yet. > "/home/ammarfaizi2/.local/lib/python3.10/site-packages/discord/file.py", > line 97, in __init__ >     self.fp = open(fp, 'rb') > FileNotFoundError: [Errno 2] No such file or directory: 'config' > This issue may be because the lore email patch file is not yet in the storage directory. Make sure you run a python command in the daemon/ directory. - cd daemon - python3 dc.py