Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Ghost
  3. Ghost: Crashing

Ghost: Crashing

Scheduled Pinned Locked Moved Solved Ghost
ghostmigration
8 Posts 4 Posters 1.7k Views 4 Watching
  • 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.
    • W Offline
      W Offline
      will
      wrote on last edited by girish
      #1

      I've had a few instances of ghost go down recently, logs show this error repeating.
      MigrationsAreLockedError: Migrations are running at the moment. Please wait that the lock get`s released.
      I've never had issues with Ghost like this before. This site happens to be empty, so I'm not losing any data. This is the second site to die recently due to this issue. Anyone else seeing this?

      murgeroM 1 Reply Last reply
      0
      • W will

        I've had a few instances of ghost go down recently, logs show this error repeating.
        MigrationsAreLockedError: Migrations are running at the moment. Please wait that the lock get`s released.
        I've never had issues with Ghost like this before. This site happens to be empty, so I'm not losing any data. This is the second site to die recently due to this issue. Anyone else seeing this?

        murgeroM Offline
        murgeroM Offline
        murgero
        App Dev
        wrote on last edited by murgero
        #2

        @will How long have you waited though for it to come up, the error message almost makes it sound like ghosts it updating or something?

        Edit: See the following link for a fix: https://github.com/TryGhost/Ghost/issues/9404#issuecomment-358664633

        --
        https://urgero.org
        ~ Professional Nerd. Freelance Programmer. ~

        1 Reply Last reply
        -1
        • girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by girish
          #3

          @will I think there is some "race" in the Cloudron package. We haven't been able to nail down why this happens (it happens when we push Ghost updates to some sites...). The fix is simple.

          • Put the app in repair mode. Repair -> Enable Recovery Mode.
          • Open Web terminal and click the MySQL button and press enter. Paste command below.
            • UPDATE migrations_lock set locked=0 where lock_key='km01';
          • Repair -> Disable repair mode
          W tshirt-chihuahuT 2 Replies Last reply
          6
          • girishG Offline
            girishG Offline
            girish
            Staff
            wrote on last edited by
            #4

            This issue is same as https://git.cloudron.io/cloudron/ghost-app/-/issues/2 which I thought I had fixed but looks like it's come back...

            1 Reply Last reply
            1
            • girishG girish

              @will I think there is some "race" in the Cloudron package. We haven't been able to nail down why this happens (it happens when we push Ghost updates to some sites...). The fix is simple.

              • Put the app in repair mode. Repair -> Enable Recovery Mode.
              • Open Web terminal and click the MySQL button and press enter. Paste command below.
                • UPDATE migrations_lock set locked=0 where lock_key='km01';
              • Repair -> Disable repair mode
              W Offline
              W Offline
              will
              wrote on last edited by
              #5

              @girish Thanks for the quick turn around on a fix!

              1 Reply Last reply
              0
              • tshirt-chihuahuT Offline
                tshirt-chihuahuT Offline
                tshirt-chihuahu
                wrote on last edited by tshirt-chihuahu
                #6

                One note for others: I had this problem and followed the above instructions from Girish, and it didn't work the first 2 times for some reason. And on the third it did. I'm not sure why. App now restarts fine.

                1 Reply Last reply
                0
                • girishG girish

                  @will I think there is some "race" in the Cloudron package. We haven't been able to nail down why this happens (it happens when we push Ghost updates to some sites...). The fix is simple.

                  • Put the app in repair mode. Repair -> Enable Recovery Mode.
                  • Open Web terminal and click the MySQL button and press enter. Paste command below.
                    • UPDATE migrations_lock set locked=0 where lock_key='km01';
                  • Repair -> Disable repair mode
                  tshirt-chihuahuT Offline
                  tshirt-chihuahuT Offline
                  tshirt-chihuahu
                  wrote on last edited by
                  #7

                  @girish Should we expect this to happen every time a ghost update is pushed? Or after running this fix will it prevent future occurrences of this?

                  I'd rather freeze updates than have this randomly knock out my content site.

                  girishG 1 Reply Last reply
                  0
                  • tshirt-chihuahuT tshirt-chihuahu

                    @girish Should we expect this to happen every time a ghost update is pushed? Or after running this fix will it prevent future occurrences of this?

                    I'd rather freeze updates than have this randomly knock out my content site.

                    girishG Offline
                    girishG Offline
                    girish
                    Staff
                    wrote on last edited by
                    #8

                    @tshirt-chihuahu It should rarely happen (but it happens). I will put the workaround in the package itself. It seems that workaround works quite reliably for a couple of years now.

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Bookmarks
                      • Search