server icon indicating copy to clipboard operation
server copied to clipboard

Redis gets hammered with +30.000req/sec (scanning appdata_* folder)

Open Rayn0r opened this issue 9 years ago • 37 comments

Steps to reproduce

  1. Log into NC
  2. go into picture folder with lots of subfolders containing pictures (1578 jpgs in 15 Folders)
  3. Click the Icon with the four grey squares at the top right to switch into gallery mode

Expected behaviour

Pictures should be loaded and displayed at a fast rate. Clicking a picture should open the big thumbnail. Clicking left and right should quickly load and display the next picture.

Actual behaviour

After clicking the icon in the top right corner NC switches to gallery view. At first pics are loaded at a fast rate. Even clicking a picture results in loading the big thumbnail instantly. After browsing through a few folders, the rate at which the pictures are loaded in the gallery view degrades. When it is very slow, it takes around 10 seconds to load a batch of 5-6 pictures. Then it stalls again. When clicking an image now, it also takes 10-12 seconds to load the big thumbnail. Usually it takes no more than 5-10 mins before the images are loaded very slowly. Sometimes it takes over 30 min before the problem occurs. At first I thought the problem was related to redis, because redis starts to use 15-20% of a single core when the problem starts to occur.

PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
6865 redis     20   0   47160   3964   2920 S  20.7  0.0   1:04.16 redis-server

Removing the redis section from the config.php does not cure the problem at this point. The only way to get rid of it, is to restart the Apache2. When the problem occured I ran redis-cli --stat. It prints a new line every second. Redis seems to get hammered with requests. There are more than 30000 requests every second from a single client.

------- data ------ --------------------- load -------------------- - child -
keys       mem      clients blocked requests            connections
3          596.95K  2       0       800345 (+33573)     18
3          596.95K  2       0       838685 (+38340)     18
3          596.93K  2       0       872194 (+33509)     18
3          597.17K  2       0       897522 (+25328)     19
2          596.81K  2       0       931469 (+33947)     19
3          596.95K  2       0       966472 (+35003)     19
3          596.95K  2       0       1005883 (+39411)    19
3          596.95K  2       0       1037061 (+31178)    19
2          556.84K  2       0       1063134 (+26073)    20
3          597.33K  2       0       1096635 (+33501)    20
3          596.95K  2       0       1132417 (+35782)    20

This is how redis-cli --stat looks, when pics are loaded quickly:

------- data ------ --------------------- load -------------------- - child -
keys       mem      clients blocked requests            connections
2          536.51K  1       0       1776351 (+393)      83
2          536.51K  1       0       1776842 (+491)      88
2          536.51K  1       0       1776843 (+1)        88
2          536.51K  1       0       1776844 (+1)        88
2          536.51K  1       0       1776845 (+1)        88
2          536.51K  1       0       1776889 (+44)       89
2          536.51K  1       0       1776890 (+1)        89
2          657.24K  3       0       1777501 (+611)      92
2          536.51K  1       0       1777502 (+1)        92
2          536.51K  1       0       1777503 (+1)        92
2          536.51K  1       0       1777547 (+44)       93
2          536.51K  1       0       1777548 (+1)        93
2          536.51K  1       0       1777648 (+100)      94
2          536.51K  1       0       1777818 (+170)      95
2          596.88K  2       0       1778367 (+549)      100
2          536.51K  1       0       1779053 (+686)      106
2          536.51K  1       0       1779446 (+393)      110
2          536.51K  1       0       1779741 (+295)      113
2          536.51K  1       0       1780232 (+491)      118
2          536.51K  1       0       1780821 (+589)      124

Server configuration

Intel(R) Xeon(R) CPU E3-1245 v6 16GB RAM Nextcloud Data Dir on ZFS raidz1 redis-server: 3.0.6-1

Operating system: Ubuntu 16.04

Web server: Apache/2.4.18 (Ubuntu) mpm_prefork: StartServers 2 MinSpareServers 2 MaxSpareServers 5 ServerLimit 64 MaxRequestWorkers 64 MaxConnectionsPerChild 0

Database: mysql Ver 14.14 Distrib 5.7.19

PHP version: PHP 7.0.22-0ubuntu0.16.04.1

Nextcloud version: 12.0.2

Updated from an older Nextcloud/ownCloud or fresh install: Updated from OC 9 over 10 to 11 and 12

Where did you install Nextcloud from: I downloaded it from here: https://nextcloud.com/install/

Signing status:

Signing status
No errors have been found.

List of activated apps:

App list
  - activity: 2.5.2
  - admin_audit: 1.2.0
  - bruteforcesettings: 1.0.2
  - comments: 1.2.0
  - dav: 1.3.0
  - federatedfilesharing: 1.2.0
  - federation: 1.2.0
  - files: 1.7.2
  - files_sharing: 1.4.0
  - files_texteditor: 2.4.1
  - files_trashbin: 1.2.0
  - files_versions: 1.5.0
  - files_videoplayer: 1.1.0
  - firstrunwizard: 2.1
  - gallery: 17.0.0
  - logreader: 2.0.0
  - lookup_server_connector: 1.0.0
  - nextcloud_announcements: 1.1
  - notifications: 2.0.0
  - oauth2: 1.0.5
  - password_policy: 1.2.2
  - previewgenerator: 1.0.6
  - provisioning_api: 1.2.0
  - registration: 0.3.0
  - richdocuments: 1.12.34
  - serverinfo: 1.2.0
  - sharebymail: 1.2.0
  - survey_client: 1.0.0
  - systemtags: 1.2.0
  - theming: 1.3.0
  - twofactor_backupcodes: 1.1.1
  - twofactor_totp: 1.3.1
  - updatenotification: 1.2.0
  - workflowengine: 1.2.0

Nextcloud configuration:

Config report
{
    "system": {
        "instanceid": "ocwix4kf1ezt",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "removed.fqdn.org",
            "192.168.3.42",
            "server"
        ],
        "datadirectory": "\/tank\/nextcloud-data",
        "overwrite.cli.url": "https:\/\/removed.fqdn.org\/nextcloud\/",
        "dbtype": "mysql",
        "version": "12.0.2.0",
        "dbname": "owncloud",
        "dbhost": "localhost",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "forcessl": true,
        "forceSSLforSubdomains": true,
        "tempdirectory": "\/tmp",
        "theme": "",
        "maintenance": false,
        "memcache.local": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "\/var\/run\/redis\/redis.sock",
            "port": 0,
            "timeout": 0,
            "dbindex": 0
        },
        "loglevel": 0,
        "mail_from_address": "webmaster",
        "mail_smtpmode": "smtp",
        "mail_domain": "removed.mail.domain",
        "singleuser": false,
        "updater.release.channel": "production",
        "mail_smtphost": "localhost",
        "mail_smtpport": "25"
    },
    "apps": {
        "activity": {
            "enabled": "yes",
            "installed_version": "2.5.2",
            "notify_email_calendar": "0",
            "notify_email_calendar_event": "0",
            "notify_email_calendar_todo": "0",
            "notify_email_comments": "0",
            "notify_email_favorite": "0",
            "notify_email_file_changed": "0",
            "notify_email_file_created": "0",
            "notify_email_file_deleted": "0",
            "notify_email_file_restored": "0",
            "notify_email_public_links": "0",
            "notify_email_remote_share": "1",
            "notify_email_shared": "1",
            "notify_email_systemtags": "0",
            "notify_setting_batchtime": "3600",
            "notify_setting_self": "1",
            "notify_setting_selfemail": "0",
            "notify_stream_calendar": "1",
            "notify_stream_calendar_event": "1",
            "notify_stream_calendar_todo": "1",
            "notify_stream_comments": "1",
            "notify_stream_favorite": "1",
            "notify_stream_file_changed": "1",
            "notify_stream_file_created": "1",
            "notify_stream_file_deleted": "1",
            "notify_stream_file_favorite": "0",
            "notify_stream_file_restored": "1",
            "notify_stream_public_links": "1",
            "notify_stream_remote_share": "1",
            "notify_stream_shared": "1",
            "notify_stream_systemtags": "1",
            "types": "filesystem"
        },
        "admin_audit": {
            "enabled": "yes",
            "installed_version": "1.2.0",
            "types": "logging"
        },
        "backgroundjob": {
            "lastjob": "958"
        },
        "bruteforcesettings": {
            "enabled": "yes",
            "installed_version": "1.0.2",
            "types": ""
        },
        "calendar": {
            "enabled": "no",
            "installed_version": "1.5.3",
            "ocsid": "168707",
            "types": ""
        },
        "comments": {
            "enabled": "yes",
            "installed_version": "1.2.0",
            "types": "logging"
        },
        "configreport": {
            "enabled": "no",
            "installed_version": "0.1.1",
            "types": "filesystem"
        },
        "contacts": {
            "enabled": "no",
            "installed_version": "1.5.3",
            "types": ""
        },
        "core": {
            "backgroundjobs_mode": "cron",
            "default_encryption_module": "OC_DEFAULT_MODULE",
            "encryption_enabled": "no",
            "global_cache_gc_lastrun": "1436507452",
            "installed.bundles": "[\"CoreBundle\"]",
            "installedat": "1430118829.2195",
            "lastcron": "1505160001",
            "lastupdateResult": "[]",
            "lastupdatedat": "1505130142",
            "moveavatarsdone": "yes",
            "oc.integritycheck.checker": "[]",
            "previewsCleanedUp": "1",
            "public_files": "files_sharing\/public.php",
            "public_gallery": "gallery\/public.php",
            "public_webdav": "dav\/appinfo\/v1\/publicwebdav.php",
            "remote_caldav": "dav\/appinfo\/v1\/caldav.php",
            "remote_calendar": "dav\/appinfo\/v1\/caldav.php",
            "remote_carddav": "dav\/appinfo\/v1\/carddav.php",
            "remote_contacts": "dav\/appinfo\/v1\/carddav.php",
            "remote_dav": "dav\/appinfo\/v2\/remote.php",
            "remote_files": "dav\/appinfo\/v1\/webdav.php",
            "remote_webdav": "dav\/appinfo\/v1\/webdav.php",
            "repairlegacystoragesdone": "yes",
            "scss.variables": "3fef9969c1d2cae1fffb3a8877d9dd86",
            "shareapi_allow_public_notification": "yes",
            "shareapi_allow_public_upload": "no",
            "umgmt_show_email": "true",
            "umgmt_show_last_login": "true",
            "updater.secret.created": "1502882844",
            "vendor": "nextcloud"
        },
        "dashboard": {
            "enabled": "no",
            "installed_version": "4.0.5",
            "types": ""
        },
        "dav": {
            "buildCalendarSearchIndex": "yes",
            "enabled": "yes",
            "installed_version": "1.3.0",
            "types": "filesystem"
        },
        "deck": {
            "enabled": "no",
            "installed_version": "0.2.1",
            "types": ""
        },
        "encryption": {
            "enabled": "no",
            "installed_version": "1.1.0",
            "masterKeyId": "master_edd80458",
            "publicShareKeyId": "pubShare_57389e87",
            "recoveryAdminEnabled": "1",
            "recoveryKeyId": "recovery_09c411d6",
            "types": "filesystem"
        },
        "federatedfilesharing": {
            "enabled": "yes",
            "installed_version": "1.2.0",
            "types": ""
        },
        "federation": {
            "enabled": "yes",
            "installed_version": "1.2.0",
            "types": "authentication"
        },
        "files": {
            "cronjob_scan_files": "500",
            "default_quota": "1 MB",
            "enabled": "yes",
            "installed_version": "1.7.2",
            "types": "filesystem"
        },
        "files_locking": {
            "enabled": "no",
            "installed_version": "",
            "types": "filesystem"
        },
        "files_pdfviewer": {
            "enabled": "no",
            "installed_version": "1.0.1",
            "ocsid": "166049",
            "types": ""
        },
        "files_sharing": {
            "enabled": "yes",
            "incoming_server2server_share_enabled": "yes",
            "installed_version": "1.4.0",
            "outgoing_server2server_share_enabled": "yes",
            "types": "filesystem"
        },
        "files_texteditor": {
            "enabled": "yes",
            "installed_version": "2.4.1",
            "ocsid": "166051",
            "types": ""
        },
        "files_trashbin": {
            "enabled": "yes",
            "installed_version": "1.2.0",
            "types": "filesystem"
        },
        "files_versions": {
            "enabled": "yes",
            "installed_version": "1.5.0",
            "types": "filesystem"
        },
        "files_videoplayer": {
            "enabled": "yes",
            "installed_version": "1.1.0",
            "types": ""
        },
        "files_videoviewer": {
            "enabled": "no",
            "installed_version": "0.1.3",
            "ocsid": "166054",
            "types": ""
        },
        "firstrunwizard": {
            "enabled": "yes",
            "installed_version": "2.1",
            "types": "logging"
        },
        "gallery": {
            "enabled": "yes",
            "installed_version": "17.0.0",
            "types": ""
        },
        "galleryplus": {
            "enabled": "no",
            "installed_version": "8.0.11",
            "ocsid": "169116",
            "types": ""
        },
        "logreader": {
            "enabled": "yes",
            "installed_version": "2.0.0",
            "levels": "11111",
            "ocsid": "170871",
            "types": ""
        },
        "lookup_server_connector": {
            "enabled": "yes",
            "installed_version": "1.0.0",
            "types": "authentication"
        },
        "nextcloud_announcements": {
            "enabled": "yes",
            "installed_version": "1.1",
            "pub_date": "Sat, 10 Dec 2016 00:00:00 +0100",
            "types": "logging"
        },
        "notifications": {
            "enabled": "yes",
            "installed_version": "2.0.0",
            "types": "logging"
        },
        "oauth2": {
            "enabled": "yes",
            "installed_version": "1.0.5",
            "types": "authentication"
        },
        "password_policy": {
            "enabled": "yes",
            "installed_version": "1.2.2",
            "types": ""
        },
        "previewgenerator": {
            "enabled": "yes",
            "installed_version": "1.0.6",
            "types": "filesystem"
        },
        "provisioning_api": {
            "enabled": "yes",
            "installed_version": "1.2.0",
            "types": "prevent_group_restriction"
        },
        "registration": {
            "enabled": "yes",
            "installed_version": "0.3.0",
            "ocsid": "170608",
            "types": ""
        },
        "richdocuments": {
            "enabled": "yes",
            "installed_version": "1.12.34",
            "types": "prevent_group_restriction",
            "wopi_url": "https:\/\/office.removed.fqdn.org\/"
        },
        "serverinfo": {
            "enabled": "yes",
            "installed_version": "1.2.0",
            "types": ""
        },
        "sharebymail": {
            "enabled": "yes",
            "installed_version": "1.2.0",
            "types": "filesystem"
        },
        "spreed": {
            "enabled": "no",
            "installed_version": "1.2.0",
            "types": "prevent_group_restriction"
        },
        "storagecharts2": {
            "enabled": "no",
            "installed_version": "2.6.0",
            "types": ""
        },
        "survey_client": {
            "apps": "yes",
            "database": "yes",
            "enabled": "yes",
            "encryption": "yes",
            "files_sharing": "yes",
            "installed_version": "1.0.0",
            "last_report": "{\"id\":\"ocwix4kf1ezt\",\"items\":[[\"server\",\"version\",\"12.0.2.0\"],[\"server\",\"code\",\"other\"],[\"server\",\"enable_avatars\",\"yes\"],[\"server\",\"enable_previews\",\"yes\"],[\"server\",\"memcache.local\",\"\\\\OC\\\\Memcache\\\\APCu\"],[\"server\",\"memcache.distributed\",\"none\"],[\"server\",\"asset-pipeline.enabled\",\"no\"],[\"server\",\"filelocking.enabled\",\"yes\"],[\"server\",\"memcache.locking\",\"\\\\OC\\\\Memcache\\\\Redis\"],[\"server\",\"debug\",\"no\"],[\"server\",\"cron\",\"cron\"],[\"php\",\"version\",\"7.0.22\"],[\"php\",\"memory_limit\",-1],[\"php\",\"max_execution_time\",0],[\"php\",\"upload_max_filesize\",2097152],[\"database\",\"type\",\"mysql\"],[\"database\",\"version\",\"5.7.19\"],[\"database\",\"size\",72957952],[\"apps\",\"activity\",\"2.5.2\"],[\"apps\",\"admin_audit\",\"1.2.0\"],[\"apps\",\"bruteforcesettings\",\"1.0.2\"],[\"apps\",\"calendar\",\"disabled\"],[\"apps\",\"comments\",\"1.2.0\"],[\"apps\",\"configreport\",\"disabled\"],[\"apps\",\"contacts\",\"disabled\"],[\"apps\",\"dashboard\",\"disabled\"],[\"apps\",\"dav\",\"1.3.0\"],[\"apps\",\"deck\",\"disabled\"],[\"apps\",\"encryption\",\"disabled\"],[\"apps\",\"federatedfilesharing\",\"1.2.0\"],[\"apps\",\"federation\",\"1.2.0\"],[\"apps\",\"files\",\"1.7.2\"],[\"apps\",\"files_locking\",\"disabled\"],[\"apps\",\"files_pdfviewer\",\"disabled\"],[\"apps\",\"files_sharing\",\"1.4.0\"],[\"apps\",\"files_texteditor\",\"2.4.1\"],[\"apps\",\"files_trashbin\",\"1.2.0\"],[\"apps\",\"files_versions\",\"1.5.0\"],[\"apps\",\"files_videoplayer\",\"1.1.0\"],[\"apps\",\"files_videoviewer\",\"disabled\"],[\"apps\",\"firstrunwizard\",\"2.1\"],[\"apps\",\"gallery\",\"17.0.0\"],[\"apps\",\"galleryplus\",\"disabled\"],[\"apps\",\"logreader\",\"2.0.0\"],[\"apps\",\"lookup_server_connector\",\"1.0.0\"],[\"apps\",\"nextcloud_announcements\",\"1.1\"],[\"apps\",\"notifications\",\"2.0.0\"],[\"apps\",\"oauth2\",\"1.0.5\"],[\"apps\",\"password_policy\",\"1.2.2\"],[\"apps\",\"previewgenerator\",\"1.0.6\"],[\"apps\",\"provisioning_api\",\"1.2.0\"],[\"apps\",\"registration\",\"0.3.0\"],[\"apps\",\"richdocuments\",\"1.12.34\"],[\"apps\",\"serverinfo\",\"1.2.0\"],[\"apps\",\"sharebymail\",\"1.2.0\"],[\"apps\",\"spreed\",\"disabled\"],[\"apps\",\"storagecharts2\",\"disabled\"],[\"apps\",\"survey_client\",\"1.0.0\"],[\"apps\",\"systemtags\",\"1.2.0\"],[\"apps\",\"tasks\",\"disabled\"],[\"apps\",\"templateeditor\",\"0.2\"],[\"apps\",\"theming\",\"1.3.0\"],[\"apps\",\"twofactor_backupcodes\",\"1.1.1\"],[\"apps\",\"twofactor_totp\",\"1.3.1\"],[\"apps\",\"updatenotification\",\"1.2.0\"],[\"apps\",\"updater\",\"disabled\"],[\"apps\",\"weather\",\"disabled\"],[\"apps\",\"workflowengine\",\"1.2.0\"],[\"stats\",\"num_files\",100594],[\"stats\",\"num_users\",17],[\"stats\",\"num_storages\",267],[\"stats\",\"num_storages_local\",4],[\"stats\",\"num_storages_home\",24],[\"stats\",\"num_storages_other\",239],[\"stats\",\"num_comments\",7],[\"stats\",\"num_comment_markers\",1],[\"stats\",\"num_systemtags\",3],[\"stats\",\"num_systemtags_mappings\",0],[\"files_sharing\",\"num_shares\",61],[\"files_sharing\",\"num_shares_user\",48],[\"files_sharing\",\"num_shares_groups\",3],[\"files_sharing\",\"num_shares_link\",9],[\"files_sharing\",\"num_shares_link_no_password\",9],[\"files_sharing\",\"num_fed_shares_sent\",1],[\"files_sharing\",\"num_fed_shares_received\",0],[\"files_sharing\",\"permissions_0_1\",\"22\"],[\"files_sharing\",\"permissions_1_1\",\"3\"],[\"files_sharing\",\"permissions_3_1\",\"9\"],[\"files_sharing\",\"permissions_6_1\",\"1\"],[\"files_sharing\",\"permissions_0_17\",\"3\"],[\"files_sharing\",\"permissions_0_19\",\"6\"],[\"files_sharing\",\"permissions_0_31\",\"17\"],[\"encryption\",\"enabled\",\"no\"],[\"encryption\",\"default_module\",\"yes\"]]}",
            "last_sent": "1503304203",
            "php": "yes",
            "server": "yes",
            "stats": "yes",
            "types": ""
        },
        "systemtags": {
            "enabled": "yes",
            "installed_version": "1.2.0",
            "types": "logging"
        },
        "tasks": {
            "enabled": "no",
            "installed_version": "0.9.5",
            "types": ""
        },
        "templateeditor": {
            "enabled": "yes",
            "installed_version": "0.2",
            "types": ""
        },
        "theming": {
            "backgroundMime": "image\/jpeg",
            "cachebuster": "57",
            "color": "#F44F00",
            "enabled": "yes",
            "installed_version": "1.3.0",
            "logoMime": "image\/svg+xml",
            "slogan": "<a style=\"text-shadow: 1px 1px 2px #000000, 0 0 3px #000000;, 0 0 4px #000000;\" href=\"http:\/\/www.freepik.com\/free-photos-vectors\/logo\">Logo vector created by Freepik<\/a>",
            "types": "logging"
        },
        "twofactor_backupcodes": {
            "enabled": "yes",
            "installed_version": "1.1.1",
            "types": ""
        },
        "twofactor_totp": {
            "enabled": "yes",
            "installed_version": "1.3.1",
            "types": ""
        },
        "updatenotification": {
            "core": "11.0.4.1",
            "enabled": "yes",
            "installed_version": "1.2.0",
            "registration": "0.2.5",
            "richdocuments": "1.11.27",
            "types": "",
            "update_check_errors": "0",
            "weather": "1.5.0"
        },
        "updater": {
            "enabled": "no",
            "installed_version": "0.6",
            "ocsid": "166059",
            "types": ""
        },
        "weather": {
            "enabled": "no",
            "installed_version": "1.5.0",
            "ocsid": "170605",
            "types": ""
        },
        "workflowengine": {
            "enabled": "yes",
            "installed_version": "1.2.0",
            "types": "filesystem"
        }
    }
}

Are you using external storage, if yes which one: no

Are you using encryption: no

Are you using an external user-backend, if yes which one: no

Client configuration

Browser: FF: 55.0.3 Chrome: 60.0.3112.113

Operating system: Windows 7 64bit

Logs

Web server error log

Web server error log
[Tue Sep 12 06:25:59.836571 2017] [mpm_prefork:notice] [pid 14089] AH00163: Apache/2.4.18 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.0.2g configured -- resuming normal operations
[Tue Sep 12 06:25:59.836585 2017] [core:notice] [pid 14089] AH00094: Command line: '/usr/sbin/apache2'
[Tue Sep 12 08:45:53.943594 2017] [mpm_prefork:notice] [pid 14089] AH00169: caught SIGTERM, shutting down
[Tue Sep 12 08:45:55.082294 2017] [mpm_prefork:notice] [pid 13863] AH00163: Apache/2.4.18 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.0.2g configured -- resuming normal operations
[Tue Sep 12 08:45:55.082327 2017] [core:notice] [pid 13863] AH00094: Command line: '/usr/sbin/apache2'
[Tue Sep 12 08:58:43.465711 2017] [core:notice] [pid 13863] AH00051: child pid 13993 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Tue Sep 12 08:58:43.465751 2017] [mpm_prefork:notice] [pid 13863] AH00169: caught SIGTERM, shutting down
[Tue Sep 12 08:58:44.326270 2017] [mpm_prefork:notice] [pid 15090] AH00163: Apache/2.4.18 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.0.2g configured -- resuming normal operations
[Tue Sep 12 08:58:44.326302 2017] [core:notice] [pid 15090] AH00094: Command line: '/usr/sbin/apache2'
[Tue Sep 12 09:06:17.795859 2017] [mpm_prefork:notice] [pid 15090] AH00169: caught SIGTERM, shutting down
[Tue Sep 12 09:06:18.931473 2017] [mpm_prefork:notice] [pid 15609] AH00163: Apache/2.4.18 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.0.2g configured -- resuming normal operations
[Tue Sep 12 09:06:18.931515 2017] [core:notice] [pid 15609] AH00094: Command line: '/usr/sbin/apache2'
[Tue Sep 12 09:08:28.611916 2017] [mpm_prefork:notice] [pid 15609] AH00169: caught SIGTERM, shutting down
[Tue Sep 12 09:08:29.734940 2017] [mpm_prefork:notice] [pid 15827] AH00163: Apache/2.4.18 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.0.2g configured -- resuming normal operations
[Tue Sep 12 09:08:29.734978 2017] [core:notice] [pid 15827] AH00094: Command line: '/usr/sbin/apache2'
[Tue Sep 12 10:28:43.299728 2017] [mpm_prefork:notice] [pid 15827] AH00169: caught SIGTERM, shutting down
[Tue Sep 12 10:28:44.371713 2017] [mpm_prefork:notice] [pid 20327] AH00163: Apache/2.4.18 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.0.2g configured -- resuming normal operations
[Tue Sep 12 10:28:44.371752 2017] [core:notice] [pid 20327] AH00094: Command line: '/usr/sbin/apache2'
[Tue Sep 12 10:30:09.633129 2017] [mpm_prefork:notice] [pid 20327] AH00169: caught SIGTERM, shutting down
[Tue Sep 12 10:30:10.706272 2017] [mpm_prefork:notice] [pid 20588] AH00163: Apache/2.4.18 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.0.2g configured -- resuming normal operations
[Tue Sep 12 10:30:10.706308 2017] [core:notice] [pid 20588] AH00094: Command line: '/usr/sbin/apache2'

Nextcloud log (data/nextcloud.log)

Nextcloud log
{"reqId":"imWMLm79kiqGfUno4rQz","level":1,"time":"2017-09-12T08:30:35+00:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"XUSERX","app":"admin_audit","method":"GET","url":"\/nextcloud\/index.php\/apps\/gallery\/thumbnails?ids=1439239%3B1439245%3B1439257%3B1439251%3B1439440%3B1439446&scale=1&square=0&requesttoken=2i7ZpVECuV1vWvvkQJEVsToal7GuRBYSti84a1HV1Fg%3D%3AgmO%2F0gdM2CheEauPCaNX0lRV8%2FLMCWZChRxzLgO6uR8%3D","message":"Preview accessed: \"\/Upload-Andr\u00e9\/2017\/09\/IMG_20170910_163045.jpg\" (width: \"400\", height: \"200\" crop: \"\", mode: \"fill\")","userAgent":"Mozilla\/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko\/20100101 Firefox\/52.0","version":"12.0.2.0"}
{"reqId":"imWMLm79kiqGfUno4rQz","level":1,"time":"2017-09-12T08:30:35+00:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"XUSERX","app":"admin_audit","method":"GET","url":"\/nextcloud\/index.php\/apps\/gallery\/thumbnails?ids=1439239%3B1439245%3B1439257%3B1439251%3B1439440%3B1439446&scale=1&square=0&requesttoken=2i7ZpVECuV1vWvvkQJEVsToal7GuRBYSti84a1HV1Fg%3D%3AgmO%2F0gdM2CheEauPCaNX0lRV8%2FLMCWZChRxzLgO6uR8%3D","message":"Preview accessed: \"\/Upload-Andr\u00e9\/2017\/09\/IMG_20170910_163049.jpg\" (width: \"400\", height: \"200\" crop: \"\", mode: \"fill\")","userAgent":"Mozilla\/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko\/20100101 Firefox\/52.0","version":"12.0.2.0"}
{"reqId":"fJkJLj3810nnxD5gm4KA","level":1,"time":"2017-09-12T08:30:36+00:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"XUSERX","app":"admin_audit","method":"GET","url":"\/nextcloud\/index.php\/apps\/gallery\/thumbnails?ids=1439451%3B1439458%3B1439465%3B1439473%3B1439479%3B1439485&scale=1&square=0&requesttoken=2i7ZpVECuV1vWvvkQJEVsToal7GuRBYSti84a1HV1Fg%3D%3AgmO%2F0gdM2CheEauPCaNX0lRV8%2FLMCWZChRxzLgO6uR8%3D","message":"Preview accessed: \"\/Upload-Andr\u00e9\/2017\/09\/IMG_20170910_163055.jpg\" (width: \"400\", height: \"200\" crop: \"\", mode: \"fill\")","userAgent":"Mozilla\/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko\/20100101 Firefox\/52.0","version":"12.0.2.0"}
{"reqId":"fJkJLj3810nnxD5gm4KA","level":1,"time":"2017-09-12T08:30:36+00:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"XUSERX","app":"admin_audit","method":"GET","url":"\/nextcloud\/index.php\/apps\/gallery\/thumbnails?ids=1439451%3B1439458%3B1439465%3B1439473%3B1439479%3B1439485&scale=1&square=0&requesttoken=2i7ZpVECuV1vWvvkQJEVsToal7GuRBYSti84a1HV1Fg%3D%3AgmO%2F0gdM2CheEauPCaNX0lRV8%2FLMCWZChRxzLgO6uR8%3D","message":"Preview accessed: \"\/Upload-Andr\u00e9\/2017\/09\/IMG_20170910_163113.jpg\" (width: \"400\", height: \"200\" crop: \"\", mode: \"fill\")","userAgent":"Mozilla\/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko\/20100101 Firefox\/52.0","version":"12.0.2.0"}
{"reqId":"fJkJLj3810nnxD5gm4KA","level":1,"time":"2017-09-12T08:30:36+00:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"XUSERX","app":"admin_audit","method":"GET","url":"\/nextcloud\/index.php\/apps\/gallery\/thumbnails?ids=1439451%3B1439458%3B1439465%3B1439473%3B1439479%3B1439485&scale=1&square=0&requesttoken=2i7ZpVECuV1vWvvkQJEVsToal7GuRBYSti84a1HV1Fg%3D%3AgmO%2F0gdM2CheEauPCaNX0lRV8%2FLMCWZChRxzLgO6uR8%3D","message":"Preview accessed: \"\/Upload-Andr\u00e9\/2017\/09\/IMG_20170910_163119.jpg\" (width: \"400\", height: \"200\" crop: \"\", mode: \"fill\")","userAgent":"Mozilla\/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko\/20100101 Firefox\/52.0","version":"12.0.2.0"}
{"reqId":"fJkJLj3810nnxD5gm4KA","level":1,"time":"2017-09-12T08:30:36+00:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"XUSERX","app":"admin_audit","method":"GET","url":"\/nextcloud\/index.php\/apps\/gallery\/thumbnails?ids=1439451%3B1439458%3B1439465%3B1439473%3B1439479%3B1439485&scale=1&square=0&requesttoken=2i7ZpVECuV1vWvvkQJEVsToal7GuRBYSti84a1HV1Fg%3D%3AgmO%2F0gdM2CheEauPCaNX0lRV8%2FLMCWZChRxzLgO6uR8%3D","message":"Preview accessed: \"\/Upload-Andr\u00e9\/2017\/09\/IMG_20170910_163126.jpg\" (width: \"400\", height: \"200\" crop: \"\", mode: \"fill\")","userAgent":"Mozilla\/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko\/20100101 Firefox\/52.0","version":"12.0.2.0"}
{"reqId":"fJkJLj3810nnxD5gm4KA","level":1,"time":"2017-09-12T08:30:36+00:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"XUSERX","app":"admin_audit","method":"GET","url":"\/nextcloud\/index.php\/apps\/gallery\/thumbnails?ids=1439451%3B1439458%3B1439465%3B1439473%3B1439479%3B1439485&scale=1&square=0&requesttoken=2i7ZpVECuV1vWvvkQJEVsToal7GuRBYSti84a1HV1Fg%3D%3AgmO%2F0gdM2CheEauPCaNX0lRV8%2FLMCWZChRxzLgO6uR8%3D","message":"Preview accessed: \"\/Upload-Andr\u00e9\/2017\/09\/IMG_20170910_163146.jpg\" (width: \"400\", height: \"200\" crop: \"\", mode: \"fill\")","userAgent":"Mozilla\/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko\/20100101 Firefox\/52.0","version":"12.0.2.0"}
{"reqId":"fJkJLj3810nnxD5gm4KA","level":1,"time":"2017-09-12T08:30:36+00:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"XUSERX","app":"admin_audit","method":"GET","url":"\/nextcloud\/index.php\/apps\/gallery\/thumbnails?ids=1439451%3B1439458%3B1439465%3B1439473%3B1439479%3B1439485&scale=1&square=0&requesttoken=2i7ZpVECuV1vWvvkQJEVsToal7GuRBYSti84a1HV1Fg%3D%3AgmO%2F0gdM2CheEauPCaNX0lRV8%2FLMCWZChRxzLgO6uR8%3D","message":"Preview accessed: \"\/Upload-Andr\u00e9\/2017\/09\/IMG_20170910_163154.jpg\" (width: \"400\", height: \"200\" crop: \"\", mode: \"fill\")","userAgent":"Mozilla\/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko\/20100101 Firefox\/52.0","version":"12.0.2.0"}
{"reqId":"vvVu58rbDKSDT5w18CSB","level":1,"time":"2017-09-12T08:30:36+00:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"XUSERX","app":"admin_audit","method":"GET","url":"\/nextcloud\/index.php\/apps\/gallery\/thumbnails?ids=1439491%3B1439497%3B1439503%3B1439509%3B1439515%3B1439606&scale=1&square=0&requesttoken=2i7ZpVECuV1vWvvkQJEVsToal7GuRBYSti84a1HV1Fg%3D%3AgmO%2F0gdM2CheEauPCaNX0lRV8%2FLMCWZChRxzLgO6uR8%3D","message":"Preview accessed: \"\/Upload-Andr\u00e9\/2017\/09\/IMG_20170910_163204.jpg\" (width: \"400\", height: \"200\" crop: \"\", mode: \"fill\")","userAgent":"Mozilla\/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko\/20100101 Firefox\/52.0","version":"12.0.2.0"}
{"reqId":"vvVu58rbDKSDT5w18CSB","level":1,"time":"2017-09-12T08:30:36+00:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"XUSERX","app":"admin_audit","method":"GET","url":"\/nextcloud\/index.php\/apps\/gallery\/thumbnails?ids=1439491%3B1439497%3B1439503%3B1439509%3B1439515%3B1439606&scale=1&square=0&requesttoken=2i7ZpVECuV1vWvvkQJEVsToal7GuRBYSti84a1HV1Fg%3D%3AgmO%2F0gdM2CheEauPCaNX0lRV8%2FLMCWZChRxzLgO6uR8%3D","message":"Preview accessed: \"\/Upload-Andr\u00e9\/2017\/09\/IMG_20170910_163211.jpg\" (width: \"400\", height: \"200\" crop: \"\", mode: \"fill\")","userAgent":"Mozilla\/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko\/20100101 Firefox\/52.0","version":"12.0.2.0"}
{"reqId":"vvVu58rbDKSDT5w18CSB","level":1,"time":"2017-09-12T08:30:36+00:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"XUSERX","app":"admin_audit","method":"GET","url":"\/nextcloud\/index.php\/apps\/gallery\/thumbnails?ids=1439491%3B1439497%3B1439503%3B1439509%3B1439515%3B1439606&scale=1&square=0&requesttoken=2i7ZpVECuV1vWvvkQJEVsToal7GuRBYSti84a1HV1Fg%3D%3AgmO%2F0gdM2CheEauPCaNX0lRV8%2FLMCWZChRxzLgO6uR8%3D","message":"Preview accessed: \"\/Upload-Andr\u00e9\/2017\/09\/IMG_20170910_163226.jpg\" (width: \"400\", height: \"200\" crop: \"\", mode: \"fill\")","userAgent":"Mozilla\/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko\/20100101 Firefox\/52.0","version":"12.0.2.0"}
{"reqId":"vvVu58rbDKSDT5w18CSB","level":1,"time":"2017-09-12T08:30:36+00:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"XUSERX","app":"admin_audit","method":"GET","url":"\/nextcloud\/index.php\/apps\/gallery\/thumbnails?ids=1439491%3B1439497%3B1439503%3B1439509%3B1439515%3B1439606&scale=1&square=0&requesttoken=2i7ZpVECuV1vWvvkQJEVsToal7GuRBYSti84a1HV1Fg%3D%3AgmO%2F0gdM2CheEauPCaNX0lRV8%2FLMCWZChRxzLgO6uR8%3D","message":"Preview accessed: \"\/Upload-Andr\u00e9\/2017\/09\/IMG_20170910_163229.jpg\" (width: \"400\", height: \"200\" crop: \"\", mode: \"fill\")","userAgent":"Mozilla\/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko\/20100101 Firefox\/52.0","version":"12.0.2.0"}
{"reqId":"vvVu58rbDKSDT5w18CSB","level":1,"time":"2017-09-12T08:30:36+00:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"XUSERX","app":"admin_audit","method":"GET","url":"\/nextcloud\/index.php\/apps\/gallery\/thumbnails?ids=1439491%3B1439497%3B1439503%3B1439509%3B1439515%3B1439606&scale=1&square=0&requesttoken=2i7ZpVECuV1vWvvkQJEVsToal7GuRBYSti84a1HV1Fg%3D%3AgmO%2F0gdM2CheEauPCaNX0lRV8%2FLMCWZChRxzLgO6uR8%3D","message":"Preview accessed: \"\/Upload-Andr\u00e9\/2017\/09\/IMG_20170910_163233.jpg\" (width: \"400\", height: \"200\" crop: \"\", mode: \"fill\")","userAgent":"Mozilla\/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko\/20100101 Firefox\/52.0","version":"12.0.2.0"}
{"reqId":"vvVu58rbDKSDT5w18CSB","level":1,"time":"2017-09-12T08:30:36+00:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"XUSERX","app":"admin_audit","method":"GET","url":"\/nextcloud\/index.php\/apps\/gallery\/thumbnails?ids=1439491%3B1439497%3B1439503%3B1439509%3B1439515%3B1439606&scale=1&square=0&requesttoken=2i7ZpVECuV1vWvvkQJEVsToal7GuRBYSti84a1HV1Fg%3D%3AgmO%2F0gdM2CheEauPCaNX0lRV8%2FLMCWZChRxzLgO6uR8%3D","message":"Preview accessed: \"\/Upload-Andr\u00e9\/2017\/09\/IMG_20170910_163302.jpg\" (width: \"400\", height: \"200\" crop: \"\", mode: \"fill\")","userAgent":"Mozilla\/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko\/20100101 Firefox\/52.0","version":"12.0.2.0"}
{"reqId":"AAOC5UU4VFSDFI6Tgt5C","level":1,"time":"2017-09-12T08:30:37+00:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"XUSERX","app":"admin_audit","method":"GET","url":"\/nextcloud\/index.php\/apps\/gallery\/thumbnails?ids=1439741%3B1439848%3B1439853%3B1439902%3B1439909%3B1439916&scale=1&square=0&requesttoken=2i7ZpVECuV1vWvvkQJEVsToal7GuRBYSti84a1HV1Fg%3D%3AgmO%2F0gdM2CheEauPCaNX0lRV8%2FLMCWZChRxzLgO6uR8%3D","message":"Preview accessed: \"\/Upload-Andr\u00e9\/2017\/09\/IMG_20170910_163319.jpg\" (width: \"400\", height: \"200\" crop: \"\", mode: \"fill\")","userAgent":"Mozilla\/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko\/20100101 Firefox\/52.0","version":"12.0.2.0"}
{"reqId":"AAOC5UU4VFSDFI6Tgt5C","level":1,"time":"2017-09-12T08:30:37+00:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"XUSERX","app":"admin_audit","method":"GET","url":"\/nextcloud\/index.php\/apps\/gallery\/thumbnails?ids=1439741%3B1439848%3B1439853%3B1439902%3B1439909%3B1439916&scale=1&square=0&requesttoken=2i7ZpVECuV1vWvvkQJEVsToal7GuRBYSti84a1HV1Fg%3D%3AgmO%2F0gdM2CheEauPCaNX0lRV8%2FLMCWZChRxzLgO6uR8%3D","message":"Preview accessed: \"\/Upload-Andr\u00e9\/2017\/09\/IMG_20170910_163324.jpg\" (width: \"400\", height: \"200\" crop: \"\", mode: \"fill\")","userAgent":"Mozilla\/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko\/20100101 Firefox\/52.0","version":"12.0.2.0"}
{"reqId":"AAOC5UU4VFSDFI6Tgt5C","level":1,"time":"2017-09-12T08:30:37+00:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"XUSERX","app":"admin_audit","method":"GET","url":"\/nextcloud\/index.php\/apps\/gallery\/thumbnails?ids=1439741%3B1439848%3B1439853%3B1439902%3B1439909%3B1439916&scale=1&square=0&requesttoken=2i7ZpVECuV1vWvvkQJEVsToal7GuRBYSti84a1HV1Fg%3D%3AgmO%2F0gdM2CheEauPCaNX0lRV8%2FLMCWZChRxzLgO6uR8%3D","message":"Preview accessed: \"\/Upload-Andr\u00e9\/2017\/09\/IMG_20170910_163440.jpg\" (width: \"400\", height: \"200\" crop: \"\", mode: \"fill\")","userAgent":"Mozilla\/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko\/20100101 Firefox\/52.0","version":"12.0.2.0"}
{"reqId":"AAOC5UU4VFSDFI6Tgt5C","level":1,"time":"2017-09-12T08:30:37+00:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"XUSERX","app":"admin_audit","method":"GET","url":"\/nextcloud\/index.php\/apps\/gallery\/thumbnails?ids=1439741%3B1439848%3B1439853%3B1439902%3B1439909%3B1439916&scale=1&square=0&requesttoken=2i7ZpVECuV1vWvvkQJEVsToal7GuRBYSti84a1HV1Fg%3D%3AgmO%2F0gdM2CheEauPCaNX0lRV8%2FLMCWZChRxzLgO6uR8%3D","message":"Preview accessed: \"\/Upload-Andr\u00e9\/2017\/09\/IMG_20170910_165212.jpg\" (width: \"400\", height: \"200\" crop: \"\", mode: \"fill\")","userAgent":"Mozilla\/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko\/20100101 Firefox\/52.0","version":"12.0.2.0"}
{"reqId":"AAOC5UU4VFSDFI6Tgt5C","level":1,"time":"2017-09-12T08:30:37+00:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"XUSERX","app":"admin_audit","method":"GET","url":"\/nextcloud\/index.php\/apps\/gallery\/thumbnails?ids=1439741%3B1439848%3B1439853%3B1439902%3B1439909%3B1439916&scale=1&square=0&requesttoken=2i7ZpVECuV1vWvvkQJEVsToal7GuRBYSti84a1HV1Fg%3D%3AgmO%2F0gdM2CheEauPCaNX0lRV8%2FLMCWZChRxzLgO6uR8%3D","message":"Preview accessed: \"\/Upload-Andr\u00e9\/2017\/09\/IMG_20170910_165215.jpg\" (width: \"400\", height: \"200\" crop: \"\", mode: \"fill\")","userAgent":"Mozilla\/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko\/20100101 Firefox\/52.0","version":"12.0.2.0"}
{"reqId":"AAOC5UU4VFSDFI6Tgt5C","level":1,"time":"2017-09-12T08:30:37+00:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"XUSERX","app":"admin_audit","method":"GET","url":"\/nextcloud\/index.php\/apps\/gallery\/thumbnails?ids=1439741%3B1439848%3B1439853%3B1439902%3B1439909%3B1439916&scale=1&square=0&requesttoken=2i7ZpVECuV1vWvvkQJEVsToal7GuRBYSti84a1HV1Fg%3D%3AgmO%2F0gdM2CheEauPCaNX0lRV8%2FLMCWZChRxzLgO6uR8%3D","message":"Preview accessed: \"\/Upload-Andr\u00e9\/2017\/09\/IMG_20170910_165218.jpg\" (width: \"400\", height: \"200\" crop: \"\", mode: \"fill\")","userAgent":"Mozilla\/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko\/20100101 Firefox\/52.0","version":"12.0.2.0"}
{"reqId":"HqCC7AI3aDQiVyYkdeCM","level":1,"time":"2017-09-12T08:30:37+00:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"XUSERX","app":"admin_audit","method":"GET","url":"\/nextcloud\/index.php\/apps\/gallery\/thumbnails?ids=1439923%3B1439929%3B1439934%3B1439940%3B1439945%3B1440120&scale=1&square=0&requesttoken=2i7ZpVECuV1vWvvkQJEVsToal7GuRBYSti84a1HV1Fg%3D%3AgmO%2F0gdM2CheEauPCaNX0lRV8%2FLMCWZChRxzLgO6uR8%3D","message":"Preview accessed: \"\/Upload-Andr\u00e9\/2017\/09\/IMG_20170910_165223.jpg\" (width: \"400\", height: \"200\" crop: \"\", mode: \"fill\")","userAgent":"Mozilla\/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko\/20100101 Firefox\/52.0","version":"12.0.2.0"}
{"reqId":"HqCC7AI3aDQiVyYkdeCM","level":1,"time":"2017-09-12T08:30:37+00:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"XUSERX","app":"admin_audit","method":"GET","url":"\/nextcloud\/index.php\/apps\/gallery\/thumbnails?ids=1439923%3B1439929%3B1439934%3B1439940%3B1439945%3B1440120&scale=1&square=0&requesttoken=2i7ZpVECuV1vWvvkQJEVsToal7GuRBYSti84a1HV1Fg%3D%3AgmO%2F0gdM2CheEauPCaNX0lRV8%2FLMCWZChRxzLgO6uR8%3D","message":"Preview accessed: \"\/Upload-Andr\u00e9\/2017\/09\/IMG_20170910_165230.jpg\" (width: \"400\", height: \"200\" crop: \"\", mode: \"fill\")","userAgent":"Mozilla\/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko\/20100101 Firefox\/52.0","version":"12.0.2.0"}
{"reqId":"HqCC7AI3aDQiVyYkdeCM","level":1,"time":"2017-09-12T08:30:37+00:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"XUSERX","app":"admin_audit","method":"GET","url":"\/nextcloud\/index.php\/apps\/gallery\/thumbnails?ids=1439923%3B1439929%3B1439934%3B1439940%3B1439945%3B1440120&scale=1&square=0&requesttoken=2i7ZpVECuV1vWvvkQJEVsToal7GuRBYSti84a1HV1Fg%3D%3AgmO%2F0gdM2CheEauPCaNX0lRV8%2FLMCWZChRxzLgO6uR8%3D","message":"Preview accessed: \"\/Upload-Andr\u00e9\/2017\/09\/IMG_20170910_165603.jpg\" (width: \"400\", height: \"200\" crop: \"\", mode: \"fill\")","userAgent":"Mozilla\/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko\/20100101 Firefox\/52.0","version":"12.0.2.0"}
{"reqId":"HqCC7AI3aDQiVyYkdeCM","level":1,"time":"2017-09-12T08:30:37+00:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"XUSERX","app":"admin_audit","method":"GET","url":"\/nextcloud\/index.php\/apps\/gallery\/thumbnails?ids=1439923%3B1439929%3B1439934%3B1439940%3B1439945%3B1440120&scale=1&square=0&requesttoken=2i7ZpVECuV1vWvvkQJEVsToal7GuRBYSti84a1HV1Fg%3D%3AgmO%2F0gdM2CheEauPCaNX0lRV8%2FLMCWZChRxzLgO6uR8%3D","message":"Preview accessed: \"\/Upload-Andr\u00e9\/2017\/09\/IMG_20170910_165604.jpg\" (width: \"400\", height: \"200\" crop: \"\", mode: \"fill\")","userAgent":"Mozilla\/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko\/20100101 Firefox\/52.0","version":"12.0.2.0"}
{"reqId":"HqCC7AI3aDQiVyYkdeCM","level":1,"time":"2017-09-12T08:30:37+00:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"XUSERX","app":"admin_audit","method":"GET","url":"\/nextcloud\/index.php\/apps\/gallery\/thumbnails?ids=1439923%3B1439929%3B1439934%3B1439940%3B1439945%3B1440120&scale=1&square=0&requesttoken=2i7ZpVECuV1vWvvkQJEVsToal7GuRBYSti84a1HV1Fg%3D%3AgmO%2F0gdM2CheEauPCaNX0lRV8%2FLMCWZChRxzLgO6uR8%3D","message":"Preview accessed: \"\/Upload-Andr\u00e9\/2017\/09\/IMG_20170910_165607.jpg\" (width: \"400\", height: \"200\" crop: \"\", mode: \"fill\")","userAgent":"Mozilla\/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko\/20100101 Firefox\/52.0","version":"12.0.2.0"}
{"reqId":"HqCC7AI3aDQiVyYkdeCM","level":1,"time":"2017-09-12T08:30:37+00:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"XUSERX","app":"admin_audit","method":"GET","url":"\/nextcloud\/index.php\/apps\/gallery\/thumbnails?ids=1439923%3B1439929%3B1439934%3B1439940%3B1439945%3B1440120&scale=1&square=0&requesttoken=2i7ZpVECuV1vWvvkQJEVsToal7GuRBYSti84a1HV1Fg%3D%3AgmO%2F0gdM2CheEauPCaNX0lRV8%2FLMCWZChRxzLgO6uR8%3D","message":"Preview accessed: \"\/Upload-Andr\u00e9\/2017\/09\/IMG_20170910_174156.jpg\" (width: \"400\", height: \"200\" crop: \"\", mode: \"fill\")","userAgent":"Mozilla\/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko\/20100101 Firefox\/52.0","version":"12.0.2.0"}
{"reqId":"5PihGkuC6ojTWnMzgVjA","level":1,"time":"2017-09-12T08:30:38+00:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"XUSERX","app":"admin_audit","method":"GET","url":"\/nextcloud\/index.php\/apps\/gallery\/thumbnails?ids=1441312%3B1441120%3B1441125%3B1441307%3B1441302%3B1441295&scale=1&square=0&requesttoken=2i7ZpVECuV1vWvvkQJEVsToal7GuRBYSti84a1HV1Fg%3D%3AgmO%2F0gdM2CheEauPCaNX0lRV8%2FLMCWZChRxzLgO6uR8%3D","message":"Preview accessed: \"\/Upload-Andr\u00e9\/2017\/09\/IMG_20170910_202636.jpg\" (width: \"400\", height: \"200\" crop: \"\", mode: \"fill\")","userAgent":"Mozilla\/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko\/20100101 Firefox\/52.0","version":"12.0.2.0"}
{"reqId":"5PihGkuC6ojTWnMzgVjA","level":1,"time":"2017-09-12T08:30:38+00:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"XUSERX","app":"admin_audit","method":"GET","url":"\/nextcloud\/index.php\/apps\/gallery\/thumbnails?ids=1441312%3B1441120%3B1441125%3B1441307%3B1441302%3B1441295&scale=1&square=0&requesttoken=2i7ZpVECuV1vWvvkQJEVsToal7GuRBYSti84a1HV1Fg%3D%3AgmO%2F0gdM2CheEauPCaNX0lRV8%2FLMCWZChRxzLgO6uR8%3D","message":"Preview accessed: \"\/Upload-Andr\u00e9\/2017\/09\/IMG_20170910_202641.jpg\" (width: \"400\", height: \"200\" crop: \"\", mode: \"fill\")","userAgent":"Mozilla\/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko\/20100101 Firefox\/52.0","version":"12.0.2.0"}
{"reqId":"5PihGkuC6ojTWnMzgVjA","level":1,"time":"2017-09-12T08:30:38+00:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"XUSERX","app":"admin_audit","method":"GET","url":"\/nextcloud\/index.php\/apps\/gallery\/thumbnails?ids=1441312%3B1441120%3B1441125%3B1441307%3B1441302%3B1441295&scale=1&square=0&requesttoken=2i7ZpVECuV1vWvvkQJEVsToal7GuRBYSti84a1HV1Fg%3D%3AgmO%2F0gdM2CheEauPCaNX0lRV8%2FLMCWZChRxzLgO6uR8%3D","message":"Preview accessed: \"\/Upload-Andr\u00e9\/2017\/09\/IMG_20170910_202649.jpg\" (width: \"400\", height: \"200\" crop: \"\", mode: \"fill\")","userAgent":"Mozilla\/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko\/20100101 Firefox\/52.0","version":"12.0.2.0"}
{"reqId":"5PihGkuC6ojTWnMzgVjA","level":1,"time":"2017-09-12T08:30:38+00:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"XUSERX","app":"admin_audit","method":"GET","url":"\/nextcloud\/index.php\/apps\/gallery\/thumbnails?ids=1441312%3B1441120%3B1441125%3B1441307%3B1441302%3B1441295&scale=1&square=0&requesttoken=2i7ZpVECuV1vWvvkQJEVsToal7GuRBYSti84a1HV1Fg%3D%3AgmO%2F0gdM2CheEauPCaNX0lRV8%2FLMCWZChRxzLgO6uR8%3D","message":"Preview accessed: \"\/Upload-Andr\u00e9\/2017\/09\/IMG_20170910_202658.jpg\" (width: \"400\", height: \"200\" crop: \"\", mode: \"fill\")","userAgent":"Mozilla\/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko\/20100101 Firefox\/52.0","version":"12.0.2.0"}
{"reqId":"5PihGkuC6ojTWnMzgVjA","level":1,"time":"2017-09-12T08:30:38+00:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"XUSERX","app":"admin_audit","method":"GET","url":"\/nextcloud\/index.php\/apps\/gallery\/thumbnails?ids=1441312%3B1441120%3B1441125%3B1441307%3B1441302%3B1441295&scale=1&square=0&requesttoken=2i7ZpVECuV1vWvvkQJEVsToal7GuRBYSti84a1HV1Fg%3D%3AgmO%2F0gdM2CheEauPCaNX0lRV8%2FLMCWZChRxzLgO6uR8%3D","message":"Preview accessed: \"\/Upload-Andr\u00e9\/2017\/09\/IMG_20170910_202702.jpg\" (width: \"400\", height: \"200\" crop: \"\", mode: \"fill\")","userAgent":"Mozilla\/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko\/20100101 Firefox\/52.0","version":"12.0.2.0"}
{"reqId":"5PihGkuC6ojTWnMzgVjA","level":1,"time":"2017-09-12T08:30:38+00:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"XUSERX","app":"admin_audit","method":"GET","url":"\/nextcloud\/index.php\/apps\/gallery\/thumbnails?ids=1441312%3B1441120%3B1441125%3B1441307%3B1441302%3B1441295&scale=1&square=0&requesttoken=2i7ZpVECuV1vWvvkQJEVsToal7GuRBYSti84a1HV1Fg%3D%3AgmO%2F0gdM2CheEauPCaNX0lRV8%2FLMCWZChRxzLgO6uR8%3D","message":"Preview accessed: \"\/Upload-Andr\u00e9\/2017\/09\/IMG_20170910_202706.jpg\" (width: \"400\", height: \"200\" crop: \"\", mode: \"fill\")","userAgent":"Mozilla\/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko\/20100101 Firefox\/52.0","version":"12.0.2.0"}
{"reqId":"ZSd0l8u4E6cQfdL0kPTz","level":1,"time":"2017-09-12T08:30:38+00:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"XUSERX","app":"admin_audit","method":"GET","url":"\/nextcloud\/index.php\/apps\/gallery\/thumbnails?ids=1441173%3B1441199%3B1441204%3B1441290%3B1441210%3B1441285&scale=1&square=0&requesttoken=2i7ZpVECuV1vWvvkQJEVsToal7GuRBYSti84a1HV1Fg%3D%3AgmO%2F0gdM2CheEauPCaNX0lRV8%2FLMCWZChRxzLgO6uR8%3D","message":"Preview accessed: \"\/Upload-Andr\u00e9\/2017\/09\/IMG_20170910_202714.jpg\" (width: \"400\", height: \"200\" crop: \"\", mode: \"fill\")","userAgent":"Mozilla\/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko\/20100101 Firefox\/52.0","version":"12.0.2.0"}
{"reqId":"ZSd0l8u4E6cQfdL0kPTz","level":1,"time":"2017-09-12T08:30:38+00:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"XUSERX","app":"admin_audit","method":"GET","url":"\/nextcloud\/index.php\/apps\/gallery\/thumbnails?ids=1441173%3B1441199%3B1441204%3B1441290%3B1441210%3B1441285&scale=1&square=0&requesttoken=2i7ZpVECuV1vWvvkQJEVsToal7GuRBYSti84a1HV1Fg%3D%3AgmO%2F0gdM2CheEauPCaNX0lRV8%2FLMCWZChRxzLgO6uR8%3D","message":"Preview accessed: \"\/Upload-Andr\u00e9\/2017\/09\/IMG_20170910_205831.jpg\" (width: \"400\", height: \"200\" crop: \"\", mode: \"fill\")","userAgent":"Mozilla\/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko\/20100101 Firefox\/52.0","version":"12.0.2.0"}
{"reqId":"ZSd0l8u4E6cQfdL0kPTz","level":1,"time":"2017-09-12T08:30:38+00:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"XUSERX","app":"admin_audit","method":"GET","url":"\/nextcloud\/index.php\/apps\/gallery\/thumbnails?ids=1441173%3B1441199%3B1441204%3B1441290%3B1441210%3B1441285&scale=1&square=0&requesttoken=2i7ZpVECuV1vWvvkQJEVsToal7GuRBYSti84a1HV1Fg%3D%3AgmO%2F0gdM2CheEauPCaNX0lRV8%2FLMCWZChRxzLgO6uR8%3D","message":"Preview accessed: \"\/Upload-Andr\u00e9\/2017\/09\/IMG_20170910_205842.jpg\" (width: \"400\", height: \"200\" crop: \"\", mode: \"fill\")","userAgent":"Mozilla\/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko\/20100101 Firefox\/52.0","version":"12.0.2.0"}
{"reqId":"ZSd0l8u4E6cQfdL0kPTz","level":1,"time":"2017-09-12T08:30:38+00:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"XUSERX","app":"admin_audit","method":"GET","url":"\/nextcloud\/index.php\/apps\/gallery\/thumbnails?ids=1441173%3B1441199%3B1441204%3B1441290%3B1441210%3B1441285&scale=1&square=0&requesttoken=2i7ZpVECuV1vWvvkQJEVsToal7GuRBYSti84a1HV1Fg%3D%3AgmO%2F0gdM2CheEauPCaNX0lRV8%2FLMCWZChRxzLgO6uR8%3D","message":"Preview accessed: \"\/Upload-Andr\u00e9\/2017\/09\/IMG_20170910_205853.jpg\" (width: \"400\", height: \"200\" crop: \"\", mode: \"fill\")","userAgent":"Mozilla\/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko\/20100101 Firefox\/52.0","version":"12.0.2.0"}
{"reqId":"ZSd0l8u4E6cQfdL0kPTz","level":1,"time":"2017-09-12T08:30:38+00:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"XUSERX","app":"admin_audit","method":"GET","url":"\/nextcloud\/index.php\/apps\/gallery\/thumbnails?ids=1441173%3B1441199%3B1441204%3B1441290%3B1441210%3B1441285&scale=1&square=0&requesttoken=2i7ZpVECuV1vWvvkQJEVsToal7GuRBYSti84a1HV1Fg%3D%3AgmO%2F0gdM2CheEauPCaNX0lRV8%2FLMCWZChRxzLgO6uR8%3D","message":"Preview accessed: \"\/Upload-Andr\u00e9\/2017\/09\/IMG_20170910_205917.jpg\" (width: \"400\", height: \"200\" crop: \"\", mode: \"fill\")","userAgent":"Mozilla\/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko\/20100101 Firefox\/52.0","version":"12.0.2.0"}
{"reqId":"ZSd0l8u4E6cQfdL0kPTz","level":1,"time":"2017-09-12T08:30:38+00:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"XUSERX","app":"admin_audit","method":"GET","url":"\/nextcloud\/index.php\/apps\/gallery\/thumbnails?ids=1441173%3B1441199%3B1441204%3B1441290%3B1441210%3B1441285&scale=1&square=0&requesttoken=2i7ZpVECuV1vWvvkQJEVsToal7GuRBYSti84a1HV1Fg%3D%3AgmO%2F0gdM2CheEauPCaNX0lRV8%2FLMCWZChRxzLgO6uR8%3D","message":"Preview accessed: \"\/Upload-Andr\u00e9\/2017\/09\/IMG_20170910_205921.jpg\" (width: \"400\", height: \"200\" crop: \"\", mode: \"fill\")","userAgent":"Mozilla\/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko\/20100101 Firefox\/52.0","version":"12.0.2.0"}
{"reqId":"Y9ANR5kXtEeP71RPLM6s","level":1,"time":"2017-09-12T08:30:39+00:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"XUSERX","app":"admin_audit","method":"GET","url":"\/nextcloud\/index.php\/apps\/gallery\/thumbnails?ids=1441279%3B1442424%3B1442430%3B1442436&scale=1&square=0&requesttoken=2i7ZpVECuV1vWvvkQJEVsToal7GuRBYSti84a1HV1Fg%3D%3AgmO%2F0gdM2CheEauPCaNX0lRV8%2FLMCWZChRxzLgO6uR8%3D","message":"Preview accessed: \"\/Upload-Andr\u00e9\/2017\/09\/IMG_20170910_205924.jpg\" (width: \"400\", height: \"200\" crop: \"\", mode: \"fill\")","userAgent":"Mozilla\/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko\/20100101 Firefox\/52.0","version":"12.0.2.0"}
{"reqId":"Y9ANR5kXtEeP71RPLM6s","level":1,"time":"2017-09-12T08:30:39+00:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"XUSERX","app":"admin_audit","method":"GET","url":"\/nextcloud\/index.php\/apps\/gallery\/thumbnails?ids=1441279%3B1442424%3B1442430%3B1442436&scale=1&square=0&requesttoken=2i7ZpVECuV1vWvvkQJEVsToal7GuRBYSti84a1HV1Fg%3D%3AgmO%2F0gdM2CheEauPCaNX0lRV8%2FLMCWZChRxzLgO6uR8%3D","message":"Preview accessed: \"\/Upload-Andr\u00e9\/2017\/09\/IMG_20170911_183922.jpg\" (width: \"400\", height: \"200\" crop: \"\", mode: \"fill\")","userAgent":"Mozilla\/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko\/20100101 Firefox\/52.0","version":"12.0.2.0"}
{"reqId":"Y9ANR5kXtEeP71RPLM6s","level":1,"time":"2017-09-12T08:30:39+00:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"XUSERX","app":"admin_audit","method":"GET","url":"\/nextcloud\/index.php\/apps\/gallery\/thumbnails?ids=1441279%3B1442424%3B1442430%3B1442436&scale=1&square=0&requesttoken=2i7ZpVECuV1vWvvkQJEVsToal7GuRBYSti84a1HV1Fg%3D%3AgmO%2F0gdM2CheEauPCaNX0lRV8%2FLMCWZChRxzLgO6uR8%3D","message":"Preview accessed: \"\/Upload-Andr\u00e9\/2017\/09\/IMG_20170911_183943.jpg\" (width: \"400\", height: \"200\" crop: \"\", mode: \"fill\")","userAgent":"Mozilla\/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko\/20100101 Firefox\/52.0","version":"12.0.2.0"}
{"reqId":"Y9ANR5kXtEeP71RPLM6s","level":1,"time":"2017-09-12T08:30:39+00:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"XUSERX","app":"admin_audit","method":"GET","url":"\/nextcloud\/index.php\/apps\/gallery\/thumbnails?ids=1441279%3B1442424%3B1442430%3B1442436&scale=1&square=0&requesttoken=2i7ZpVECuV1vWvvkQJEVsToal7GuRBYSti84a1HV1Fg%3D%3AgmO%2F0gdM2CheEauPCaNX0lRV8%2FLMCWZChRxzLgO6uR8%3D","message":"Preview accessed: \"\/Upload-Andr\u00e9\/2017\/09\/IMG_20170911_183949.jpg\" (width: \"400\", height: \"200\" crop: \"\", mode: \"fill\")","userAgent":"Mozilla\/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko\/20100101 Firefox\/52.0","version":"12.0.2.0"}

Browser log

Browser log

This is the log when all goes smoothly:

GET 
XHR 
https://removed.fqdn.org/nextcloud/index.php/apps/gallery/files/list [HTTP/1.1 200 Connection established 290ms]
GET 
XHR 
https://removed.fqdn.org/nextcloud/index.php/apps/gallery/files/list [0ms]
GET 
XHR 
https://removed.fqdn.org/nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications [HTTP/1.1 200 Connection established 428ms]
GET 
XHR 
https://removed.fqdn.org/nextcloud/index.php/apps/gallery/files/list [HTTP/1.1 200 Connection established 586ms]
GET 
XHR 
https://removed.fqdn.org/nextcloud/index.php/apps/gallery/files/list [HTTP/1.1 200 OK 176ms]
GET 
XHR 
https://removed.fqdn.org/nextcloud/index.php/apps/gallery/files/list [HTTP/1.1 200 OK 142ms]
GET 
XHR 
https://removed.fqdn.org/nextcloud/index.php/apps/gallery/files/list [HTTP/1.1 200 Connection established 479ms]
GET 
XHR 
https://removed.fqdn.org/nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications [HTTP/1.1 200 OK 171ms]
GET 
XHR 
https://removed.fqdn.org/nextcloud/index.php/apps/gallery/files/list [HTTP/1.1 200 Connection established 567ms]
GET 
XHR 
https://removed.fqdn.org/nextcloud/index.php/apps/gallery/thumbnails [HTTP/1.1 200 OK 233ms]
GET 
XHR 
https://removed.fqdn.org/nextcloud/index.php/apps/gallery/thumbnails [HTTP/1.1 200 OK 598ms]
GET 
XHR 
https://removed.fqdn.org/nextcloud/index.php/apps/gallery/thumbnails [HTTP/1.1 200 Connection established 1044ms]
GET 
XHR 
https://removed.fqdn.org/nextcloud/index.php/apps/gallery/thumbnails [HTTP/1.1 200 OK 1144ms]
GET 
XHR 
https://removed.fqdn.org/nextcloud/index.php/apps/gallery/thumbnails [HTTP/1.1 200 OK 1082ms]
GET 
XHR 
https://removed.fqdn.org/nextcloud/index.php/apps/gallery/thumbnails [HTTP/1.1 200 OK 483ms]
GET 
XHR 
https://removed.fqdn.org/nextcloud/index.php/apps/gallery/thumbnails [HTTP/1.1 200 OK 543ms]
GET 
XHR 
https://removed.fqdn.org/nextcloud/index.php/apps/gallery/thumbnails [HTTP/1.1 200 OK 743ms]
GET 
XHR 
https://removed.fqdn.org/nextcloud/index.php/apps/gallery/thumbnails [HTTP/1.1 200 OK 835ms]
GET 
XHR 
https://removed.fqdn.org/nextcloud/index.php/apps/gallery/thumbnails [HTTP/1.1 200 OK 534ms]
GET 
XHR 
https://removed.fqdn.org/nextcloud/index.php/apps/gallery/thumbnails [HTTP/1.1 200 OK 573ms]
GET 
XHR 
https://removed.fqdn.org/nextcloud/index.php/apps/gallery/thumbnails [HTTP/1.1 200 OK 620ms]
GET 
XHR 
https://removed.fqdn.org/nextcloud/index.php/apps/gallery/thumbnails [HTTP/1.1 200 OK 526ms]
GET 
XHR 
https://removed.fqdn.org/nextcloud/index.php/apps/gallery/thumbnails [HTTP/1.1 200 OK 665ms]
GET 
XHR 
https://removed.fqdn.org/nextcloud/index.php/apps/gallery/thumbnails [HTTP/1.1 200 OK 519ms]
GET 
XHR 
https://removed.fqdn.org/nextcloud/index.php/apps/gallery/thumbnails [HTTP/1.1 200 OK 316ms]
GET 
XHR 
https://removed.fqdn.org/nextcloud/index.php/apps/gallery/thumbnails [HTTP/1.1 200 OK 425ms]
GET 
XHR 
https://removed.fqdn.org/nextcloud/index.php/apps/gallery/thumbnails [HTTP/1.1 200 OK 328ms]

This is the log when displaying images is very slow.

GET 
XHR 
https://removed.fqdn.org/nextcloud/index.php/apps/gallery/files/list [HTTP/1.1 200 Connection established 1717ms]
GET 
XHR 
https://removed.fqdn.org/nextcloud/index.php/apps/gallery/thumbnails [HTTP/1.1 200 OK 5828ms]
GET 
XHR 
https://removed.fqdn.org/nextcloud/index.php/apps/gallery/files/list [HTTP/1.1 200 Connection established 660ms]
GET 
XHR 
https://removed.fqdn.org/nextcloud/index.php/apps/gallery/files/list [HTTP/1.1 200 OK 312ms]
GET 
XHR 
https://removed.fqdn.org/nextcloud/index.php/apps/gallery/thumbnails [HTTP/1.1 200 OK 5466ms]
GET 
XHR 
https://removed.fqdn.org/nextcloud/index.php/apps/gallery/thumbnails [HTTP/1.1 200 Connection established 750ms]
GET 
XHR 
https://removed.fqdn.org/nextcloud/index.php/apps/gallery/thumbnails [HTTP/1.1 200 Connection established 899ms]
GET 
XHR 
https://removed.fqdn.org/nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications [HTTP/1.1 200 Connection established 376ms]
GET 
XHR 
https://removed.fqdn.org/nextcloud/index.php/apps/gallery/thumbnails [HTTP/1.1 200 OK 5656ms]
GET 
XHR 
https://removed.fqdn.org/nextcloud/index.php/apps/gallery/thumbnails [HTTP/1.1 200 OK 5467ms]
GET 
XHR 
https://removed.fqdn.org/nextcloud/index.php/apps/gallery/thumbnails [HTTP/1.1 200 Connection established 6012ms]
GET 
XHR 
https://removed.fqdn.org/nextcloud/index.php/apps/gallery/thumbnails [HTTP/1.1 200 Connection established 5928ms]
GET 
XHR 
https://removed.fqdn.org/nextcloud/index.php/apps/gallery/thumbnails [HTTP/1.1 200 Connection established 6247ms]
GET 
XHR 
https://removed.fqdn.org/nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications [HTTP/1.1 200 Connection established 364ms]
GET 
XHR 
https://removed.fqdn.org/nextcloud/index.php/apps/gallery/thumbnails [HTTP/1.1 200 OK 5376ms]
GET 
XHR 
https://removed.fqdn.org/nextcloud/index.php/apps/gallery/thumbnails [HTTP/1.1 200 Connection established 6069ms]
GET 
XHR 
https://removed.fqdn.org/nextcloud/index.php/apps/gallery/thumbnails [HTTP/1.1 200 Connection established 6303ms]
GET 
XHR 
https://removed.fqdn.org/nextcloud/index.php/apps/gallery/thumbnails [HTTP/1.1 200 Connection established 5935ms]
GET 
XHR 
https://removed.fqdn.org/nextcloud/index.php/apps/gallery/thumbnails [HTTP/1.1 200 Connection established 6593ms]
GET 
XHR 
https://removed.fqdn.org/nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications [HTTP/1.1 200 Connection established 560ms]
GET 
XHR 
https://removed.fqdn.org/nextcloud/index.php/apps/gallery/thumbnails [HTTP/1.1 200 Connection established 6069ms]
GET 
XHR 
https://removed.fqdn.org/nextcloud/index.php/apps/gallery/thumbnails [HTTP/1.1 200 Connection established 5955ms]
GET 
XHR 
https://removed.fqdn.org/nextcloud/index.php/apps/gallery/thumbnails [HTTP/1.1 200 Connection established 5836ms]
GET 
XHR 
https://removed.fqdn.org/nextcloud/index.php/apps/gallery/thumbnails [HTTP/1.1 200 Connection established 5910ms]
GET 
XHR 
https://removed.fqdn.org/nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications [HTTP/1.1 200 Connection established 464ms]
GET 
XHR 
https://removed.fqdn.org/nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications [HTTP/1.1 200 Connection established 642ms]

Rayn0r avatar Sep 12 '17 09:09 Rayn0r

@icewind1991 @rullzer Any idea?

MorrisJobke avatar Sep 12 '17 14:09 MorrisJobke

I can only reproduce the spike when opening a new folder, then images are constantly loading (the two 2,5k spikes are when I browsed into a folder):

bildschirmfoto 2017-09-12 um 16 08 35

cc @oparoz

MorrisJobke avatar Sep 12 '17 14:09 MorrisJobke

I monitored the locks written to redis via redis-cli monitor |tee /tmp/redis.monitor while opening a directory containing 6 images. As long as things go smootly, the log file is about 44kb with 349 lines. As soon as things go slowly, I get a 20MB logfile containing 177592 lines. The content looks like this:

1505243139.186769 [0 unix:/var/run/redis/redis.sock] "MULTI"
1505243139.186784 [0 unix:/var/run/redis/redis.sock] "DEL" "eaba4e9bad0f59c30faedd832473ea0f/lockfiles/a85519bfea603910964ec9de21d7a55f"
1505243139.186788 [0 unix:/var/run/redis/redis.sock] "EXEC"
1505243139.192703 [0 unix:/var/run/redis/redis.sock] "WATCH" "eaba4e9bad0f59c30faedd832473ea0f/lockfiles/f3ef5425afab8443edc9df9af3025cd6"
1505243139.192721 [0 unix:/var/run/redis/redis.sock] "GET" "eaba4e9bad0f59c30faedd832473ea0f/lockfiles/f3ef5425afab8443edc9df9af3025cd6"
1505243139.192736 [0 unix:/var/run/redis/redis.sock] "UNWATCH"
1505243139.192746 [0 unix:/var/run/redis/redis.sock] "EXISTS" "eaba4e9bad0f59c30faedd832473ea0f/lockfiles/f3ef5425afab8443edc9df9af3025cd6"
1505243139.192759 [0 unix:/var/run/redis/redis.sock] "DECRBY" "eaba4e9bad0f59c30faedd832473ea0f/lockfiles/f3ef5425afab8443edc9df9af3025cd6" "1"
1505243139.192776 [0 unix:/var/run/redis/redis.sock] "WATCH" "eaba4e9bad0f59c30faedd832473ea0f/lockfiles/b1a9ebecb4c32b5c4f9e3b47dadb8cc2"
1505243139.192788 [0 unix:/var/run/redis/redis.sock] "GET" "eaba4e9bad0f59c30faedd832473ea0f/lockfiles/b1a9ebecb4c32b5c4f9e3b47dadb8cc2"
1505243139.192799 [0 unix:/var/run/redis/redis.sock] "MULTI"
1505243139.192815 [0 unix:/var/run/redis/redis.sock] "DEL" "eaba4e9bad0f59c30faedd832473ea0f/lockfiles/b1a9ebecb4c32b5c4f9e3b47dadb8cc2"
1505243139.192820 [0 unix:/var/run/redis/redis.sock] "EXEC"
1505243139.193893 [0 unix:/var/run/redis/redis.sock] "GET" "eaba4e9bad0f59c30faedd832473ea0f/AutoloaderOC_Image"

Can I derive anything from the numbers on the "lockfiles" lines? What do the 32 characters stand for? Is it a hash, or an md5sum of the file being locked?

Rayn0r avatar Sep 12 '17 19:09 Rayn0r

I dumped the mysql Database and grepped for an arbitrary number from the redis monitor log. It turned out that the 32 char numbers send to redis correlate with the contents of the oc_file_locks table. There are 26041 entries in the oc_file_locks table. Almost all of them are in the 20MB redis monitor log. Only 744 files from oc_file_locks are not contained in the redis monitor log. The ttl for the entries in the oc_file_locks table range from 1505162694 to 1505164581. (Which was last night.) I truncated the oc_file_locks table just to be sure and reloaded the page. The monitor log still turns out at 20MB. oc_file_locks remained empty after the test.

How can I find out which files belong to each hash?

Rayn0r avatar Sep 12 '17 20:09 Rayn0r

Is it possible that the /appdata_ocwix4kf1ezt/preview folder still gets locked for some reason? There are 25273 folder inside this path which is close to the number of files sent to redis (25298). I know about commit https://github.com/nextcloud/server/commit/b9b88aa666ba8420311b6f6f24b42aadd03eed04 and applied it. But the number of locks still remains high.

Rayn0r avatar Sep 13 '17 08:09 Rayn0r

I think I found the culprit. Scanner.php under lib/private/Files/Cache issues a lot of locks and they are all for appdata_... This patch seems to solve the problem for the time being:

diff --git a/lib/private/Files/Cache/Scanner.php b/lib/private/Files/Cache/Scanner.php
index 3245af0..c1b5f0b 100644
--- a/lib/private/Files/Cache/Scanner.php
+++ b/lib/private/Files/Cache/Scanner.php
@@ -138,7 +138,7 @@ class Scanner extends BasicEmitter implements IScanner {
                        }
                }
                // only proceed if $file is not a partial file nor a blacklisted file
-               if (!self::isPartialFile($file) and !Filesystem::isFileBlacklisted($file)) {
+               if (!self::isPartialFile($file) and !Filesystem::isFileBlacklisted($file) and strpos($file, 'appdata_')) {

                        //acquire a lock
                        if ($lock) {
@@ -327,24 +327,27 @@ class Scanner extends BasicEmitter implements IScanner {
                if ($reuse === -1) {
                        $reuse = ($recursive === self::SCAN_SHALLOW) ? self::REUSE_ETAG | self::REUSE_SIZE : self::REUSE_ETAG;
                }
-               if ($lock) {
-                       if ($this->storage->instanceOfStorage('\OCP\Files\Storage\ILockingStorage')) {
-                               $this->storage->acquireLock('scanner::' . $path, ILockingProvider::LOCK_EXCLUSIVE, $this->lockingProvider);
-                               $this->storage->acquireLock($path, ILockingProvider::LOCK_SHARED, $this->lockingProvider);
-                       }
-               }
-               $data = $this->scanFile($path, $reuse, -1, null, $lock);
-               if ($data and $data['mimetype'] === 'httpd/unix-directory') {
-                       $size = $this->scanChildren($path, $recursive, $reuse, $data['fileid'], $lock);
-                       $data['size'] = $size;
-               }
-               if ($lock) {
-                       if ($this->storage->instanceOfStorage('\OCP\Files\Storage\ILockingStorage')) {
-                               $this->storage->releaseLock($path, ILockingProvider::LOCK_SHARED, $this->lockingProvider);
-                               $this->storage->releaseLock('scanner::' . $path, ILockingProvider::LOCK_EXCLUSIVE, $this->lockingProvider);
-                       }
-               }
-               return $data;
+        if (strpos($path, 'appdata_')) {
+               if ($lock) {
+                       if ($this->storage->instanceOfStorage('\OCP\Files\Storage\ILockingStorage')) {
+                               $this->storage->acquireLock('scanner::' . $path, ILockingProvider::LOCK_EXCLUSIVE, $this->lockingProvider);
+                               $this->storage->acquireLock($path, ILockingProvider::LOCK_SHARED, $this->lockingProvider);
+                       }
+               }
+               $data = $this->scanFile($path, $reuse, -1, null, $lock);
+               if ($data and $data['mimetype'] === 'httpd/unix-directory') {
+                       $size = $this->scanChildren($path, $recursive, $reuse, $data['fileid'], $lock);
+                       $data['size'] = $size;
+               }
+               if ($lock) {
+                       if ($this->storage->instanceOfStorage('\OCP\Files\Storage\ILockingStorage')) {
+                               $this->storage->releaseLock($path, ILockingProvider::LOCK_SHARED, $this->lockingProvider);
+                               $this->storage->releaseLock('scanner::' . $path, ILockingProvider::LOCK_EXCLUSIVE, $this->lockingProvider);
+                       }
+               }
+               return $data;
+        }
+        return null;

It could lead to problems for files actually containing the string "appdata_", so appending the instance id, would probably be a good idea. Unfortunatley I do not have a clue, how this could be done...

My Nextcloud has never felt so speedy... :-P

Rayn0r avatar Sep 13 '17 10:09 Rayn0r

@icewind1991 Makes sense?

oparoz avatar Sep 13 '17 10:09 oparoz

NO!!!! does not make sense. Locking is there for a reason. And should happen (bad things happen to people that disable file locking)

What doesn't make sense it why this fires off so many requests at the same time.

rullzer avatar Sep 13 '17 12:09 rullzer

@rullzer Then I have 3 questions: Why do locks have to be set on thumbnails that are just being read? Why are locks put on all directories under appdata_$instanceId/preview everytime I chdir into a new directory? Where can I start to investigate question No.2?

I stashed above changes and added a single line for logging:

diff --git a/lib/private/Files/Cache/Scanner.php b/lib/private/Files/Cache/Scanner.php
index 3245af0..30c4e1f 100644
--- a/lib/private/Files/Cache/Scanner.php
+++ b/lib/private/Files/Cache/Scanner.php
@@ -144,6 +144,7 @@ class Scanner extends BasicEmitter implements IScanner {
                        if ($lock) {
                                if ($this->storage->instanceOfStorage('\OCP\Files\Storage\ILockingStorage')) {
                                        $this->storage->acquireLock($file, ILockingProvider::LOCK_SHARED, $this->lockingProvider);
+                    syslog(LOG_INFO,"nextcloud-lock scanner-lock: ".$file);
                                }
                        }

I then clicked only once to enter a directory with 4 subdirectories. When I do awk '/scanner-lock/{print $8}' /var/log/syslog|grep appdata_ocwix4kf1ezt/|sort -u|wc -l I get 25282. Calling find /tank/nextcloud-data/appdata_ocwix4kf1ezt/preview -type d|wc -l I get 25273. Hmm... That was really close...

I tested whats actually being locked despite the preview subfolders:

find /tank/nextcloud-data/appdata_ocwix4kf1ezt/preview -type d> /tmp/preview-folders
awk '/scanner-lock/{print $8}' /var/log/syslog> /tmp/scanner-lock
while read line; do grep -q $line /tmp/preview-folders|| echo $line; done < /tmp/scanner-lock|sort -u

This means, that all folders under preview are being locked, plus those as well:

appdata_ocwix4kf1ezt/appstore
appdata_ocwix4kf1ezt/avatar
appdata_ocwix4kf1ezt/css
appdata_ocwix4kf1ezt/dav-photocache
appdata_ocwix4kf1ezt/identityproof
appdata_ocwix4kf1ezt/js
appdata_ocwix4kf1ezt/preview.test
appdata_ocwix4kf1ezt/richdocuments
appdata_ocwix4kf1ezt/theming

...and those are the 9 directories missing between 25273 and 25282 from above. So basically the root directory under /tank/nextcloud-data/appdata_ocwix4kf1ezt is being locked as well as every directory under /tank/nextcloud-data/appdata_ocwix4kf1ezt/preview...

Rayn0r avatar Sep 13 '17 14:09 Rayn0r

@rullzer One thing I missed to look at. What else got locked besides the appdata_ folder by the scanner? Running grep scanner-lock /var/log/syslog|grep -v appdata_ocwix4kf1ezt produces this output:

Sep 13 15:45:02 server2 php: nextcloud-lock scanner-lock:
Sep 13 15:45:02 server2 php: nextcloud-lock scanner-lock:
Sep 13 15:45:02 server2 php: message repeated 4 times: [ nextcloud-lock scanner-lock:]
Sep 13 16:00:02 server2 php: nextcloud-lock scanner-lock:
Sep 13 16:00:02 server2 php: message repeated 5 times: [ nextcloud-lock scanner-lock:]
Sep 13 16:15:02 server2 php: nextcloud-lock scanner-lock:
Sep 13 16:15:02 server2 php: message repeated 5 times: [ nextcloud-lock scanner-lock:]

There are two things interesting about this output. No other file or folder was being locked. So $file was empty at the time(Why? I do not know...). And the message this time was not sent to syslog via apache2 like all the others, but via php...

Running grep appdata_ocwix4kf1ezt /var/log/syslog|awk '/scanner-lock/{print $5}'|sort -u just shows apache2: sent everything else.

Rayn0r avatar Sep 13 '17 14:09 Rayn0r

Ok so the problem seems to be that the preview folder is being scanned every time previews are loaded

icewind1991 avatar Sep 13 '17 14:09 icewind1991

@Rayn0r to awnser some of your questions:

Thumbnails are not only being read. They are also being writen. If you change a file etc. They will change as well. By not locking race conditions can lead to strange things.

rullzer avatar Sep 13 '17 17:09 rullzer

I'll see if I can debug this locally a bit...

rullzer avatar Sep 13 '17 17:09 rullzer

Mmmm so for some reason you have scans triggered which I don't get locally...

rullzer avatar Sep 13 '17 17:09 rullzer

Where is a good point to start to figure out why this particular path is scanned? Where inside the code can a scan be triggered?

Rayn0r avatar Sep 13 '17 17:09 Rayn0r

@icewind1991 ^^ this is your are of expertise!

rullzer avatar Sep 13 '17 17:09 rullzer

@rullzer sorry for chiming in here, but I am a bit puzzled by:

Thumbnails are not only being read. They are also being writen. If you change a file etc. They will change as well. By not locking race conditions can lead to strange things.

I've been working in the database area for 20 years (7 years in DB2 development) and I know a few things about locking. You only need an exclusive lock, if you write the thumbnail, not for reading it. (There are a few exceptions but none of these apply here.)

I also worked in performance and lock contention is one of the biggest issues in threading where locks are a necessity. However, if locks are applied incorrectly, it screws up everything.

tessus avatar Sep 14 '17 03:09 tessus

Speaking of unnecessary... What would be a valid scenario in which one would have to lock a directory in the appdata_*/preview folder?

Still I can't seem to find the place where public function scanFile($file, $reuseExisting = 0, $parentId = -1, $cacheData = null, $lock = true) is actually called with appdata_* as $file... Any help in this right direction is greatly appreciated.

Rayn0r avatar Sep 14 '17 06:09 Rayn0r

@tessus well we don't do exclusive locks for the reads. However, if previews are also written (because you are browsing a folder with images that don't have previews yet) then we have to write lock to avoid race conditions.

But again. The locking here should not be the issue. Because for a preview you access it should never try to lock the whole content in appdata_. Basically we just (should) treath appdata_ just as normal files.

@Rayn0r best would probabaly be if you could attach a debugger. Or maybe log and exception there. so you get a stack trace.

rullzer avatar Sep 14 '17 07:09 rullzer

I finally managed to get Eclipse running and have xdebug connect to it. I can set breakpoints and even get variable contents. Now the problem remains, that even with Eclipse I don't know how to find the place where scanFile is called from. I can right-click on the function and chose References->Workspace, but this only shows what I found using grep on the command line. I can set a breakpoint on line 133 of Scanner.php, but his only shows the values already passed into the function. I can't seem to find the place where it is called from...

Rayn0r avatar Sep 14 '17 19:09 Rayn0r