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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Discourse Backup Failed

    Discourse
    backup discourse error postgresql
    2
    3
    211
    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.
    • Rahim
      Rahim last edited by girish

      Hello Cloudron,
      Hope you are fine.

      First of all thank you so much for creating such a great service.

      I have installed Discourse and when I want to create back in the app, I receive this log and the backup fails.

      [2021-01-04 19:04:17] 'Rahim' has started the backup!
      [2021-01-04 19:04:17] Marking backup as running...
      [2021-01-04 19:04:17] Making sure '/app/code/tmp/backups/default/2021-01-04-190416' exists...
      [2021-01-04 19:04:17] Making sure '/app/code/public/backups/default' exists...
      [2021-01-04 19:04:17] Updating metadata...
      [2021-01-04 19:04:17] Dumping the public schema of the database...
      [2021-01-04 19:04:17] pg_dump: server version: 11.9 (Ubuntu 11.9-1.pgdg18.04+1); pg_dump version: 10.12 (Ubuntu 10.12-0ubuntu0.18.04.1)
      [2021-01-04 19:04:17] pg_dump: aborting because of server version mismatch
      [2021-01-04 19:04:17] EXCEPTION: pg_dump failed
      [2021-01-04 19:04:17] /app/code/lib/backup_restore/backuper.rb:152:in `dump_public_schema'
      /app/code/lib/backup_restore/backuper.rb:36:in `run'
      /app/code/script/spawn_backup_restore.rb:9:in `backup'
      /app/code/script/spawn_backup_restore.rb:34:in `block in <main>'
      /app/code/script/spawn_backup_restore.rb:4:in `fork'
      /app/code/script/spawn_backup_restore.rb:4:in `<main>'
      [2021-01-04 19:04:17] Deleting old backups...
      [2021-01-04 19:04:17] Cleaning stuff up...
      [2021-01-04 19:04:17] Removing '.tar' leftovers...
      [2021-01-04 19:04:17] Marking backup as finished...
      [2021-01-04 19:04:17] Refreshing disk stats...
      [2021-01-04 19:04:17] Notifying 'Rahim' of the end of the backup...
      [2021-01-04 19:04:20] Finished!
      

      Why this is happening?

      Kind regards.

      girish 1 Reply Last reply Reply Quote 0
      • girish
        girish Staff @Rahim last edited by

        @rahim This is same as https://forum.cloudron.io/topic/4100/pg_dump-aborting-because-of-server-version-mismatch . We will push a new package shortly. In the meantime, Cloudron level backups should work (this is just the backup from inside discourse that does not work).

        1 Reply Last reply Reply Quote 0
        • girish
          girish Staff last edited by

          This should be fixed in the latest package.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Powered by NodeBB