[V3] Can't export backup on redbot-setup #1413

Closed
opened 2018-03-08 03:42:55 +01:00 by aikaterna · 2 comments
aikaterna commented 2018-03-08 03:42:55 +01:00 (Migrated from github.com)

Type:

  • Suggestion
  • Bug

Brief description of the problem

While using redbot-setup --delete to remove an instance of Red, making a backup of it via the prompts provided will error out (Windows)

Expected behavior

A compressed backup file in the user directory listed.

Actual behavior

Would you like to make a backup of the data for this instance (y/n)?
> y
Backing up the instance's data...
Traceback (most recent call last):
  File "C:\Program Files (x86)\Python36-32\Scripts\redbot-setup-script.py", line 11, in <module>
    load_entry_point('Red-DiscordBot==3.0.0b9', 'console_scripts', 'redbot-setup')()
  File "C:\Program Files (x86)\Python36-32\lib\site-packages\redbot\setup.py", line 218, in main
    remove_instance()
  File "C:\Program Files (x86)\Python36-32\lib\site-packages\redbot\setup.py", line 185, in remove_instance
    with tarfile.open(str(backup_file), "w:gz") as tar:
  File "C:\Program Files (x86)\Python36-32\lib\tarfile.py", line 1586, in open
    return func(name, filemode, fileobj, **kwargs)
  File "C:\Program Files (x86)\Python36-32\lib\tarfile.py", line 1633, in gzopen
    fileobj = gzip.GzipFile(name, mode + "b", compresslevel, fileobj)
  File "C:\Program Files (x86)\Python36-32\lib\gzip.py", line 163, in __init__
    fileobj = self.myfileobj = builtins.open(filename, mode or 'rb')
OSError: [Errno 22] Invalid argument: 'C:\\Users\\Win7\\redv3-Sass9000-2018-02-27 19:14:19.tar.gz'

Steps to reproduce

  1. Have an instance of Red to delete.
  2. redbot-setup --delete
  3. Provide instance name
  4. When asked if you want a backup, respond y
### Type: - [ ] Suggestion - [x] Bug ### Brief description of the problem While using `redbot-setup --delete` to remove an instance of Red, making a backup of it via the prompts provided will error out (Windows) ### Expected behavior A compressed backup file in the user directory listed. ### Actual behavior ``` Would you like to make a backup of the data for this instance (y/n)? > y Backing up the instance's data... Traceback (most recent call last): File "C:\Program Files (x86)\Python36-32\Scripts\redbot-setup-script.py", line 11, in <module> load_entry_point('Red-DiscordBot==3.0.0b9', 'console_scripts', 'redbot-setup')() File "C:\Program Files (x86)\Python36-32\lib\site-packages\redbot\setup.py", line 218, in main remove_instance() File "C:\Program Files (x86)\Python36-32\lib\site-packages\redbot\setup.py", line 185, in remove_instance with tarfile.open(str(backup_file), "w:gz") as tar: File "C:\Program Files (x86)\Python36-32\lib\tarfile.py", line 1586, in open return func(name, filemode, fileobj, **kwargs) File "C:\Program Files (x86)\Python36-32\lib\tarfile.py", line 1633, in gzopen fileobj = gzip.GzipFile(name, mode + "b", compresslevel, fileobj) File "C:\Program Files (x86)\Python36-32\lib\gzip.py", line 163, in __init__ fileobj = self.myfileobj = builtins.open(filename, mode or 'rb') OSError: [Errno 22] Invalid argument: 'C:\\Users\\Win7\\redv3-Sass9000-2018-02-27 19:14:19.tar.gz' ``` ### Steps to reproduce 1. Have an instance of Red to delete. 2. redbot-setup --delete 3. Provide instance name 4. When asked if you want a backup, respond y
palmtree5 commented 2018-03-10 23:48:14 +01:00 (Migrated from github.com)

yeah, let me just choose a different character to separate the components of the time because apparently Windows can't deal with : as a character in file names

yeah, let me just choose a different character to separate the components of the time because apparently Windows can't deal with : as a character in file names
tekulvw commented 2018-03-12 23:49:03 +01:00 (Migrated from github.com)

Fixed via #1419

Fixed via #1419
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#1413
No description provided.