Skip to content

Instantly share code, notes, and snippets.

@Neustradamus
Created July 26, 2021 03:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Neustradamus/576721dfb27e3db98ea8a5c1c0bc3100 to your computer and use it in GitHub Desktop.
Save Neustradamus/576721dfb27e3db98ea8a5c1c0bc3100 to your computer and use it in GitHub Desktop.
login as: root
root@XXX.XXX.XXX.XXX's password:
************ Welcome to NethServer ************
This is a NethServer installation.
Before editing configuration files, be aware
of the automatic events and templates system.
http://docs.nethserver.org
***********************************************
[root@server ~]# grep "'version'" /usr/share/nextcloud/config/config.php
'version' => '18.0.3.0',
[root@server ~]# rpm -qa | grep nextcloud
nethserver-nextcloud-1.9.2-1.ns7.noarch
[root@server ~]# rpm -qa | grep nextcloud
nethserver-nextcloud-1.14.2-1.ns7.noarch
You have mail in /var/spool/mail/root
[root@server ~]# grep "'version'" /usr/share/nextcloud/config/config.php
'version' => '19.0.3.1',
[root@server ~]# yum history packages *nextcloud
Loaded plugins: changelog, fastestmirror, nethserver_events
ID | Action(s) | Package
-------------------------------------------------------------------------------
4 | Updated | nethserver-nextcloud-1.9.2-1.ns7.noarch EE
4 | Update | 1.14.2-1.ns7.noarch EE
2 | Install | nethserver-nextcloud-1.9.2-1.ns7.noarch
history packages
[root@server ~]# rpm -qa | grep nextcloud
nethserver-nextcloud-1.17.1-1.ns7.noarch
[root@server ~]# grep "'version'" /usr/share/nextcloud/config/config.php
'version' => '19.0.3.1',
[root@server ~]# yum history packages *nextcloud
Loaded plugins: changelog, fastestmirror, nethserver_events
ID | Action(s) | Package
-------------------------------------------------------------------------------
5 | Updated | nethserver-nextcloud-1.14.2-1.ns7.noarch EE
5 | Update | 1.17.1-1.ns7.noarch EE
4 | Updated | nethserver-nextcloud-1.9.2-1.ns7.noarch EE
4 | Update | 1.14.2-1.ns7.noarch EE
2 | Install | nethserver-nextcloud-1.9.2-1.ns7.noarch
history packages
[root@server ~]# mysqlshow
+--------------------+
| Databases |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
+--------------------+
[root@server ~]# /opt/rh/rh-mariadb105/root/bin/mysqlshow
+--------------------+
| Databases |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
+--------------------+
[root@server ~]# /opt/rh/rh-mariadb105/root/bin/mysqlshow --socket="/var/run/rh-mariadb105-mariadb/nextcloud-mysql.sock"
+--------------------+
| Databases |
+--------------------+
| information_schema |
| mysql |
| nextcloud |
| performance_schema |
+--------------------+
[root@server ~]# occ --version
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Nextcloud 21.0.3
[root@server ~]# occ migrations:status core
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
>> App: core
>> Version Table Name: oc_migrations
>> Migrations Namespace: OC\Core\Migrations
>> Migrations Directory: /usr/share/nextcloud/core/Migrations
>> Previous Version: 18000Date20191204114856
>> Current Version: 19000Date20200211083441
>> Next Version: 20000Date20201109081915
>> Latest Version: 21000Date20210309185127
>> Executed Migrations: 25
>> Executed Unavailable Migrations: 25
>> Available Migrations: 34
>> New Migrations: 34
>> Pending Migrations: None
[root@server ~]# occ migrations:execute core 20000Date20201109081915
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
[root@server ~]# occ migrations:status core
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
>> App: core
>> Version Table Name: oc_migrations
>> Migrations Namespace: OC\Core\Migrations
>> Migrations Directory: /usr/share/nextcloud/core/Migrations
>> Previous Version: 19000Date20200211083441
>> Current Version: 20000Date20201109081915
>> Next Version: 20000Date20201109081918
>> Latest Version: 21000Date20210309185127
>> Executed Migrations: 26
>> Executed Unavailable Migrations: 26
>> Available Migrations: 34
>> New Migrations: 34
>> Pending Migrations: None
[root@server ~]# occ migrations:execute core 20000Date20201109081918
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
[root@server ~]# occ migrations:status core
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
>> App: core
>> Version Table Name: oc_migrations
>> Migrations Namespace: OC\Core\Migrations
>> Migrations Directory: /usr/share/nextcloud/core/Migrations
>> Previous Version: 20000Date20201109081915
>> Current Version: 20000Date20201109081918
>> Next Version: 20000Date20201109081919
>> Latest Version: 21000Date20210309185127
>> Executed Migrations: 27
>> Executed Unavailable Migrations: 27
>> Available Migrations: 34
>> New Migrations: 34
>> Pending Migrations: None
[root@server ~]# occ migrations:execute core 20000Date20201109081919
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
[root@server ~]# occ migrations:status core
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
>> App: core
>> Version Table Name: oc_migrations
>> Migrations Namespace: OC\Core\Migrations
>> Migrations Directory: /usr/share/nextcloud/core/Migrations
>> Previous Version: 20000Date20201109081918
>> Current Version: 20000Date20201109081919
>> Next Version: 20000Date20201111081915
>> Latest Version: 21000Date20210309185127
>> Executed Migrations: 28
>> Executed Unavailable Migrations: 28
>> Available Migrations: 34
>> New Migrations: 34
>> Pending Migrations: None
[root@server ~]# occ migrations:execute core 20000Date20201111081915
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
[root@server ~]# occ migrations:status core
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
>> App: core
>> Version Table Name: oc_migrations
>> Migrations Namespace: OC\Core\Migrations
>> Migrations Directory: /usr/share/nextcloud/core/Migrations
>> Previous Version: 20000Date20201109081919
>> Current Version: 20000Date20201111081915
>> Next Version: 21000Date20201120141228
>> Latest Version: 21000Date20210309185127
>> Executed Migrations: 29
>> Executed Unavailable Migrations: 29
>> Available Migrations: 34
>> New Migrations: 34
>> Pending Migrations: None
[root@server ~]# occ migrations:execute core 21000Date20201120141228
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
[root@server ~]# occ migrations:status core
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
>> App: core
>> Version Table Name: oc_migrations
>> Migrations Namespace: OC\Core\Migrations
>> Migrations Directory: /usr/share/nextcloud/core/Migrations
>> Previous Version: 20000Date20201111081915
>> Current Version: 21000Date20201120141228
>> Next Version: 21000Date20201202095923
>> Latest Version: 21000Date20210309185127
>> Executed Migrations: 30
>> Executed Unavailable Migrations: 30
>> Available Migrations: 34
>> New Migrations: 34
>> Pending Migrations: None
[root@server ~]# occ migrations:execute core 21000Date20201202095923
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
[root@server ~]# occ migrations:status core
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
>> App: core
>> Version Table Name: oc_migrations
>> Migrations Namespace: OC\Core\Migrations
>> Migrations Directory: /usr/share/nextcloud/core/Migrations
>> Previous Version: 21000Date20201120141228
>> Current Version: 21000Date20201202095923
>> Next Version: 21000Date20210119195004
>> Latest Version: 21000Date20210309185127
>> Executed Migrations: 31
>> Executed Unavailable Migrations: 31
>> Available Migrations: 34
>> New Migrations: 34
>> Pending Migrations: None
[root@server ~]# occ migrations:execute core 21000Date20210119195004
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
[root@server ~]# occ migrations:status core
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
>> App: core
>> Version Table Name: oc_migrations
>> Migrations Namespace: OC\Core\Migrations
>> Migrations Directory: /usr/share/nextcloud/core/Migrations
>> Previous Version: 21000Date20201202095923
>> Current Version: 21000Date20210119195004
>> Next Version: 21000Date20210309185126
>> Latest Version: 21000Date20210309185127
>> Executed Migrations: 32
>> Executed Unavailable Migrations: 32
>> Available Migrations: 34
>> New Migrations: 34
>> Pending Migrations: None
[root@server ~]# occ migrations:execute core 21000Date20210309185126
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
[root@server ~]# occ migrations:status core
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
>> App: core
>> Version Table Name: oc_migrations
>> Migrations Namespace: OC\Core\Migrations
>> Migrations Directory: /usr/share/nextcloud/core/Migrations
>> Previous Version: 21000Date20210119195004
>> Current Version: 21000Date20210309185126
>> Next Version: 21000Date20210309185127
>> Latest Version: 21000Date20210309185127
>> Executed Migrations: 33
>> Executed Unavailable Migrations: 33
>> Available Migrations: 34
>> New Migrations: 34
>> Pending Migrations: None
[root@server ~]# occ migrations:execute core 21000Date20210309185127
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
[root@server ~]# occ migrations:status core
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
>> App: core
>> Version Table Name: oc_migrations
>> Migrations Namespace: OC\Core\Migrations
>> Migrations Directory: /usr/share/nextcloud/core/Migrations
>> Previous Version: 21000Date20210309185126
>> Current Version: 21000Date20210309185127
>> Next Version: Already at latest migration step
>> Latest Version: 21000Date20210309185127
>> Executed Migrations: 34
>> Executed Unavailable Migrations: 34
>> Available Migrations: 34
>> New Migrations: 34
>> Pending Migrations: None
[root@server ~]# occ --version
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Nextcloud 21.0.3
[root@server ~]# grep "'version'" /usr/share/nextcloud/config/config.php
'version' => '19.0.3.1',
[root@server ~]# occ upgrade
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Setting log level to debug
Turned on maintenance mode
Exception: Updates between multiple major versions and downgrades are unsupported.
Update failed
Maintenance mode is kept active
Resetting log level
TO EDIT 19.0.3.1 to 21.0.2 (previous of 21.0.3)
[root@server ~]# vi /usr/share/nextcloud/config/config.php
[root@server2 ~]# occ upgrade
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Setting log level to debug
Updating database schema
Updated database
Updating <federation> ...
Updated <federation> to 1.11.0
Updating <lookup_server_connector> ...
Updated <lookup_server_connector> to 1.9.0
Updating <oauth2> ...
Updated <oauth2> to 1.9.0
Updating <password_policy> ...
Updated <password_policy> to 1.11.0
Updating <user_ldap> ...
Updated <user_ldap> to 1.11.0
Updating <files> ...
Updated <files> to 1.16.0
Updating <activity> ...
Updated <activity> to 2.14.3
Updating <cloud_federation_api> ...
Updated <cloud_federation_api> to 1.4.0
Updating <dav> ...
Fix broken values of calendar objects
Done
0/0 [->--------------------------] 0%
Updated <dav> to 1.17.1
Updating <files_sharing> ...
Updated <files_sharing> to 1.13.1
Updating <files_trashbin> ...
Updated <files_trashbin> to 1.11.0
Updating <files_versions> ...
Updated <files_versions> to 1.14.0
Updating <sharebymail> ...
Updated <sharebymail> to 1.11.0
Updating <workflowengine> ...
Updated <workflowengine> to 2.3.0
Updating <comments> ...
Updated <comments> to 1.11.0
Updating <firstrunwizard> ...
Updated <firstrunwizard> to 2.10.0
Updating <nextcloud_announcements> ...
Updated <nextcloud_announcements> to 1.10.0
Updating <notifications> ...
Updated <notifications> to 2.9.0
Updating <systemtags> ...
Updated <systemtags> to 1.11.0
Updating <theming> ...
Updated <theming> to 1.12.0
Updating <contactsinteraction> ...
Updated <contactsinteraction> to 1.2.0
Updating <federatedfilesharing> ...
Updated <federatedfilesharing> to 1.11.0
Updating <files_pdfviewer> ...
Updated <files_pdfviewer> to 2.1.0
Updating <files_rightclick> ...
Updated <files_rightclick> to 1.0.0
Updating <files_videoplayer> ...
Updated <files_videoplayer> to 1.10.0
Updating <logreader> ...
Updated <logreader> to 2.6.0
Updating <photos> ...
Updated <photos> to 1.3.0
Updating <privacy> ...
Updated <privacy> to 1.5.0
Updating <provisioning_api> ...
Updated <provisioning_api> to 1.11.0
Updating <recommendations> ...
Updated <recommendations> to 1.0.0
Updating <serverinfo> ...
Updated <serverinfo> to 1.11.0
Updating <settings> ...
Updated <settings> to 1.3.0
Updating <support> ...
Updated <support> to 1.4.0
Updating <survey_client> ...
Updated <survey_client> to 1.9.0
Updating <text> ...
Updated <text> to 3.2.0
Updating <twofactor_backupcodes> ...
Updated <twofactor_backupcodes> to 1.10.0
Updating <updatenotification> ...
Updated <updatenotification> to 1.11.0
Updating <viewer> ...
Updated <viewer> to 1.5.0
Checking for update of app accessibility in appstore
Checked for update of app "accessibility" in appstore
Checking for update of app activity in appstore
Checked for update of app "activity" in appstore
Checking for update of app cloud_federation_api in appstore
Checked for update of app "cloud_federation_api" in appstore
Checking for update of app comments in appstore
Checked for update of app "comments" in appstore
Checking for update of app contactsinteraction in appstore
Checked for update of app "contactsinteraction" in appstore
Checking for update of app dav in appstore
Checked for update of app "dav" in appstore
Checking for update of app federatedfilesharing in appstore
Checked for update of app "federatedfilesharing" in appstore
Checking for update of app federation in appstore
Checked for update of app "federation" in appstore
Checking for update of app files in appstore
Checked for update of app "files" in appstore
Checking for update of app files_pdfviewer in appstore
Checked for update of app "files_pdfviewer" in appstore
Checking for update of app files_rightclick in appstore
Checked for update of app "files_rightclick" in appstore
Checking for update of app files_sharing in appstore
Checked for update of app "files_sharing" in appstore
Checking for update of app files_trashbin in appstore
Checked for update of app "files_trashbin" in appstore
Checking for update of app files_versions in appstore
Checked for update of app "files_versions" in appstore
Checking for update of app files_videoplayer in appstore
Checked for update of app "files_videoplayer" in appstore
Checking for update of app firstrunwizard in appstore
Checked for update of app "firstrunwizard" in appstore
Checking for update of app logreader in appstore
Checked for update of app "logreader" in appstore
Checking for update of app lookup_server_connector in appstore
Checked for update of app "lookup_server_connector" in appstore
Checking for update of app nextcloud_announcements in appstore
Checked for update of app "nextcloud_announcements" in appstore
Checking for update of app notifications in appstore
Checked for update of app "notifications" in appstore
Checking for update of app oauth2 in appstore
Checked for update of app "oauth2" in appstore
Checking for update of app password_policy in appstore
Checked for update of app "password_policy" in appstore
Checking for update of app photos in appstore
Checked for update of app "photos" in appstore
Checking for update of app privacy in appstore
Checked for update of app "privacy" in appstore
Checking for update of app provisioning_api in appstore
Checked for update of app "provisioning_api" in appstore
Checking for update of app recommendations in appstore
Checked for update of app "recommendations" in appstore
Checking for update of app serverinfo in appstore
Checked for update of app "serverinfo" in appstore
Checking for update of app settings in appstore
Checked for update of app "settings" in appstore
Checking for update of app sharebymail in appstore
Checked for update of app "sharebymail" in appstore
Checking for update of app support in appstore
Checked for update of app "support" in appstore
Checking for update of app survey_client in appstore
Checked for update of app "survey_client" in appstore
Checking for update of app systemtags in appstore
Checked for update of app "systemtags" in appstore
Checking for update of app text in appstore
Checked for update of app "text" in appstore
Checking for update of app theming in appstore
Checked for update of app "theming" in appstore
Checking for update of app twofactor_backupcodes in appstore
Checked for update of app "twofactor_backupcodes" in appstore
Checking for update of app updatenotification in appstore
Checked for update of app "updatenotification" in appstore
Checking for update of app user_ldap in appstore
Checked for update of app "user_ldap" in appstore
Checking for update of app viewer in appstore
Checked for update of app "viewer" in appstore
Checking for update of app workflowengine in appstore
Checked for update of app "workflowengine" in appstore
Starting code integrity check...
Finished code integrity check
Update successful
Maintenance mode is kept active
Resetting log level
[root@server2 ~]# occ maintenance:mode --off
Maintenance mode disabled
[root@server2 ~]#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment