[Downloader] Downloader unloads on bot restart. #3415
Labels
No labels
Automated PR
Blocked
Blocked By: Damage Control
Blocked By: Dependency
Blocked By: Other PR
Breaking Change
Category: CI
Category: Cogs - Admin
Category: Cogs - Alias
Category: Cogs - Audio
Category: Cogs - Bank
Category: Cogs - Cleanup
Category: Cogs - CustomCommands
Category: Cogs - Dev
Category: Cogs - Downloader
Category: Cogs - Economy
Category: Cogs - Filter
Category: Cogs - General
Category: Cogs - Image
Category: Cogs - Mod
Category: Cogs - Modlog
Category: Cogs - Mutes
Category: Cogs - Permissions
Category: Cogs - Reports
Category: Cogs - Streams
Category: Cogs - Trivia
Category: Cogs - Trivia - Lists
Category: Cogs - Warnings
Category: Core - API - App Commands Package
Category: Core - API - Audio
Category: Core - API - Bank
Category: Core - API - Commands Package
Category: Core - API - Config
Category: Core - API - Other
Category: Core - API - Utils Package
Category: Core - Bot Class
Category: Core - Bot Commands
Category: Core - Command-line Interfaces
Category: Core - Downloader
Category: Core - Help
Category: Core - i18n
Category: Core - Modlog
Category: Core - Other Internals
Category: Core - RPC/ZMQ
Category: Docker
Category: Docs - Changelogs
Category: Docs - For Developers
Category: Docs - Install Guides
Category: Docs - Other
Category: Docs - User Guides
Category: Meta
Category: RPC/ZMQ methods
Category: Vendored Packages
Changelog Entry: Added
Changelog Entry: Pending
Changelog Entry: Skipped
Closed: Duplicate
Closed: External
Closed: Invalid
Closed: User Error
Closed: Won't Fix
Complex Issue
Docs-only
Feature Branch
Good First Issue
Help Wanted
High Priority
Needs Backport To stable-docs
No Activity
No Repro
QA: Bypassed
QA: Changes Requested
QA: Passed
Release Blocker
Status: Accepted
Status: Frozen
Status: In Progress
Status: Needs Discussion
Status: Needs Info
Status: Needs Triage
Status: PRs Welcome
Type: Bug
Type: Dependency Update
Type: Deprecation
Type: Enhancement
Type: Feature
Type: Informational
Type: Merge
Type: Optimisation
Type: Question
Type: Removal
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Mrcoolgamer11/Red-DiscordBot#3415
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Other bugs
What were you trying to do?
I wanted to update my cogs by running
[p]cog updateWhat were you expecting to happen?
My cogs to update
What actually happened?
Nothing, because downloader was unloaded. I did some troubleshooting and noticed that this happens at every restart.
How can we reproduce this issue?
I can't seem to reproduce this. If you could start your bot and look through the logs above where the logo is, there might be an error message there. When the bot encounters an error loading a cog on startup, it is automatically unloaded. That is what I suspect to be happening (for some reason).
Can't seem to reproduce this issue either.
Logs show nothing. Possibly after update? I actually can't reproduce it anymore myself.
It's like just the action of opening an issue on GitHub will solve all of my problems. (Stupid thing literally unloaded 3 times on two different bots before... oh well.)
I found the issue! It unloads on server/system reboot, not on bot restart. The restart on itself is fine but as soon as I reboot the entire machine the bot runs on, downloader gets unloaded.
I'll update the issue description with the new steps to reproduce
What OS, Arch, Version? Are you using the service file as written in the guide (with python or with redbot?)? Have you looked in the journalctl to see if anything is printed? It would be before the RedBot text box.
Ubuntu18.04.3 LTS
Service file with python, not the redbot entrypoint.
No logs (journalctl as expected just displays the redbot textbox)
Just tried it on a new droplet, didn't happen to me. Tried a reboot with
shutdown -r nowas well as flipping the On/Off switch in DO's panel (this one cause uvloop to error). Each time the bot started up with the same 3 cogs I had loaded before (downloader, rolemanagement, retrigger)I really can't explain it. I have 3 bits on that machine all in seperate venvs and they all show the same behaviour.
@Dav-Git Can you please try to set your service file to start the bot with the
--debugflag to generate more detailed bugging log.Please get full logs from first bootup to restart and running
[p]cogsIn adition to this whos your host?
(Note
--debugshould be on for all the time while you are reproducing this issue)Also can you post
[p]debuginfofor all the bots.And a screenshot of
[p]cogspleaseThis is a mixture of the logs of all 3 instances I'll see if I can untangle them in a minute.
Output of
[p]cogsper instance after reboot (I realized I should've probably done a [p] cogs before reboot too. But you can trust me downloader was loaded)And here is
[p]debuginfoThere's a section of the logs missing between the first and second screenshot
ah crap i thought the 545 and 546 were the same. Standby i'll edit the comment
Every line between the first line containing
===Basic Congig===andInvite URLas that will be the part that shows if something is happeningThey are all there now
Awesome have a feeling narrowed down the issue happening here, i'll leave it to Jack to confirm though
Just the actual error for easy readability
