Skip to content

Cannot read properties of undefined (reading 'status') #2248

@rstoermer

Description

@rstoermer

Describe the bug

I one of my foldern /books I get the following, when clicking on any PDF: Cannot read properties of undefined (reading 'status'). Some PDFs in other folders work fine.

I can download the PDFs, so they are def there. I already deleted the folder and reuploaded the files, still the same error.

Steps to reproduce

  1. Go to specific foder
  2. Click on PDF
  3. Error

Expected behavior

I can open PDF files

Actual behavior

A clear and concise description of what happened.

Setup

Please describe how you started the server and provide a list of relevant environment variables or configuration files.

rene@home:~$ k get pod opencloud-796b96df76-72j6k -oyaml | grep image
    image: docker.io/opencloudeu/opencloud-rolling:5.0.1
rene@home:~$ kubectl exec -it opencloud-796b96df76-72j6k -- env
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
HOSTNAME=opencloud-796b96df76-72j6k
PROXY_ENABLE_BASIC_AUTH=true
PROXY_TLS=false
OC_URL=https://oc.x.com
ADMIN_PASSWORD=x
OC_INSECURE=false
OC_LOG_LEVEL=warn
OPENCLOUD_PORT=tcp://10.43.140.207:9200
OPENCLOUD_PORT_9200_TCP_PORT=9200
KUBERNETES_SERVICE_PORT=443
KUBERNETES_PORT_443_TCP=tcp://10.43.0.1:443
KUBERNETES_PORT_443_TCP_ADDR=10.43.0.1
OPENCLOUD_SERVICE_PORT_NATS=9233
OPENCLOUD_PORT_9200_TCP_PROTO=tcp
OPENCLOUD_PORT_9233_TCP=tcp://10.43.140.207:9233
OPENCLOUD_PORT_9233_TCP_PORT=9233
KUBERNETES_SERVICE_PORT_HTTPS=443
OPENCLOUD_SERVICE_PORT=9200
OPENCLOUD_PORT_9200_TCP_ADDR=10.43.140.207
OPENCLOUD_PORT_9233_TCP_PROTO=tcp
KUBERNETES_PORT_443_TCP_PORT=443
OPENCLOUD_PORT_9200_TCP=tcp://10.43.140.207:9200
OPENCLOUD_PORT_9233_TCP_ADDR=10.43.140.207
KUBERNETES_SERVICE_HOST=10.43.0.1
KUBERNETES_PORT=tcp://10.43.0.1:443
KUBERNETES_PORT_443_TCP_PROTO=tcp
OPENCLOUD_SERVICE_HOST=10.43.140.207
OPENCLOUD_SERVICE_PORT_HTTP=9200
TERM=xterm
HOME=/var/lib/opencloud

Additional context

Add any other context about the problem here.

I also see the following in container logs and dev tools:

{"level":"warn","service":"storage-system","host.name":"opencloud-796b96df76-72j6k","pkg":"rhttp","traceid":"7e7c47c2e416aafab8d1076bc803075b","host":"127.0.0.1","method":"GET","uri":"/data/spaces/jsoncs3-share-manager-metadata%21jsoncs3-share-manager-metadata/users/856ddd5a-215c-479d-b47b-b2506fefd52b/received.json","url":"/users/856ddd5a-215c-479d-b47b-b2506fefd52b/received.json","proto":"HTTP/1.1","status":404,"size":0,"start":"01/Feb/2026:09:05:45 +0000","end":"01/Feb/2026:09:05:45 +0000","time_ns":147507,"time":"2026-02-01T09:05:45Z","message":"http"}

{"level":"error","service":"frontend","host.name":"opencloud-796b96df76-72j6k","pkg":"rhttp","traceid":"e7ccc781655172efbb28bc648ab38da0","request-id":"2bc37876-fbb2-4686-b59a-ddecf13d9509","content-length":36164646,"transferred-bytes":21386692,"time":"2026-02-01T09:06:24Z","message":"content length vs transferred bytes mismatch"}
{"level":"error","service":"storage-users","host.name":"opencloud-796b96df76-72j6k","pkg":"rhttp","datatx":"spaces","spaceid":"a6133115-c9de-4597-aa93-6369ed0e4de4$f4066b75-5b9e-4152-a8db-ab95a82ed720!f4066b75-5b9e-4152-a8db-ab95a82ed720","path":"/books/communicationpatterns.pdf","request-id":"2bc37876-fbb2-4686-b59a-ddecf13d9509","svc":"datatx","handler":"download","error":"write tcp 127.0.0.1:9158->127.0.0.1:50186: write: connection reset by peer","resourceid":{"storage_id":"a6133115-c9de-4597-aa93-6369ed0e4de4","opaque_id":"3cc041f6-b31c-4ac5-bc6d-060b9c2e5c75","space_id":"f4066b75-5b9e-4152-a8db-ab95a82ed720"},"time":"2026-02-01T09:06:24Z","message":"error copying data to response"}

The following PDF in my notes folders fails:

{"level":"error","service":"frontend","host.name":"opencloud-796b96df76-sk4g9","pkg":"rhttp","traceid":"e1b6b192d6e7dd738fbbc2d4629e9b67","request-id":"c998a8fa-1fd4-4007-b2c5-a1c425e13d87","path":"/notes/11073-10207-2017 BICEPS.pdf","spaceid":"a6133115-c9de-4597-aa93-6369ed0e4de4$f4066b75-5b9e-4152-a8db-ab95a82ed720","handler":"get","error":"write tcp 127.0.0.1:9140->127.0.0.1:48796: write: broken pipe","time":"2026-02-01T09:17:31Z","message":"error finishing copying data to response"}
{"level":"error","service":"frontend","host.name":"opencloud-796b96df76-sk4g9","pkg":"rhttp","traceid":"e1b6b192d6e7dd738fbbc2d4629e9b67","request-id":"c998a8fa-1fd4-4007-b2c5-a1c425e13d87","path":"/notes/11073-10207-2017 BICEPS.pdf","spaceid":"a6133115-c9de-4597-aa93-6369ed0e4de4$f4066b75-5b9e-4152-a8db-ab95a82ed720","handler":"get","content-length":7555325,"transferred-bytes":4653056,"time":"2026-02-01T09:17:31Z","message":"content length vs transferred bytes mismatch"}
{"level":"error","service":"frontend","host.name":"opencloud-796b96df76-sk4g9","pkg":"rhttp","traceid":"c4bd7403ecac9bfa46c03e3ed80b10dc","request-id":"2b2967b1-db43-48e3-a9c8-86953c63f2a0","error":"context canceled","time":"2026-02-01T09:17:31Z","message":"error writing body after header were set"}
{"level":"error","service":"frontend","host.name":"opencloud-796b96df76-sk4g9","pkg":"rhttp","traceid":"c4bd7403ecac9bfa46c03e3ed80b10dc","request-id":"2b2967b1-db43-48e3-a9c8-86953c63f2a0","content-length":7555325,"transferred-bytes":4915200,"time":"2026-02-01T09:17:31Z","message":"content length vs transferred bytes mismatch"}
{"level":"error","service":"storage-users","host.name":"opencloud-796b96df76-sk4g9","pkg":"rhttp","datatx":"spaces","spaceid":"a6133115-c9de-4597-aa93-6369ed0e4de4$f4066b75-5b9e-4152-a8db-ab95a82ed720!f4066b75-5b9e-4152-a8db-ab95a82ed720","path":"/notes/11073-10207-2017 BICEPS.pdf","request-id":"2b2967b1-db43-48e3-a9c8-86953c63f2a0","svc":"datatx","handler":"download","error":"write tcp 127.0.0.1:9158->127.0.0.1:49458: write: broken pipe","resourceid":{"storage_id":"a6133115-c9de-4597-aa93-6369ed0e4de4","opaque_id":"494f680b-35ed-4189-ac28-f2fb6503d202","space_id":"f4066b75-5b9e-4152-a8db-ab95a82ed720"},"time":"2026-02-01T09:17:31Z","message":"error copying data to response"}

while in the same folder another PDF works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Qualification

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions