[GH-ISSUE #787] How to debug ENOENT: no such file or directory, stat '/var/lib/onlyoffice/documentserver/App_Data/cache/files/data/1072778037/media/image4.png' #354

Closed
opened 2026-02-26 10:32:02 +03:00 by kerem · 2 comments
Owner

Originally created by @MaximeMaW on GitHub (Sep 19, 2024).
Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/787

This issue is unique.

  • I have used the search tool and did not find an issue describing my bug.

Operating System of DocumentServer

Docker

Version information

7.5.1.1

Expected Behavior

Document should open

Actual Behavior

An "unknown error" displays when opening a file.

image(4)

Reproduction Steps

I don't know. A working version of the file was restored and the bug cannot be reproduced anymore. However, the file was inaccessible for several hours and we have no idea of what happened.

Additional information

Docker logs shows the following messages:

==> /var/log/onlyoffice/documentserver/docservice/out.log <==
[2024-09-17T07:07:56.020] [ERROR] [localhost] [docId] [userId] nodeJS - [Error: ENOENT: no such file or directory, stat '/var/lib/onlyoffice/documentserver/App_Data/cache/files/data/1072778037
/media/image4.png'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'stat',
  path: '/var/lib/onlyoffice/documentserver/App_Data/cache/files/data/1072778037/media/image4.png',
  expose: false,
  statusCode: 404,
  status: 404
}
[2024-09-17T07:07:56.027] [ERROR] [localhost] [docId] [userId] nodeJS - [Error: ENOENT: no such file or directory, stat '/var/lib/onlyoffice/documentserver/App_Data/cache/files/data/1072778037/media/image2.png'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'stat',
  path: '/var/lib/onlyoffice/documentserver/App_Data/cache/files/data/1072778037/media/image2.png',
  expose: false,
  statusCode: 404,
  status: 404
}
[2024-09-17T07:07:56.028] [ERROR] [localhost] [docId] [userId] nodeJS - [Error: ENOENT: no such file or directory, stat '/var/lib/onlyoffice/documentserver/App_Data/cache/files/data/1072778037/media/image1.png'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'stat',
  path: '/var/lib/onlyoffice/documentserver/App_Data/cache/files/data/1072778037/media/image1.png',
  expose: false,
  statusCode: 404,
  status: 404
}
[2024-09-17T07:07:56.029] [ERROR] [localhost] [docId] [userId] nodeJS - [Error: ENOENT: no such file or directory, stat '/var/lib/onlyoffice/documentserver/App_Data/cache/files/data/1072778037/media/image3.png'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'stat',
  path: '/var/lib/onlyoffice/documentserver/App_Data/cache/files/data/1072778037/media/image3.png',
  expose: false,
  statusCode: 404,
  status: 404
}
[2024-09-17T07:07:56.030] [ERROR] [localhost] [docId] [userId] nodeJS - [Error: ENOENT: no such file or directory, stat '/var/lib/onlyoffice/documentserver/App_Data/cache/files/data/1072778037/media/image7.png'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'stat',
  path: '/var/lib/onlyoffice/documentserver/App_Data/cache/files/data/1072778037/media/image7.png',
  expose: false,
  statusCode: 404,
  status: 404
}
[2024-09-17T07:07:56.030] [ERROR] [localhost] [docId] [userId] nodeJS - [Error: ENOENT: no such file or directory, stat '/var/lib/onlyoffice/documentserver/App_Data/cache/files/data/1072778037/media/image5.png'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'stat',
  path: '/var/lib/onlyoffice/documentserver/App_Data/cache/files/data/1072778037/media/image5.png',
  expose: false,
  statusCode: 404,
  status: 404
}
[2024-09-17T07:07:56.031] [ERROR] [localhost] [docId] [userId] nodeJS - [Error: ENOENT: no such file or directory, stat '/var/lib/onlyoffice/documentserver/App_Data/cache/files/data/1072778037/media/image6.png'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'stat',
  path: '/var/lib/onlyoffice/documentserver/App_Data/cache/files/data/1072778037/media/image6.png',
  expose: false,
  statusCode: 404,
  status: 404
}
[2024-09-17T07:07:56.032] [ERROR] [localhost] [docId] [userId] nodeJS - [Error: ENOENT: no such file or directory, stat '/var/lib/onlyoffice/documentserver/App_Data/cache/files/data/1072778037/media/image8.png'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'stat',
  path: '/var/lib/onlyoffice/documentserver/App_Data/cache/files/data/1072778037/media/image8.png',
  expose: false,
  statusCode: 404,
  status: 404
}
[2024-09-17T07:07:56.035] [ERROR] [localhost] [docId] [userId] nodeJS - [Error: ENOENT: no such file or directory, stat '/var/lib/onlyoffice/documentserver/App_Data/cache/files/data/1072778037/media/image10.png'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'stat',
  path: '/var/lib/onlyoffice/documentserver/App_Data/cache/files/data/1072778037/media/image10.png',
  expose: false,
  statusCode: 404,
  status: 404
}
[2024-09-17T07:07:56.035] [ERROR] [localhost] [docId] [userId] nodeJS - [Error: ENOENT: no such file or directory, stat '/var/lib/onlyoffice/documentserver/App_Data/cache/files/data/1072778037/media/image9.png'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'stat',
  path: '/var/lib/onlyoffice/documentserver/App_Data/cache/files/data/1072778037/media/image9.png',
  expose: false,
  statusCode: 404,
  status: 404
}
[2024-09-17T07:07:56.036] [ERROR] [localhost] [docId] [userId] nodeJS - [Error: ENOENT: no such file or directory, stat '/var/lib/onlyoffice/documentserver/App_Data/cache/files/data/1072778037/media/image11.png'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'stat',
    path: '/var/lib/onlyoffice/documentserver/App_Data/cache/files/data/1072778037/media/image11.png',
  expose: false,
  statusCode: 404,
  status: 404
}
[2024-09-17T07:07:56.036] [ERROR] [localhost] [docId] [userId] nodeJS - [Error: ENOENT: no such file or directory, stat '/var/lib/onlyoffice/documentserver/App_Data/cache/files/data/1072778037/media/image12.png'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'stat',
  path: '/var/lib/onlyoffice/documentserver/App_Data/cache/files/data/1072778037/media/image12.png',
  expose: false,
  statusCode: 404,
  status: 404
}
[2024-09-17T07:07:56.042] [ERROR] [localhost] [docId] [userId] nodeJS - [Error: ENOENT: no such file or directory, stat '/var/lib/onlyoffice/documentserver/App_Data/cache/files/data/1072778037/media/image13.png'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'stat',
  path: '/var/lib/onlyoffice/documentserver/App_Data/cache/files/data/1072778037/media/image13.png',
  expose: false,
  statusCode: 404,
  status: 404
}

This type of error happens ~1/day

How can I debug such issues? Or at least resolve them quicker?
Many thanks!

Originally created by @MaximeMaW on GitHub (Sep 19, 2024). Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/787 ### This issue is unique. - [X] I have used the [search tool](https://github.com/ONLYOFFICE/DocumentServer/issues?q=) and did not find an issue describing my bug. ### Operating System of DocumentServer Docker ### Version information 7.5.1.1 ### Expected Behavior Document should open ### Actual Behavior An "unknown error" displays when opening a file. ![image(4)](https://github.com/user-attachments/assets/2a5d2981-65ff-45fd-b574-96fc1fa2e48c) ### Reproduction Steps I don't know. A working version of the file was restored and the bug cannot be reproduced anymore. However, the file was inaccessible for several hours and we have no idea of what happened. ### Additional information Docker logs shows the following messages: ``` ==> /var/log/onlyoffice/documentserver/docservice/out.log <== [2024-09-17T07:07:56.020] [ERROR] [localhost] [docId] [userId] nodeJS - [Error: ENOENT: no such file or directory, stat '/var/lib/onlyoffice/documentserver/App_Data/cache/files/data/1072778037 /media/image4.png'] { errno: -2, code: 'ENOENT', syscall: 'stat', path: '/var/lib/onlyoffice/documentserver/App_Data/cache/files/data/1072778037/media/image4.png', expose: false, statusCode: 404, status: 404 } [2024-09-17T07:07:56.027] [ERROR] [localhost] [docId] [userId] nodeJS - [Error: ENOENT: no such file or directory, stat '/var/lib/onlyoffice/documentserver/App_Data/cache/files/data/1072778037/media/image2.png'] { errno: -2, code: 'ENOENT', syscall: 'stat', path: '/var/lib/onlyoffice/documentserver/App_Data/cache/files/data/1072778037/media/image2.png', expose: false, statusCode: 404, status: 404 } [2024-09-17T07:07:56.028] [ERROR] [localhost] [docId] [userId] nodeJS - [Error: ENOENT: no such file or directory, stat '/var/lib/onlyoffice/documentserver/App_Data/cache/files/data/1072778037/media/image1.png'] { errno: -2, code: 'ENOENT', syscall: 'stat', path: '/var/lib/onlyoffice/documentserver/App_Data/cache/files/data/1072778037/media/image1.png', expose: false, statusCode: 404, status: 404 } [2024-09-17T07:07:56.029] [ERROR] [localhost] [docId] [userId] nodeJS - [Error: ENOENT: no such file or directory, stat '/var/lib/onlyoffice/documentserver/App_Data/cache/files/data/1072778037/media/image3.png'] { errno: -2, code: 'ENOENT', syscall: 'stat', path: '/var/lib/onlyoffice/documentserver/App_Data/cache/files/data/1072778037/media/image3.png', expose: false, statusCode: 404, status: 404 } [2024-09-17T07:07:56.030] [ERROR] [localhost] [docId] [userId] nodeJS - [Error: ENOENT: no such file or directory, stat '/var/lib/onlyoffice/documentserver/App_Data/cache/files/data/1072778037/media/image7.png'] { errno: -2, code: 'ENOENT', syscall: 'stat', path: '/var/lib/onlyoffice/documentserver/App_Data/cache/files/data/1072778037/media/image7.png', expose: false, statusCode: 404, status: 404 } [2024-09-17T07:07:56.030] [ERROR] [localhost] [docId] [userId] nodeJS - [Error: ENOENT: no such file or directory, stat '/var/lib/onlyoffice/documentserver/App_Data/cache/files/data/1072778037/media/image5.png'] { errno: -2, code: 'ENOENT', syscall: 'stat', path: '/var/lib/onlyoffice/documentserver/App_Data/cache/files/data/1072778037/media/image5.png', expose: false, statusCode: 404, status: 404 } [2024-09-17T07:07:56.031] [ERROR] [localhost] [docId] [userId] nodeJS - [Error: ENOENT: no such file or directory, stat '/var/lib/onlyoffice/documentserver/App_Data/cache/files/data/1072778037/media/image6.png'] { errno: -2, code: 'ENOENT', syscall: 'stat', path: '/var/lib/onlyoffice/documentserver/App_Data/cache/files/data/1072778037/media/image6.png', expose: false, statusCode: 404, status: 404 } [2024-09-17T07:07:56.032] [ERROR] [localhost] [docId] [userId] nodeJS - [Error: ENOENT: no such file or directory, stat '/var/lib/onlyoffice/documentserver/App_Data/cache/files/data/1072778037/media/image8.png'] { errno: -2, code: 'ENOENT', syscall: 'stat', path: '/var/lib/onlyoffice/documentserver/App_Data/cache/files/data/1072778037/media/image8.png', expose: false, statusCode: 404, status: 404 } [2024-09-17T07:07:56.035] [ERROR] [localhost] [docId] [userId] nodeJS - [Error: ENOENT: no such file or directory, stat '/var/lib/onlyoffice/documentserver/App_Data/cache/files/data/1072778037/media/image10.png'] { errno: -2, code: 'ENOENT', syscall: 'stat', path: '/var/lib/onlyoffice/documentserver/App_Data/cache/files/data/1072778037/media/image10.png', expose: false, statusCode: 404, status: 404 } [2024-09-17T07:07:56.035] [ERROR] [localhost] [docId] [userId] nodeJS - [Error: ENOENT: no such file or directory, stat '/var/lib/onlyoffice/documentserver/App_Data/cache/files/data/1072778037/media/image9.png'] { errno: -2, code: 'ENOENT', syscall: 'stat', path: '/var/lib/onlyoffice/documentserver/App_Data/cache/files/data/1072778037/media/image9.png', expose: false, statusCode: 404, status: 404 } [2024-09-17T07:07:56.036] [ERROR] [localhost] [docId] [userId] nodeJS - [Error: ENOENT: no such file or directory, stat '/var/lib/onlyoffice/documentserver/App_Data/cache/files/data/1072778037/media/image11.png'] { errno: -2, code: 'ENOENT', syscall: 'stat', path: '/var/lib/onlyoffice/documentserver/App_Data/cache/files/data/1072778037/media/image11.png', expose: false, statusCode: 404, status: 404 } [2024-09-17T07:07:56.036] [ERROR] [localhost] [docId] [userId] nodeJS - [Error: ENOENT: no such file or directory, stat '/var/lib/onlyoffice/documentserver/App_Data/cache/files/data/1072778037/media/image12.png'] { errno: -2, code: 'ENOENT', syscall: 'stat', path: '/var/lib/onlyoffice/documentserver/App_Data/cache/files/data/1072778037/media/image12.png', expose: false, statusCode: 404, status: 404 } [2024-09-17T07:07:56.042] [ERROR] [localhost] [docId] [userId] nodeJS - [Error: ENOENT: no such file or directory, stat '/var/lib/onlyoffice/documentserver/App_Data/cache/files/data/1072778037/media/image13.png'] { errno: -2, code: 'ENOENT', syscall: 'stat', path: '/var/lib/onlyoffice/documentserver/App_Data/cache/files/data/1072778037/media/image13.png', expose: false, statusCode: 404, status: 404 } ``` This type of error happens ~1/day How can I debug such issues? Or at least resolve them quicker? Many thanks!
kerem closed this issue 2026-02-26 10:32:02 +03:00
Author
Owner

@igwyd commented on GitHub (Sep 20, 2024):

Hello @MaximeMaW, first of all update the document server and the connector application to the latest version, we are constantly fixing many bugs and this one is probably already fixed. If the bug recurs after update, then provide nextcloud, connector app, documentserver versions and last logs with errors/

<!-- gh-comment-id:2586424493 --> @igwyd commented on GitHub (Sep 20, 2024): Hello @MaximeMaW, first of all update the document server and the connector application to the latest version, we are constantly fixing many bugs and this one is probably already fixed. If the bug recurs after update, then provide nextcloud, connector app, documentserver versions and last logs with errors/
Author
Owner

@MaximeMaW commented on GitHub (Jan 2, 2025):

Indeed!

<!-- gh-comment-id:2586424496 --> @MaximeMaW commented on GitHub (Jan 2, 2025): Indeed!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Docker-DocumentServer-ONLYOFFICE#354
No description provided.