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. Loomio
  3. Loomio Import

Loomio Import

Scheduled Pinned Locked Moved Solved Loomio
11 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.
  • D Offline
    D Offline
    darren
    wrote on last edited by
    #1

    I'm trying to import Loomio data to a new Cloudron instance and I can't for the life of me figure out how to access the running Rails console as suggested in Loomio's documentation:

    Access the running Rails console:

    docker exec -ti loomio-app rails console
    

    Call the service:

    GroupExportService.import('/import/your-group-data.json')
    

    Running the following in the terminal:

    rails console
    

    Produces:

    /usr/local/lib/ruby/gems/3.2.0/gems/activerecord-7.0.7.2/lib/active_record/connection_adapters/abstract/connection_handler.rb:261:in `resolve_pool_config': database configuration does not specify adapter (ActiveRecord::AdapterNotSpecified)
    

    Does anyone have a method for being able to import a Loomio export?

    girishG 1 Reply Last reply
    1
    • D darren

      I'm trying to import Loomio data to a new Cloudron instance and I can't for the life of me figure out how to access the running Rails console as suggested in Loomio's documentation:

      Access the running Rails console:

      docker exec -ti loomio-app rails console
      

      Call the service:

      GroupExportService.import('/import/your-group-data.json')
      

      Running the following in the terminal:

      rails console
      

      Produces:

      /usr/local/lib/ruby/gems/3.2.0/gems/activerecord-7.0.7.2/lib/active_record/connection_adapters/abstract/connection_handler.rb:261:in `resolve_pool_config': database configuration does not specify adapter (ActiveRecord::AdapterNotSpecified)
      

      Does anyone have a method for being able to import a Loomio export?

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

      @darren On Cloudron, the containers are organized differently. You have to

      • First, upload the export file using the File manager . Say to /tmp or something
      • Then, use Web terminal to run rails commands.
      1 Reply Last reply
      0
      • girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #3

        I put some docs here - https://docs.cloudron.io/apps/loomio/#rails-console

        1 Reply Last reply
        1
        • D Offline
          D Offline
          darren
          wrote on last edited by
          #4

          Thanks @girish! This is helpful. Apologize if I'm missing something... I'm still encountering an error when I try to start the rail console in the web terminal following setting those environment variables:

          `validate_secret_key_base': Missing `secret_key_base` for 'production' environment, set this string with `bin/rails credentials:edit`
          

          Do I need to set something else?

          girishG 1 Reply Last reply
          0
          • D darren

            Thanks @girish! This is helpful. Apologize if I'm missing something... I'm still encountering an error when I try to start the rail console in the web terminal following setting those environment variables:

            `validate_secret_key_base': Missing `secret_key_base` for 'production' environment, set this string with `bin/rails credentials:edit`
            

            Do I need to set something else?

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

            @darren You are right, I forgot a step . Please run source /app/data/env.sh before you start the rails console. I am fixing the docs.

            1 Reply Last reply
            1
            • D Offline
              D Offline
              darren
              wrote on last edited by
              #6

              Perfect! Thanks again @girish I'm in now

              1 Reply Last reply
              1
              • jdaviescoatesJ Offline
                jdaviescoatesJ Offline
                jdaviescoates
                wrote on last edited by
                #7

                @darren is this you importing data from the hosted Loomio to a self-hosted Loomio on Cloudron? If so, cool! I may do that too...

                I use Cloudron with Gandi & Hetzner

                D 1 Reply Last reply
                0
                • jdaviescoatesJ jdaviescoates

                  @darren is this you importing data from the hosted Loomio to a self-hosted Loomio on Cloudron? If so, cool! I may do that too...

                  D Offline
                  D Offline
                  darren
                  wrote on last edited by
                  #8

                  @jdaviescoates yes that's the case. I was able to import a large group from hosted Loomio into self-hosted Loomio on Cloudron. The import seems stable so far.

                  1 Reply Last reply
                  1
                  • D Offline
                    D Offline
                    darren
                    wrote on last edited by
                    #9

                    @girish I just realized that the hourly cron loomio-deploy recommends [and that's already in the cloudron package] was failing. I think similarly because the db connection wasn't defined for

                    bundle exec rake loomio:hourly_tasks
                    

                    How should I proceed? I can schedule my own cron but it seems like this might be something that should be updated in the base cloudron package for loomio?

                    1 Reply Last reply
                    1
                    • nebulonN Offline
                      nebulonN Offline
                      nebulon
                      Staff
                      wrote on last edited by
                      #10

                      I can confirm the issue. Preparing a new app package now.

                      1 Reply Last reply
                      1
                      • nebulonN nebulon marked this topic as a question on
                      • nebulonN Offline
                        nebulonN Offline
                        nebulon
                        Staff
                        wrote on last edited by
                        #11

                        Latest package release has this fixed now.

                        1 Reply Last reply
                        1
                        • nebulonN nebulon has marked this topic as solved on
                        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