{"action":"created","issue":{"url":"https://api.github.com/repos/sqlcollaborative/dbatools/issues/3377","repository_url":"https://api.github.com/repos/sqlcollaborative/dbatools","labels_url":"https://api.github.com/repos/sqlcollaborative/dbatools/issues/3377/labels{/name}","comments_url":"https://api.github.com/repos/sqlcollaborative/dbatools/issues/3377/comments","events_url":"https://api.github.com/repos/sqlcollaborative/dbatools/issues/3377/events","html_url":"https://github.com/sqlcollaborative/dbatools/issues/3377","id":305953516,"number":3377,"title":"Copy-DbaDatabase  Backup failure Files Headers Could Not be Read","user":{"login":"rjoflorida","id":37447716,"avatar_url":"https://avatars3.githubusercontent.com/u/37447716?v=4","gravatar_id":"","url":"https://api.github.com/users/rjoflorida","html_url":"https://github.com/rjoflorida","followers_url":"https://api.github.com/users/rjoflorida/followers","following_url":"https://api.github.com/users/rjoflorida/following{/other_user}","gists_url":"https://api.github.com/users/rjoflorida/gists{/gist_id}","starred_url":"https://api.github.com/users/rjoflorida/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjoflorida/subscriptions","organizations_url":"https://api.github.com/users/rjoflorida/orgs","repos_url":"https://api.github.com/users/rjoflorida/repos","events_url":"https://api.github.com/users/rjoflorida/events{/privacy}","received_events_url":"https://api.github.com/users/rjoflorida/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-03-16T14:40:32Z","updated_at":"2018-03-24T10:11:04Z","closed_at":null,"author_association":"NONE","body":"<!-- ERASE the section that is not applicable but please provide as much information as possible -->\r\n## Bug Report\r\n<!-- Please fill in the appropriate information below -->\r\n### General Troubleshooting steps\r\n\r\n- [X] Verified running the latest release of dbatools?\r\n- [X] Verified errors are not related to permissions?\r\n- [X] Can duplicate in new/clean PowerShell session (clean = `powershell -NoProfile`)?\r\n\r\n### Version Information\r\n - Operating System (Name|Version): Windows 10\r\n - PowerShell Version:  \r\n\r\nMajor  Minor  Build  Revision\r\n-----  -----  -----  --------\r\n5      0      10240  17709  \r\n\r\n - SQL Server (Edition|Version): SQL Server 2016 Dev 13.0.4001.0\r\n\r\n## Steps to Reproduce\r\n<!--  \r\n\r\nPS C:\\Windows\\system32> Copy-DbaDatabase -Source Server01 -Destination Server02\\TEST -AllDatabases -BackupRestore -NetworkShare \\\\\\\\dbbackup\\dbbackups\\Migration -Verbose\r\n\r\nVERBOSE: [Copy-DbaDatabase][10:24:38] Started: 03/16/2018 10:24:38.\r\nVERBOSE: Performing the operation \"Backup SwitchDB from VSQL01C and restoring.\" on target \"SCSODEV12\\TEST\".\r\nVERBOSE: [Backup-DbaDatabase][10:24:38] Connecting to VSQL01C\r\nVERBOSE: [Backup-DbaDatabase][10:24:38] 1 database to backup\r\nVERBOSE: [Backup-DbaDatabase][10:24:38] Backup database [SwitchDB]\r\nVERBOSE: [Backup-DbaDatabase][10:24:38] Creating full backup\r\nVERBOSE: [Backup-DbaDatabase][10:24:38] Sorting Paths\r\nVERBOSE: [Backup-DbaDatabase][10:24:38] Setting filename\r\nVERBOSE: [Backup-DbaDatabase][10:24:38] Striping for Filecount of 3\r\nVERBOSE: [Backup-DbaDatabase][10:24:38] Devices added\r\nWARNING: [Backup-DbaDatabase][10:24:38] Backup Failed:  Exception calling \"SqlBackup\" with \"1\" argument(s): \"Backup failed for Server 'VSQL01C'. \"\r\nVERBOSE: [Copy-DbaDatabase][10:24:38] Resuse = False.\r\nVERBOSE: [Restore-DbaDatabase][10:24:38] Changing statement timeout to infinity\r\nVERBOSE: [Get-DbaDefaultPath][10:24:38] Attempting to connect to SCSODEV12\\TEST\r\nWARNING: [Restore-DbaDatabase][10:24:38] No backups passed through. \r\n This could mean the SQL instance cannot see the referenced files, the file's headers could not be read or some other issue\r\nVERBOSE: [Copy-DbaDatabase][10:24:38] Failed to restore SwitchDB to SCSODEV12\\TEST. Aborting routine for this database.\r\nVERBOSE: Performing the operation \"Showing migration time elapsed\" on target \"console\".\r\n-->\r\n - [ ] Attach any screenshots (if possible/allowed)\r\n - [ ] Attach logs generated by dbatools (`Get-DbatoolsLog`)\r\n - [X] Attach output from PowerShell console (if possible/allowed)\r\n\r\n## Feature Request\r\n\r\n<!-- \r\n  Simply answer the question: What problem or scenario would you like to solve with dbatools?\r\n-->\r\n\r\n### Problem to solve\r\nSolve issue of backup and restore failures on some databases on server.  Several other databases on this same server migrated with no issues. \r\n\r\n### Additional information\r\n\r\n<!-- replace with your answer -->\r\n"},"comment":{"url":"https://api.github.com/repos/sqlcollaborative/dbatools/issues/comments/375865059","html_url":"https://github.com/sqlcollaborative/dbatools/issues/3377#issuecomment-375865059","issue_url":"https://api.github.com/repos/sqlcollaborative/dbatools/issues/3377","id":375865059,"user":{"login":"potatoqualitee","id":8278033,"avatar_url":"https://avatars1.githubusercontent.com/u/8278033?v=4","gravatar_id":"","url":"https://api.github.com/users/potatoqualitee","html_url":"https://github.com/potatoqualitee","followers_url":"https://api.github.com/users/potatoqualitee/followers","following_url":"https://api.github.com/users/potatoqualitee/following{/other_user}","gists_url":"https://api.github.com/users/potatoqualitee/gists{/gist_id}","starred_url":"https://api.github.com/users/potatoqualitee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/potatoqualitee/subscriptions","organizations_url":"https://api.github.com/users/potatoqualitee/orgs","repos_url":"https://api.github.com/users/potatoqualitee/repos","events_url":"https://api.github.com/users/potatoqualitee/events{/privacy}","received_events_url":"https://api.github.com/users/potatoqualitee/received_events","type":"User","site_admin":false},"created_at":"2018-03-24T10:11:04Z","updated_at":"2018-03-24T10:11:04Z","author_association":"OWNER","body":"This may also be the problem of the on again, off again failures\r\n\r\nhttps://ci.appveyor.com/project/sqlcollaborative/dbatools/build/0.9.11681/job/0uhhs2loch3pdwkv"}}
{"actor":{"display_login":"potatoqualitee"}}