Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    SQL Database Error for ProGet

    Scheduled Pinned Locked Moved Support
    3 Posts 2 Posters 16 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P Offline
      priyanka.m_4184
      last edited by

      Hi,
      We are using proget Version 6.0.18 (Build 2-proget6) and our Proget instance is down since the app pool is in a stopped state and it wont start, because of the errors we see in the event viewer

      Could not allocate space for object 'dbo.PackageDownloads'.'IX__PackageDownloads__DownloadDate' in database 'ProGet2' because the 'PRIMARY' filegroup is full. Create disk space by deleting unneeded files, dropping objects in the filegroup, adding additional files to the filegroup, or setting autogrowth on for existing files in the filegroup.
      
      CREATE DATABASE or ALTER DATABASE failed because the resulting cumulative database size would exceed your licensed limit of 10240 MB per database.
      
      

      Could you please suggest next steps on how to resolve this issue? We are considering upgrading to SQLServer Standard edition, however we want to know if there is anything else we can do temporarily until we can get that upgrade done.

      Look forward to hear from you soon.

      Kind Regards,
      Priyanka

      stevedennisS 1 Reply Last reply Reply Quote 0
      • stevedennisS Offline
        stevedennis inedo-engineer @priyanka.m_4184
        last edited by

        Hi @priyanka-m_4184 ,

        It sounds like you have package statistics enabled; as you can see, this table gets really big over several years.

        If you aren't using this data and don't care about it, then just run TRUNCATE PackageDownloads and disable the feature.

        Another big table is often EventOccurences, but usually that's much smaller.

        Here is query that will purge data from those tables before 2023:

        DECLARE @DELETED INT = 1
        WHILE (@DELETED > 0)
        BEGIN
            BEGIN TRANSACTION
            
            -- PURGE OLD DATA
            DELETE TOP (10000) [PackageDownloads]
            WHERE [Download_Date] < '2023-01-01'
            SET @DELETED = @@ROWCOUNT
           
            -- PURGE OLD EVENTS
            DELETE TOP (10000) [EventOccurrences]
            WHERE [Occurrence_Date] < '2023-01-01'
            SET @DELETED = @DELETED + @@ROWCOUNT
            
            COMMIT
            CHECKPOINT 
        END
        

        Best,
        steve

        1 Reply Last reply Reply Quote 0
        • P Offline
          priyanka.m_4184
          last edited by

          Thanks Steve,

          That was helpful!

          Regards,
          Priyanka

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • 1 / 1
          • First post
            Last post
          Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation