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

Deck 1.5.3 clicking on timeline shows a spinner that doesnt stop #3395

Closed
small1 opened this issue Oct 29, 2021 · 9 comments · Fixed by #5280
Closed

Deck 1.5.3 clicking on timeline shows a spinner that doesnt stop #3395

small1 opened this issue Oct 29, 2021 · 9 comments · Fixed by #5280

Comments

@small1
Copy link
Contributor

small1 commented Oct 29, 2021

Describe the bug
When clicking on timeline for a deck card a spinner comes up and never stops.

To Reproduce
Steps to reproduce the behavior:

  1. Go to a deck card or complete board
  2. Click on the card and click on timeline
  3. See a spinner that never ends.

Expected behavior
A clear view of the timeline should be there and the spinner should stop when it has loaded the timeline

Screenshots
Screenshot from 2021-10-29 12-31-39

Client details:

  • OS: Ubuntu
  • Browser chrome and firefox
  • Version [e.g. 22]
  • Device: desktop
Server details

Operating system:
Debian 10

Web server:
Apache and nginx

Database:
mariadb

PHP version:
php8 and php7.4

Nextcloud version: (see Nextcloud admin page)
22.1.1 and 22.2.0

Where did you install Nextcloud from:
Source

Signing status:

No errors

List of activated apps:

Enabled:
  - accessibility: 1.7.0
  - activity: 2.15.0
  - admin_audit: 1.11.0
  - analytics: 3.6.1
  - appointments: 1.10.2
  - approval: 1.0.7
  - bruteforcesettings: 2.2.0
  - calendar: 2.3.3
  - circles: 22.1.1
  - cloud_federation_api: 1.4.0
  - collectives: 0.14.22
  - comments: 1.11.0
  - contacts: 4.0.3
  - contactsinteraction: 1.2.0
  - dashboard: 7.1.0
  - dav: 1.18.0
  - deck: 1.5.3
  - extract: 1.3.2
  - federatedfilesharing: 1.11.0
  - federation: 1.11.0
  - files: 1.16.0
  - files_accesscontrol: 1.12.0
  - files_automatedtagging: 1.12.0
  - files_downloadactivity: 1.11.1
  - files_external: 1.12.1
  - files_fulltextsearch: 22.0.1
  - files_markdown: 2.3.4
  - files_pdfviewer: 2.3.0
  - files_rightclick: 1.1.0
  - files_sharing: 1.13.2
  - files_trashbin: 1.11.0
  - files_versions: 1.14.0
  - files_videoplayer: 1.11.0
  - flow_notifications: 1.2.0
  - forms: 2.3.0
  - fulltextsearch: 22.0.1
  - fulltextsearch_elasticsearch: 22.0.1
  - groupfolders: 10.0.0
  - guests: 2.0.2
  - login_notes: 0.4.0
  - logreader: 2.7.0
  - lookup_server_connector: 1.9.0
  - mail: 1.10.4
  - nextcloud_announcements: 1.11.0
  - notifications: 2.10.1
  - oauth2: 1.9.0
  - onlyoffice: 7.1.2
  - password_policy: 1.12.0
  - photos: 1.4.0
  - privacy: 1.6.0
  - provisioning_api: 1.11.0
  - recommendations: 1.1.0
  - serverinfo: 1.12.0
  - settings: 1.3.0
  - sharebymail: 1.11.0
  - spreed: 12.1.2
  - support: 1.5.0
  - suspicious_login: 4.0.0
  - systemtags: 1.11.0
  - tasks: 0.14.2
  - text: 3.3.0
  - theming: 1.12.0
  - twofactor_admin: 3.1.0
  - twofactor_backupcodes: 1.10.1
  - twofactor_totp: 6.1.0
  - twofactor_u2f: 6.2.0
  - updatenotification: 1.11.0
  - user_status: 1.1.1
  - viewer: 1.6.0
  - weather_status: 1.1.0
  - welcome: 1.0.0
  - workflow_pdf_converter: 1.7.0
  - workflow_script: 1.7.0
  - workflowengine: 2.3.1

Nextcloud configuration:

{
    "system": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "***REMOVED SENSITIVE VALUE***"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "22.1.1.2",
        "overwrite.cli.url": "***REMOVED SENSITIVE VALUE***",
        "overwriteprotocol": "https",
        "htaccess.RewriteBase": "\/",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0,
            "timeout": 0,
            "password": "***REMOVED SENSITIVE VALUE***"
        },
        "memcache.local": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "filelocking.enabled": true,
        "enable_previews": true,
        "enabledPreviewProviders": [
            "OC\\Preview\\PNG",
            "OC\\Preview\\JPEG",
            "OC\\Preview\\GIF",
            "OC\\Preview\\BMP",
            "OC\\Preview\\XBitmap",
            "OC\\Preview\\MarkDown",
            "OC\\Preview\\MP3",
            "OC\\Preview\\TXT",
            "OC\\Preview\\Illustrator",
            "OC\\Preview\\Movie",
            "OC\\Preview\\MSOffice2003",
            "OC\\Preview\\MSOffice2007",
            "OC\\Preview\\MSOfficeDoc",
            "OC\\Preview\\OpenDocument",
            "OC\\Preview\\PDF",
            "OC\\Preview\\Photoshop",
            "OC\\Preview\\Postscript",
            "OC\\Preview\\StarOffice",
            "OC\\Preview\\SVG",
            "OC\\Preview\\TIFF",
            "OC\\Preview\\Font"
        ],
        "preview_max_x": 1024,
        "preview_max_y": 768,
        "preview_max_scale_facto": 1,
        "auth.bruteforce.protection.enabled": true,
        "trashbin_retention_obligation": "auto,7",
        "skeletondirectory": "\/data\/nc-skeleton",
        "defaultapp": "file",
        "activity_expire_days": 14,
        "integrity.check.disabled": false,
        "updater.release.channel": "stable",
        "theme": "",
        "default_phone_region": "SE",
        "maintenance": false,
        "app_install_overwrite": [
            "groupfolders"
        ],
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpauth": 1,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpsecure": "tls",
        "twofactor_enforced": "true",
        "twofactor_enforced_groups": [],
        "twofactor_enforced_excluded_groups": [],
        "loglevel": 4
    }
}

Logs

Nextcloud log (data/nextcloud.log)

No related log to find

Browser log

main.js:63 Error: Request failed with status code 304
    at t.exports (createError.js:16)
    at t.exports (settle.js:17)
    at XMLHttpRequest.A.onreadystatechange (xhr.js:62)
@gerazo
Copy link

gerazo commented Aug 10, 2022

@small1 @juliushaertl Deck 1.7.1 is also affected on NC 24.0.3 but with a slightly different log. When clicking on the activity tab, one item is loaded but not any more, 304 is returned and the spinner stays there indefinitly.

First query succeeds with 200:
/ocs/v2.php/apps/activity/api/v2/activity/filter?format=json&type=deck&since=0&object_type=deck_card&object_id=527&limit=50

Second query fails with 304:
/ocs/v2.php/apps/activity/api/v2/activity/filter?format=json&type=deck&since=43017858&object_type=deck_card&object_id=527&limit=50

@gerazo
Copy link

gerazo commented Aug 10, 2022

@small1 @juliushaertl In our case, NC23 did not have this problem and it is there since the update to NC24 and the new Deck version.

@putt1ck
Copy link

putt1ck commented Aug 11, 2022

Maybe related to nextcloud/server#32582

@juliusknorr
Copy link
Member

Looks unrelated to the server issue, the 304 status code is expected and tells there are no more entries, so this might be an issue with hiding the loading indicator in that case.

@gerazo
Copy link

gerazo commented Aug 11, 2022

@juliushaertl In this particular case, we know that there was a long list of activities on the card there (still with NC23) but now, it only shows the first and then spins forever. However, it is possible that the 2nd query is already wrong and than it is a front-end problem. And forgot to mention that the same happens on FIrefox and Chromium-based browsers as well.

@gerazo
Copy link

gerazo commented Aug 16, 2022

@putt1ck I also think it is unrelated to the server issue, because

  • We do not have this forever spinning in Files. There, the full timeline loads correctly and without an error.
  • In Deck, it is always happening on every board, on every card. It is random how much items are loaded for a card in the timeline, but it is the same for a single card. So for one card, no timeline items are loaded and the spinner spins forever. For some cards, it starts after 2 items. I also found a card where 5 items were loaded but then, spinning forever starts and we never see all of the items on the timeline.
  • It did not happen in version 1.5.3 for us. It started after the upgrade to NC24, but it also included the update of Deck, so it is impossible which triggered it (probably Deck).

@juliushaertl This error is quite painful as the timeline is used as a documentation for items going through certain processes. Some colleagues even used it is a proof of certain cards being moved to certain places by authorized personnel. So I guess, this issue has the potential to cause disruption in services where multiple units were relying on Deck in terms of process management.

@Ishi1993
Copy link

Ishi1993 commented Sep 5, 2022

Deck 1.7.1, nextclloud 24.0.4

Had the same problem, no sollution yet?

@pschopen
Copy link
Contributor

pschopen commented Jun 9, 2023

Issue still exists in NC 26 and Deck 1.9.2. - Unlikely that just hiding in case of no activity is the problem: The last entry then would be that the card was created.

@juliushaertl anything planned here?

@elhananjair
Copy link

elhananjair commented Sep 22, 2023

In my case, I have upgraded my PostgreSQL, and after that old records on the timeline are not loading and showing the same errors as above.

image

juliusknorr added a commit that referenced this issue Nov 12, 2023
juliusknorr added a commit that referenced this issue Nov 13, 2023
grnd-alt pushed a commit that referenced this issue Nov 18, 2024
juliusknorr added a commit that referenced this issue Nov 18, 2024
…ty-stream-stable23

stable23: fix: Detect end of the activity responses (fix #3395)
backportbot bot pushed a commit that referenced this issue Nov 19, 2024
backportbot bot pushed a commit that referenced this issue Nov 19, 2024
backportbot bot pushed a commit that referenced this issue Nov 19, 2024
grnd-alt added a commit that referenced this issue Nov 19, 2024
[stable24] fix: Detect end of the activity responses (fix #3395)
grnd-alt added a commit that referenced this issue Nov 19, 2024
[stable26] fix: Detect end of the activity responses (fix #3395)
juliusknorr added a commit that referenced this issue Nov 19, 2024
[stable25] stable23: fix: Detect end of the activity responses (fix #3395)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants