Changes

From SME Server
Jump to navigationJump to search
1,795 bytes added ,  04:42, 2 December 2022
Line 194: Line 194:  
=== Upgrade ===
 
=== Upgrade ===
 
  yum  update {{#var:smecontribname}} {{#var:contribname}} --enablerepo=smecontribs
 
  yum  update {{#var:smecontribname}} {{#var:contribname}} --enablerepo=smecontribs
 +
 +
=== CLI upgrade of Nextcloud software ===
 +
You should rather prefer the online updater, but in case:<syntaxhighlight lang="bash">
 +
occ maintenance:mode --on
 +
sudo -u www /usr/bin/php74 /usr/share/nextcloud/updater/updater.phar --no-interaction
 +
occ upgrade
 +
occ maintenance:mode --off
 +
</syntaxhighlight>In case of a huge db, you can choose the online updater and then only issue the db update doing<syntaxhighlight lang="bash">
 +
occ upgrade
 +
occ maintenance:mode --off
 +
</syntaxhighlight>
    
=== Uninstall ===
 
=== Uninstall ===
Line 223: Line 234:  
see https://github.com/nextcloud/server/wiki/Maintenance-and-Release-Schedule
 
see https://github.com/nextcloud/server/wiki/Maintenance-and-Release-Schedule
   −
as per 2022/08:
+
as per 2022/12:
 
{| class="wikitable"
 
{| class="wikitable"
 
!
 
!
 
!Release date
 
!Release date
 
!End of life
 
!End of life
!Current version
+
|-
!Next version
+
|'''25'''
 +
|2022-10-19
 +
|2023-10
 
|-
 
|-
 
|'''24'''
 
|'''24'''
 
|2022-05-03
 
|2022-05-03
 
|2023-05
 
|2023-05
|'''24.0.4''' (2022-08-11)
  −
|24.0.5 (2022-09)
   
|-
 
|-
 
|'''23'''
 
|'''23'''
 
|2021-11-30
 
|2021-11-30
 
|2022-12
 
|2022-12
|'''23.0.8''' (2022-08-13)
  −
|23.0.9 (2022-09)
   
|-
 
|-
 
|'''22'''
 
|'''22'''
 
|2021-07-06
 
|2021-07-06
 
|2022-07
 
|2022-07
|22.2.10 (2022-07-19)
  −
|'''End of Life'''
   
|-
 
|-
 
|'''21'''
 
|'''21'''
 
|2021-02-22
 
|2021-02-22
 
|2022-02
 
|2022-02
|21.0.9 (2022-02-15)
  −
|'''End of Life'''
   
|-
 
|-
 
|'''20'''
 
|'''20'''
 
|2020-10-03
 
|2020-10-03
 
|2021-11
 
|2021-11
|20.0.14 (2021-11-11)
  −
|'''End of Life'''
   
|-
 
|-
 
|'''19'''
 
|'''19'''
 
|2020-06-03
 
|2020-06-03
 
|2021-06
 
|2021-06
|19.0.13 (2021-07-01)
  −
|'''End of Life'''
   
|-
 
|-
 
|'''18'''
 
|'''18'''
 
|2020-01-16
 
|2020-01-16
 
|2021-01
 
|2021-01
|18.0.14 (2021-01-27)
  −
|'''End of Life'''
   
|}
 
|}
   Line 293: Line 292:  
  occ config:system:set host --value localhost --type string
 
  occ config:system:set host --value localhost --type string
 
  occ maintenance --off
 
  occ maintenance --off
 +
 +
=== File Scan ===
 +
<syntaxhighlight lang="bash">
 +
# scan all, could take hours if you have a lot of files
 +
occ files:scan -v --all
 +
# scan all that is inside a username path (including external storages mounted there)
 +
occ files:scan -v myusername
 +
#scan only a subfolder of a user (path needs a heading / and is relative to /home/e-smith/files/nextcloud/data)
 +
occ files:scan -v --path="/myusername/files/myfolder/mysubfolder" myusername
 +
#For external storage one has to use a user and the mount point in the user space, e.g. admin
 +
occ files:scan -v --path="/admin/files/name_of_external_storage"
 +
</syntaxhighlight>If you use groupgfolders app, then you might consider, to list the golders id<syntaxhighlight lang="bash">
 +
occ groupfolders:list
 +
</syntaxhighlight>then for folder group with id 1<syntaxhighlight lang="bash">
 +
occ groupfolders:scan 1
 +
</syntaxhighlight>
    
=== Known issues ===
 
=== Known issues ===
    +
==== Issue importing files in db "Entry path/to/file will not be accessible due to incompatible encoding" ====
 +
<syntaxhighlight lang="bash">
 +
yum install convmv --enablerepo=epel
 +
#first test to see the changes
 +
convmv -f utf-8 -t utf-8 --nfc -r /home/e-smith/files/nextcloud/data/username
 +
#check, then with --notest
 +
convmv -f utf-8 -t utf-8 --nfc -r --notest /home/e-smith/files/nextcloud/data/username
 +
#then rescan
 +
occ files:scan -p /username/files/
 +
</syntaxhighlight>this might also occurs on ibays / home folders and their files not all visibles from nextcloud, simply adapt the path for convmv /home/e-smith/files/ibays/ibayname/files/ or /home/e-smith/files/users/userame/home/
    
==== Remove legacy nextcloud rpm without deleting /usr/share/nextcloud content ====
 
==== Remove legacy nextcloud rpm without deleting /usr/share/nextcloud content ====
Line 376: Line 401:  
# https://help.nextcloud.com/t/changing-mariadb-socket-when-hosting-multiple-db-ubuntu/68294
 
# https://help.nextcloud.com/t/changing-mariadb-socket-when-hosting-multiple-db-ubuntu/68294
 
# https://markus-blog.de/index.php/2019/10/21/how-to-migrate-nextcloud-17-database-backend-from-mysql-to-postgresql/
 
# https://markus-blog.de/index.php/2019/10/21/how-to-migrate-nextcloud-17-database-backend-from-mysql-to-postgresql/
 +
# https://www.ullright.org/ullWiki/show/nextcloud-cheatsheet
Super Admin, Wiki & Docs Team, Bureaucrats, Interface administrators, Administrators
3,254

edits

Navigation menu