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

[Bug]: Error: disk_free_space(): No such file or directory at /var/www/html/lib/private/Files/Storage/Local.php#383 #30992

Closed
5 of 8 tasks
nickvergessen opened this issue Feb 3, 2022 · 11 comments · Fixed by #30985
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug

Comments

@nickvergessen
Copy link
Member

⚠️ This issue respects the following points: ⚠️

  • This is a bug, not a question or a configuration/webserver/proxy issue.
  • This issue is not already reported on Github (I've searched it).
  • Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
  • I agree to follow Nextcloud's Code of Conduct.

Bug description

Wrong path passed to disk_free_space()

{
  "reqId": "",
  "level": 3,
  "time": "2022-02-03T16:24:52+00:00",
  "remoteAddr": "",
  "user": "",
  "app": "PHP",
  "method": "GET",
  "url": "/index.php/apps/files/ajax/getstoragestats.php?dir=…",
  "message": "disk_free_space(): No such file or directory at /var/www/html/lib/private/Files/Storage/Local.php#381",
  "userAgent": "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:96.0) Gecko/20100101 Firefox/96.0",
  "version": "23.0.1.2",
  "exception": {
    "Exception": "Error",
    "Message": "disk_free_space(): No such file or directory at /var/www/html/lib/private/Files/Storage/Local.php#381",
    "Code": 0,
    "Trace": [
      {
        "function": "onError",
        "class": "OC\\Log\\ErrorHandler",
        "type": "::"
      },
      {
        "file": "/var/www/html/lib/private/Files/Storage/Local.php",
        "line": 381,
        "function": "disk_free_space"
      },
      {
        "file": "/var/www/html/lib/private/Files/Storage/Wrapper/Wrapper.php",
        "line": 334,
        "function": "free_space",
        "class": "OC\\Files\\Storage\\Local",
        "type": "->"
      },
      {
        "file": "/var/www/html/lib/private/legacy/OC_Helper.php",
        "line": 531,
        "function": "free_space",
        "class": "OC\\Files\\Storage\\Wrapper\\Wrapper",
        "type": "->"
      },
      {
        "file": "/var/www/html/apps/files/lib/Helper.php",
        "line": 50,
        "function": "getStorageInfo",
        "class": "OC_Helper",
        "type": "::"
      },
      {
        "file": "/var/www/html/apps/files/lib/Controller/AjaxController.php",
        "line": 47,
        "function": "buildFileStorageStatistics",
        "class": "OCA\\Files\\Helper",
        "type": "::"
      },
      {
        "file": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
        "line": 217,
        "function": "getStorageStats",
        "class": "OCA\\Files\\Controller\\AjaxController",
        "type": "->"
      },
      {
        "file": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
        "line": 126,
        "function": "executeController",
        "class": "OC\\AppFramework\\Http\\Dispatcher",
        "type": "->"
      },
      {
        "file": "/var/www/html/lib/private/AppFramework/App.php",
        "line": 157,
        "function": "dispatch",
        "class": "OC\\AppFramework\\Http\\Dispatcher",
        "type": "->"
      },
      {
        "file": "/var/www/html/lib/private/Route/Router.php",
        "line": 302,
        "function": "main",
        "class": "OC\\AppFramework\\App",
        "type": "::"
      },
      {
        "file": "/var/www/html/lib/base.php",
        "line": 1006,
        "function": "match",
        "class": "OC\\Route\\Router",
        "type": "->"
      },
      {
        "file": "/var/www/html/index.php",
        "line": 36,
        "function": "handleRequest",
        "class": "OC",
        "type": "::"
      }
    ],
    "File": "/var/www/html/lib/private/Log/ErrorHandler.php",
    "Line": 92,
    "CustomMessage": "--"
  },
  "id": ""
}

Steps to reproduce

  1. Navigate into a folder with the browser
  2. Log is being spamed

Expected behavior

The folder1 is shared. Path accessed in the browser is folder1/folder2

Should be called with:
disk_free_space('/var/www/data/Nextcloud/files/folder1/folder2')
Is called with:
disk_free_space('/var/www/data/Nextcloud/folder2')

Installation method

Manual installation

Operating system

Debian/Ubuntu

PHP engine version

PHP 7.4

Web server

Apache (supported)

Database engine version

MariaDB

Is this bug present after an update or on a fresh install?

Updated from a minor version (ex. 22.2.3 to 22.2.4)

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

No response

List of activated Apps

c.nc.c

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

@nickvergessen nickvergessen added bug 0. Needs triage Pending check for reproducibility or if it fits our roadmap labels Feb 3, 2022
@nickvergessen
Copy link
Member Author

cc @icewind1991

@icewind1991
Copy link
Member

probably fixed with #30985

@Wikinaut
Copy link
Contributor

  • NC 23.0.2
    Same issue here.

@nickvergessen
Copy link
Member Author

#30999

@Bables55
Copy link

  • NC 23.0.2 / CentOS 7.9, PHP 8.0.16

I regularly have the same problem with my NC. Is this problem not critical? (No need to worry?)

@nickvergessen
Copy link
Member Author

From my understanding you might get wrong free space calculations so upload attempts would be started but can't finish if your disk runs out of space. So no, doesn't look cricital

@julian70400
Copy link

julian70400 commented Apr 4, 2022

Same issue here since 22.0.6 22.2.6, is there a patch ?

@szaimen
Copy link
Contributor

szaimen commented Apr 4, 2022

You mean 22.2.6?

@atomicnation
Copy link

Same error here: 23.0.3 trying to edit an .odt file with nc office + collabora online.
log.txt

@Ornanovitch
Copy link
Contributor

Same error here on 23.0.4 ...

@szaimen
Copy link
Contributor

szaimen commented Apr 27, 2022

Please open a new issue

@nextcloud nextcloud locked as resolved and limited conversation to collaborators Apr 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug
Projects
None yet
8 participants