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

Out of Memory while requesting a preview for an image exceeding preview_max_dimensions #41346

Open
AgentConDier opened this issue Dec 18, 2024 · 0 comments
Labels

Comments

@AgentConDier
Copy link

Steps to reproduce

  1. Set 'preview_max_dimensions' => '1000x1000'
  2. Upload both attached files to separate folders (to avoid unintentionally requesting previews for both files at the same time)
  3. Try to load the previews for both files
  4. Observe excessive memory usage for test.png, even though both exceed the maximum dimensions and neither preview is actually generated.

Attachments

test.png
test2.png

Expected behaviour

Image dimensions are checked without loading the entire image into memory.

Actual behaviour

Even though the image is not eligible for preview generation, a large amount of memory is consumed. On my instance hosted on a single-board computer, this triggers an oom-kill:

dmesg excerpt
[391183.022359] tailscaled invoked oom-killer: gfp_mask=0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), order=0, oom_score_adj=0
[391183.022383] CPU: 0 PID: 535 Comm: tailscaled Not tainted 6.1.0-27-amd64 #1  Debian 6.1.115-1
[391183.022388] Hardware name: FreeBSD BHYVE/BHYVE, BIOS 14.0 10/17/2021
[391183.022392] Call Trace:
[391183.022398]  <TASK>
[391183.022406]  dump_stack_lvl+0x44/0x5c
[391183.022418]  dump_header+0x4a/0x211
[391183.022425]  oom_kill_process.cold+0xb/0x10
[391183.022430]  out_of_memory+0x1fd/0x4c0
[391183.022438]  __alloc_pages_slowpath.constprop.0+0xc6c/0xe30
[391183.022444]  ? __alloc_pages_slowpath.constprop.0+0xd00/0xe30
[391183.022450]  __alloc_pages+0x305/0x330
[391183.022454]  folio_alloc+0x17/0x50
[391183.022458]  __filemap_get_folio+0x155/0x340
[391183.022465]  filemap_fault+0x139/0x910
[391183.022469]  ? filemap_map_pages+0x153/0x700
[391183.022473]  __do_fault+0x33/0x110
[391183.022480]  do_fault+0x1b9/0x410
[391183.022484]  __handle_mm_fault+0x660/0xfa0
[391183.022491]  handle_mm_fault+0xdb/0x2d0
[391183.022496]  do_user_addr_fault+0x191/0x550
[391183.022504]  exc_page_fault+0x70/0x170
[391183.022509]  asm_exc_page_fault+0x22/0x30
[391183.022516] RIP: 0033:0x41b720
[391183.022531] Code: Unable to access opcode bytes at 0x41b6f6.
[391183.022532] RSP: 002b:000000c000317f50 EFLAGS: 00010213
[391183.022537] RAX: 000000c000055238 RBX: 0000000000000004 RCX: 000163c763455177
[391183.022540] RDX: 000000c000054008 RSI: 0000000000000002 RDI: 0000000001b23718
[391183.022542] RBP: 000000c000317f80 R08: 00000000fffffffe R09: 000000c000055238
[391183.022544] R10: 00007ffde1948080 R11: 0000000000000286 R12: 000000c000317f38
[391183.022546] R13: 0000000000000001 R14: 000000c0002b4000 R15: 0000000000000003
[391183.022552]  </TASK>
[391183.022554] Mem-Info:
[391183.022557] active_anon:154539 inactive_anon:180423 isolated_anon:0
                 active_file:170 inactive_file:12 isolated_file:0
                 unevictable:0 dirty:0 writeback:0
                 slab_reclaimable:5697 slab_unreclaimable:5881
                 mapped:3000 shmem:3037 pagetables:2460
                 sec_pagetables:0 bounce:0
                 kernel_misc_reclaimable:0
                 free:12610 free_pcp:0 free_cma:0
[391183.022565] Node 0 active_anon:618156kB inactive_anon:721692kB active_file:680kB inactive_file:48kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:12000kB dirty:0kB writeback:0kB shmem:12148kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 16384kB writeback_tmp:0kB kernel_stack:2000kB pagetables:9840kB sec_pagetables:0kB all_unreclaimable? yes
[391183.022573] Node 0 DMA free:5952kB boost:0kB min:484kB low:604kB high:724kB reserved_highatomic:0KB active_anon:8884kB inactive_anon:192kB active_file:12kB inactive_file:0kB unevictable:0kB writepending:0kB present:15996kB managed:15360kB mlocked:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB
[391183.022582] lowmem_reserve[]: 0 1377 1377 1377 1377
[391183.022588] Node 0 DMA32 free:44488kB boost:0kB min:44568kB low:55708kB high:66848kB reserved_highatomic:0KB active_anon:609272kB inactive_anon:721164kB active_file:1120kB inactive_file:0kB unevictable:0kB writepending:0kB present:1553516kB managed:1456052kB mlocked:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB
[391183.022596] lowmem_reserve[]: 0 0 0 0 0
[391183.022602] Node 0 DMA: 4*4kB (UM) 2*8kB (ME) 2*16kB (UM) 4*32kB (UME) 2*64kB (ME) 2*128kB (UE) 3*256kB (UE) 3*512kB (UE) 3*1024kB (UME) 0*2048kB 0*4096kB = 5952kB
[391183.022626] Node 0 DMA32: 306*4kB (UME) 438*8kB (UME) 384*16kB (UME) 246*32kB (UME) 103*64kB (UME) 24*128kB (UME) 12*256kB (UME) 4*512kB (ME) 3*1024kB (UME) 0*2048kB 2*4096kB (M) = 44792kB
[391183.022651] Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=1048576kB
[391183.022654] Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=2048kB
[391183.022656] 5235 total pagecache pages
[391183.022658] 2004 pages in swap cache
[391183.022659] Free swap  = 0kB
[391183.022660] Total swap = 999420kB
[391183.022662] 392378 pages RAM
[391183.022663] 0 pages HighMem/MovableOnly
[391183.022664] 24525 pages reserved
[391183.022665] 0 pages hwpoisoned
[391183.022666] Tasks state (memory values in pages):
[391183.022667] [  pid  ]   uid  tgid total_vm      rss pgtables_bytes swapents oom_score_adj name
[391183.022677] [    199]     0   199    32867       67   241664      271          -250 systemd-journal
[391183.022683] [    227]     0   227     6547        3    73728      323         -1000 systemd-udevd
[391183.022689] [    353]   997   353    22521        0    73728      240             0 systemd-timesyn
[391183.022693] [    374]     0   374     1652       22    53248       41             0 cron
[391183.022698] [    375]   100   375     2315       16    57344      142          -900 dbus-daemon
[391183.022702] [    389]     0   389     4302       23    73728      259             0 systemd-logind
[391183.022706] [    390]     0   390   346193    14150   442368    19512             0 tailscaled
[391183.022711] [    403]   103   403    16576      237   118784     1637             0 redis-server
[391183.022715] [    422]     0   422     1468        0    53248       33             0 agetty
[391183.022720] [    423]     0   423     1374        0    45056       31             0 agetty
[391183.022724] [    433]     0   433     3858        0    73728      356         -1000 sshd
[391183.022729] [    505]   102   505   391711     3039   712704    55924             0 mariadbd
[391183.022733] [    513]     0   513    70186       14   274432     2791             0 apache2
[391183.022737] [   4017]     0  4017     2913        0    53248      331             0 nginx
[391183.022741] [   4018]    33  4018     3406        0    65536      447             0 nginx
[391183.022746] [   4019]    33  4019     3402        0    65536      437             0 nginx
[391183.022750] [  78437]    33 78437    73136     2682   327680     3696             0 apache2
[391183.022754] [  78438]    33 78438    91595     2771   339968     4235             0 apache2
[391183.022758] [  78439]    33 78439    73126     3665   327680     3102             0 apache2
[391183.022763] [  78440]    33 78440    72418     1876   327680     3790             0 apache2
[391183.022767] [  78441]    33 78441    73129     2683   327680     3705             0 apache2
[391183.022772] [  81111]    33 81111   654736   313985  4988928   151127             0 apache2
[391183.022777] [  86800]    33 86800    73680     2783   331776     4227             0 apache2
[391183.022782] [  86834]    33 86834    71914     2744   323584     3284             0 apache2
[391183.022786] [  87044]     0 87044     4455        1    73728      399             0 sshd
[391183.022790] [  87047]  1000 87047     4724        2    81920      424           100 systemd
[391183.022795] [  87049]  1000 87049    42198       20    90112      786           100 (sd-pam)
[391183.022799] [  87059]  1000 87059     4495        1    73728      464             0 sshd
[391183.022803] [  87060]  1000 87060     2025        1    57344      363             0 bash
[391183.022807] [  87089]  1000 87089     2502        0    65536      132             0 sudo
[391183.022811] [  87090]  1000 87090     2502        0    57344      130             0 sudo
[391183.022815] [  87091]     0 87091     1435        0    49152       45             0 dmesg
[391183.022819] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/system.slice/apache2.service,task=apache2,pid=81111,uid=33
[391183.022853] Out of memory: Killed process 81111 (apache2) total-vm:2618944kB, anon-rss:1245936kB, file-rss:0kB, shmem-rss:10004kB, UID:33 pgtables:4872kB oom_score_adj:0

Setting preview_max_filesize_image to a low value is not a solution, because image compression may reduce unreasonably large images to a normal size.
As far as I can tell, this behavior is caused by

$image->load($handle);
being called before dimensions are checked. Instead, something like getimagesize() should be used, which is able to check image dimensions without decoding the entire image.

Server configuration

Operating system:
Debian Bookworm 12.8
Kernel 6.1.115-1 (x86_64)

Web server:
apache2 2.4.62-1~deb12u2

Database:
mariadb 1:10.11.6-0+deb12u1

PHP version:
libapache2-mod-php7.4 1:7.4.33-15+0~20240927.95+debian12~1.gbp1b3cac

ownCloud version: (see ownCloud admin page)
10.15.0.2

Updated from an older ownCloud or fresh install:
Updated from an older version using the manual process

Where did you install ownCloud from:
Tarball obtained from owncloud.com

Signing status (ownCloud 9.0 and above):

No errors have been found.

The content of config/config.php:

config report
{
    "system": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": {
            "2": "owncloud.sphinx-universe.ts.net"
        },
        "datadirectory": "\/mnt\/data\/owncloud",
        "overwrite.cli.url": "https:\/\/owncloud.sphinx-universe.ts.net\/",
        "htaccess.RewriteBase": "\/",
        "dbtype": "mysql",
        "version": "10.15.0.2",
        "dbname": "owncloud",
        "dbhost": "localhost",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "logtimezone": "UTC",
        "installed": true,
        "instanceid": "oc1guuyfjzhc",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_smtpsecure": "tls",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpauth": 1,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "maintenance": false,
        "filelocking.enabled": true,
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "memcache.local": "\\OC\\Memcache\\Redis",
        "preview_max_dimensions": "4512x3000",
        "preview_max_filesize_image": 5,
        "redis": {
            "host": "\/run\/redis\/redis-server.sock",
            "port": 0,
            "password": "***REMOVED SENSITIVE VALUE***",
            "dbindex": 0
        },
        "loglevel": 2,
        "allow_user_to_change_display_name": true,
        "allow_user_to_change_mail_address": true,
        "check_for_working_wellknown_setup": true,
        "theme": "",
        "config_is_read_only": true
    }
}

List of activated apps:

app:list output
Enabled:
  - activity:
    - Version: 2.7.2
    - Path: /var/www/owncloud/apps/activity
  - brute_force_protection:
    - Version: 1.3.0
    - Path: /var/www/owncloud/apps/brute_force_protection
  - checksum:
    - Version: 0.3.6
    - Path: /var/www/owncloud/apps/checksum
  - comments:
    - Version: 0.3.0
    - Path: /var/www/owncloud/apps/comments
  - configreport:
    - Version: 0.3.0
    - Path: /var/www/owncloud/apps/configreport
  - dav:
    - Version: 0.7.0
    - Path: /var/www/owncloud/apps/dav
  - diagnostics:
    - Version: 0.2.1
    - Path: /var/www/owncloud/apps/diagnostics
  - federatedfilesharing:
    - Version: 0.5.0
    - Path: /var/www/owncloud/apps/federatedfilesharing
  - federation:
    - Version: 0.1.0
    - Path: /var/www/owncloud/apps/federation
  - files:
    - Version: 1.6.0
    - Path: /var/www/owncloud/apps/files
  - files_clipboard:
    - Version: 1.0.3
    - Path: /var/www/owncloud/apps/files_clipboard
  - files_mediaviewer:
    - Version: 1.0.5
    - Path: /var/www/owncloud/apps/files_mediaviewer
  - files_pdfviewer:
    - Version: 1.0.2
    - Path: /var/www/owncloud/apps/files_pdfviewer
  - files_sharing:
    - Version: 0.14.0
    - Path: /var/www/owncloud/apps/files_sharing
  - files_texteditor:
    - Version: 2.6.1
    - Path: /var/www/owncloud/apps/files_texteditor
  - files_trashbin:
    - Version: 0.9.1
    - Path: /var/www/owncloud/apps/files_trashbin
  - files_versions:
    - Version: 1.3.0
    - Path: /var/www/owncloud/apps/files_versions
  - firstrunwizard:
    - Version: 1.3.0
    - Path: /var/www/owncloud/apps/firstrunwizard
  - market:
    - Version: 0.9.0
    - Path: /var/www/owncloud/apps/market
  - notifications:
    - Version: 0.6.0
    - Path: /var/www/owncloud/apps/notifications
  - twofactor_backup_codes:
    - Version: 0.1.0
    - Path: /var/www/owncloud/apps/twofactor_backup_codes
  - twofactor_totp:
    - Version: 0.9.0
    - Path: /var/www/owncloud/apps/twofactor_totp
  - updatenotification:
    - Version: 0.2.1
    - Path: /var/www/owncloud/apps/updatenotification
Disabled:
  - admin_audit:
    - Path: /var/www/owncloud/apps/admin_audit
  - announcementcenter:
    - Path: /var/www/owncloud/apps/announcementcenter
  - customgroups:
    - Path: /var/www/owncloud/apps/customgroups
  - drawio:
    - Path: /var/www/owncloud/apps/drawio
  - encryption:
    - Path: /var/www/owncloud/apps/encryption
  - enterprise_key:
    - Path: /var/www/owncloud/apps/enterprise_key
  - external:
    - Path: /var/www/owncloud/apps/external
  - files_antivirus:
    - Path: /var/www/owncloud/apps/files_antivirus
  - files_classifier:
    - Path: /var/www/owncloud/apps/files_classifier
  - files_external:
    - Path: /var/www/owncloud/apps/files_external
  - files_external_dropbox:
    - Path: /var/www/owncloud/apps/files_external_dropbox
  - files_external_ftp:
    - Path: /var/www/owncloud/apps/files_external_ftp
  - files_ldap_home:
    - Path: /var/www/owncloud/apps/files_ldap_home
  - files_lifecycle:
    - Path: /var/www/owncloud/apps/files_lifecycle
  - files_primary_s3:
    - Path: /var/www/owncloud/apps/files_primary_s3
  - firewall:
    - Path: /var/www/owncloud/apps/firewall
  - graphapi:
    - Path: /var/www/owncloud/apps/graphapi
  - guests:
    - Path: /var/www/owncloud/apps/guests
  - impersonate:
    - Path: /var/www/owncloud/apps/impersonate
  - kerberos:
    - Path: /var/www/owncloud/apps/kerberos
  - metrics:
    - Path: /var/www/owncloud/apps/metrics
  - oauth2:
    - Path: /var/www/owncloud/apps/oauth2
  - openidconnect:
    - Path: /var/www/owncloud/apps/openidconnect
  - password_policy:
    - Path: /var/www/owncloud/apps/password_policy
  - provisioning_api:
    - Path: /var/www/owncloud/apps/provisioning_api
  - ransomware_protection:
    - Path: /var/www/owncloud/apps/ransomware_protection
  - sharepoint:
    - Path: /var/www/owncloud/apps/sharepoint
  - systemtags:
    - Path: /var/www/owncloud/apps/systemtags
  - systemtags_management:
    - Path: /var/www/owncloud/apps/systemtags_management
  - templateeditor:
    - Path: /var/www/owncloud/apps/templateeditor
  - theme-enterprise:
    - Path: /var/www/owncloud/apps/theme-enterprise
  - user_external:
    - Path: /var/www/owncloud/apps/user_external
  - user_ldap:
    - Path: /var/www/owncloud/apps/user_ldap
  - user_shibboleth:
    - Path: /var/www/owncloud/apps/user_shibboleth
  - web:
    - Path: /var/www/owncloud/apps/web
  - windows_network_drive:
    - Path: /var/www/owncloud/apps/windows_network_drive
  - wopi:
    - Path: /var/www/owncloud/apps/wopi
  - workflow:
    - Path: /var/www/owncloud/apps/workflow

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: none

Client configuration

Browser:
Firefox 132.0.1

Operating system:
MX-23.4 / Xfce 4.18.1 / Debian Bookworm 12.8

Logs

Web server error log

[Wed Dec 18 00:00:03.116344 2024] [mpm_prefork:notice] [pid 513:tid 513] AH00163: Apache/2.4.62 (Debian) configured -- resuming normal operations
[Wed Dec 18 00:00:03.116467 2024] [core:notice] [pid 513:tid 513] AH00094: Command line: '/usr/sbin/apache2'
Dec 18 11:00:30 owncloud systemd[1]: apache2.service: A process of this unit has been killed by the OOM killer.

ownCloud log (data/owncloud.log)

Log entries from the relevant timeframe
{"reqId":"JoADkf4jlWOJqsFwQgFK","level":3,"time":"2024-12-18T09:50:02+00:00","remoteAddr":"","user":"--","app":"core","method":"--","url":"--","message":"Error while running background job (class: OCA\\UpdateNotification\\ResetTokenBackgroundJob, arguments: ): {\"Exception\":\"Exception\",\"Message\":\"Config file is read only.\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/SystemConfig.php(150): OC\\\\Config->deleteKey()\\n#1 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AllConfig.php(152): OC\\\\SystemConfig->deleteValue()\\n#2 \\\/var\\\/www\\\/owncloud\\\/apps\\\/updatenotification\\\/lib\\\/ResetTokenBackgroundJob.php(74): OC\\\\AllConfig->deleteSystemValue()\\n#3 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/BackgroundJob\\\/Job.php(81): OCA\\\\UpdateNotification\\\\ResetTokenBackgroundJob->run()\\n#4 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/BackgroundJob\\\/TimedJob.php(63): OC\\\\BackgroundJob\\\\Job->execute()\\n#5 \\\/var\\\/www\\\/owncloud\\\/core\\\/Command\\\/System\\\/Cron.php(126): OC\\\\BackgroundJob\\\\TimedJob->execute()\\n#6 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/symfony\\\/console\\\/Command\\\/Command.php(298): OC\\\\Core\\\\Command\\\\System\\\\Cron->execute()\\n#7 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/symfony\\\/console\\\/Application.php(1040): Symfony\\\\Component\\\\Console\\\\Command\\\\Command->run()\\n#8 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/symfony\\\/console\\\/Application.php(301): Symfony\\\\Component\\\\Console\\\\Application->doRunCommand()\\n#9 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/symfony\\\/console\\\/Application.php(171): Symfony\\\\Component\\\\Console\\\\Application->doRun()\\n#10 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Console\\\/Application.php(165): Symfony\\\\Component\\\\Console\\\\Application->run()\\n#11 \\\/var\\\/www\\\/owncloud\\\/console.php(94): OC\\\\Console\\\\Application->run()\\n#12 \\\/var\\\/www\\\/owncloud\\\/occ(11): require_once('\\\/var\\\/www\\\/ownclo...')\\n#13 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Config.php\",\"Line\":188}"}
{"reqId":"Z2Kboe-_t8p8Kwjhtz-WRAAAAAQ","level":2,"time":"2024-12-18T09:53:37+00:00","remoteAddr":"100.83.23.111","user":"root","app":"core","method":"POST","url":"\/login\/challenge\/totp?redirect_url=%252Fapps%252Ffiles%252F%253Fdir%253D%252F%2526fileid%253D3","message":"Two factor verify failed: 'root' (Remote IP: '100.83.23.111')"}
{"reqId":"rWXA84Lk0fEc6LVbaSYF","level":3,"time":"2024-12-18T10:01:03+00:00","remoteAddr":"","user":"--","app":"core","method":"--","url":"--","message":"Error while running background job (class: OCA\\UpdateNotification\\ResetTokenBackgroundJob, arguments: ): {\"Exception\":\"Exception\",\"Message\":\"Config file is read only.\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/SystemConfig.php(150): OC\\\\Config->deleteKey()\\n#1 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AllConfig.php(152): OC\\\\SystemConfig->deleteValue()\\n#2 \\\/var\\\/www\\\/owncloud\\\/apps\\\/updatenotification\\\/lib\\\/ResetTokenBackgroundJob.php(74): OC\\\\AllConfig->deleteSystemValue()\\n#3 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/BackgroundJob\\\/Job.php(81): OCA\\\\UpdateNotification\\\\ResetTokenBackgroundJob->run()\\n#4 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/BackgroundJob\\\/TimedJob.php(63): OC\\\\BackgroundJob\\\\Job->execute()\\n#5 \\\/var\\\/www\\\/owncloud\\\/core\\\/Command\\\/System\\\/Cron.php(126): OC\\\\BackgroundJob\\\\TimedJob->execute()\\n#6 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/symfony\\\/console\\\/Command\\\/Command.php(298): OC\\\\Core\\\\Command\\\\System\\\\Cron->execute()\\n#7 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/symfony\\\/console\\\/Application.php(1040): Symfony\\\\Component\\\\Console\\\\Command\\\\Command->run()\\n#8 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/symfony\\\/console\\\/Application.php(301): Symfony\\\\Component\\\\Console\\\\Application->doRunCommand()\\n#9 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/symfony\\\/console\\\/Application.php(171): Symfony\\\\Component\\\\Console\\\\Application->doRun()\\n#10 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Console\\\/Application.php(165): Symfony\\\\Component\\\\Console\\\\Application->run()\\n#11 \\\/var\\\/www\\\/owncloud\\\/console.php(94): OC\\\\Console\\\\Application->run()\\n#12 \\\/var\\\/www\\\/owncloud\\\/occ(11): require_once('\\\/var\\\/www\\\/ownclo...')\\n#13 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Config.php\",\"Line\":188}"}
{"reqId":"RPbem5ie7n9erMmpfXiz","level":3,"time":"2024-12-18T10:12:02+00:00","remoteAddr":"","user":"--","app":"core","method":"--","url":"--","message":"Error while running background job (class: OCA\\UpdateNotification\\ResetTokenBackgroundJob, arguments: ): {\"Exception\":\"Exception\",\"Message\":\"Config file is read only.\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/SystemConfig.php(150): OC\\\\Config->deleteKey()\\n#1 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AllConfig.php(152): OC\\\\SystemConfig->deleteValue()\\n#2 \\\/var\\\/www\\\/owncloud\\\/apps\\\/updatenotification\\\/lib\\\/ResetTokenBackgroundJob.php(74): OC\\\\AllConfig->deleteSystemValue()\\n#3 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/BackgroundJob\\\/Job.php(81): OCA\\\\UpdateNotification\\\\ResetTokenBackgroundJob->run()\\n#4 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/BackgroundJob\\\/TimedJob.php(63): OC\\\\BackgroundJob\\\\Job->execute()\\n#5 \\\/var\\\/www\\\/owncloud\\\/core\\\/Command\\\/System\\\/Cron.php(126): OC\\\\BackgroundJob\\\\TimedJob->execute()\\n#6 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/symfony\\\/console\\\/Command\\\/Command.php(298): OC\\\\Core\\\\Command\\\\System\\\\Cron->execute()\\n#7 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/symfony\\\/console\\\/Application.php(1040): Symfony\\\\Component\\\\Console\\\\Command\\\\Command->run()\\n#8 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/symfony\\\/console\\\/Application.php(301): Symfony\\\\Component\\\\Console\\\\Application->doRunCommand()\\n#9 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/symfony\\\/console\\\/Application.php(171): Symfony\\\\Component\\\\Console\\\\Application->doRun()\\n#10 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Console\\\/Application.php(165): Symfony\\\\Component\\\\Console\\\\Application->run()\\n#11 \\\/var\\\/www\\\/owncloud\\\/console.php(94): OC\\\\Console\\\\Application->run()\\n#12 \\\/var\\\/www\\\/owncloud\\\/occ(11): require_once('\\\/var\\\/www\\\/ownclo...')\\n#13 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Config.php\",\"Line\":188}"}

Browser log

Network log:
(502) https://owncloud.sphinx-universe.ts.net/remote.php/dav/files/root/test.png?c=2c2e79474df52430273afd9872207586&x=31&y=31&forceIcon=0&preview=1 (no content)

Console only shows the failed preview request.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants