Upgrade market app from UI and what folder to remove after that

Continuing the discussion from Update needed and nobody:

Steps to reproduce

  1. Update for Market to version 0.6.2 is available.
  2. Check Market app versions in both folders: ‘apps’ and ‘apps-external’. Both are v.0.6.1.
  3. When I access the market app from the browser I get the message: "Please note: Since ownCloud X (10.0) every instance gets shipped with this app included. You do not need to install it separately. "

Expected behaviour

As we saw in the discussion before, I should upgrade the app from the marketplace and after that, delete the duplicated app from the ‘apps’ folder (in this case, the market app).

Actual behaviour

I am not sure how to proceed, as the note reads the market app is shipped with owncloud, so I understand the right place to be for this app is the ‘apps’ folder, and not the ‘apps-external’ folder.

Server configuration

Operating system:
Ubuntu 18.04.6 LTS
Web server:
Apache/2.4.29 (Ubuntu)
Database:
mysql Ver 15.1 Distrib 10.5.13-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2
PHP version:
PHP 7.4.27
ownCloud version: (see ownCloud admin page)
10.8.0.4
Updated from an older ownCloud or fresh install:
updated
Where did you install ownCloud from:
source
Signing status (ownCloud 9.0 and above):

Login as admin user into your ownCloud and access 
http://example.com/index.php/settings/integrity/failed 
paste the results into https://gist.github.com/ and puth the link here.

The content of config/config.php:

{
“system”: {
“instanceid”: “ocdsdwu17nro0y”,
“passwordsalt”: “REMOVED SENSITIVE VALUE”,
“secret”: “REMOVED SENSITIVE VALUE”,
“trusted_domains”: [
],
“datadirectory”: “/var/www/owncloud/data”,
“overwrite.cli.url”: “https://sssssssssssss”,
“dbtype”: “mysql”,
“version”: “10.8.0.4”,
“dbname”: “owncloud”,
“dbhost”: “localhost”,
“dbtableprefix”: “oc_”,
“mysql.utf8mb4”: true,
“dbuser”: “REMOVED SENSITIVE VALUE”,
“dbpassword”: “REMOVED SENSITIVE VALUE”,
“logtimezone”: “Europe/Berlin”,
“apps_paths”: [
{
“path”: “/var/www/owncloud/apps”,
“url”: “/apps”,
“writable”: false
},
{
“path”: “/var/www/owncloud/apps-external”,
“url”: “/apps-external”,
“writable”: true
}
],
“installed”: true,
“memcache.local”: “\OC\Memcache\APCu”,
“mail_domain”: “REMOVED SENSITIVE VALUE”,
“mail_from_address”: “REMOVED SENSITIVE VALUE”,
“mail_smtpmode”: “smtp”,
“mail_smtpsecure”: “ssl”,
“mail_smtpauthtype”: “LOGIN”,
“mail_smtpauth”: 1,
“mail_smtphost”: “REMOVED SENSITIVE VALUE”,
“mail_smtpport”: “465”,
“mail_smtpname”: “REMOVED SENSITIVE VALUE”,
“mail_smtppassword”: “REMOVED SENSITIVE VALUE”,
“loglevel”: 2,
“logdateformat”: “F d, Y H:i:s”,
“skeletondirectory”: “/var/www/owncloud/apps-external/alternative-skeleton”,
“integrity.ignore.missing.app.signature”: [
“theme-custom”
],
“maintenance”: false,
“files_antivirus.av_cmd_options”: “”,
“files_antivirus.av_path”: “/usr/bin/clamscan”,
“default_language”: “es”
}
}

List of activated apps:

If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your ownCloud installation folder.

Enabled:

  • activity:
    • Version: 2.6.1
    • Path: /var/www/owncloud/apps/activity
  • calendar:
    • Version: 1.6.4
    • Path: /var/www/owncloud/apps-external/calendar
  • comments:
    • Version: 0.3.0
    • Path: /var/www/owncloud/apps/comments
  • configreport:
    • Version: 0.2.0
    • Path: /var/www/owncloud/apps/configreport
  • contacts:
    • Version: 1.5.5
    • Path: /var/www/owncloud/apps-external/contacts
  • dav:
    • Version: 0.6.0
    • Path: /var/www/owncloud/apps/dav
  • federatedfilesharing:
    • Version: 0.5.0
    • Path: /var/www/owncloud/apps/federatedfilesharing
  • files:
    • Version: 1.5.2
    • Path: /var/www/owncloud/apps/files
  • files_antivirus:
    • Version: 1.0.0
    • Path: /var/www/owncloud/apps/files_antivirus
  • files_external:
    • Version: 0.8.0
    • Path: /var/www/owncloud/apps/files_external
  • files_mediaviewer:
    • Version: 1.0.5
    • Path: /var/www/owncloud/apps-external/files_mediaviewer
  • files_pdfviewer:
    • Version: 1.0.1
    • Path: /var/www/owncloud/apps-external/files_pdfviewer
  • files_sharing:
    • Version: 0.14.0
    • Path: /var/www/owncloud/apps/files_sharing
  • files_texteditor:
    • Version: 2.4.1
    • Path: /var/www/owncloud/apps-external/files_texteditor
  • files_trashbin:
    • Version: 0.9.1
    • Path: /var/www/owncloud/apps/files_trashbin
  • files_versions:
    • Version: 1.3.0
    • Path: /var/www/owncloud/apps/files_versions
  • firstrunwizard:
    • Version: 1.2.0
    • Path: /var/www/owncloud/apps/firstrunwizard
  • market:
    • Version: 0.6.1
    • Path: /var/www/owncloud/apps/market
  • notifications:
    • Version: 0.5.4
    • Path: /var/www/owncloud/apps/notifications
  • provisioning_api:
    • Version: 0.5.0
    • Path: /var/www/owncloud/apps/provisioning_api
  • systemtags:
    • Version: 0.3.0
    • Path: /var/www/owncloud/apps/systemtags
  • templateeditor:
    • Version: 0.4.0
    • Path: /var/www/owncloud/apps/templateeditor
  • theme-sintas:
    • Version: 1.0.0
    • Path: /var/www/owncloud/apps-external/theme-sintas
  • updatenotification:
    • Version: 0.2.1
    • Path: /var/www/owncloud/apps/updatenotification
      Disabled:
  • admin_audit:
    • Path: /var/www/owncloud/apps/admin_audit
  • announcementcenter:
    • Path: /var/www/owncloud/apps/announcementcenter
  • customgroups:
    • Path: /var/www/owncloud/apps/customgroups
  • encryption:
    • Path: /var/www/owncloud/apps/encryption
  • enterprise_key:
    • Path: /var/www/owncloud/apps/enterprise_key
  • external:
    • Path: /var/www/owncloud/apps/external
  • federation:
    • Path: /var/www/owncloud/apps/federation
  • files_classifier:
    • Path: /var/www/owncloud/apps/files_classifier
  • files_external_dropbox:
    • Path: /var/www/owncloud/apps/files_external_dropbox
  • files_external_ftp:
    • Path: /var/www/owncloud/apps/files_external_ftp
  • files_ldap_home:
    • Path: /var/www/owncloud/apps/files_ldap_home
  • files_lifecycle:
    • Path: /var/www/owncloud/apps/files_lifecycle
  • firewall:
    • Path: /var/www/owncloud/apps/firewall
  • graphapi:
    • Path: /var/www/owncloud/apps/graphapi
  • guests:
    • Path: /var/www/owncloud/apps/guests
  • metrics:
    • Path: /var/www/owncloud/apps/metrics
  • oauth2:
    • Path: /var/www/owncloud/apps/oauth2
  • openidconnect:
    • Path: /var/www/owncloud/apps/openidconnect
  • password_policy:
    • Path: /var/www/owncloud/apps/password_policy
  • ransomware_protection:
    • Path: /var/www/owncloud/apps/ransomware_protection
  • sharepoint:
    • Path: /var/www/owncloud/apps/sharepoint
  • systemtags_management:
    • Path: /var/www/owncloud/apps/systemtags_management
  • theme-enterprise:
    • Path: /var/www/owncloud/apps/theme-enterprise
  • user_external:
    • Path: /var/www/owncloud/apps/user_external
  • user_ldap:
    • Path: /var/www/owncloud/apps/user_ldap
  • user_shibboleth:
    • Path: /var/www/owncloud/apps/user_shibboleth
  • web:
    • Path: /var/www/owncloud/apps/web
  • windows_network_drive:
    • Path: /var/www/owncloud/apps/windows_network_drive
  • wopi:
    • Path: /var/www/owncloud/apps/wopi
  • workflow:
    • Path: /var/www/owncloud/apps/workflow

Are you using external storage, if yes which one: local/smb/sftp/…
no
Are you using encryption: yes/no
no

Can you simply do the update via the occ command?
occ market:upgrade market

This will download the new version to the apps-external folder and update the database.
I just tested and it works pretty well.

By the way:
Your app list only shows the version once in /apps.

1 Like

Hello @cscherm, thanks for your reply.

Your solution will upgrade the market app in the “apps-external” folder.

But what should I do with the market app that remains in the “apps” folder? Should I delete it?

@wildwebmaster Even your question wasn’t addressed to me: I would move the most recent version of market app to the apps folder. It’s the place it belongs.