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]: Failed to open stream + Error while running background job immediately after installation #45671

Closed
5 of 8 tasks
Adspectus opened this issue Jun 4, 2024 · 5 comments · Fixed by #48426
Closed
5 of 8 tasks

Comments

@Adspectus
Copy link

⚠️ This issue respects the following points: ⚠️

Bug description

After installation and first start on Nextcloud AIO I see the following message in the overview of systemadministration:
2 errors in protocols.
When I click on protocols I can see the following:

{
  "reqId": "5rgiLEkUnGJYuN36W5Kj",
  "level": 3,
  "time": "2024-06-01T13:32:58+00:00",
  "remoteAddr": "",
  "user": "admin",
  "app": "PHP",
  "method": "",
  "url": "--",
  "message": "fopen(/var/www/html/config/config.php): Failed to open stream: No such file or directory at /var/www/html/lib/private/Config.php#225",
  "userAgent": "--",
  "version": "28.0.5.1",
  "data": {
    "app": "PHP"
  },
  "id": "665b3280372d1"
}

And:

{
  "reqId": "Qd07Vbl2vOSYyNbf3sw2",
  "level": 3,
  "time": "2024-06-01T13:33:47+00:00",
  "remoteAddr": "",
  "user": "--",
  "app": "core",
  "method": "",
  "url": "--",
  "message": "Error while running background job (class: OCA\\Theming\\Jobs\\MigrateBackgroundImages, arguments: Array\n(\n    [stage] => prepare\n)\n)",
  "userAgent": "--",
  "version": "28.0.5.1",
  "exception": {
    "Exception": "OCP\\Files\\NotFoundException",
    "Message": "/appdata_octtordoeggb/theming/global",
    "Code": 0,
    "Trace": [
      {
        "file": "/var/www/html/lib/private/Files/Node/LazyFolder.php",
        "line": 161,
        "function": "get",
        "class": "OC\\Files\\Node\\Root",
        "type": "->",
        "args": [
          "/appdata_octtordoeggb/theming/global"
        ]
      },
      {
        "file": "/var/www/html/lib/private/Files/AppData/AppData.php",
        "line": 132,
        "function": "get",
        "class": "OC\\Files\\Node\\LazyFolder",
        "type": "->",
        "args": [
          "appdata_octtordoeggb/theming/global"
        ]
      },
      {
        "file": "/var/www/html/apps/theming/lib/Jobs/MigrateBackgroundImages.php",
        "line": 168,
        "function": "getFolder",
        "class": "OC\\Files\\AppData\\AppData",
        "type": "->",
        "args": [
          "global"
        ]
      },
      {
        "file": "/var/www/html/apps/theming/lib/Jobs/MigrateBackgroundImages.php",
        "line": 100,
        "function": "storeUserIdsToProcess",
        "class": "OCA\\Theming\\Jobs\\MigrateBackgroundImages",
        "type": "->",
        "args": [
          []
        ]
      },
      {
        "file": "/var/www/html/apps/theming/lib/Jobs/MigrateBackgroundImages.php",
        "line": 79,
        "function": "runPreparation",
        "class": "OCA\\Theming\\Jobs\\MigrateBackgroundImages",
        "type": "->",
        "args": []
      },
      {
        "file": "/var/www/html/lib/public/BackgroundJob/Job.php",
        "line": 81,
        "function": "run",
        "class": "OCA\\Theming\\Jobs\\MigrateBackgroundImages",
        "type": "->",
        "args": [
          [
            "prepare"
          ]
        ]
      },
      {
        "file": "/var/www/html/lib/public/BackgroundJob/QueuedJob.php",
        "line": 57,
        "function": "start",
        "class": "OCP\\BackgroundJob\\Job",
        "type": "->",
        "args": [
          [
            "OC\\BackgroundJob\\JobList"
          ]
        ]
      },
      {
        "file": "/var/www/html/lib/public/BackgroundJob/QueuedJob.php",
        "line": 47,
        "function": "start",
        "class": "OCP\\BackgroundJob\\QueuedJob",
        "type": "->",
        "args": [
          [
            "OC\\BackgroundJob\\JobList"
          ]
        ]
      },
      {
        "file": "/var/www/html/cron.php",
        "line": 152,
        "function": "execute",
        "class": "OCP\\BackgroundJob\\QueuedJob",
        "type": "->",
        "args": [
          [
            "OC\\BackgroundJob\\JobList"
          ],
          [
            "OC\\Log"
          ]
        ]
      }
    ],
    "File": "/var/www/html/lib/private/Files/Node/Root.php",
    "Line": 207,
    "message": "Error while running background job (class: OCA\\Theming\\Jobs\\MigrateBackgroundImages, arguments: Array\n(\n    [stage] => prepare\n)\n)",
    "exception": [],
    "CustomMessage": "Error while running background job (class: OCA\\Theming\\Jobs\\MigrateBackgroundImages, arguments: Array\n(\n    [stage] => prepare\n)\n)"
  },
  "id": "665b3280372bf"
}

Steps to reproduce

  1. Install Nextcloud AIO according to the guide in this repo using Apache httpd as reverse proxy
  2. Open Nextcloud Admin-Settings the overview shows 2 errors related to system configuration
  3. Checking the protocol shows the entries documented above

Expected behavior

No errors in protocol after installation.

Installation method

Official All-in-One appliance

Nextcloud Server version

28

Operating system

Other

PHP engine version

PHP 8.2

Web server

Apache (supported)

Database engine version

PostgreSQL

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

Fresh Nextcloud Server install

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

No response

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

OS: Linux 6.6.28+rpt-rpi-2712 aarch64

@Adspectus Adspectus added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Jun 4, 2024
@joshtrichards
Copy link
Member

You're not getting these repeatedly though, correct?

@joshtrichards joshtrichards changed the title [Bug]: [Bug]: Failed to open stream + Error while running background job immediately after installation Jun 12, 2024
@Adspectus
Copy link
Author

No, only after installing.

@joshtrichards joshtrichards added feature: install and update 1. to develop Accepted and waiting to be taken care of 29-feedback and removed 0. Needs triage Pending check for reproducibility or if it fits our roadmap labels Aug 27, 2024
@KloseS1996

This comment was marked as duplicate.

@Adspectus

This comment was marked as resolved.

@joshtrichards
Copy link
Member

You can safely ignore it. It's some tech debt from the install process that should get addressed AFAIK, but inconsequential.

@joshtrichards joshtrichards added 2. developing Work in progress and removed 1. to develop Accepted and waiting to be taken care of labels Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants