Skip to content

[Bug, Regression] Version 0.0.87 comes shiped without vendor directory. Log flooding #271

Description

@ernolf

Version 0.0.87 does not ship the vendor/ directory.

This floods the logfile with messages like this one (the last one where I disabled the app to get rid of the noise):

{
  "reqId": "hlVOPBBy3COALpKyBTgu",
  "level": 4,
  "time": "2026-08-12T16:20:31+02:00",
  "remoteAddr": "",
  "user": "--",
  "app": "timetracker",
  "method": "",
  "url": "--",
  "scriptName": "/var/www/nextcloud/occ",
  "message": "Error during app service registration: Failed opening required '/var/www/nextcloud/apps/timetracker/lib/AppInfo/../../vendor/autoload.php' (include_path='/var/www/nextcloud/3rdparty/pear/archive_tar:/var/www/nextcloud/3rdparty/pear/console_getopt:/var/www/nextcloud/3rdparty/pear/pear-core-minimal/src:/var/www/nextcloud/3rdparty/pear/pear_exception:/var/www/nextcloud/apps')",
  "userAgent": "--",
  "version": "32.0.13.1",
  "occ_command": [
    "/var/www/nextcloud/occ",
    "app:disable"
  ],
  "exception": {
    "Exception": "Error",
    "Message": "Failed opening required '/var/www/nextcloud/apps/timetracker/lib/AppInfo/../../vendor/autoload.php' (include_path='/var/www/nextcloud/3rdparty/pear/archive_tar:/var/www/nextcloud/3rdparty/pear/console_getopt:/var/www/nextcloud/3rdparty/pear/pear-core-minimal/src:/var/www/nextcloud/3rdparty/pear/pear_exception:/var/www/nextcloud/apps')",
    "Code": 0,
    "Trace": [
      {
        "file": "/var/www/nextcloud/lib/composer/composer/ClassLoader.php",
        "line": 576,
        "function": "include"
      },
      {
        "file": "/var/www/nextcloud/lib/composer/composer/ClassLoader.php",
        "line": 427,
        "function": "{closure:Composer\\Autoload\\ClassLoader::initializeIncludeClosure():575}",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "function": "loadClass",
        "class": "Composer\\Autoload\\ClassLoader",
        "type": "->"
      },
      {
        "function": "class_exists",
        "file": "/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php",
        "line": 98
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php",
        "line": 55,
        "function": "registerApps",
        "class": "OC\\AppFramework\\Bootstrap\\Coordinator",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/base.php",
        "line": 683,
        "function": "runInitialRegistration",
        "class": "OC\\AppFramework\\Bootstrap\\Coordinator",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/base.php",
        "line": 1224,
        "function": "init",
        "class": "OC",
        "type": "::"
      },
      {
        "file": "/var/www/nextcloud/console.php",
        "line": 31,
        "args": [
          "/var/www/nextcloud/lib/base.php"
        ],
        "function": "require_once"
      },
      {
        "file": "/var/www/nextcloud/occ",
        "line": 33,
        "args": [
          "/var/www/nextcloud/console.php"
        ],
        "function": "require_once"
      }
    ],
    "File": "/var/www/nextcloud/apps/timetracker/lib/AppInfo/Application.php",
    "Line": 5,
    "message": "Error during app service registration: Failed opening required '/var/www/nextcloud/apps/timetracker/lib/AppInfo/../../vendor/autoload.php' (include_path='/var/www/nextcloud/3rdparty/pear/archive_tar:/var/www/nextcloud/3rdparty/pear/console_getopt:/var/www/nextcloud/3rdparty/pear/pear-core-minimal/src:/var/www/nextcloud/3rdparty/pear/pear_exception:/var/www/nextcloud/apps')",
    "exception": {},
    "CustomMessage": "Error during app service registration: Failed opening required '/var/www/nextcloud/apps/timetracker/lib/AppInfo/../../vendor/autoload.php' (include_path='/var/www/nextcloud/3rdparty/pear/archive_tar:/var/www/nextcloud/3rdparty/pear/console_getopt:/var/www/nextcloud/3rdparty/pear/pear-core-minimal/src:/var/www/nextcloud/3rdparty/pear/pear_exception:/var/www/nextcloud/apps')"
  }
}

Please consider to automate your build and release cycle, e.g. with https://github.com/ernolf/ncmake to make such fundamental errors become impossible to happen.


ernolf

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions