Nextcloud: Difference between revisions
Appearance
imported>Matthiasbeyer m Add Expansion label |
imported>Turion Add section about Nextcloud upgrade instructions |
||
Line 1: | Line 1: | ||
{{Expansion}} | {{Expansion}} | ||
== Upgrade == | |||
As you can see on [https://search.nixos.org/packages?channel=unstable&from=0&size=50&sort=relevance&type=packages&query=nextcloud the package search], there is no default nextcloud package. Instead you have to set the current version in [https://search.nixos.org/options?channel=unstable&show=services.nextcloud.package&from=0&size=50&sort=relevance&type=packages&query=nextcloud <code>services.nextcloud.package</code>], and it is your job as the maintainer of your nextcloud to check whether you're running an [https://nextcloud.com/changelog/ upstream supported version]. | |||
Upgrading then consists of these steps: | |||
# <code>nextcloud-occ maintenance:mode --on</code> | |||
# Increment the version of <code>services.nextcloud.package</code> in your config by 1 (leaving out a major version is not supported) | |||
# <code>nixos-rebuild switch</code> | |||
# <code>nextcloud-occ maintenance:mode --off</code> | |||
In theory, your nextcloud has now been upgraded by one version. NixOS attempts <code>nextcloud-occ upgrade</code>, if this succeeds without problems you don't need to do anything. Check <code>journalctl</code> to make sure nothing horrible happened. Go to the <code>/settings/admin/overview</code> page in your nextcloud to see whether it recommends further processing, such as database reindexing or conversion. | |||
== Troubleshooting == | == Troubleshooting == |
Revision as of 08:59, 12 September 2021
☶︎
This article or section needs to be expanded. Further information may be found in the related discussion page. Please consult the pedia article metapage for guidelines on contributing.
Upgrade
As you can see on the package search, there is no default nextcloud package. Instead you have to set the current version in services.nextcloud.package
, and it is your job as the maintainer of your nextcloud to check whether you're running an upstream supported version.
Upgrading then consists of these steps:
nextcloud-occ maintenance:mode --on
- Increment the version of
services.nextcloud.package
in your config by 1 (leaving out a major version is not supported) nixos-rebuild switch
nextcloud-occ maintenance:mode --off
In theory, your nextcloud has now been upgraded by one version. NixOS attempts nextcloud-occ upgrade
, if this succeeds without problems you don't need to do anything. Check journalctl
to make sure nothing horrible happened. Go to the /settings/admin/overview
page in your nextcloud to see whether it recommends further processing, such as database reindexing or conversion.
Troubleshooting
You get the message
U Wed Jul 3 06:15:06 2019 p3 nextcloud-cron.service Nextcloud[9374]: {cron} {"Exception":"Exception","Message":"Not installed","Code":0,"Trace":[{"file":"\/nix\/store\/9c58nxa9mzzg93ppwq2jlynpf4vsbd30-nextcloud-15.0.8\/lib\/base.php","line":660,"function":"checkInstalled","class":"OC","type":"::","args":[]},{"file":"\/nix\/store\/9c58nxa9mzzg93ppwq2jlynpf4vsbd30-nextcloud-15.0.8\/lib\/base.php","line":1068,"function":"init","class":"OC","type":"::","args":[]},{"file":"\/nix\/store\/9c58nxa9mzzg93ppwq2jlynpf4vsbd30-nextcloud-15.0.8\/cron.php","line":41,"args":["\/nix\/store\/9c58nxa9mzzg93ppwq2jlynpf4vsbd30-nextcloud-15.0.8\/lib\/base.php"],"function":"require_once"}],"File":"\/nix\/store\/9c58nxa9mzzg93ppwq2jlynpf4vsbd30-nextcloud-15.0.8\/lib\/base.php","Line":277,"CustomMessage":"--"}
Then you run into [1]