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

Task app shows only blank page starting from 14.0 #2571

Closed
SBGit-2019 opened this issue May 12, 2024 · 8 comments
Closed

Task app shows only blank page starting from 14.0 #2571

SBGit-2019 opened this issue May 12, 2024 · 8 comments

Comments

@SBGit-2019
Copy link

Steps to reproduce

  1. Upgrade task app from 13.x to anything 14-16

Expected behavior

Going to the "task" menu item just shows an empty page. Setup is a quite standard docker configuration. It works up to version 13.x. From 14.0 the page shows no content at all and no interaction with the task app is thus possible.

Calendar , contacts, files etc work.

I noticed the behaviour with an existing installation but then made a completely fresh v29 installation. It appears there just the same.

Actual behaviour

Only an empty page is shown. No interaction possible

Tasks app version

16

CalDAV-clients used

nextclout web interface

Browser

Firefox and Opera tested

Client operating system

Windows 10

Server operating system

Docker on ubuntu 24

Web server

Nginx

Database engine version

PostgreSQL

PHP engine version

PHP 8.2

Nextcloud version

29

Updated from an older installed version or fresh install

Fresh install

List of activated apps

- activity: 2.21.1
  - calendar: 4.7.3
  - circles: 29.0.0-dev
  - cloud_federation_api: 1.12.0
  - comments: 1.19.0
  - contacts: 6.0.0
  - contactsinteraction: 1.10.0
  - dashboard: 7.9.0
  - dav: 1.30.1
  - federatedfilesharing: 1.19.0
  - federation: 1.19.0
  - files: 2.1.0
  - files_downloadlimit: 2.0.0
  - files_external: 1.21.0
  - files_pdfviewer: 2.10.0
  - files_reminders: 1.2.0
  - files_sharing: 1.21.0
  - files_trashbin: 1.19.0
  - files_versions: 1.22.0
  - firstrunwizard: 2.18.0
  - logreader: 2.14.0
  - lookup_server_connector: 1.17.0
  - mail: 3.6.0
  - nextcloud_announcements: 1.18.0
  - notes: 4.10.0
  - notifications: 2.17.0
  - oauth2: 1.17.0
  - password_policy: 1.19.0
  - photos: 2.5.0
  - privacy: 1.13.0
  - provisioning_api: 1.19.0
  - recommendations: 2.1.0
  - related_resources: 1.4.0
  - serverinfo: 1.19.0
  - settings: 1.12.0
  - sharebymail: 1.19.0
  - support: 1.12.0
  - survey_client: 1.17.0
  - systemtags: 1.19.0
  - tasks: 0.16.0
  - text: 3.10.0
  - theming: 2.4.0
  - twofactor_backupcodes: 1.18.0
  - updatenotification: 1.19.1
  - user_status: 1.9.0
  - viewer: 2.3.0
  - weather_status: 1.9.0
  - workflowengine: 2.11.0
Disabled:
  - admin_audit: 1.19.0
  - bruteforcesettings: 2.9.0
  - encryption: 2.17.0
  - forms: 4.2.3 (installed 4.2.3)
  - suspicious_login: 7.0.0
  - twofactor_totp: 11.0.0-dev
  - user_ldap: 1.20.0

Nextcloud configuration

{
    "system": {
        "memcache.local": "\\OC\\Memcache\\APCu",
        "apps_paths": [
            {
                "path": "\/var\/www\/html\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/www\/html\/custom_apps",
                "url": "\/custom_apps",
                "writable": true
            }
        ],
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "password": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "upgrade.disable-web": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "192.168.2.85:8080"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "pgsql",
        "version": "29.0.0.19",
        "overwrite.cli.url": "http:\/\/192.168.2.85:8080",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "app_install_overwrite": [
            "tasks"
        ],
        "maintenance": false
    }
}

Web server error log

app-1    | 172.29.0.6 -  12/May/2024:08:29:17 +0000 "GET /index.php" 200
web-1    | 192.168.2.50 - - [12/May/2024:08:29:17 +0000] "GET /apps/tasks/ HTTP/1.1" 200 11145 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0" "-"
app-1    | 172.29.0.6 -  12/May/2024:08:29:17 +0000 "GET /index.php" 404
web-1    | 192.168.2.50 - - [12/May/2024:08:29:18 +0000] "GET /apps/firstrunwizard/js/firstrunwizard-activate.mjs?v=db17208b-0 HTTP/1.1" 404 4999 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0" "-"
app-1    | 172.29.0.6 -  12/May/2024:08:29:17 +0000 "GET /index.php" 404
web-1    | 192.168.2.50 - - [12/May/2024:08:29:18 +0000] "GET /apps/firstrunwizard/js/firstrunwizard-about.mjs?v=db17208b-0 HTTP/1.1" 404 4999 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0" "-"
app-1    | 172.29.0.6 -  12/May/2024:08:29:17 +0000 "GET /index.php" 404
web-1    | 192.168.2.50 - - [12/May/2024:08:29:18 +0000] "GET /custom_apps/tasks/js/tasks-main.mjs?v=db17208b-0 HTTP/1.1" 404 5000 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0" "-"
app-1    | 172.29.0.6 -  12/May/2024:08:29:18 +0000 "GET /ocs/v2.php" 200
web-1    | 192.168.2.50 - - [12/May/2024:08:29:18 +0000] "GET /ocs/v2.php/search/providers?from=%2Fapps%2Ftasks%2F HTTP/1.1" 200 590 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0" "-"
app-1    | 172.29.0.6 -  12/May/2024:08:29:18 +0000 "POST /index.php" 200
web-1    | 192.168.2.50 - - [12/May/2024:08:29:18 +0000] "POST /contactsmenu/contacts HTTP/1.1" 200 53 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0" "-"
app-1    | 172.29.0.6 -  12/May/2024:08:29:18 +0000 "GET /ocs/v2.php" 200
web-1    | 192.168.2.50 - - [12/May/2024:08:29:18 +0000] "GET /ocs/v2.php/apps/user_status/api/v1/user_status HTTP/1.1" 200 149 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0" "-"
app-1    | 172.29.0.6 -  12/May/2024:08:29:18 +0000 "PUT /ocs/v2.php" 200
web-1    | 192.168.2.50 - - [12/May/2024:08:29:18 +0000] "PUT /ocs/v2.php/apps/user_status/api/v1/heartbeat?format=json HTTP/1.1" 200 149 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0" "-"
app-1    | 172.29.0.6 -  12/May/2024:08:29:18 +0000 "GET /ocs/v2.php" 200
web-1    | 192.168.2.50 - - [12/May/2024:08:29:18 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 676 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0" "-"

Log file

No response

Browser log

No response

Additional info

No response

@drulum
Copy link

drulum commented May 12, 2024

Just adding that I'm experiencing the same problem. I've just updated to Nextcloud 29. Tasks is enabled, but blank page and a constant "loading" indication on the home page widget.

@raimund-schluessler
Copy link
Member

Please try to clear the caches, especially of your browser. Or try it with incognito mode (where the cache is not used).

@raimund-schluessler
Copy link
Member

@SBGit-2019 please provide the server logs.

@SBGit-2019
Copy link
Author

Cache or incognito mode do not help.

Which other logs do you need, that is how do I get them?

@timparker14
Copy link

I had this issue after upgrading to 28.0.5. Adding mjs to application/javascript in the nginx mime.types file resolved it for me. Still ok with 29.0.0.

@raimund-schluessler
Copy link
Member

I had this issue after upgrading to 28.0.5. Adding mjs to application/javascript in the nginx mime.types file resolved it for me. Still ok with 29.0.0.

That is very likely the issue and explains why the *.mjs files fail to load.

See the nextcloud documentation:

https://docs.nextcloud.com/server/latest/admin_manual/installation/nginx.html#nextcloud-in-the-webroot-of-nginx

@SBGit-2019
Copy link
Author

No this does not solve my problem. See my mime types here (I tried but text/javascript does not change anything compared to application/javascript)

@timparker14 : Can you show me your whole working nginx config? Maybe there is a more subtle error?

The one from the documentation does not run in the docker images 'as is' - so it is indeed possible that there is an issue somewhere.


types {
    text/html                                        html htm shtml;
    text/css                                         css;
    text/xml                                         xml;
    image/gif                                        gif;
    image/jpeg                                       jpeg jpg;
    application/javascript                           js mjs;
    application/atom+xml                             atom;
    application/rss+xml                              rss;

    text/mathml                                      mml;
    text/plain                                       txt;
    text/vnd.sun.j2me.app-descriptor                 jad;
    text/vnd.wap.wml                                 wml;
    text/x-component                                 htc;

    image/avif                                       avif;
    image/png                                        png;
    image/svg+xml                                    svg svgz;
    image/tiff                                       tif tiff;
    image/vnd.wap.wbmp                               wbmp;
    image/webp                                       webp;
    image/x-icon                                     ico;
    image/x-jng                                      jng;
    image/x-ms-bmp                                   bmp;

    font/woff                                        woff;
    font/woff2                                       woff2;

    application/java-archive                         jar war ear;
    application/json                                 json;
    application/mac-binhex40                         hqx;
    application/msword                               doc;
    application/pdf                                  pdf;
    application/postscript                           ps eps ai;
    application/rtf                                  rtf;
    application/vnd.apple.mpegurl                    m3u8;
    application/vnd.google-earth.kml+xml             kml;
    application/vnd.google-earth.kmz                 kmz;
    application/vnd.ms-excel                         xls;
    application/vnd.ms-fontobject                    eot;
    application/vnd.ms-powerpoint                    ppt;
    application/vnd.oasis.opendocument.graphics      odg;
    application/vnd.oasis.opendocument.presentation  odp;
    application/vnd.oasis.opendocument.spreadsheet   ods;
    application/vnd.oasis.opendocument.text          odt;
    application/vnd.openxmlformats-officedocument.presentationml.presentation
                                                     pptx;
    application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
                                                     xlsx;
    application/vnd.openxmlformats-officedocument.wordprocessingml.document
                                                     docx;
    application/vnd.wap.wmlc                         wmlc;
    application/wasm                                 wasm;
    application/x-7z-compressed                      7z;
    application/x-cocoa                              cco;
    application/x-java-archive-diff                  jardiff;
    application/x-java-jnlp-file                     jnlp;
    application/x-makeself                           run;
    application/x-perl                               pl pm;
    application/x-pilot                              prc pdb;
    application/x-rar-compressed                     rar;
    application/x-redhat-package-manager             rpm;
    application/x-sea                                sea;
    application/x-shockwave-flash                    swf;
    application/x-stuffit                            sit;
    application/x-tcl                                tcl tk;
    application/x-x509-ca-cert                       der pem crt;
    application/x-xpinstall                          xpi;
    application/xhtml+xml                            xhtml;
    application/xspf+xml                             xspf;
    application/zip                                  zip;

    application/octet-stream                         bin exe dll;
    application/octet-stream                         deb;
    application/octet-stream                         dmg;
    application/octet-stream                         iso img;
    application/octet-stream                         msi msp msm;

    audio/midi                                       mid midi kar;
    audio/mpeg                                       mp3;
    audio/ogg                                        ogg;
    audio/x-m4a                                      m4a;
    audio/x-realaudio                                ra;

    video/3gpp                                       3gpp 3gp;
    video/mp2t                                       ts;
    video/mp4                                        mp4;
    video/mpeg                                       mpeg mpg;
    video/quicktime                                  mov;
    video/webm                                       webm;
    video/x-flv                                      flv;
    video/x-m4v                                      m4v;
    video/x-mng                                      mng;
    video/x-ms-asf                                   asx asf;
    video/x-ms-wmv                                   wmv;
    video/x-msvideo                                  avi;
}

@SBGit-2019
Copy link
Author

ok I found the issue with the nginx. conf.

For reference to others with the same problem, you need the mime.types

    types {
        text/javascript js mjs;
	application/wasm wasm;
    }

and the correct location

    # Serve static files
    location ~ \.(?:css|js|mjs|svg|gif|png|jpg|ico|wasm|tflite|map|ogg|flac)$ {
        try_files $uri /index.php$request_uri;
        # HTTP response headers borrowed from Nextcloud `.htaccess`
        add_header Cache-Control                     "public, max-age=15778463$asset_immutable";
        add_header Referrer-Policy                   "no-referrer"       always;
        add_header X-Content-Type-Options            "nosniff"           always;
        add_header X-Frame-Options                   "SAMEORIGIN"        always;
        add_header X-Permitted-Cross-Domain-Policies "none"              always;
        add_header X-Robots-Tag                      "noindex, nofollow" always;
        add_header X-XSS-Protection                  "1; mode=block"     always;
        access_log off;     # Optional: Don't log access to assets
    }

I mistyped the latter.

Thank you all for pointing me in the end into the right direction.

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

No branches or pull requests

4 participants