Impossible d'installer des applications sur Nextcloud

Bonjour,

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


Comme vous pouvez le voir, il n’y a pas les catégories à gauche, contrairement aux images que j’ai vues en ligne.

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…

Hey, déjà merci pour la réponse !

Donc il se trouve que l’option était déjà à false…

image
Ensuite il n’y a pas d’option particulière non plus dans la webadmin :confused:
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).

Est-ce que tu peux essayer de lancer cette commande en ssh:

sudo yunohost app upgrade nextcloud -u https://github.com/YunoHost-Apps/nextcloud_ynh/tree/testing --debug

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 :confused:
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).

Il y a un truc bizarre, si la commande commence par sudo, c’est pour utiliser le compte sudo (qui est admin par défaut), pas le compte root…

Peux-tu me dire à qui appartient les fichiers du dossier nextcloud ?

ls -l /var/www/nextcloud

Sinon essayes ceci:
sudo -u nextcloud php7.3 occ upgrade

“run upgrade routines after installation of a new release. The release has to be installed before.”

root@olomorn:/var/www/nextcloud# ls -l /var/www/nextcloud
total 144
drwxr-xr-x 33 nextcloud nextcloud  4096 Apr 22 21:29 3rdparty
drwxr-xr-x 54 nextcloud nextcloud  4096 May 10 22:37 apps
-rw-r--r--  1 nextcloud nextcloud 15752 Apr 22 21:23 AUTHORS
drwxr-xr-x  2 nextcloud nextcloud  4096 May 10 22:37 config
-rw-r--r--  1 nextcloud nextcloud  3910 Apr 22 21:23 console.php
-rw-r--r--  1 nextcloud nextcloud 34520 Apr 22 21:23 COPYING
drwxr-xr-x 23 nextcloud nextcloud  4096 Apr 22 21:29 core
-rw-r--r--  1 nextcloud nextcloud  5048 Apr 22 21:24 cron.php
-rw-r--r--  1 nextcloud nextcloud   156 Apr 22 21:24 index.html
-rw-r--r--  1 nextcloud nextcloud  2976 Apr 22 21:24 index.php
drwxr-xr-x  6 nextcloud nextcloud  4096 Apr 22 21:24 lib
-rw-r--r--  1 nextcloud nextcloud   283 Apr 22 21:24 occ
drwxr-xr-x  2 nextcloud nextcloud  4096 Apr 22 21:24 ocm-provider
drwxr-xr-x  2 nextcloud nextcloud  4096 Apr 22 21:24 ocs
drwxr-xr-x  2 nextcloud nextcloud  4096 Apr 22 21:24 ocs-provider
-rw-r--r--  1 nextcloud nextcloud  3056 Apr 22 21:24 public.php
-rw-r--r--  1 nextcloud nextcloud  5235 Apr 22 21:24 remote.php
drwxr-xr-x  4 nextcloud nextcloud  4096 Apr 22 21:24 resources
-rw-r--r--  1 nextcloud nextcloud    26 Apr 22 21:24 robots.txt
-rw-r--r--  1 nextcloud nextcloud  2381 Apr 22 21:24 status.php
drwxr-xr-x  3 nextcloud nextcloud  4096 Apr 22 21:24 themes
drwxr-xr-x  2 nextcloud nextcloud  4096 Apr 22 21:25 updater
-rw-r--r--  1 nextcloud nextcloud   362 Apr 22 21:29 version.php

Je crois que oui !

Il doit avoir u moyen de débloquer la situation…
Peut-être un redémarrage aussi si il y a une histoire de cache ??

Essayes ceci ?:
sudo -u nextcloud php7.3 occ upgrade

“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

Sinon en lisant la doc de Nextcloud, il y a peut-être ces commandes à essayer:

$ sudo -u nextcloud php7.3 occ db:add-missing-columns
$ sudo -u nextcloud php7.3 occ db:add-missing-indices

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 ?

Ah oui j’avais oublié ça ! En effet dans les notifications j’ai plusieurs trucs :


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.

Encore une commande qui peut être efficace:
sudo -u nextcloud php7.3 occ maintenance:repair
J’espère que tu vas y arriver…

Toujours pas :frowning:
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

Ok, bon repos, moi aussi au dodo…

1 Like

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.

Peut-être une piste ici:


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:

<?xml version="1.0"?>
<info xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance"
	  xsi:noNamespaceSchemaLocation="https://apps.nextcloud.com/schema/apps/info.xsd">
	<id>workflowengine</id>
	<name>Nextcloud workflow engine</name>
	<summary>Nextcloud workflow engine</summary>
	<description>Nextcloud workflow engine</description>
	<version>2.0.0</version>
	<licence>agpl</licence>
	<author>Arthur Schiwon</author>
	<author>Julius Härtl</author>
	<author>Morris Jobke</author>
	<namespace>WorkflowEngine</namespace>

	<types>
		<filesystem/>
	</types>

	<category>files</category>
	<website>https://github.com/nextcloud/server</website>
	<bugs>https://github.com/nextcloud/server/issues</bugs>
	<repository>https://github.com/nextcloud/server.git</repository>

	<dependencies>
		<nextcloud min-version="18" max-version="18"/>
	</dependencies>

	<background-jobs>
		<job>OCA\WorkflowEngine\BackgroundJobs\Rotate</job>
	</background-jobs>

	<repair-steps>
		<post-migration>
			<step>OCA\WorkflowEngine\Migration\PopulateNewlyIntroducedDatabaseFields</step>
		</post-migration>
	</repair-steps>

	<commands>
		<command>OCA\WorkflowEngine\Command\Index</command>
	</commands>

	<settings>
		<admin>OCA\WorkflowEngine\Settings\Admin</admin>
		<admin-section>OCA\WorkflowEngine\Settings\Section</admin-section>
		<personal>OCA\WorkflowEngine\Settings\Personal</personal>
		<personal-section>OCA\WorkflowEngine\Settings\Section</personal-section>
	</settings>
</info>

Je ne te dis pas de le faire, peut-être déjà juste regarder si tu as ce fichier ??
Et sinon chercher des logs ?

J’ai pas le fichier non plus, je chercherai plus demain, encore merci

bonjour,
tu n’as pas de fichier apps/workflowengine/appinfo/info.xml ?

hello
as-tu jeté un oeil à ce post?
Bonne aprèm.

@rodinux
Pardon, je n’ai pas le databases.xml non plus mais j’ai bien info.xml dont le contenu est exactement le même que le tiens.

@Benance
Oui, j’avais vu ça, et j’ai déjà appliqué les modifications mais cela n’a rien changé.

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…