How can I separate apps

## Server configuration detail

Operating system: Linux 6.1.0-22-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.94-1 (2024-06-21) x86_64

Webserver: Apache (apache2handler)

Database: mysql 10.11.6

PHP version: 8.2.20

Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, json, random, Reflection, SPL, session, standard, sodium, apache2handler, mysqlnd, PDO, xml, apcu, bcmath, bz2, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, igbinary, imagick, imap, intl, exif, mcrypt, memcache, msgpack, mysqli, OAuth, odbc, pdo_mysql, PDO_ODBC, pdo_sqlite, Phar, posix, pspell, raphf, readline, redis, shmop, SimpleXML, soap, sockets, sqlite3, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, xmlreader, xmlrpc, xmlwriter, xsl, zip, http, memcached, Zend OPcache

Nextcloud version: 28.0.7 - 28.0.7.4

Updated from an older Nextcloud/ownCloud or fresh install:

Where did you install Nextcloud from: unknown

Signing status

List of activated apps
Enabled:
 - activity: 2.20.0
 - admin_audit: 1.18.0
 - announcementcenter: 6.8.1
 - audioplayer: 3.4.1
 - bruteforcesettings: 2.8.0
 - calendar: 4.7.11
 - cloud_federation_api: 1.11.0
 - contacts: 5.5.3
 - contactsinteraction: 1.9.0
 - cookbook: 0.11.1
 - data_request: 1.15.0
 - dav: 1.29.2
 - end_to_end_encryption: 1.14.5
 - epubviewer: 1.6.3
 - external: 5.3.1
 - federatedfilesharing: 1.18.0
 - files: 2.0.0
 - files_antivirus: 5.5.6
 - files_external: 1.20.0
 - files_pdfviewer: 2.9.0
 - files_reminders: 1.1.0
 - files_sharing: 1.20.0
 - files_trashbin: 1.18.0
 - files_versions: 1.21.0
 - files_zip: 1.5.0
 - logreader: 2.13.0
 - lookup_server_connector: 1.16.0
 - maps: 1.4.0
 - ncdownloader: 1.0.20
 - notifications: 2.16.0
 - oauth2: 1.16.3
 - password_policy: 1.18.0
 - passwords: 2024.7.20
 - photos: 2.4.0
 - privacy: 1.12.0
 - provisioning_api: 1.18.0
 - recognize: 6.1.1
 - related_resources: 1.3.0
 - richdocuments: 8.3.8
 - serverinfo: 1.18.0
 - settings: 1.10.1
 - spreed: 18.0.10
 - support: 1.11.1
 - survey_client: 1.16.0
 - suspicious_login: 6.0.0
 - tasks: 0.16.0
 - text: 3.9.2
 - theming: 2.3.0
 - transfer: 0.6.3
 - twofactor_backupcodes: 1.17.0
 - updatenotification: 1.18.0
 - user_status: 1.8.1
 - viewer: 2.2.0
 - weather_status: 1.8.0
 - workflowengine: 2.10.0
Disabled:
 - circles: 24.0.0
 - comments: 1.18.0
 - dashboard: 7.8.0
 - encryption: 2.15.0
 - federation: 1.18.0
 - firstrunwizard: 2.1
 - mail: 3.7.2
 - nextcloud_announcements: 1.13.0
 - recommendations: 1.3.0
 - sharebymail: 1.14.0
 - systemtags: 1.14.0
 - twofactor_totp: 10.0.0-beta.2
 - user_ldap
Configuration (config/config.php)
{
    "instanceid": "***REMOVED SENSITIVE VALUE***",
    "passwordsalt": "***REMOVED SENSITIVE VALUE***",
    "secret": "***REMOVED SENSITIVE VALUE***",
    "datadirectory": "***REMOVED SENSITIVE VALUE***",
    "overwrite.cli.url": "http:\/\/cloud.vstans.nl\/",
    "htaccess.RewriteBase": "\/",
    "trusted_domains": [
        "cloud.vstans.nl",
        "office.vstans.nl",
        "127.0.0.1",
        "192.168.145.20",
    ],
    "version": "28.0.7.4",
    "logtimezone": "Europe\/Amsterdam",
    "has_internet_connection": true,
    "check_for_working_webdav": true,
    "check_data_directory_permissions": false,
    "installed": true,
    "loglevel": 0,
    "maintenance": false,
    "log_rotate_size": 8388608,
    "enabledPreviewProviders": [
        "OC\\Preview\\BMP",
        "OC\\Preview\\GIF",
        "OC\\Preview\\JPEG",
        "OC\\Preview\\Krita",
        "OC\\Preview\\MarkDown",
        "OC\\Preview\\MP3",
        "OC\\Preview\\OpenDocument",
        "OC\\Preview\\PNG",
        "OC\\Preview\\TXT",
        "OC\\Preview\\XBitmap",
        "OC\\Preview\\NFO"
    ],
    "updater.release.channel": "stable",
    "trashbin_retention_obligation": "auto, 365",
    "has_rebuilt_cache": true,
    "dbtype": "mysql",
    "dbname": "***REMOVED SENSITIVE VALUE***",
    "dbhost": "***REMOVED SENSITIVE VALUE***",
    "dbport": "",
    "dbtableprefix": "oc_",
    "dbuser": "***REMOVED SENSITIVE VALUE***",
    "dbpassword": "***REMOVED SENSITIVE VALUE***",
    "mysql.utf8mb4": true,
    "mail_smtpmode": "sendmail",
    "mail_from_address": "***REMOVED SENSITIVE VALUE***",
    "mail_domain": "***REMOVED SENSITIVE VALUE***",
    "app.mail.imaplog.enabled": "true",
    "mail_smtpauthtype": "LOGIN",
    "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpport": "587",
    "mail_smtpsecure": "tls",
    "mail_smtpauth": 1,
    "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
    "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
    "filelocking.enabled": true,
    "memcache.locking": "\\OC\\Memcache\\Redis",
    "memcache.local": "\\OC\\Memcache\\Redis",
    "redis": {
        "host": "***REMOVED SENSITIVE VALUE***",
        "port": 6379
    },
    "knowledgebaseenabled": false,
    "simpleSignUpLink.shown": false,
    "default_phone_region": "NL",
    "profile.enabled": true,
    "login_form_autocomplete": false,
    "defaultapp": "files",
    "app_install_overwrite": [
        "admin_notifications",
        "contacts",
        "ncdownloader",
        "files_retention",
        "files_antivirus"
    ],
    "theme": "",
    "allow_local_remote_servers": true,
    "global_aria2_config": [],
    "ncd_admin_settings": {
        "ncd_aria2_rpc_host": "",
        "ncd_aria2_rpc_port": "6800",
        "ncd_aria2_rpc_token": "",
        "ncd_aria2_binary": "\/usr\/bin\/aria2c",
        "disallow_aria2_settings": "1",
        "ncd_disable_bt": "1",
        "focusVisibleAdded": ""
    },
    "twofactor_enforced": "false",
    "twofactor_enforced_groups": [
        "2fa"
    ],
    "twofactor_enforced_excluded_groups": [
        "films"
    ],
    "maintenance_window_start": 1,
    "knowledgebase.embedded": false,
    "enable_previews": true,
    "preview_concurrency_new": 4,
    "preview_max_x": 100,
    "preview_max_y": 100,
    "preview_max_filesize_image": 10,
    "preview_ffmpeg_path": "\/usr\/bin\/ffmpeg",
    "updater.secret": "***REMOVED SENSITIVE VALUE***"
}

Cron Configuration: Array ( [backgroundjobs_mode] => cron [lastcron] => 1720817402 )

External storages: yes

External storage configuration
+----------+-------------+---------+---------------------+----------------------------+----------------------+------------------+-------------------+-------+
| Mount ID | Mount Point | Storage | Authentication Type | Configuration              | Options              | Applicable Users | Applicable Groups | Type  |
+----------+-------------+---------+---------------------+----------------------------+----------------------+------------------+-------------------+-------+
| 1        | /Muziek     | Lokaal  | Geen                | datadir: "\/cloud\/muziek" | enable_sharing: true |                  | muziek            | Admin |
| 2        | /Share      | Lokaal  | Geen                | datadir: "\/cloud\/Films"  |                      |                  | films             | Admin |
| 6        | /Share      | Lokaal  | Geen                | datadir: "\/cloud\/Films"  |                      |                  | FilmsW            | Admin |
+----------+-------------+---------+---------------------+----------------------------+----------------------+------------------+-------------------+-------+

Encryption: no

User-backends:

  • OC\User\Database

Talk configuration:

STUN servers

TURN servers

  • no custom server configured

Signaling servers (mode: default):

  • SIP dialin is disabled
  • SIP dialout is disabled
  • no custom server configured

Recording servers:

  • Recording is enabled
  • Recording consent is set to “default”
  • no recording server configured

Browser: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0

The issue you are facing: Changing apps path

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. use nextcloud for a long time then decide to update maintenance

The output of your Nextcloud log in Admin > Logging:

no errors

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

under details at the top 

The output of your Apache/nginx/system log in /var/log/____:

not needed

Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

no errors

I have used nextcloud for some time and the apps folder is around 4,5Gb I would like to separate this with apps management by adding

"apps_paths" => [
    [
            "path"     => OC::$SERVERROOT . "/apps",
            "url"      => "/apps",
            "writable" => false,
    ],
    [
            "path"     => OC::$SERVERROOT . "/extra-apps",
            "url"      => "/extra-apps",
            "writable" => true,
    ],
],

to config.php.

Question 1. why are there used brackeds [ ] in the docs where my config uses ( ) for arrays

Question 2. should it not say

"apps_path" => array [

Question 3. Will this separate build-in apps with custom apps. or will I have to remove the custom apps first and then reinstall them to have them populated in extra-apps. or can I just move the folders.

Just two different ways of defining arrays in PHP. Both are equivalent. The brackets imply an array.

Will this separate build-in apps with custom apps.

Yes.

or will I have to remove the custom apps first and then reinstall them to have them populated in extra-apps. or can I just move the folders.

You can do either.

Thanks for the fast responds
I have added

"apps_paths" => [
    [
            "path"     => OC::$SERVERROOT . "/apps",
            "url"      => "/apps",
            "writable" => false,
    ],
    [
            "path"     => OC::$SERVERROOT . "/extra-apps",
            "url"      => "/extra-apps",
            "writable" => true,
    ],
],

as is to my config and restarted the web server. Removing the app in the store did not delete the apps/appfolder or maybe I’m inpatient
nothing happend so I manually moved them.

sudo -u www-data mkdir extra-apps
sudo -u www-data mv apps/apptomove extra-apps/

everthing seems to still be working.

1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.