Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
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 (Cyborg)
  • No Skin
Collapse
Brand Logo

CIRCLE WITH A DOT

  1. Home
  2. Uncategorized
  3. Latest quarterly FreeBSD package upgrade broke my Nextcloud ๐Ÿ˜ฎโ€๐Ÿ’จ

Latest quarterly FreeBSD package upgrade broke my Nextcloud ๐Ÿ˜ฎโ€๐Ÿ’จ

Scheduled Pinned Locked Moved Uncategorized
sysadminselfhostedfreebsdnextcloudpostgresql
5 Posts 4 Posters 0 Views
  • 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.
  • larvitz@mastodon.bsd.cafeL This user is from outside of this forum
    larvitz@mastodon.bsd.cafeL This user is from outside of this forum
    larvitz@mastodon.bsd.cafe
    wrote last edited by
    #1

    Latest quarterly FreeBSD package upgrade broke my Nextcloud ๐Ÿ˜ฎโ€๐Ÿ’จ

    Post mortem: The new version of php85-pdo_pgsql is now compiled against PostgreSQL 18, not 17. So pkg upgrade removed postgresql17-server, leaving Nextcloud dysfunctional without a database.

    Solution:
    - Reinstalled postgresql17-server
    - Dumped the db with pg_dump
    - Installed postgresql18-server & php85-pdo_pgsql
    - Copied over pg_hba.conf & postgresql.conf
    - Created empty db/user in PG18
    - Imported the db dump
    - Ran occ maintenance:data-fingerprint

    Restarted php-fpm & nginx

    All fine again. But that was unpleasant ๐Ÿ™‚

    #SysAdmin #SelfHosted #FreeBSD #Nextcloud #Postgresql

    db_geek@norden.socialD freezr@friendica.myportal.socialF 2 Replies Last reply
    2
    0
    • larvitz@burningboard.netL larvitz@burningboard.net shared this topic
    • larvitz@mastodon.bsd.cafeL larvitz@mastodon.bsd.cafe

      Latest quarterly FreeBSD package upgrade broke my Nextcloud ๐Ÿ˜ฎโ€๐Ÿ’จ

      Post mortem: The new version of php85-pdo_pgsql is now compiled against PostgreSQL 18, not 17. So pkg upgrade removed postgresql17-server, leaving Nextcloud dysfunctional without a database.

      Solution:
      - Reinstalled postgresql17-server
      - Dumped the db with pg_dump
      - Installed postgresql18-server & php85-pdo_pgsql
      - Copied over pg_hba.conf & postgresql.conf
      - Created empty db/user in PG18
      - Imported the db dump
      - Ran occ maintenance:data-fingerprint

      Restarted php-fpm & nginx

      All fine again. But that was unpleasant ๐Ÿ™‚

      #SysAdmin #SelfHosted #FreeBSD #Nextcloud #Postgresql

      db_geek@norden.socialD This user is from outside of this forum
      db_geek@norden.socialD This user is from outside of this forum
      db_geek@norden.social
      wrote last edited by
      #2

      @Larvitz ๐Ÿค”
      Sounds a little bit like Arch Linux.

      Package of new PostgreSQL major version is stable?
      So just replace package of installed PostgreSQL major version with new major version.
      Database migration to new major version?
      That's on you, user.
      After that I learned something about IgnorePkg settings.
      ๐Ÿ™‚

      That's why I liked the slot mechanism of Gentoo, where such problems could be avoided.

      larvitz@mastodon.bsd.cafeL 1 Reply Last reply
      0
      • db_geek@norden.socialD db_geek@norden.social

        @Larvitz ๐Ÿค”
        Sounds a little bit like Arch Linux.

        Package of new PostgreSQL major version is stable?
        So just replace package of installed PostgreSQL major version with new major version.
        Database migration to new major version?
        That's on you, user.
        After that I learned something about IgnorePkg settings.
        ๐Ÿ™‚

        That's why I liked the slot mechanism of Gentoo, where such problems could be avoided.

        larvitz@mastodon.bsd.cafeL This user is from outside of this forum
        larvitz@mastodon.bsd.cafeL This user is from outside of this forum
        larvitz@mastodon.bsd.cafe
        wrote last edited by
        #3

        @db_geek Yeah that wasn't ideal. But I could solve it in approx. 20 minutes via dump+restore. The php-pdo package now is linked to postgres18..

        But that could have been avoided by using the FreeBSD Ports system (/usr/ports) where you have control about the dependencies of software. Not using ports was a trade-off, that I was aware which consequences it implies and I accepted that.

        1 Reply Last reply
        0
        • larvitz@mastodon.bsd.cafeL larvitz@mastodon.bsd.cafe

          Latest quarterly FreeBSD package upgrade broke my Nextcloud ๐Ÿ˜ฎโ€๐Ÿ’จ

          Post mortem: The new version of php85-pdo_pgsql is now compiled against PostgreSQL 18, not 17. So pkg upgrade removed postgresql17-server, leaving Nextcloud dysfunctional without a database.

          Solution:
          - Reinstalled postgresql17-server
          - Dumped the db with pg_dump
          - Installed postgresql18-server & php85-pdo_pgsql
          - Copied over pg_hba.conf & postgresql.conf
          - Created empty db/user in PG18
          - Imported the db dump
          - Ran occ maintenance:data-fingerprint

          Restarted php-fpm & nginx

          All fine again. But that was unpleasant ๐Ÿ™‚

          #SysAdmin #SelfHosted #FreeBSD #Nextcloud #Postgresql

          freezr@friendica.myportal.socialF This user is from outside of this forum
          freezr@friendica.myportal.socialF This user is from outside of this forum
          freezr@friendica.myportal.social
          wrote last edited by
          #4

          @Larvitz

          I don't really get it what you stated.
          A OS that is supposedly to be tailored more toward server side rather than desktop site shouldn't break stuff... ๐Ÿคทโ€โ™‚๏ธ

          t0maz@floss.socialT 1 Reply Last reply
          0
          • freezr@friendica.myportal.socialF freezr@friendica.myportal.social

            @Larvitz

            I don't really get it what you stated.
            A OS that is supposedly to be tailored more toward server side rather than desktop site shouldn't break stuff... ๐Ÿคทโ€โ™‚๏ธ

            t0maz@floss.socialT This user is from outside of this forum
            t0maz@floss.socialT This user is from outside of this forum
            t0maz@floss.social
            wrote last edited by
            #5

            @freezr @Larvitz I wouldnโ€™t say it broke it. When new DB server is required as dependency then pkg manager shows that previous server will be removed. This is signal for admin to dump/transfer data to new server. It seems that this time user overlooked what pkg manager said it will do.
            Not sure how it is on other systems but on FreeBSD the package manger is not automagically transfer databases between servers when there is a major DB server update.

            1 Reply Last reply
            0
            • stefano@mastodon.bsd.cafeS stefano@mastodon.bsd.cafe shared this topic
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups