Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style/design/css broken after upgrade from 12 to 13 #8279

Closed
philfry opened this issue Feb 9, 2018 · 7 comments
Closed

style/design/css broken after upgrade from 12 to 13 #8279

philfry opened this issue Feb 9, 2018 · 7 comments

Comments

@philfry
Copy link

philfry commented Feb 9, 2018

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
irrelevant

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
@MorrisJobke
Copy link
Member

Duplicate of #8043

Fixed with #8144

Workaround:

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

@MorrisJobke
Copy link
Member

cc @nextcloud/theming @juliushaertl Correct?

@juliusknorr
Copy link
Member

juliusknorr commented Feb 9, 2018

@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

@averdecia
Copy link

@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...

@skjnldsv
Copy link
Member

skjnldsv commented Aug 3, 2018

@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.

@averdecia
Copy link

@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.

@skjnldsv
Copy link
Member

skjnldsv commented Aug 4, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants