Skip to content

Installed apps show white screen unless symlinked from system apps directory  #21292

@zwets

Description

@zwets

Steps to reproduce

  1. Set up a working 19.0.0 installation with a non-writable (root-owned) document root, and a separate writable "installed apps" directory located outside the document root.

     # In config.php:
     'apps_paths' => [
       [ 'path' => '/var/www/html/example.com/apps',
         'url' => '/apps',
         'writable' => false ],
       [ 'path' => '/var/opt/lib/nextcloud/apps',
         'url' => '/userapps',
         'writable' => true ] ]
    
  2. Logged in as admin, download and enable some featured apps. E.g. Tasks, Notes, and Deck.

  3. Note that after installation their name appears when hovering in the blue menu bar, but their icon doesn't.

  4. Click any of the newly installed apps in the menu bar. Instead of the app, a white screen appears. There are no errors in the log.

Workaround

  1. Create a symlink in the "system apps" directory for each app installed in the "installed apps" directory:

     cd /var/www/html/example.com/apps
     sudo ln -sft "." /var/opt/lib/nextcloud/apps/*
    
  2. Reload the page in NextCloud. The newly installed apps now show up with their icons in the menu bar, and work as they should.

Server configuration

  • Ubuntu Server 18.04 (plain vanilla), with Apache 2.4.29, PostgreSQL 10, PHP 7.2.

  • Nextcloud 19.0.0, updated from 18.0.4, installed from release tarball.

  • NextCloud is installed at "/" on the server, i.e. is available on https://example.com/, through the required config.php settings:

        # In config.php (and applied: `occ maintenance:update:htaccess`):
        'overwritehost' => 'example.com',
        'overwriteprotocol' => 'https',
        'overwrite.cli.url' => 'https://example.com/',
        'htaccess.RewriteBase' => '/',
    

Client configuration

  • Firefox 77.0.1 on Ubuntu 20.04.

Diagnostic Info

All through this, there are no error messages in the log. There is just the ubiquitous warning ResourceLocator can not find a web root (root: /var/opt/lib/nextcloud/apps/notes), file: css/..., but this is present regardless of the workaround.

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending check for reproducibility or if it fits our roadmapbugneeds info

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions