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. Support
  3. Postgres error in Nextcloud app with volumes

Postgres error in Nextcloud app with volumes

Scheduled Pinned Locked Moved Support
8 Posts 2 Posters 1.3k 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.
    • E Offline
      E Offline
      ekevu123
      wrote on last edited by
      #1

      I tried to move my Nextcloud app data to a block storage volume because I ran out of space, however, that failed.

      Now I keep getting this error inside the application: Error : Addons Error - Error setting up postgresql. Status code: 500 message: connect ECONNREFUSED 127.0.0.1:5432

      I cannot even import the last backup due to the same error.

      How can I get access again?

      1 Reply Last reply
      0
      • subvenS Offline
        subvenS Offline
        subven
        wrote on last edited by
        #2

        What did you move? The whole app directory (including db etc.) or just appdata? Symlinks? More infos please 🙂

        E 1 Reply Last reply
        0
        • subvenS subven

          What did you move? The whole app directory (including db etc.) or just appdata? Symlinks? More infos please 🙂

          E Offline
          E Offline
          ekevu123
          wrote on last edited by
          #3

          @subven I tried to move the data directory in the storage submenu of the Nextcloud application.

          subvenS 1 Reply Last reply
          0
          • E ekevu123

            @subven I tried to move the data directory in the storage submenu of the Nextcloud application.

            subvenS Offline
            subvenS Offline
            subven
            wrote on last edited by
            #4

            @ekevu123 okay so you moved Default - /home/yellowtent/appsdata/9cff92f2-blah-blah-9455-5261ee1fe533 using the Cloudron storage UI.

            Have you tried to restore an older Nextcloud backup to a different subdomain? My first guess would be file permission related. I would suggest to stop the app, revert the data directory to its default location (/home/yellowtent/appsdata/ following the original app ID as folder name) and copy over the data that was moved to the volume by hand. Keep an eye on file permissions within the directory. My permissions look like this:

            root@my:/home/yellowtent/appsdata/9cff92f2-cf59-4a7e-9455-5261ee1fe533# ls -la
            total 44028
            drwxr-xr-x   3 yellowtent yellowtent     4096 Aug 19 01:32 .
            drwxr-xr-x  27 yellowtent yellowtent     4096 Okt  1 08:46 ..
            -rw-r--r--   1 yellowtent yellowtent     5892 Okt  3 02:02 config.json
            drwxrwx--- 159 www-data   www-data       4096 Okt  1 03:09 data
            -rw-r--r--   1 yellowtent yellowtent 24890717 Okt  3 02:02 dump.rdb
            -rw-r--r--   1 root       root          64510 Mai 14 02:07 fsmetadata.json
            -rw-r--r--   1 yellowtent yellowtent 20104904 Okt  3 02:02 postgresqldump
            
            E 1 Reply Last reply
            0
            • subvenS subven

              @ekevu123 okay so you moved Default - /home/yellowtent/appsdata/9cff92f2-blah-blah-9455-5261ee1fe533 using the Cloudron storage UI.

              Have you tried to restore an older Nextcloud backup to a different subdomain? My first guess would be file permission related. I would suggest to stop the app, revert the data directory to its default location (/home/yellowtent/appsdata/ following the original app ID as folder name) and copy over the data that was moved to the volume by hand. Keep an eye on file permissions within the directory. My permissions look like this:

              root@my:/home/yellowtent/appsdata/9cff92f2-cf59-4a7e-9455-5261ee1fe533# ls -la
              total 44028
              drwxr-xr-x   3 yellowtent yellowtent     4096 Aug 19 01:32 .
              drwxr-xr-x  27 yellowtent yellowtent     4096 Okt  1 08:46 ..
              -rw-r--r--   1 yellowtent yellowtent     5892 Okt  3 02:02 config.json
              drwxrwx--- 159 www-data   www-data       4096 Okt  1 03:09 data
              -rw-r--r--   1 yellowtent yellowtent 24890717 Okt  3 02:02 dump.rdb
              -rw-r--r--   1 root       root          64510 Mai 14 02:07 fsmetadata.json
              -rw-r--r--   1 yellowtent yellowtent 20104904 Okt  3 02:02 postgresqldump
              
              E Offline
              E Offline
              ekevu123
              wrote on last edited by
              #5

              @subven I do not have all the options you have here, but this is my output:

              ls -la
              total 12
              drwxr-xr-x 3 yellowtent yellowtent 4096 Oct  3 09:41 .
              drwxr-xr-x 3 yellowtent yellowtent 4096 Jun 26 11:40 ..
              drwxrwx--- 9 www-data   www-data   4096 Sep 11 14:46 data
              
              

              I cannot reinstall the backup in the same instance because I ran out of space in the disk. Moving the data directory failed, so I cannot revert it either.

              My best alternative is to delete the app completely and then set it up again, either through backup or generally new, if I cannot solve this problem here. I was hoping to get access, though, so that I can still make the necessary changes.

              subvenS 1 Reply Last reply
              0
              • E ekevu123

                @subven I do not have all the options you have here, but this is my output:

                ls -la
                total 12
                drwxr-xr-x 3 yellowtent yellowtent 4096 Oct  3 09:41 .
                drwxr-xr-x 3 yellowtent yellowtent 4096 Jun 26 11:40 ..
                drwxrwx--- 9 www-data   www-data   4096 Sep 11 14:46 data
                
                

                I cannot reinstall the backup in the same instance because I ran out of space in the disk. Moving the data directory failed, so I cannot revert it either.

                My best alternative is to delete the app completely and then set it up again, either through backup or generally new, if I cannot solve this problem here. I was hoping to get access, though, so that I can still make the necessary changes.

                subvenS Offline
                subvenS Offline
                subven
                wrote on last edited by
                #6

                @ekevu123 you can copy over the missing files from your backup by hand and put them where they belong in the apps root dir ^^ Because you have no config.json etc. app is unable to start. These files should be small as data is the big chunk but be careful to not run out of space! 🦆

                E 1 Reply Last reply
                0
                • subvenS subven

                  @ekevu123 you can copy over the missing files from your backup by hand and put them where they belong in the apps root dir ^^ Because you have no config.json etc. app is unable to start. These files should be small as data is the big chunk but be careful to not run out of space! 🦆

                  E Offline
                  E Offline
                  ekevu123
                  wrote on last edited by
                  #7

                  @subven That makes sense, however, I do not have the storage space in that Cloudron instance to do that with a second app, so I'll probably need to delete it and set it up again anyway then. But then re-implementing the backup from scratch might be even more helpful after I will have deleted it already.

                  subvenS 1 Reply Last reply
                  0
                  • E ekevu123

                    @subven That makes sense, however, I do not have the storage space in that Cloudron instance to do that with a second app, so I'll probably need to delete it and set it up again anyway then. But then re-implementing the backup from scratch might be even more helpful after I will have deleted it already.

                    subvenS Offline
                    subvenS Offline
                    subven
                    wrote on last edited by
                    #8

                    You don't need a second app. Copy the files your app is missing from your latest backup (without using Cloudrons "restore from backup" function). Take a look at my output. Compare with the files in your backup and the one in your (broken) live app.

                    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