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
  • Brite
  • 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 - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. Paperless-ngx
  3. Postgresql errors

Postgresql errors

Scheduled Pinned Locked Moved Paperless-ngx
8 Posts 3 Posters 106 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.
  • C Offline
    C Offline
    charlesnw
    wrote last edited by
    #1

    Anyone else having errors with Postgresql connection on paperless? All of my paperless instances broke recently.

    Not sure if it makes sense to debug here, or open a support ticket or what?

    1 Reply Last reply
    1
    • C Offline
      C Offline
      charlesnw
      wrote last edited by
      #2

      ul 16 10:05:00 django.db.utils.OperationalError: connection failed: connection to server at "172.18.30.2", port 5432 failed: FATAL: remaining connection slots are reserved for roles with the SUPERUSER attribute
      Jul 16 10:05:00 num = len(clone)
      Jul 16 10:05:00 obj, created = self.using(using).get_or_create(task_id=task_id,
      Jul 16 10:05:00 psycopg.OperationalError: connection failed: connection to server at "172.18.30.2", port 5432 failed: FATAL: remaining connection slots are reserved for roles with the SUPERUSER attribute
      Jul 16 10:05:00 raise dj_exc_value.with_traceback(traceback) from exc_value
      Jul 16 10:05:00 raise type(last_ex)("\n".join(lines)).with_traceback(None)
      Jul 16 10:05:00 raise type(last_ex)("\n".join(lines)).with_traceback(None)
      Jul 16 10:05:00 results = compiler.execute_sql(
      Jul 16 10:05:00 return fun(*args, **kwargs)
      Jul 16 10:05:00 return func(*args, **kwargs)
      Jul 16 10:05:00 return func(*args, **kwargs)
      Jul 16 10:05:00 return func(*args, **kwargs)
      Jul 16 10:05:00 return func(*args, **kwargs)
      Jul 16 10:05:00 return func(*args, **kwargs)
      Jul 16 10:05:00 return func(*args, **kwargs)
      Jul 16 10:05:00 return self._cursor()
      Jul 16 10:05:00 return self.get(**kwargs), False
      Jul 16 10:05:00 self.TaskModel._default_manager.store_result(**task_props)
      Jul 16 10:05:00 self._fetch_all()
      Jul 16 10:05:00 self._result_cache = list(self._iterable_class(self))
      Jul 16 10:05:00 self._store_result(task_id, result, state, traceback,
      Jul 16 10:05:00 self.connect()
      Jul 16 10:05:00 self.connect()
      Jul 16 10:05:00 self.connection = self.get_new_connection(conn_params)
      Jul 16 10:05:00 self.connection = self.get_new_connection(conn_params)
      Jul 16 10:05:00 self.ensure_connection()
      Jul 16 10:05:00 task.backend.store_result(
      Jul 16 10:05:00 with self.wrap_database_errors:
      Jul 16 10:05:01 13:M 16 Jul 2026 15:05:01.058 * 10 changes in 300 seconds. Saving...
      Jul 16 10:05:01 13:M 16 Jul 2026 15:05:01.059 * Background saving started by pid 383
      Jul 16 10:05:01 13:M 16 Jul 2026 15:05:01.164 * Background saving terminated with success
      Jul 16 10:05:01 383:C 16 Jul 2026 15:05:01.060 * BGSAVE done, 4 keys saved, 0 keys skipped, 3027 bytes written.
      Jul 16 10:05:01 383:C 16 Jul 2026 15:05:01.063 * DB saved on disk
      Jul 16 10:05:01 383:C 16 Jul 2026 15:05:01.064 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB

      1 Reply Last reply
      1
      • C Offline
        C Offline
        charlesnw
        wrote last edited by
        #3

        All of my paperless instances broke in the exact same way with that same error message.

        1 Reply Last reply
        1
        • C Offline
          C Offline
          charlesnw
          wrote last edited by
          #4

          ul 16 10:17:40 [previous exception] [object] (PDOException(code: 7): SQLSTATE[08006] [7] connection to server at "postgresql" (fd00:c107:d509::9b), port 5432 failed: FATAL: remaining connection slots are reserved for roles with the SUPERUSER attribute at /app/code/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:67)

          Anyone else seeing this?

          1 Reply Last reply
          0
          • nebulonN Offline
            nebulonN Offline
            nebulon
            Staff
            wrote last edited by
            #5

            Can you try to restart the postgres service?

            1 Reply Last reply
            2
            • C Offline
              C Offline
              charlesnw
              wrote last edited by
              #6

              that fixed it in all the apps! thx!

              1 Reply Last reply
              2
              • jamesJ Online
                jamesJ Online
                james
                Staff
                wrote last edited by
                #7

                Hello @charlesnw
                Is this also resolved by restarting the PostgreSQL service?

                1 Reply Last reply
                0
                • C Offline
                  C Offline
                  charlesnw
                  wrote last edited by
                  #8

                  Yes it’s also resolved by restarting Postgres service.

                  1 Reply Last reply
                  1

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  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