[V3 Mongo] Error when removing instance #1573

Closed
opened 2018-04-28 11:35:33 +02:00 by laggron42 · 1 comment
laggron42 commented 2018-04-28 11:35:33 +02:00 (Migrated from github.com)

Type:

  • Suggestion
  • Bug

When removing an instance with the launcher, this error occurs

pi@raspberrypi:~ $ export PATH=.local/bin/
pi@raspberrypi:~ $ redbot-launcher
==========================
Red Discord Bot - Launcher
==========================

1. Run Red w/ autorestart in case of issues
2. Run Red
3. Update Red
4. Update Red (development version)
5. Create Instance
6. Remove Instance
7. Debug information (use this if having issues with the launcher or bot)
0. Exit
> 6
You have chosen to remove an instance. The following is a list of instances that currently exist:

Oxibot

Red

Please select one of the above by entering its name
> Red
Would you like to make a backup of the data for this instance? (y/n)n
Removing the instance...
Traceback (most recent call last):
  File ".local/bin/redbot-launcher", line 11, in <module>
    sys.exit(main())
  File "/home/pi/.local/lib/python3.6/site-packages/redbot/launcher.py", line 358, in main
    main_menu()
  File "/home/pi/.local/lib/python3.6/site-packages/redbot/launcher.py", line 323, in main_menu
    asyncio.get_event_loop().run_until_complete(remove_instance())
  File "/usr/local/lib/python3.6/asyncio/base_events.py", line 468, in run_until_complete
    return future.result()
  File "/home/pi/.local/lib/python3.6/site-packages/redbot/setup.py", line 379, in remove_instance
    m = Mongo("Core", **instance_data["STORAGE_DETAILS"])
NameError: name 'Mongo' is not defined
### Type: - [ ] Suggestion - [x] Bug When removing an instance with the launcher, this error occurs ```Py pi@raspberrypi:~ $ export PATH=.local/bin/ pi@raspberrypi:~ $ redbot-launcher ========================== Red Discord Bot - Launcher ========================== 1. Run Red w/ autorestart in case of issues 2. Run Red 3. Update Red 4. Update Red (development version) 5. Create Instance 6. Remove Instance 7. Debug information (use this if having issues with the launcher or bot) 0. Exit > 6 You have chosen to remove an instance. The following is a list of instances that currently exist: Oxibot Red Please select one of the above by entering its name > Red Would you like to make a backup of the data for this instance? (y/n)n Removing the instance... Traceback (most recent call last): File ".local/bin/redbot-launcher", line 11, in <module> sys.exit(main()) File "/home/pi/.local/lib/python3.6/site-packages/redbot/launcher.py", line 358, in main main_menu() File "/home/pi/.local/lib/python3.6/site-packages/redbot/launcher.py", line 323, in main_menu asyncio.get_event_loop().run_until_complete(remove_instance()) File "/usr/local/lib/python3.6/asyncio/base_events.py", line 468, in run_until_complete return future.result() File "/home/pi/.local/lib/python3.6/site-packages/redbot/setup.py", line 379, in remove_instance m = Mongo("Core", **instance_data["STORAGE_DETAILS"]) NameError: name 'Mongo' is not defined ```
palmtree5 commented 2018-05-28 02:08:47 +02:00 (Migrated from github.com)

Fixed in #1710

Fixed in #1710
Sign in to join this conversation.
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
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Mrcoolgamer11/Red-DiscordBot#1573
No description provided.