OwnCloud Marketplace Applications tierces

De EjnTricks

Depuis la version 10.0.X, les applications tierces ont été déplacées vers un "Marketplace" https://marketplace.owncloud.com.

Cet article présente l'installation d'une application depuis ce Marketplace.


Hand-icon.png Votre avis

Nobody voted on this yet

 You need to enable JavaScript to vote


Folder inspection icon.png Commande recherche

Study icon.png Utilisation

IL est possible d'interroger les applications tierces déclarées à partir de la commande occ avec l'argument market:list. Ainsi un listing de toutes les applications disponibles sera présenté. Dans le cadre d'une installation de OwnCloud dans le répertoire /var/opt/owncloud/installed, l'installation s'effectue ainsi.

#sudo -u www-data php /var/opt/owncloud/installed/occ market:list

Warning-icon.png Attention la commande ne founit qu'un listing des noms d'application, aucune description n'est retournée.

Examples-icon.png Exemple

L'exécution ne présente aucune difficulté.

#sudo -u www-data php /var/opt/owncloud/installed/occ market:list
activity
admin_audit
afterlogic
announcementcenter
audioplayer
bookmarks
calendar 
checksum
contacts
customgroups
diagnostics
duo
e2eeshare
enterprise_key
files_antivirus
files_clipboard
files_external_dropbox
files_external_ftp
files_ldap_home
files_pdfviewer
files_texteditor
firewall
gallery
gpxedit
gpxmotion
gpxpod
guests
impersonate
market
music
oauth2
objectstore
onlyoffice
ownbackup
passman
password_policy
phonetrack
polls
qownnotesapi
rainloop
ransomware_protection
richdocuments
security
sensorlogger
sharepoint
systemtags_management
theme-enterprise
twofactor_backup_codes
twofactor_privacyidea
twofactor_totp
user_ldap
user_shibboleth
windows_network_drive
workflow
xmas
zimbradrive


System-Install-icon.png Commande installation

Study icon.png Utilisation

L'installation d'une application s'effectue simplement à partir de la commande occ avec l'argument market:install. Il faut indiquer le nom de l'application à installer.

Warning-icon.png Attention le nom est sensible à la casse.

Dans le cadre d'une installation de OwnCloud dans le répertoire /var/opt/owncloud/installed, l'installation s'effectue ainsi.

#sudo -u www-data php /var/opt/owncloud/installed/occ market:install appName

L'application est alors téléchargé dans le sous répertoire apps et est automatiquement activée, il n'est pas nécessaire de la rendre disponible depuis l'interface d'administration.

Par conséquent, ce mode d'installation n'est pas compatible avec une organisation dans un répertoire externe, explicité dans l'article suivant.

A noter, si l'application est déjà installée, une mise à jour sera réalisée en cas de nécessité.

Examples-icon.png Exemple

Pour cet exemple, l'application xmas est installée. Attention, la présentation faite sur le site référence le nom Xmas. Mise à part cette subtilité, la commande se déroule sans difficulté.

#sudo -u www-data php /var/opt/owncloud/installed/occ market:install xmas
xmas: Installing new app ...
xmas: App installed.

Elle est bien ajoutée dans le répertoire apps.

#sudo ll /var/opt/owncloud/installed/apps
total 120
drwx------ 30 www-data www-data 4096 janv. 10 17:57 ./
drwx------ 11 www-data www-data 4096 janv.  9 15:37 ../
drwxr-xr-x  9 www-data www-data 4096 janv.  9 15:39 activity/
drwx------  7 www-data www-data 4096 déc.   5 17:14 comments/
drwx------  6 www-data www-data 4096 déc.   5 17:16 configreport/
drwx------  6 www-data www-data 4096 déc.   5 17:14 dav/
drwx------  9 www-data www-data 4096 déc.   5 17:14 encryption/
drwx------ 10 www-data www-data 4096 déc.   5 17:14 external/
drwx------  9 www-data www-data 4096 déc.   5 17:14 federatedfilesharing/
drwx------  9 www-data www-data 4096 déc.   5 17:14 federation/
drwx------ 10 www-data www-data 4096 déc.   5 17:14 files/
drwx------ 11 www-data www-data 4096 déc.   5 17:14 files_external/
drwxr-xr-x  9 www-data www-data 4096 janv.  9 15:39 files_pdfviewer/
drwx------ 10 www-data www-data 4096 déc.   5 17:14 files_sharing/
drwxr-xr-x  8 www-data www-data 4096 janv.  9 15:39 files_texteditor/
drwx------ 10 www-data www-data 4096 déc.   5 17:14 files_trashbin/
drwx------  9 www-data www-data 4096 déc.   5 17:14 files_versions/
drwx------  7 www-data www-data 4096 déc.   5 17:16 files_videoplayer/
drwx------ 10 www-data www-data 4096 déc.   5 17:16 firstrunwizard/
drwxr-xr-x 17 www-data www-data 4096 janv.  9 15:39 gallery/
drwx------  8 www-data www-data 4096 déc.   5 17:16 market/
drwx------  8 www-data www-data 4096 déc.   5 17:16 notifications/
drwx------  5 www-data www-data 4096 déc.   5 17:14 provisioning_api/
drwx------  9 www-data www-data 4096 déc.   5 17:14 systemtags/
drwx------ 12 www-data www-data 4096 déc.   5 17:16 templateeditor/
drwx------  4 www-data www-data 4096 déc.   5 17:14 theme-example/
drwx------  7 www-data www-data 4096 déc.   5 17:14 updatenotification/
drwx------  5 www-data www-data 4096 déc.   5 17:16 user_external/
drwxr-xr-x 11 www-data www-data 4096 janv.  9 15:39 user_ldap/
drwxr-xr-x  6 www-data www-data 4096 janv. 10 17:57 xmas/

A noter que les permissions sont celles par défaut et donc différente de ce qui a pu être mis en place lors de l'installation de la version.


Browser Icon.png Mise à jour graphique

Update icon.png Exécution

Lorsqu'une mise à jour est disponible, celle-ci est indiqué dans l'interface de OwnCloud. Il est possible de la déclencher directement depuis l'interface. La page descriptive de l'application est affichée avec un bouton d'installation. Il suffit de cliquer sur ce dernier et la nouvelle version est téléchargée puis installée.

Cependant, certaines applications tierces nécessitent la mise à jour de la base de données et OwnCloud est alors mis en mode maintenance.


La mise à niveau s'effectue exactement de la même façon que lors d'une mise à jour de OwnCloud. Attention, il faut s'assurer que les droits sur la base de données soient suffisants, sinon la commande peut échouer.

#sudo -u www-data php /var/opt/owncloud/installed/occ upgrade
ownCloud 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
2018-11-16T11:56:47+00:00 Set log level to debug
2018-11-16T11:56:47+00:00 Turned on maintenance mode
2018-11-16T11:56:47+00:00 Repair step: Repair MySQL database engine
2018-11-16T11:56:47+00:00 Repair step: Repair MySQL collation
2018-11-16T11:56:47+00:00 Repair info: All tables already have the correct collation -> nothing to do
2018-11-16T11:56:47+00:00 Repair step: Repair SQLite autoincrement
2018-11-16T11:56:47+00:00 Repair step: Repair orphaned reshare
2018-11-16T11:56:47+00:00 Repair step: Repair duplicate entries in oc_lucene_status
2018-11-16T11:56:47+00:00 Repair info: lucene_status table does not exist -> nothing to do
2018-11-16T11:56:47+00:00 Repair step: Upgrade app code from the marketplace
2018-11-16T11:56:47+00:00 Updating database schema
2018-11-16T11:56:47+00:00 Updated database
2018-11-16T11:56:47+00:00 Updating <activity> ...
2018-11-16T11:56:47+00:00 Doctrine\DBAL\Exception\ConnectionException: An exception occurred while executing 'ALTER TABLE `oc_activity` MODIFY COLUMN `subjectparams` LONGTEXT NOT NULL':

SQLSTATE[42000]: Syntax error or access violation: 1142 ALTER command denied to user 'owncloud'@'localhost' for table 'oc_activity'
2018-11-16T11:56:47+00:00 Update failed
2018-11-16T11:56:47+00:00 Maintenance mode is kept active
2018-11-16T11:56:47+00:00 Reset log level

Lock-icon.png Permissions compte base de données

Il suffit de donner tous les droits sur la base.

mysql> REVOKE ALL on owncloud.* FROM 'owncloud'@'localhost';
Query OK, 0 rows affected (0.00 sec)

mysql> GRANT ALL ON owncloud.* TO 'owncloud'@'localhost';
Query OK, 0 rows affected (0.00 sec)

mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)

Run-icon.png Initialisation

Puis il faut relancer la mise à jour.

#sudo -u www-data php /var/opt/owncloud/installed/occ upgrade
ownCloud 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
2018-11-16T12:00:30+00:00 Set log level to debug
2018-11-16T12:00:30+00:00 Repair step: Repair MySQL database engine
2018-11-16T12:00:30+00:00 Repair step: Repair MySQL collation
2018-11-16T12:00:30+00:00 Repair info: All tables already have the correct collation -> nothing to do
2018-11-16T12:00:30+00:00 Repair step: Repair SQLite autoincrement
2018-11-16T12:00:30+00:00 Repair step: Repair orphaned reshare
2018-11-16T12:00:30+00:00 Repair step: Repair duplicate entries in oc_lucene_status
2018-11-16T12:00:31+00:00 Repair info: lucene_status table does not exist -> nothing to do
2018-11-16T12:00:31+00:00 Repair step: Upgrade app code from the marketplace
2018-11-16T12:00:31+00:00 Updating database schema
2018-11-16T12:00:31+00:00 Updated database
2018-11-16T12:00:31+00:00 Updating <activity> ...
2018-11-16T12:00:33+00:00 Updated <activity> to 2.4.0
2018-11-16T12:00:33+00:00 Repair step: Repair mime types
2018-11-16T12:00:33+00:00 Repair step: Detect file cache entries with path that does not match parent-child relationships
2018-11-16T12:00:33+00:00 Repair step: Generate ETags for file where no ETag is present.
2018-11-16T12:00:33+00:00 Repair info: ETags have been fixed for 0 files/folders.
2018-11-16T12:00:33+00:00 Repair step: Clean tags and favorites
2018-11-16T12:00:33+00:00 Repair info: 0 tags of deleted users have been removed.
2018-11-16T12:00:33+00:00 Repair info: 0 tags for delete files have been removed.
2018-11-16T12:00:33+00:00 Repair info: 0 tag entries for deleted tags have been removed.
2018-11-16T12:00:33+00:00 Repair info: 0 tags with no entries have been removed.
2018-11-16T12:00:33+00:00 Repair step: Drop old database tables
2018-11-16T12:00:33+00:00 Drop old database tables
2018-11-16T12:00:33+00:00
2018-11-16T12:00:33+00:00  Done 28/28 [============================] 100%
2018-11-16T12:00:33+00:00
2018-11-16T12:00:33+00:00 Repair step: Drop old background jobs
2018-11-16T12:00:33+00:00 Repair step: Remove getetag entries in properties table
2018-11-16T12:00:33+00:00 Repair info: Removed 0 unneeded "{DAV:}getetag" entries from properties table.
2018-11-16T12:00:33+00:00 Repair step: Repair outdated OCS IDs
2018-11-16T12:00:33+00:00 Repair step: Repair invalid shares
2018-11-16T12:00:33+00:00 Repair step: Remove old share propagation app entries
2018-11-16T12:00:33+00:00 Repair step: Move user avatars outside the homes to the new location
2018-11-16T12:00:33+00:00 Repair step: Remove shares of a users root folder
2018-11-16T12:00:33+00:00 Repair step: Repair unmerged shares
2018-11-16T12:00:33+00:00 Repair step: Disable extra themes
2018-11-16T12:00:33+00:00 Repair step: Repair sub shares
2018-11-16T12:00:33+00:00 Starting code integrity check...
2018-11-16T12:00:55+00:00 Finished code integrity check
2018-11-16T12:00:55+00:00 Update successful
2018-11-16T12:00:55+00:00 Maintenance mode is kept active
2018-11-16T12:00:55+00:00 Reset log level

Lock-icon.png Permissions compte base de données post install

Une fois terminé, les droits du compte sur la base de données sont diminués.

mysql> REVOKE ALL ON owncloud.* FROM 'owncloud'@'localhost';
Query OK, 0 rows affected (0.00 sec)

mysql> GRANT SELECT, INSERT, UPDATE, DELETE ON owncloud.* TO 'owncloud'@'localhost';
Query OK, 0 rows affected (0.00 sec)

mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)

A cas où le mode maintenance soit toujours actif, il faut le désactiver à l'aide du script occ.

#sudo -u www-data php /var/opt/owncloud/installed/occ maintenance:mode --off
ownCloud is in maintenance mode - no app have been loaded

Maintenance mode disabled


Viewer icon.png Voir aussi

Documentation officielle: https://doc.owncloud.org/server/10.0/admin_manual/configuration/server/occ_command.html#market-commands-label