J’ai upgradé Nextcloud pour passer à la version 18, mais certaines des applications que j’utilisais (comme l’application de contacts) ne se sont pas mise à jour et ont été désactivées par souci de compatibilité, visiblement.
En creusant un peu le problème, je me suis rendu compte que, d’après ce que j’ai compris, il est censé y avoir des catégories dans l’interface des applications de Nextcloud pour pouvoir installer des applications, or je n’ai pas ces options, j’ai uniquement accès aux applications déjà installées (voir image ci-dessous), d’où je pense le fait que les applis n’aient pas été mises à jour.
Mon instance de Nextcloud est installée sur une adresse xxx.nohost.me/nextcloud, je ne sais pas si c’est important. Je pourrais la passer sur mon adresse perso que j’ai enregistrée après, mais il faudrait que je reconfigure tous mes clients + j’ai peur de perdre des données.
Voilà je crois que j’ai un peu tout décris, n’hésitez pas à poser des questions, merci beaucoup !
Mon serveur YunoHost
Matériel: Vieux desktop Version de YunoHost: 3.7.1.3 J’ai accès à mon serveur : En SSH | Par la webadmin Êtes-vous dans un contexte particulier ou avez-vous effectué des modifications particulières sur votre instance ? : non
Pas d’inquiétudes, c’est un problème connu facile à contourner…
après t’être connecté en ssh, tu fais sudo nano /var/www/nextcloud/config/config.php et tu passes de maintenance ’true’ à ’false’.
Ou bien dans l’interface graphique de l’admin, et dans Applications => Nextcloud, il y a peut-être un bouton qui a été créer pour fixer ce problème il me semble…
Ensuite tu pourras revenir dans les apps de Nextcloud et faire les mises à jours nécessaires et ne rien perdre. Je ne te conseille pas d’activer Enable Untested apps
Tu peux supprimer aussi celles qui ne seront plus compatibles, par exemple l’app Photos remplace celle de Gallery pour les images…
Donc il se trouve que l’option était déjà à false…
Ensuite il n’y a pas d’option particulière non plus dans la webadmin
Donc je n’ai toujours pas la possibilité d’installer des applications
A savoir que tout le reste semble fonctionner correctement, et je ne vois rien qui permette de voir qu’un mode de maintenance serait activé (mais je ne sais peut etre pas où regarder).
Sinon il est possible de lancer la mise à jour en ligne de commande des apps de Nextcloud. En ssh, aller dans le dossier de Nextcloud cd /var/www/nextcloud
et ensuite essaye cette commande: sudo -u nextcloud php7.3 occ update
Okay, donc la première commande a bien fonctionné et je suis donc passé de la version 18.0.2 à la 18.0.4 visiblement, par contre cela n’a rien changé au problème
Aussi la deuxième commande a échoué avec cette erreur : Sorry, user admin is not allowed to execute '/usr/bin/php7.3 occ update' as nextcloud.
Edit : ok donc j’ai fini par m’identifier avec le compte root et utiliser cette commande pour être précis : sudo -u nextcloud php7.3 occ app:update --all qui n’a pas donné d’erreur, ni de message pour confirmer que ça a fonctionné, et accessoirement les applications n’ont visiblement pas été mise à jour (aussi la commande a été exécutée instantanément donc clairement je crois que ça n’a rien fait).
“run upgrade routines after installation of a new release. The release has to be installed before.”
Sinon, voici toutes la liste des commandes avec occ:
$ sudo -u nextcloud php7.3 occ list
Nextcloud 18.0.4
Usage:
command [options] [arguments]
Options:
-h, --help Display this help message
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
-n, --no-interaction Do not ask any interactive question
--no-warnings Skip global warnings, show command output only
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
Available commands:
check check dependencies of the server environment
help Displays help for a command
list Lists commands
status show some status information
upgrade run upgrade routines after installation of a new release. The release has to be installed before.
app
app:check-code check code to be compliant
app:disable disable an app
app:enable enable an app
app:getpath Get an absolute path to the app directory
app:install install an app
app:list List all available apps
app:remove remove an app
app:update update an app or all apps
background
background:ajax Use ajax to run background jobs
background:cron Use cron to run background jobs
background:webcron Use webcron to run background jobs
broadcast
broadcast:test test the SSE broadcaster
config
config:app:delete Delete an app config value
config:app:get Get an app config value
config:app:set Set an app config value
config:import Import a list of configs
config:list List all configs
config:system:delete Delete a system config value
config:system:get Get a system config value
config:system:set Set a system config value
dav
dav:create-addressbook Create a dav addressbook
dav:create-calendar Create a dav calendar
dav:list-calendars List all calendars of a user
dav:move-calendar Move a calendar from an user to another
dav:remove-invalid-shares Remove invalid dav shares
dav:send-event-reminders Sends event reminders
dav:sync-birthday-calendar Synchronizes the birthday calendar
dav:sync-system-addressbook Synchronizes users to the system addressbook
db
db:add-missing-indices Add missing indices to the database tables
db:convert-filecache-bigint Convert the ID columns of the filecache to BigInt
db:convert-mysql-charset Convert charset of MySQL/MariaDB to use utf8mb4
db:convert-type Convert the Nextcloud database to the newly configured one
encryption
encryption:change-key-storage-root Change key storage root
encryption:decrypt-all Disable server-side encryption and decrypt all files
encryption:disable Disable encryption
encryption:enable Enable encryption
encryption:encrypt-all Encrypt all files for all users
encryption:list-modules List all available encryption modules
encryption:set-default-module Set the encryption default module
encryption:show-key-storage-root Show current key storage root
encryption:status Lists the current status of encryption
federation
federation:sync-addressbooks Synchronizes addressbooks of all federated clouds
files
files:cleanup cleanup filecache
files:recommendations:recommend
files:scan rescan filesystem
files:scan-app-data rescan the AppData folder
files:transfer-ownership All files and folders are moved to another user - shares are moved as well.
group
group:add Add a group
group:adduser add a user to a group
group:delete Remove a group
group:list list configured groups
group:removeuser remove a user from a group
groupfolders
groupfolders:create Create a new group folder
groupfolders:delete Delete group folder
groupfolders:expire Trigger expiry of versions for files stored in group folders
groupfolders:group Edit the groups that have access to a group folder
groupfolders:list List the configured group folders
groupfolders:permissions Configure advanced permissions for a configured group folder
groupfolders:quota Edit the quota of a configured group folder
groupfolders:rename Rename group folder
groupfolders:scan Scan a group folder for outside changes
integrity
integrity:check-app Check integrity of an app using a signature.
integrity:check-core Check integrity of core code using a signature.
integrity:sign-app Signs an app using a private key.
integrity:sign-core Sign core using a private key.
l10n
l10n:createjs Create javascript translation files for a given app
ldap
ldap:check-user checks whether a user exists on LDAP.
ldap:create-empty-config creates an empty LDAP configuration
ldap:delete-config deletes an existing LDAP configuration
ldap:search executes a user or group search
ldap:set-config modifies an LDAP configuration
ldap:show-config shows the LDAP configuration
ldap:show-remnants shows which users are not available on LDAP anymore, but have remnants in Nextcloud.
ldap:test-config tests an LDAP configuration
log
log:file manipulate logging backend
log:manage manage logging configuration
log:tail Tail the nextcloud logfile
log:watch Watch the nextcloud logfile
mail
mail:account:create creates IMAP account
mail:account:diagnose Diagnose a user's IMAP connection
mail:account:export Exports a user's IMAP account(s)
mail:account:sync Synchronize an IMAP account
maintenance
maintenance:data-fingerprint update the systems data-fingerprint after a backup is restored
maintenance:mimetype:update-db Update database mimetypes and update filecache
maintenance:mimetype:update-js Update mimetypelist.js
maintenance:mode set maintenance mode
maintenance:repair repair this installation
maintenance:theme:update Apply custom theme changes
maintenance:update:htaccess Updates the .htaccess file
migrations
migrations:execute Execute a single migration version manually.
migrations:generate
migrations:generate-from-schema
migrations:migrate Execute a migration to a specified version or the latest available version.
migrations:status View the status of a set of migrations.
notification
notification:generate Generate a notification for the given user
security
security:certificates list trusted certificates
security:certificates:import import trusted certificate
security:certificates:remove remove trusted certificate
sharing
sharing:cleanup-remote-storages Cleanup shared storage entries that have no matching entry in the shares_external table
sharing:expiration-notification Notify share initiators when a share will expire the next day.
talk
talk:command:add Add a new command
talk:command:add-samples Adds some sample commands: /wiki, …
talk:command:delete Remove an existing command
talk:command:list List all available commands
talk:command:update Add a new command
talk:signaling:add Add an external signaling server.
talk:signaling:delete Remove an existing signaling server.
talk:signaling:list List external signaling servers.
talk:stun:add Add a new STUN server.
talk:stun:delete Remove an existing STUN server.
talk:stun:list List STUN servers.
talk:turn:add Add a TURN server.
talk:turn:delete Remove an existing TURN server.
talk:turn:list List TURN servers.
text
text:reset Reset a text document
trashbin
trashbin:cleanup Remove deleted files
trashbin:expire Expires the users trashbin
twofactorauth
twofactorauth:cleanup Clean up the two-factor user-provider association of an uninstalled/removed provider
twofactorauth:disable Disable two-factor authentication for a user
twofactorauth:enable Enable two-factor authentication for a user
twofactorauth:enforce Enabled/disable enforced two-factor authentication
twofactorauth:state Get the two-factor authentication (2FA) state of a user
user
user:add adds a user
user:delete deletes the specified user
user:disable disables the specified user
user:enable enables the specified user
user:info show user info
user:lastseen shows when the user was logged in last time
user:list list configured users
user:report shows how many users have access
user:resetpassword Resets the password of the named user
user:setting Read and modify user settings
versions
versions:cleanup Delete versions
versions:expire Expires the users file versions
workflows
workflows:list Lists configured workflows
mais ils disent aussi que c’est pas le mieux à faire et qu’il y a peut-être dans l’interface web des moyens… Est-ce que tu as cliqué sur la cloche qui semble marquer une notification ?
Il y a ces notifications qui semblent être des recommandations d’applications, et qui lorsque je clique dessus semblent rediriger vers la page pour installer l’app, sauf que ça charge pendant qqs secondes, puis reste sur une page blanche.
Toujours pas
Je regarderai d’un peu plus près les autres commandes demain. Je vais aller me coucher là, mais merci beaucoup pour ton aide !
(et tant que j’y suis je vais poster l’output, ça mange pas de pain)
root@olomorn:/var/www/nextcloud# sudo -u nextcloud php7.3 occ maintenance:repair
- Repair MySQL collation
- All tables already have the correct collation -> nothing to do
- Repair mime types
- Clean tags and favorites
- 0 tags of deleted users have been removed.
- 0 tags for delete files have been removed.
- 0 tag entries for deleted tags have been removed.
- 0 tags with no entries have been removed.
- Repair invalid shares
- Move .step file of updater to backup location
- Fix potential broken mount points
- No mounts updated
- Add log rotate job
- Clear frontend caches
- Image cache cleared
- SCSS cache cleared
- JS cache cleared
- Clear every generated avatar on major updates
- Add preview background cleanup job
- Queue a one-time job to cleanup old backups of the updater
- Cleanup invalid photocache files for carddav
- Add background job to cleanup login flow v2 tokens
- Remove potentially over exposing share links
- No need to remove link shares.
- Clear access cache of projects
- Switches from deprecated "production" to "stable" update channel
- Sets the enterprise logo
- Repair step already executed
- Reset generated avatar flag
- Fix component of birthday calendars
- 2 birthday calendars updated.
- Regenerating birthday calendars to use new icons and fix old birthday events without year
- Repair step already executed
- Fix broken values of calendar objects
0 [>---------------------------]
- Registering building of calendar search index as background job
- Repair step already executed
- Registering background jobs to update cache for webcal calendars
- Added 0 background jobs to update webcal calendars
- Registering building of calendar reminder index as background job
- Repair step already executed
- Clean up orphan event and contact data
- 0 events without a calendar have been cleaned up
- 0 properties without an events have been cleaned up
- 0 changes without a calendar have been cleaned up
- 0 cached events without a calendar subscription have been cleaned up
- 0 changes without a calendar subscription have been cleaned up
- 0 contacts without an addressbook have been cleaned up
- 0 properties without a contact have been cleaned up
- 0 changes without an addressbook have been cleaned up
- Remove activity entries of private events
- Removed 0 activity entries
- Fix the share type of guest shares when migrating from ownCloud
- Copy the share password into the dedicated column
- Set existing shares as accepted
- Update OAuth token expiration times
- Add background job to check for backup codes
- Insert UUIDFix background job for user and group in batches
- Populating added database structures for workflows
okay aussi je suis pas sûr de comment c’est censé fonctionner donc c’est peut etre pas un probleme, mais quand je ping nextcloud.com je n’ai pas de soucis, mais si je ping apps.nextcloud.com il y a un timeout.
En gros ils conseille de supprimer d’abord le fichier apps/workflowengine/appinfo/databases.xml et de lancer un occ upgrade. Problème, ce fichier n’existe pas chez moi…
j’ai un fichier info.xml et je peux te dire ce qu’il y a dedans:
Zut, c’était une bonne piste… que donnerait ?: sudo -u nextcloud php7.3 updater/updater.phar
C’est du tatillonnage, je vais arrêter d’envoyer autant de suggestions…