Server: style/design/css broken after upgrade from 12 to 13

Created on 9 Feb 2018  Â·  7Comments  Â·  Source: nextcloud/server

Steps to reproduce

  1. upgrade to NC 12
  2. login
  3. have bad luck

Expected behaviour

the column headers "name", "size", "last changed" should be aligned to their table contents, the folder/file names should be to the right of the icon.

Actual behaviour

screenshot-2018-2-9 dateien - nextcloud

Server configuration

Operating system: CentOS 7

Web server: httpd 2.4.29

Database: mariadb 10.2.12

PHP version: 7.1.14

Nextcloud version: (see Nextcloud admin page) 13.0.0.14

Updated from an older Nextcloud/ownCloud or fresh install: updated

Where did you install Nextcloud from: 12.0.3.3

Signing status:


Signing status

No errors have been found.

List of activated apps:


App list

Enabled:                                     
  - audioplayer: 2.2.5                       
  - bruteforcesettings: 1.0.3                
  - calendar: 1.6.0                          
  - comments: 1.3.0                          
  - contacts: 2.0.1                          
  - dav: 1.4.6
  - dicomviewer: 0.0.1
  - federatedfilesharing: 1.3.1
  - files: 1.8.0
  - files_external: 1.4.1
  - files_pdfviewer: 1.2.0
  - files_sharing: 1.5.0
  - files_texteditor: 2.5.1
  - files_trashbin: 1.3.0
  - files_versions: 1.6.0
  - files_videoplayer: 1.2.0
  - gallery: 18.0.0
  - logreader: 2.0.0
  - lookup_server_connector: 1.1.0
  - metadata: 0.6.0
  - music: 0.5.5
  - notes: 2.3.2
  - notifications: 2.1.2
  - oauth2: 1.1.0
  - password_policy: 1.3.0
  - provisioning_api: 1.3.0
  - qownnotesapi: 17.5.0
  - serverinfo: 1.3.0
  - sharebymail: 1.3.0
  - survey_client: 1.1.0
  - systemtags: 1.3.0
  - theming: 1.4.1
  - twofactor_backupcodes: 1.2.3
  - updatenotification: 1.3.0
  - user_ldap: 1.3.1
  - workflowengine: 1.3.0
Disabled:
  - activity
  - admin_audit
  - bookmarks
  - checksum
  - encryption
  - federation
  - firstrunwizard
  - nextcloud_announcements
  - user_external

Nextcloud configuration:


Config report

{                                                                                                                                                                                     
    "system": {                                                                                                                                                                       
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",                                                                                                                              
        "secret": "***REMOVED SENSITIVE VALUE***",                                                                                                                                    
        "trusted_domains": [                                                                                                                                                          
            "cloud.unixadm.org"                                                                                                                                                       
        ],                                                                                                                                                                            
        "datadirectory": "***REMOVED SENSITIVE VALUE***",                                                                                                                             
        "overwrite.cli.url": "http:\/\/localhost",                                                                                                                                    
        "dbtype": "mysql",                                                                                                                                                            
        "version": "13.0.0.14",                                                                                                                                                       
        "dbname": "***REMOVED SENSITIVE VALUE***",                                                                                                                                    
        "dbhost": "***REMOVED SENSITIVE VALUE***",                                                                                                                                    
        "dbport": "",                                                                                                                                                                 
        "dbtableprefix": "oc_",                                                                                                                                                       
        "dbuser": "***REMOVED SENSITIVE VALUE***",                                                                                                                                    
        "dbpassword": "***REMOVED SENSITIVE VALUE***",                                                                                                                                
        "logtimezone": "Europe\/Berlin",                                                                                                                                              
        "installed": true,                                                                                                                                                            
        "supportedDatabases": [                                                                                                                                                       
            "sqlite",                                                                                                                                                                 
            "mysql"                                                                                                                                                                   
        ],                                                                                                                                                                            
        "knowledgebaseenabled": true,                                                                                                                                                 
        "enable_avatars": true,                                                                                                                                                       
        "allow_user_to_change_display_name": false,                                                                                                                                   
        "remember_login_cookie_lifetime": 1296000,                                                                                                                                    
        "session_lifetime": 86400,                                                                                                                                                    
        "session_keepalive": true,                                                                                                                                                    
        "token_auth_enforced": false,                                                                                                                                                 
        "auth.bruteforce.protection.enabled": true,                                                                                                                                   
        "mail_domain": "***REMOVED SENSITIVE VALUE***",                                                                                                                               
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",                                                                                                                         
        "mail_smtpdebug": false,
        "mail_smtpmode": "php",
        "htaccess.RewriteBase": "\/",
        "trashbin_retention_obligation": "auto",
        "versions_retention_obligation": "auto",
        "updatechecker": true,
        "updater.server.url": "https:\/\/updates.nextcloud.com\/updater_server\/",
        "updater.release.channel": "stable",
        "has_internet_connection": true,
        "check_for_working_webdav": true,
        "check_for_working_wellknown_setup": true,
        "check_for_working_htaccess": true,
        "config_is_read_only": false,
        "log_type": "file",
        "logfile": "\/var\/log\/nextcloud\/nextcloud.log",
        "loglevel": 2,
        "log_query": false,
        "cron_log": true,
        "log_rotate_size": false,
        "customclient_desktop": "https:\/\/nextcloud.com\/install\/#install-clients",
        "customclient_android": "https:\/\/play.google.com\/store\/apps\/details?id=com.nextcloud.client",
        "customclient_ios": "https:\/\/itunes.apple.com\/us\/app\/nextcloud\/id1125420102?mt=8",
        "appcodechecker": true,
        "appstoreenabled": true,
        "apps_paths": [
            {
                "path": "\/var\/www\/nextcloud\/apps",
                "url": "\/apps",
                "writable": true
            }
        ],
        "enable_previews": true,
        "preview_max_x": 2048,
        "preview_max_y": 2048,
        "preview_max_scale_factor": 10,
        "preview_max_filesize_image": 50,
        "enabledPreviewProviders": [
            "OC\\Preview\\PNG",
            "OC\\Preview\\JPEG",
            "OC\\Preview\\GIF",
            "OC\\Preview\\BMP",
            "OC\\Preview\\XBitmap",
            "OC\\Preview\\MP3",
            "OC\\Preview\\TXT",
            "OC\\Preview\\MarkDown",
            "OC\\Preview\\Image",
            "OC\\Preview\\Illustrator",
            "OC\\Preview\\PDF",
            "OC\\Preview\\Photoshop",
            "OC\\Preview\\Postscript",
            "OC\\Preview\\SVG",
            "OC\\Preview\\TIFF",
            "OC\\Preview\\Font"
        ],
        "ldapUserCleanupInterval": 0,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0,
            "timeout": 0,
            "dbindex": 3
        },
        "memcached_servers": [
            [
                "localhost",
                11211
            ]
        ],
        "memcached_options": {
            "14": 50,
            "15": 50,
            "19": 50,
            "20": 50,
            "8": 50,
            "-1001": true,
            "16": true,
            "18": true
        },
        "cipher": "AES-256-CFB",
        "minimum.supported.desktop.version": "2.0.0",
        "filesystem_check_changes": 0,
        "part_file_in_storage": true,
        "mount_file": "\/var\/lib\/owncloud\/mount.json",
        "filesystem_cache_readonly": false,
        "forwarded_for_headers": [
            "HTTP_X_FORWARDED",
            "HTTP_FORWARDED_FOR"
        ],
        "max_filesize_animated_gifs_public_sharing": 10,
        "filelocking.enabled": true,
        "upgrade.disable-web": true,         
        "data-fingerprint": "",              
        "maintenance": false,                
        "singleuser": false,                 
        "debug": false,                      
        "instanceid": "***REMOVED SENSITIVE VALUE***",                                     
        "ldapProviderFactory": "\\OCA\\User_LDAP\\LDAPProviderFactory",                    
        "updater.secret": "***REMOVED SENSITIVE VALUE***"                                  
    }                                        
}

Are you using external storage, if yes which one: nope

Are you using encryption: no

Are you using an external user-backend, if yes which one: LDAP

LDAP configuration (delete this part if not used)


LDAP config


Client configuration

Browser: Firefox 58.0.1, Chrome 64.0.3282.140, some android browsers

Operating system: Fedora 27 and Android O

Logs

Web server error log


Web server error log

nothing of interest

Nextcloud log (data/nextcloud.log)


Nextcloud log

nothing of interest

Browser log


Browser log

Content Security Policy: Interpreting self as a hostname, not a keyword. If you intended this to be a keyword, use ‘self’ (wrapped in single quotes).
Content Security Policy: Directive ‘child-src’ has been deprecated. Please use directive ‘worker-src’ to control workers, or directive ‘frame-src’ to control frames respectively.
Content Security Policy: The page’s settings blocked the loading of a resource at self (“script-src 'nonce-WUpuSmN1dFVKbVZsQmhsUFFoOW1FM0htWjlpK2I3bThnVFVCN0lUZUlObz06RE9HR1B0aG5ZQThFTkUwK0pWVXphUW11TG8vbUk5Ny9xZ1ZVcnJ6MVViMD0=' https://cloud.unixadm.org https://xxx 'unsafe-eval'”). Source: (function(a,p,u,v){var c={safeWindow:{},....
files:1
Missing plural form in language file
merged-template-prepend.js:3740:4
window.controllers/Controllers is deprecated. Do not use it for UA detection.
merged.js:2165

Most helpful comment

@MorrisJobke Yes, but the JS cache should also be cleared:

- rm -r data/appdata_*/css/* data/appdata_*/js/*
- occ files:scan-app-data
- reload the page

All 7 comments

Duplicate of #8043

Fixed with #8144

Workaround:

cc @nextcloud/theming @juliushaertl Correct?

@MorrisJobke Yes, but the JS cache should also be cleared:

- rm -r data/appdata_*/css/* data/appdata_*/js/*
- occ files:scan-app-data
- reload the page

@MorrisJobke @juliushaertl What happen if the resources are stored in S3??? None of those commands works. Do you know any approach to clean appdata files if they are saved on a S3 environment instead of local?? Or we need to get in the S3 and manually remove the objects?? Since on the S3 the files are stored by object id and not by path, we cant detect those specific files...

@averdecia there is a cleanup done after each upgrade. We also force a filename change on every new version so you should not have any issue while upgrading now.

@skjnldsv the problem that i am facing is not during an upgrade to 13. I am testing a rollback process back to NC12 in case that needed because of any further issue on NC13. Right now the only visible problem is specific with settings.css file. The file is loaded in the NC13 route instead of the NC12 way. That file is rendered in NC12 in the following path:
settings/css/settings.css?v=c126c9e00377c3f4af56ce207e469ac8-0

NC13 uses the following path:
css/settings/38a9481b4b7e30ccdbcc9ebe82c6cc86-settings.css?v=9be96e8efafc00a474a0d4068a849be7-3

After the rollback to NC12 the route remains pointing to NC13 path, i suppose that old cache files from NC13 stored on the S3 are corrupted, and we need to update those files on the S3 to the NC12 files.

We don't support rollback.
Nonetheless you can also clear the cache entries in your db so the css will trigger a generation again
oc_filecache

Was this page helpful?
0 / 5 - 0 ratings