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

How to debug ENOENT: no such file or directory, stat '/var/lib/onlyoffice/documentserver/App_Data/cache/files/data/1072778037/media/image4.png' #1025

Open
1 task done
MaximeMaW opened this issue Sep 19, 2024 · 1 comment

Comments

@MaximeMaW
Copy link

MaximeMaW commented Sep 19, 2024

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!

@Rita-Bubnova Rita-Bubnova transferred this issue from ONLYOFFICE/DocumentServer Sep 19, 2024
@igwyd
Copy link
Member

igwyd commented 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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants