Skip to content
Skip to SEARCH-2
Skip to CALENDAR-3
Skip to RECENT-POSTS-2
Skip to RECENT-COMMENTS-2
Skip to ARCHIVES-2
Skip to TAG_CLOUD-2
Skip to CATEGORIES-2
Skip to META-2
Skip to CALENDAR-2

Micha's Blog

Micha's Daily Rant, updates, travels, and more..

Shrunk Expand

Primary Navigation

  • Home
  • Motorbikes
    • Micha’s Dragstar
  • Sample Page
  • Category Archives Linux
  • Technology » Computers » Linux
  • Upgrading Nextcloud 15 to 19 on Debian …

    Posted on 2021-01-21 01:42 by micha Comment

    So my Debian 9 server was still running Nextcloud 15. Meanwhile Nextcloud 20 is out.

    When I looked at performing the (manual) update I actually found a Nextcloud 16 download already in place but it seems I never completed that. Not long afterwards I discovered why – Nextcloud 16 requires PHP 7.3, but Debian 9 only has PHP 7.0 available.

    Long story short, instead of chimera’ing my Debian install I bit the bullet and decided to finally upgrade the server to Debian 10…

    Some time later…

    After the server upgrade completed I was able to use the Nextcloud web interface to upgrade to Nextcloud 16.. and 17… and 18… and 19… and 20!

    That’s were the fun stopped, many things were broken in NC20 (apps just showing blank pages), so, having taken a backup between every upgrade, I rolled back to NC19 (incidentally validating that my backups worked).

    Most things worked out of the box. Critically for me, Grauphel did not.

    Long story short, it turns out that on Debian 10, the version of the PHP OAuth package is actually not compatible with the installed version of PHP 7.3! Installing a binary-compatible package from the Debian package snapshots site fixed this.

    Amongst other things I did during the upgrade cycles was:

    • changed the database to 4-byte suppport allowing for more characters in paths and comments.
    • fixed several other minor PHP configuration issues which Nextcloud was warning about.
    • fixed support for Maps (Nextcloud bug in the upgrade scripts left some database columns misconfigured:
      • Column name "oc_maps_address_geo"."object_uri" is NotNull, but has empty string or null as default.
      • The fix was to manually edit the scripts.
    • wrote backup scripts backing up the Nextcloud directory, the database, and, optionally, the data directory.


    Linux 📎and tagged debian Nextcloud
  • Upgrading Debian 9 to Debian 10

    Posted on 2021-01-20 12:46 by micha Comment

    Triggered by needing to upgrade Nextcloud, I finally bit the bullet and decided to upgrade my virtually-hosted Debian server from Debian 9 “stretch” to Debian 10 “buster”.

    The upgrade, as usual, was fairly trivial:

    apt-get update
    apt-get upgrade
    <edit /etc/apt/sources.conf to point to the new version>
    apt-get update
    apt-get upgrade
    apt-get full-upgrade
    reboot

    There were various configuration files which needed tweaking during and after the upgrade. vimdiff was very useful. I also learned a new screen feature – split-screen! (Ctrl-a – |). Finally a shoutout to etckeeper for maintaining a full history of all edits made in /etc.

    Post-upgrade Issues and Gotchas

    dovecot (imap server)

    A huge issue was that I could no longer access my emails from anywhere.

    Turns out that dovecot was no longer letting me log in. The mail log file had numerous “Can’t load DH parameters” error entries. I had not merged in a required change to the ssl certificate configuration.

    exim4 (mail server)

    The second huge issue was that exim was no longer processing incoming mail. Turns out that spamd wasn’t started after the reboot. Fixed by:

    systemctl start spamassassin.service
    systemctl enable spamassassin.service

    shorewall (firewall)

    Another major gotcha: the shorewall firewalls were not automatically re-enabled, and it took me three days to notice. Yikes! I had left the server on sys-v init instead of systemctl and the upgrade had silently switched over. After restarting the firewall, use systemctl enable to configure it to start on bootup.

    systemctl start shorewall.service
    systemctl enable shorewall.service
    systemctl start shorewall6.service
    systemctl enable shorewall6.service

    bind9 (name server)

    Another item was that bind was no longer starting up – it needed a tweak to the apparmor configuration. Appears that on my server the log files are written to a legacy directory and the new default configuration prevented bind from writing into it and hence failing to start up.

    Miscellaneous

    • I finally removed dovecot spam from syslog by giving it its own logfiles (tweaking fail2ban accordingly).
    • Various PHP options needed tweaking and several new modules needed installing to support Nextcloud (manually installed so no dependency tracking).

    Later Updates

    • Discovered that phpldapadmin was broken. Manually downloaded and installed an updated version from “testing”.

    Linux 📎and tagged debian
  • Debian – multiple monitors and multiple GPUs

    Posted on 2018-10-16 12:51 by micha Comment

    Using

    xrandr

    to enable a monitor plugged into a secondary GPU, such as an integrated graphics card.


    Computers Linux Technology 📎and tagged debian gpu graphics Linux monitor
  • Autoscreen

    Posted on 2018-01-18 11:19 by micha Comment

    Automatically start or resume a “screen” session when logging in.


    Linux 📎and tagged Linux screen
  • Gitolite and GitWeb on Debian 9

    Posted on 2017-11-30 12:25 by micha Comment

    Install and configure gitolite and gitweb on Debian 9 ‘stretch’.


    Computers Linux Technology 📎and tagged computers debian Git gitolite gitweb Linux server
  • Recovering an LVM on a formatted disk

    Posted on 2017-05-10 16:34 by micha Comment

    Recovering an LVM volume group from a formatted drive.


    Computers Linux Technology 📎and tagged computers Linux
  • Debian “Jessie” – fix post-upgrade bootup problem (nfs mounts and systemd)

    Posted on 2016-03-05 22:41 by micha Comment

    Debian fails to boot after an upgrade; systemd tries to mount nfs before network. GAH!


    Computers Linux Technology 📎and tagged computers Linux
  • Debian “Jessie” – Fixing monitor resolution

    Posted on 2016-03-05 22:21 by micha Comment

    Fix monitor resolution using a custom EDID file.


    Computers Linux Technology 📎and tagged computers Linux
  • Upgrading server from Debian 7 “wheezy” to 8 “jessie”

    Posted on 2015-10-08 21:19 by micha Comment

    My experience upgrading anaconda from Debian 7 “wheezy” to Debian 8 “jessie”.


    Computers Linux Technology 📎and tagged computers debian Linux
  • Debian – issues after “upgrade” to systemd

    Posted on 2015-06-08 15:03 by micha Comment

    Debian: ensure /var/run and /var/lock are symlinks and not directly mounted, or systemd will break in many interesting ways.


    Computers Linux Technology

  • March 2023
    M T W T F S S
     12345
    6789101112
    13141516171819
    20212223242526
    2728293031  
    « Nov    
  • March 2023
    M T W T F S S
     12345
    6789101112
    13141516171819
    20212223242526
    2728293031  
    « Nov    
  • Recent Posts

    • Autumn colours in Nikko
    • Server – upgrade to Debian 11 “bullseye”
    • Bike Trip 2021 – Day 3
    • Bike Trip 2021 – Day 2
    • Bike Trip 2021 – Day 1
  • Recent Comments

    • Miguel TorresMiguel Torres on Installing Windows 10 on a Sony VAIO TZ
    • KonstantinKonstantin on Installing Windows 10 on a Sony VAIO TZ
    • TomTom on Installing Windows 10 on a Sony VAIO TZ
    • michamicha on Installing Windows 10 on a Sony VAIO TZ
    • michamicha on Just a shout-out to my Garmin Map Update HOWTO from last year
  • Archives

    • November 2022
    • October 2022
    • August 2021
    • January 2021
    • September 2020
    • June 2020
    • March 2020
    • April 2019
    • October 2018
    • March 2018
    • February 2018
    • January 2018
    • November 2017
    • October 2017
    • August 2017
    • May 2017
    • April 2017
    • December 2016
    • August 2016
    • April 2016
    • March 2016
    • November 2015
    • October 2015
    • June 2015
    • May 2015
    • December 2014
    • November 2014
    • October 2014
    • September 2014
    • August 2014
    • May 2014
    • April 2014
    • March 2014
    • February 2014
    • January 2014
    • December 2013
    • August 1982
  • Tags

    airport Android apps clothing Computer Games computers debian Diving drivers EDTracker Entertainment food Garmin Git GitHub gitolite gitweb GPS Hardware Linux LSC motorbike Movie No Man's Sky password Poland2015 programming PS3 PS4 PSVita rally Rant Sailing server silverbacks Ski technology tfl Theatre travel VOIP win7 Win10 windows Windows 10
  • Categories

    • Android
    • Clothing
    • Computer Games
    • Computers
    • Diving
    • Entertainment
    • Food
    • Hardware
    • Linux
    • Live Shows
    • Micha's Daily Rant
    • Motorbike
    • Movie
    • Programming
    • PS3
    • PS4
    • Sailing
    • Skiing
    • Technology
    • Travel
    • Uncategorized
    • Windows
  • Meta

    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org

©2023 raindrops Entries RSS and Comments RSS Raindrops Theme