nextcloud / logreader

📜 Log reader for Nextcloud
57 stars 27 forks source link

Live update does not work #80

Closed GAS85 closed 5 years ago

GAS85 commented 5 years ago

Steps to reproduce

  1. Open https://YOURDOMAIN/index.php/settings/admin/logging
  2. Check that Live update is enabled
  3. Wait - see nothing

Expected behaviour

Live Log update should check logs and show in real or near real time.

Actual behaviour

Does not show updates, only F5 will help to show updated logs. If I do tail -f nextcloud.log in a system - updates are there, but not in GUI.

Server configuration

Operating system: Ubuntu 16.04

Web server: Apache 2.4.37

Database: MySQL 5.7.24

PHP version: 7.0.32

Nextcloud version: 14.0.3.0

Where did you install Nextcloud from: Official Repo

List of activated apps:

Enabled:
  - accessibility: 1.0.1
  - activity: 2.7.0
  - admin_audit: 1.4.0
  - bruteforcesettings: 1.2.0
  - calendar: 1.6.3
  - checksum: 0.4.1
  - cloud_federation_api: 0.0.1
  - comments: 1.4.0
  - data_request: 1.1.0
  - dav: 1.6.0
  - deck: 0.5.0
  - federatedfilesharing: 1.4.0
  - files: 1.9.0
  - files_external: 1.5.0
  - files_pdfviewer: 1.3.2
  - files_sharing: 1.6.2
  - files_texteditor: 2.6.0
  - files_trashbin: 1.4.1
  - files_versions: 1.7.1
  - files_videoplayer: 1.3.0
  - firstrunwizard: 2.3.0
  - flowupload: 0.0.8
  - gallery: 18.1.0
  - gpxpod: 2.3.2
  - logreader: 2.0.0
  - lookup_server_connector: 1.2.0
  - mail: 0.11.0
  - nextcloud_announcements: 1.3.0
  - notes: 2.5.0
  - notifications: 2.2.1
  - oauth2: 1.2.1
  - password_policy: 1.4.0
  - polls: 0.8.3
  - previewgenerator: 2.0.0
  - provisioning_api: 1.4.0
  - radio: 0.6.3
  - serverinfo: 1.4.0
  - sharebymail: 1.4.0
  - survey_client: 1.2.0
  - theming: 1.5.0
  - twofactor_backupcodes: 1.3.1
  - twofactor_totp: 1.5.0
  - unsplash: 1.1.1
  - updatenotification: 1.4.1
  - user_external: 0.4
  - weather: 1.5.4
  - workflowengine: 1.4.0
Disabled:
  - encryption
  - federation
  - files_external_dropbox
  - support
  - systemtags
  - user_ldap

Nextcloud configuration:

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "DOMAIN",
            "DOMAIN2",
            "DOMAIN3"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "overwrite.cli.url": "https:\/\/DOMAIN\/nextcloud",
        "dbtype": "mysql",
        "version": "14.0.3.0",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "filesystem_check_changes": 0,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "mail_smtpmode": "smtp",
        "mail_smtpauthtype": "LOGIN",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "maintenance": false,
        "theme": "",
        "loglevel": 4,
        "trashbin_retention_obligation": "7,auto",
        "versions_retention_obligation": "7,auto",
        "data-fingerprint": "7be51475e95ea13b254cd880319d98ec",
        "enable_previews": true,
        "enabledPreviewProviders": [
            "OC\\Preview\\PNG",
            "OC\\Preview\\JPEG",
            "OC\\Preview\\GIF",
            "OC\\Preview\\BMP",
            "OC\\Preview\\XBitmap",
            "OC\\Preview\\Movie",
            "OC\\Preview\\PDF",
            "OC\\Preview\\MP3",
            "OC\\Preview\\TXT",
            "OC\\Preview\\MarkDown"
        ],
        "preview_max_x": 1080,
        "preview_max_y": 1920,
        "auth.bruteforce.protection.enabled": true,
        "simpleSignUpLink.shown": false,
        "mail_smtpsecure": "tls",
        "mail_smtpauth": 1,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***"
    }
}
icewind1991 commented 5 years ago

Can you check the network tab of your browser's development tools to see if it makes a request to apps/logreader/poll

GAS85 commented 5 years ago

I checked and it is a lot of them. Some how I generate an error (e.g. wrong login) and can see it in real time. Seems bug solve it self... Do not know why it does not works before, logreader is still version 2.0.0. Could be that it was not performance enough to parse all updates before I press F5, but I left it for few hours...