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]: RuntimeException image not found: image:apps/whiteboard.svg #47985

Closed
5 of 8 tasks
jmechnich opened this issue Sep 14, 2024 · 13 comments
Closed
5 of 8 tasks

[Bug]: RuntimeException image not found: image:apps/whiteboard.svg #47985

jmechnich opened this issue Sep 14, 2024 · 13 comments
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap 30-feedback bug

Comments

@jmechnich
Copy link

jmechnich commented Sep 14, 2024

⚠️ This issue respects the following points: ⚠️

Bug description

After upgrading from NC 29.0.7 to 30.0.0, a Runtime Exception is thrown regularly and continuously:
image

The file does not exist in the apps directory but is also not expected to be there. The raw log entry at the end of this issue unfortunately does not help a lot to pinpoint the cause for this error.

A file of the same name exists in core/img/filetypes/whiteboard.svg.

Steps to reproduce

  1. Upgrade NC to 30.0.0
  2. Check logs

Expected behavior

No errors.

Nextcloud Server version

30.0.0

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.2

Web server

Nginx

Database engine version

MariaDB

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

Upgraded to a MAJOR version (ex. 28 to 29)

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

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

Configuration report

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "***REMOVED SENSITIVE VALUE MANUALLY***"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "30.0.0.14",
        "overwrite.cli.url": "***REMOVED SENSITIVE VALUE MANUALLY***",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpauth": 1,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379,
            "timeout": 1.5,
            "password": "***REMOVED SENSITIVE VALUE***",
            "dbindex": 0
        },
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "maintenance": false,
        "theme": "",
        "log_type": "file",
        "logfile": "\/var\/log\/nextcloud\/nextcloud.log",
        "loglevel": 2,
        "logtimezone": "Europe\/Berlin",
        "updater.release.channel": "stable",
        "app_install_overwrite": [
            "calendar",
            "groupfolders",
            "ojsxc",
            "richdocuments",
            "richdocumentscode",
            "gpxpod",
            "video_converter",
            "files_markdown",
            "impersonate",
            "drawio"
        ],
        "debug": false,
        "default_phone_region": "de",
        "mail_sendmailmode": "smtp",
        "maintenance_window_start": 1,
        "trashbin_retention_obligation": "auto, 30",
        "enable_previews": true,
        "enabledPreviewProviders": [
            "OC\\Preview\\PNG",
            "OC\\Preview\\JPEG",
            "OC\\Preview\\GIF",
            "OC\\Preview\\HEIC",
            "OC\\Preview\\BMP",
            "OC\\Preview\\XBitmap",
            "OC\\Preview\\MP3",
            "OC\\Preview\\TXT",
            "OC\\Preview\\MarkDown",
            "OC\\Preview\\OpenDocument",
            "OC\\Preview\\Krita",
            "OC\\Preview\\TIFF"
        ]
    }
}

List of activated Apps

Enabled:
  - activity: 3.0.0
  - admin_audit: 1.20.0
  - bookmarks: 15.0.1
  - bruteforcesettings: 3.0.0
  - calendar: 5.0.0
  - circles: 30.0.0-dev
  - cloud_federation_api: 1.13.0
  - collectives: 2.14.3
  - comments: 1.20.1
  - contacts: 6.1.0
  - contactsinteraction: 1.11.0
  - dav: 1.31.1
  - drawio: 3.0.2
  - federatedfilesharing: 1.20.0
  - federation: 1.20.0
  - files: 2.2.0
  - files_downloadlimit: 3.0.0
  - files_external: 1.22.0
  - files_markdown: 2.4.1
  - files_pdfviewer: 3.0.0
  - files_reminders: 1.3.0
  - files_sharing: 1.22.0
  - files_trashbin: 1.20.1
  - files_versions: 1.23.0
  - firstrunwizard: 3.0.0
  - gpxpod: 6.0.0
  - groupfolders: 18.0.1
  - impersonate: 1.17.0
  - logreader: 3.0.0
  - lookup_server_connector: 1.18.0
  - nextcloud_announcements: 2.0.0
  - notes: 4.10.1
  - notifications: 3.0.0
  - oauth2: 1.18.1
  - password_policy: 2.0.0
  - photos: 3.0.2
  - polls: 7.2.3
  - privacy: 2.0.0
  - provisioning_api: 1.20.0
  - recommendations: 3.0.0
  - related_resources: 1.5.0
  - richdocuments: 8.5.0
  - richdocumentscode: 24.4.702
  - serverinfo: 2.0.0
  - settings: 1.13.0
  - sharebymail: 1.20.0
  - spreed: 20.0.0
  - support: 2.0.0
  - systemtags: 1.20.0
  - text: 4.1.0
  - theming: 2.5.0
  - twofactor_backupcodes: 1.19.0
  - twofactor_totp: 12.0.0-dev
  - twofactor_webauthn: 2.0.0
  - updatenotification: 1.20.0
  - user_status: 1.10.0
  - viewer: 3.0.0
  - weather_status: 1.10.0
  - webhook_listeners: 1.1.0-dev
  - workflowengine: 2.12.0
Disabled:
  - dashboard: 7.10.0 (installed 7.0.0)
  - encryption: 2.18.0 (installed 2.5.0)
  - survey_client: 2.0.0 (installed 2.0.0)
  - suspicious_login: 8.0.0 (installed 4.3.0)
  - twofactor_nextcloud_notification: 4.0.0
  - user_ldap: 1.21.0

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

{
  "reqId": "WiKVMilAS20a6T3HdydW",
  "level": 3,
  "time": "2024-09-14T22:28:16+02:00",
  "remoteAddr": "2001:7c0:2900:8024::869b:244a",
  "user": "admin",
  "app": "no app in context",
  "method": "GET",
  "url": "/ocs/v2.php/apps/notifications/api/v2/notifications?format=json",
  "message": "image not found: image:apps/whiteboard.svg webroot: serverroot:/var/www/nextcloud",
  "userAgent": "Mozilla/5.0 (Linux) mirall/3.13.0 (build 22492) (Nextcloud, debian-6.1.0-23-amd64 ClientArchitecture: x86_64 OsArchitecture: x86_64)",
  "version": "30.0.0.14",
  "exception": {
    "Exception": "RuntimeException",
    "Message": "image not found: image:apps/whiteboard.svg webroot: serverroot:/var/www/nextcloud",
    "Code": 0,
    "Trace": [
      {
        "file": "/var/www/nextcloud/apps/firstrunwizard/lib/Notification/Notifier.php",
        "line": 205,
        "function": "imagePath",
        "class": "OC\\URLGenerator",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/apps/firstrunwizard/lib/Notification/Notifier.php",
        "line": 105,
        "function": "setAppHintDetails",
        "class": "OCA\\FirstRunWizard\\Notification\\Notifier",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Notification/Manager.php",
        "line": 337,
        "function": "prepare",
        "class": "OCA\\FirstRunWizard\\Notification\\Notifier",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/apps/notifications/lib/Controller/EndpointController.php",
        "line": 103,
        "function": "prepare",
        "class": "OC\\Notification\\Manager",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
        "line": 208,
        "function": "listNotifications",
        "class": "OCA\\Notifications\\Controller\\EndpointController",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
        "line": 114,
        "function": "executeController",
        "class": "OC\\AppFramework\\Http\\Dispatcher",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/App.php",
        "line": 161,
        "function": "dispatch",
        "class": "OC\\AppFramework\\Http\\Dispatcher",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Route/Router.php",
        "line": 302,
        "function": "main",
        "class": "OC\\AppFramework\\App",
        "type": "::"
      },
      {
        "file": "/var/www/nextcloud/ocs/v1.php",
        "line": 43,
        "function": "match",
        "class": "OC\\Route\\Router",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/ocs/v2.php",
        "line": 7,
        "args": [
          "/var/www/nextcloud/ocs/v1.php"
        ],
        "function": "require_once"
      }
    ],
    "File": "/var/www/nextcloud/lib/private/URLGenerator.php",
    "Line": 242,
    "message": "image not found: image:apps/whiteboard.svg webroot: serverroot:/var/www/nextcloud",
    "exception": {},
    "CustomMessage": "image not found: image:apps/whiteboard.svg webroot: serverroot:/var/www/nextcloud"
  }
}

Additional info

No response

@jmechnich jmechnich added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Sep 14, 2024
@jmechnich
Copy link
Author

jmechnich commented Sep 14, 2024

Related forum posts:

Supposedly installing and disabling the new Whiteboard app removes the error, gonna try this now.

Edit: I can confirm that having the Whiteboard app installed fixes the issue. As the app does not work out of the box due to a bug 😩 , it has to stay disabled for now OR the code needs to be patched as described in nextcloud/whiteboard#155. However, installing the app should not be required in the first place.

@melroy89
Copy link
Contributor

melroy89 commented Sep 15, 2024

I can also confirm this issue. And the error is spamming like crazy (error log pollution!):

image

@sorbaugh
Copy link
Contributor

cc @juliushaertl

@razerrazer
Copy link

I can confirmed that i have the exactly same issue.

@gruberth
Copy link

Same on my 30.0.0 installation:

grafik

@abolfazlbm
Copy link

I had the same issue, so I installed the Whiteboard app and then uninstalled it, I haven't reencountered this error.

@melroy89
Copy link
Contributor

I had the same issue, so I installed the Whiteboard app and then uninstalled it, I haven't reencountered this error.

This is indeed the same workaround I applied. But I believe this is not the solution.

@juliusknorr
Copy link
Member

Fix is in nextcloud/firstrunwizard#1363

@nickvergessen
Copy link
Member

nickvergessen commented Sep 17, 2024

@charlescurley
Copy link

charlescurley commented Sep 28, 2024

Adding and then disabling the whiteboard app is a partial solution. Doing that got rid of the runtime exception. But I still get this in my log approximately three times a minute:

Link of notification is not an absolute URL and does not work in mobile and desktop clients [app: survey_client, subject: updated]

Raw entry is as follows:

{"reqId":"Qli1NoF3HmKkVFtMScwH","level":2,"time":"2024-09-28T14:43:31-06:00","remoteAddr":"192.168.10.1","user":"charles","app":"no app in context","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"Link of notification is not an absolute URL and does not work in mobile and desktop clients [app: survey_client, subject: updated]","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36","version":"30.0.0.14","data":[],"id":"66f86a75e3a5c"}

Formatted:

`[no app in context] Warning: Link of notification is not an absolute URL and does not work in mobile and desktop clients [app: survey_client, subject: updated]
GET /ocs/v2.php/apps/notifications/api/v2/notifications
from 192.168.10.1 by charles at Sep 28, 2024, 2:43:31 PM'

Debian 12 as updated, Apache 2.4.62-1~deb12u1, PHP 8.2.

@nickvergessen
Copy link
Member

@Walter0799
Copy link

Same here since an update to V30.

@nickvergessen
Copy link
Member

Update to 30.0.1 from last week, problem solved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap 30-feedback bug
Projects
None yet
Development

No branches or pull requests