Git Product home page Git Product logo

Comments (17)

GeorgePalacios avatar GeorgePalacios commented on August 25, 2024 2

from sql-server-maintenance-solution.

GeorgePalacios avatar GeorgePalacios commented on August 25, 2024 1

I have confirmation from a Microsoft Support Engineer that the next CU for 2014 will be shipping with some retry logic for the BackupToURL functionality.

from sql-server-maintenance-solution.

olahallengren avatar olahallengren commented on August 25, 2024

There is currently no retry mechanism in DatabaseBackup, but it is a very good idea.

I would like to check some things. Could you send me the output - file from a failed backup job.

from sql-server-maintenance-solution.

m60freeman avatar m60freeman commented on August 25, 2024

from sql-server-maintenance-solution.

olahallengren avatar olahallengren commented on August 25, 2024

Unfortunately I don't see any good way to implement this.

If I was going to do this, it should only be for certain errors, where the retry makes sense.

The backup command returns two error. The first error is the interesting one, and the second error is a generic backup error. The problem is that you can only get the second error in T-SQL.

from sql-server-maintenance-solution.

olahallengren avatar olahallengren commented on August 25, 2024

Yes, this is the output - file I mean. Please set it to append or use the SQL Server Agent tokens for date and time.

$(ESCAPE_SQUOTE(SQLLOGDIR))\DatabaseBackup_FULL_$(ESCAPE_SQUOTE(JOBID))_$(ESCAPE_SQUOTE(STEPID))_$(ESCAPE_SQUOTE(STRTDT))_$(ESCAPE_SQUOTE(STRTTM)).txt

from sql-server-maintenance-solution.

m60freeman avatar m60freeman commented on August 25, 2024

from sql-server-maintenance-solution.

m60freeman avatar m60freeman commented on August 25, 2024

from sql-server-maintenance-solution.

olahallengren avatar olahallengren commented on August 25, 2024

I checked the CommandLog, and the backup shows an ErrorNumber of 3013, but
a NULL ErrorMessage.

Yes, this is the same issue. I am using the error variable. That only gives me the last error, for the logging, and no error message. However I will still get both errors in the output - file.

Here is an article about this issue:
https://blogs.msdn.microsoft.com/sqlprogrammability/2006/04/03/server-side-error-handling-part-2-errors-and-error-messages/

from sql-server-maintenance-solution.

GeorgePalacios avatar GeorgePalacios commented on August 25, 2024

Just to chime in here, we are experiencing the same issue and are in the process of dealing with MS support.

If any error files are needed (or anything else) I will be more than willing to accommodate.

from sql-server-maintenance-solution.

allenwux avatar allenwux commented on August 25, 2024

We are looking at this issue now. Will update once we have a solution.

from sql-server-maintenance-solution.

cfendrick avatar cfendrick commented on August 25, 2024

We currently experience the same random errors you are seeing and we are backing up exclusively to blob storage from a Azure D15 VM running Microsoft SQL Server 2016 (SP2-CU2) 13.0.5153.0 with 800 plus databases.

Retry logic built into the BackupToURL functionality would be extremely beneficial and I would welcome the addition in all SQL versions. As a workaround you could create a job to look at the CommandLog and generate your own syntax to reattempt the backup again.

image

from sql-server-maintenance-solution.

philosophicles avatar philosophicles commented on August 25, 2024

I'm also experiencing what seems to be the same problem (on 2012 SP4).
Having found this thread, I'm experimenting over the weekend with using the built-in retry functionality in SQL job steps - as I run DatabaseBackup from a job anyway.

from sql-server-maintenance-solution.

m60freeman avatar m60freeman commented on August 25, 2024

@GeorgePalacios: Nice! Last I heard, they were not going to provide this fix for 2012, so I'm glad to hear this.

from sql-server-maintenance-solution.

olahallengren avatar olahallengren commented on August 25, 2024

Microsoft has now released a fix for SQL Server 2014, SQL Server 2016, and SQL Server 2017.
https://support.microsoft.com/en-us/help/4463320/fix-intermittent-failures-when-you-run-backups-to-azure-storage-from-s

from sql-server-maintenance-solution.

durilai avatar durilai commented on August 25, 2024

@olahallengren I found this topic and am experiencing very similar behavior on SQL Server 2017 EE, CU17. We backup dozens of DB's to Azure blob storage ranging from GB's to 5TB using your solution.

It works great most of the time, but I get the occasional 3013. It typically works the next attempt, but occasionally multi-attempt failures do occur. I have set the transfer and block size, I backup to 64 files, and the failures are usually not on the largest of the DB's.

I do not see any details in the log, error messages are null in CommandLog table. Any help or guidance to help achieve more stability would be great. Thanks for your time.

from sql-server-maintenance-solution.

olahallengren avatar olahallengren commented on August 25, 2024

@durilai, what would you like to have? A retry parameter?

from sql-server-maintenance-solution.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.