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 [172.16.0.2] (unknown [104.28.213.130]) by gnuweeb.org (Postfix) with ESMTPSA id AB95980FF1; Mon, 3 Oct 2022 13:13:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1664802786; bh=5dWZiHuhJMVAVOvysHXc5wCjgF3/ezzFf2DY1c8smYw=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=ew9XcvSOaostPGfdzyNiJOehTicE+7l3FPvJB29EORDThoRWvQXA4MjhFhWKFAMzN pf4YnAiicMwnb9Ej8vSlooye4SVxGpM0H33hB9YdQAb8qyOzs9KFTtAGTpl858vEAd yrqCY99Ah6PcYDfxv8mB7oZD1Pw5PYmu6J4zAYy2PoqrRLyatII/ffLRS1Oh6RO8IU tjoQzzhYddXbqqwXMG82eydw8Hjq1YIn8bSI/jeu7VGGOQZphvDtB5xVhW/F9r8stt 52hNGWn2936RrX8zVqq7TxUdMkUc3HcltHMvqDtOrcAV5ByzVH2OQHBXD41Zps7MG1 G+n8tCjX0xRkg== Message-ID: Date: Mon, 3 Oct 2022 20:13:01 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH v1 00/26] The complete version of the Discord bot Content-Language: en-US To: Muhammad Rizki Cc: Alviro Iskandar Setiawan , GNU/Weeb Mailing List References: <20221001130355.784-1-kiizuha@gnuweeb.org> <7c6e2632-b8b2-a7dd-f972-07b2b864c20a@gnuweeb.org> From: Ammar Faizi In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: On 10/3/22 8:04 PM, Muhammad Rizki wrote: > 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. I honestly don't see the race condition that leads to this issue. Not sure which function call should be protected by a mutex. Do you have the race condition scenario? >> "/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 I have already been in daemon/ directory. See my previous email: ammarfaizi2@integral2:~/app/lore-daemon.dev/daemon$ python3 dc.py -- Ammar Faizi