nextcloud / polls

🗳️ Polls app for Nextcloud
https://apps.nextcloud.com/apps/polls
GNU Affero General Public License v3.0
254 stars 73 forks source link

404 on polls app after upgrade to NC27 #3636

Closed Julia-TGC closed 1 month ago

Julia-TGC commented 1 month ago

⚠️ This issue respects the following points: ⚠️

What went wrong, what did you observe?

The Polls app doesn't show up when opened, nor do the settings. Both options can be seen in the menu but lead to an empty page.

What did you expect, how polls should behave instead?

The app should show in the webbrowser

What steps does it need to replay this bug?

  1. install app
  2. try to open app or app settings

Installation method

Installed/updated using occ

Installation type

Updated from previous major version (i.e. 3.x.x to 4.x.x)

Affected polls version

7.2.0

Which browser did you use, when experiencing the bug?

Other browser

No response

Add your browser log here

GET
https://xxxxxxxxxxxxxxxxxxxxxx/apps2/polls/js/polls-main.mjs?v=abf44ca3-125
NS_ERROR_CORRUPTED_CONTENT

Layout was forced before the page was fully loaded. If stylesheets are not yet loaded this may cause a flash of unstyled content. node.js:416:1
Loading module from “https://XXXXXXXXXXXXXXXXXXXXXapps2/polls/js/polls-main.mjs?v=abf44ca3-125” was blocked because of a disallowed MIME type (“text/html”). polls
Loading failed for the module with source “https://xxxxxxxxxxxxxxxxxxxxxxx/apps2/polls/js/polls-main.mjs?v=abf44ca3-125”. polls:37:210
JQMIGRATE: Migrate is installed, version 3.4.1 jquery-migrate.min.js:2:980
[DEBUG] core: this browser is officially supported ! 🚀 
Object { app: "core", uid: "xxxxxxxxxxxx", level: 0 }
ConsoleLogger.js:65:18
Proxying an event bus of version 3.1.0 with 1.3.0 index.es.js:2337:14
session heartbeat polling started session-heartbeat.js:103:9
[DEBUG] unified-search: Unified Search initialized with the following providers 
Object { 0: {…}, 1: {…}, 2: {…}, 3: {…}, 4: {…}, 5: {…}, 6: {…}, 7: {…}, 8: {…}, 9: {…}, … }
ConsoleLogger.js:65:18
Registering notifications container as a menu NotificationsApp.vue:219
Notifications permissions not yet requested NotificationsApp.vue:470
Polling interval updated to 30000 NotificationsApp.vue:416
Started background fetcher as session_keepalive is enabled NotificationsApp.vue:275
Got notification data, restoring default polling interval. NotificationsApp.vue:376

Additional client environment information

Tried Firefox and Chromium

NC version

Nextcloud 27

Other Nextcloud version

No response

PHP engine version

PHP 8.1

Other PHP version

No response

Database engine

MySQL

Database Engine version or other Database

No response

Which user-backends are you using?

Add your nextcloud server log here

{"reqId":"87DiKweuhLo54UIN3Ohj","level":0,"time":"2024-08-06T14:29:57+02:00","remoteAddr":"82.170.66.79","user":"XXXXXXXXXXXXX","app":"no app in context","method":"GET","url":"/apps/polls/","message":"Deprecated event type for \\OCP\\Collaboration\\Resources::loadAdditionalScripts: null","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36","version":"27.1.10.3","data":[]}

Additional environment informations

docker/k8s

Configuration report

{
    "system": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "localhost",
            "XXXXXXXXXXXXXXXXXXXXXXx",
            "XXXXXXXXXXXXXXXXXXXXXXXXX.thegood.cloud"
        ],
        "apps_paths": [
            {
                "path": "\/var\/www\/html\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/www\/html\/apps2",
                "url": "\/apps2",
                "writable": true
            }
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "objectstore": {
            "class": "\\OC\\Files\\ObjectStore\\S3",
            "arguments": {
                "bucket": "XXXXXXXXXXXXXXXXX",
                "autocreate": true,
                "key": "***REMOVED SENSITIVE VALUE***",
                "secret": "***REMOVED SENSITIVE VALUE***",
                "hostname": "XXXXXXXXXXXXXXXXXXXXXX",
                "port": 443,
                "use_ssl": true,
                "region": "default",
                "use_path_style": true
            }
        },
        "dbtype": "mysql",
        "version": "27.1.10.3",
        "overwrite.cli.url": "https:\/\/XXXXXXXXXXXXXXXX",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "trashbin_retention_obligation": "30, 60",
        "versions_retention_obligation": "disabled",
        "logtimezone": "Europe\/Amsterdam",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": "6379",
            "timeout": 0,
            "read_timeout": 0,
            "password": "***REMOVED SENSITIVE VALUE***"
        },
        "memcache.local": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "filelocking.enabled": true,
        "auth.bruteforce.protection.enabled": "true",
        "upgrade.disable-web": "true",
        "mail_smtpmode": "smtp",
        "mail_smtpauthtype": "LOGIN",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauth": "1",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpsecure": "tls",
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "maintenance": false,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "loglevel": 0,
        "has_rebuilt_cache": true,
        "skeletondirectory": "\/var\/www\/html\/data\/skeleton-tgc",
        "knowledgebaseenabled": false,
        "integrity.check.disabled": false,
        "default_phone_region": "NL",
        "profile.enabled": true,
        "enforce_theme": "",
        "app_install_overwrite": [
            "apporder"
        ],
        "memories.exiftool": "\/var\/www\/html\/apps2\/memories\/bin-ext\/exiftool-amd64-glibc",
        "memories.vod.path": "\/var\/www\/html\/apps2\/memories\/bin-ext\/go-vod-amd64",
        "memories.vod.ffmpeg": "\/usr\/bin\/ffmpeg",
        "memories.vod.ffprobe": "\/usr\/bin\/ffprobe",
        "bulkupload.enabled": "false",
        "enable_previews": true,
        "enabledPreviewProviders": {
            "1": "OC\\Preview\\Movie",
            "2": "OC\\Preview\\MKV",
            "3": "OC\\Preview\\MP4",
            "4": "OC\\Preview\\AVI",
            "5": "OC\\Preview\\PNG",
            "6": "OC\\Preview\\JPEG",
            "7": "OC\\Preview\\GIF",
            "8": "OC\\Preview\\BMP",
            "9": "OC\\Preview\\XBitmap",
            "10": "OC\\Preview\\MP3",
            "11": "OC\\Preview\\TXT",
            "12": "OC\\Preview\\MarkDown",
            "13": "OC\\Preview\\OpenDocument",
            "14": "OC\\Preview\\Krita",
            "15": "OC\\Preview\\Illustrator",
            "16": "OC\\Preview\\HEIC",
            "17": "OC\\Preview\\Photoshop",
            "18": "OC\\Preview\\StarOffice",
            "19": "OC\\Preview\\SVG",
            "20": "OC\\Preview\\TIFF",
            "21": "OC\\Preview\\Font"
        },
        "templatedirectory": "\/var\/www\/html\/core\/templates\/filetemplates",
        "memories.db.triggers.fcu": true
    }
}

List of activated Apps

Enabled:
  - activity: 2.19.0
  - announcementcenter: 6.8.1
  - assistant: 1.0.2
  - bookmarks: 13.1.3
  - breezedark: 27.0.0
  - bruteforcesettings: 2.7.0
  - calendar: 4.7.4
  - circles: 27.0.1
  - cloud_federation_api: 1.10.0
  - contacts: 5.5.3
  - cookbook: 0.10.5
  - dashboard: 7.7.0
  - dav: 1.27.0
  - external: 5.2.1
  - externalportal: 1.3.0
  - federatedfilesharing: 1.17.0
  - federation: 1.17.0
  - files: 1.22.0
  - files_accesscontrol: 1.17.2
  - files_antivirus: 5.5.3
  - files_markdown: 2.4.1
  - files_pdfviewer: 2.8.0
  - files_reminders: 1.0.0
  - files_rightclick: 1.6.0
  - files_sharing: 1.19.0
  - files_trashbin: 1.17.0
  - files_versions: 1.20.0
  - files_versions_s3: 0.2.2
  - forms: 3.4.7
  - google_synchronization: 2.2.0
  - gptfreeprompt: 1.0.1
  - group_everyone: 0.1.13
  - groupquota: 0.1.13
  - impersonate: 1.14.0
  - integration_mastodon: 2.0.5
  - integration_openai: 1.1.5
  - login_notes: 1.3.1
  - logreader: 2.12.0
  - lookup_server_connector: 1.15.0
  - memories: 7.3.1
  - metadata: 0.20.0
  - music: 1.11.0
  - notes: 4.10.0
  - notifications: 2.15.0
  - oauth2: 1.15.2
  - password_policy: 1.17.0
  - photos: 2.3.0
  - polls: 7.2.0
  - previewgenerator: 5.5.0
  - privacy: 1.11.0
  - provisioning_api: 1.17.0
  - recognize: 5.0.3
  - related_resources: 1.2.0
  - richdocuments: 8.2.10
  - serverinfo: 1.17.0
  - settings: 1.9.0
  - sharebymail: 1.17.0
  - side_menu: 3.12.0
  - spreed: 17.1.9
  - support: 1.10.1
  - systemtags: 1.17.0
  - tasks: 0.15.0
  - text: 3.8.0
  - theming: 2.2.0
  - translate: 1.2.0
  - twofactor_backupcodes: 1.16.0
  - twofactor_nextcloud_notification: 3.9.0
  - twofactor_totp: 9.0.0
  - unroundedcorners: 1.1.3
  - viewer: 2.1.0
  - workflowengine: 2.9.0
Disabled:
  - admin_audit: 1.17.0
  - approval: 1.1.1 (installed 1.1.1)
  - comments: 1.17.0 (installed 1.17.0)
  - contactsinteraction: 1.8.0 (installed 1.0.0)
  - deck: 1.11.5 (installed 1.11.5)
  - encryption: 2.15.0
  - files_confidential: 2.1.0 (installed 2.1.0)
  - files_external: 1.19.0 (installed 1.10.0)
  - files_lock: 27.0.7 (installed 27.0.6)
  - firstrunwizard: 2.16.0 (installed 2.7.0)
  - globalsiteselector: 2.4.5
  - integration_homeassistant: 0.0.4 (installed 0.0.4)
  - nextcloud_announcements: 1.16.0 (installed 1.7.0)
  - recommendations: 1.6.0 (installed 0.6.0)
  - survey_client: 1.15.0 (installed 1.7.0)
  - suspicious_login: 5.0.0
  - updatenotification: 1.17.0 (installed 1.8.0)
  - user_ldap: 1.17.0
  - user_saml: 5.2.7 (installed 5.2.7)
  - user_status: 1.7.0 (installed 1.4.0)
  - weather_status: 1.7.0 (installed 1.3.0)

Nextcloud Signing status

No errors have been found.

Additional Information

I tried the following:

We've only started seeing this on servers that have been upgraded to Nextcloud v 27

dartcafe commented 1 month ago

Loading module from “https://XXXXXXXXXXXXXXXXXXXXXapps2/polls/js/polls-main.mjs?v=abf44ca3-125” was blocked because of a disallowed MIME type (“text/html”). polls

I bet you use nginx. Please check https://github.com/nextcloud/polls/issues/3561#issuecomment-2176749710

github-actions[bot] commented 1 day ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.