[SOLVED] Error message "Failed to compile and/or save /var/www/html/apps/text/css/icons.scss"

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 12.0.2): 18.0.0
Operating system and version (eg, Ubuntu 17.04): Ubuntu 18.04 LTS in Docker
Apache or nginx version (eg, Apache 2.4.25): Included in Docker image
PHP version (eg, 7.1): Included in Docker image

The issue you are facing:
The files page is loading very slowly. Most likely it’ waiting for the scss compilation.
After some time the log shows a “Failed to compile and/or save /var/www/html/apps/text/css/icons.scss” warning.
After the warning appears the page loads but it looks ugly.

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

Steps to replicate it: I cannot do it. It just started to happen.

I recreated the Docker image again and I’m using a working Dockerfile for over a year, that I didn’t touch.

The output of your Nextcloud log in Admin > Logging:

{"reqId":"tsmpwsoaS8RjeAFyOJqs","level":2,"time":"2020-02-09T16:47:34+01:00","remoteAddr":"192.168.1.158","user":"Ludwig","app":"core","method":"GET","url":"/apps/files/","message":"Failed to compile and/or save /var/www/html/apps/text/css/icons.scss","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.87 Safari/537.36","version":"18.0.0.10"}

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

<?php
$CONFIG = array (
  'instanceid' => 'MyId',
  'passwordsalt' => 'MySalt',
  'secret' => 'MySecret',
  'trusted_domains' =>
  array (
    0 => 'MyURL',
  ),
  'trusted_proxies' =>
  array (
    0 => '172.0.0.0/8',
    1 => '192.168.0.0/16',
  ),
  'datadirectory' => '/docker_mapping/nextcloud/data',
  'dbtype' => 'pgsql',
  'version' => '18.0.0.10',
  'dbname' => 'nextcloud',
  'dbhost' => 'nextcloud_postgres11',
  'dbtableprefix' => '',
  'dbuser' => 'nextcloud',
  'dbpassword' => 'won't_show_you',
  'loglevel' => 2,
  'log_type' => 'file',
  'logfile' => '/var/log/nextcloud/nextcloud.log',
  'logtimezone' => 'Europe/Berlin',
  'log_rotate_size' => 0,
  'default_language' => 'de',
  'installed' => true,
  'forcessl' => true,
  'overwriteprotocol' => 'https',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => 'nextcloud_redis',
    'port' => 6379,
  ),
  'mail_from_address' => 'postmaster',
  'mail_smtpmode' => 'smtp',
  'mail_domain' => 'MyDomain',
  'mail_smtpsecure' => 'tls',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => '**',
  'mail_smtpname' => '**',
  'mail_smtppassword' => '**',
  'appstoreenabled' => true,
  'maintenance' => false,
  'preview_max_scale_factor' => 2,
  'trashbin_retention_obligation' => 'auto',
  'updatechecker' => false,
  'htaccess.RewriteBase' => '/',
  'updater.release.channel' => 'stable',
  'overwrite.cli.url' => 'https://***',
  'apps_paths' =>
  array (
    0 =>
    array (
      'path' => '/var/www/html/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 =>
    array (
      'path' => '/var/www/html/custom_apps',
      'url' => '/custom_apps',
      'writable' => true,
    ),
  ),
  'twofactor_enforced' => 'false',
  'twofactor_enforced_groups' =>
  array (
    0 => 'admin',
  ),
  'twofactor_enforced_excluded_groups' =>
  array (
  ),
  'app_install_overwrite' =>
  array (
    0 => 'calendar',
    1 => 'caniupdate',
    2 => 'contacts',
    3 => 'ransomware_detection',
  ),
);

Any idea what’s going on?

Thanks a lot.

In debuging log nextcloud wrote this line
Debug core SCSSCacher: scss cache file locked for /apps/text/css/icons.scss

Solved the issue by myself by applying this solution.

Had to reduce step 2 to just redis-cli because my redis is also a docker instance not requireing the connection specification.

step 6 seems also optional to me.

2 Likes