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. OpenProject
  3. Howto in case of upgrade ERROR: relation "cost_object_journals_pkey" does not exist"

Howto in case of upgrade ERROR: relation "cost_object_journals_pkey" does not exist"

Scheduled Pinned Locked Moved Solved OpenProject
postgresql
2 Posts 2 Posters 491 Views 2 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.
  • luckowL Online
    luckowL Online
    luckow
    translator
    wrote on last edited by girish
    #1

    If you use OpenProject and the update throws an error, follow this short howto:

    • enable recovery mode for the app
    • open the terminal
    • switch to postgres
    • have a look at the Indexes
    \d+ cost_object_journals
    
    • write down your "idx_12345_primary" key
    • alter the index
    ALTER INDEX "idx_12345_primary" RENAME TO "cost_object_pkey";
    
    • open a second terminal and do a manual migration
    ./start.sh
    
    • disable recovery mode and restart the app.

    Done.

    Pronouns: he/him | Primary language: German

    1 Reply Last reply
    1
    • robiR Offline
      robiR Offline
      robi
      wrote on last edited by
      #2

      Thank you for sharing.

      There's a lot to unpack there, especially the postgres stuff.
      I can see how many users wouldn't know what to do there.

      Can you expand on all those 'postgres' parts and what to look for?

      The 'manual migration' may not be needed since the app will do that on restart exiting recovery mode.

      Conscious tech

      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