nextcloud/whiteboard

whiteboard is not loaded

Closed this issue · 4 comments

I installed on Nextcloud 30.0.0 the whiteboard app. After generate a "test.whiteboard" file there is only a download of the file and the app is not opend. On another Nextcloud 30 instance it works. Hiere my logs.

{
   "reqId":"ZuapPJvuQRi800m-_DxzOwAAAFY",
   "level":3,
   "time":"2024-09-15T09:30:36+00:00",
   "remoteAddr":"a.b.c.d",
   "user":"username",
   "app":"no app in context",
   "method":"GET",
   "url":"/ocs/v2.php/apps/notifications/api/v2/notifications",
   "message":"image not found: image:apps/whiteboard.svg webroot: serverroot:/var/www/virtual/username/html/cloud",
   "userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0",
   "version":"30.0.0.14",
   "exception":{
      "Exception":"RuntimeException",
      "Message":"image not found: image:apps/whiteboard.svg webroot: serverroot:/var/www/virtual/username/html/cloud",
      "Code":0,
      "Trace":[
         {
            "file":"/var/www/virtual/username/html/cloud/apps/firstrunwizard/lib/Notification/Notifier.php",
            "line":205,
            "function":"imagePath",
            "class":"OC\\URLGenerator",
            "type":"->",
            "args":[
               "firstrunwizard",
               "apps/whiteboard.svg"
            ]
         },
         {
            "file":"/var/www/virtual/username/html/cloud/apps/firstrunwizard/lib/Notification/Notifier.php",
            "line":105,
            "function":"setAppHintDetails",
            "class":"OCA\\FirstRunWizard\\Notification\\Notifier",
            "type":"->",
            "args":[
               [
                  "OC\\Notification\\Notification"
               ],
               "de",
               "whiteboard"
            ]
         },
         {
            "file":"/var/www/virtual/username/html/cloud/lib/private/Notification/Manager.php",
            "line":337,
            "function":"prepare",
            "class":"OCA\\FirstRunWizard\\Notification\\Notifier",
            "type":"->",
            "args":[
               [
                  "OC\\Notification\\Notification"
               ],
               "de"
            ]
         },
         {
            "file":"/var/www/virtual/username/html/cloud/apps/notifications/lib/Controller/EndpointController.php",
            "line":103,
            "function":"prepare",
            "class":"OC\\Notification\\Manager",
            "type":"->",
            "args":[
               [
                  "OC\\Notification\\Notification"
               ],
               "de"
            ]
         },
         {
            "file":"/var/www/virtual/username/html/cloud/lib/private/AppFramework/Http/Dispatcher.php",
            "line":208,
            "function":"listNotifications",
            "class":"OCA\\Notifications\\Controller\\EndpointController",
            "type":"->",
            "args":[
               "v2"
            ]
         },
         {
            "file":"/var/www/virtual/username/html/cloud/lib/private/AppFramework/Http/Dispatcher.php",
            "line":114,
            "function":"executeController",
            "class":"OC\\AppFramework\\Http\\Dispatcher",
            "type":"->",
            "args":[
               [
                  "OCA\\Notifications\\Controller\\EndpointController"
               ],
               "listNotifications"
            ]
         },
         {
            "file":"/var/www/virtual/username/html/cloud/lib/private/AppFramework/App.php",
            "line":161,
            "function":"dispatch",
            "class":"OC\\AppFramework\\Http\\Dispatcher",
            "type":"->",
            "args":[
               [
                  "OCA\\Notifications\\Controller\\EndpointController"
               ],
               "listNotifications"
            ]
         },
         {
            "file":"/var/www/virtual/username/html/cloud/lib/private/Route/Router.php",
            "line":302,
            "function":"main",
            "class":"OC\\AppFramework\\App",
            "type":"::",
            "args":[
               "OCA\\Notifications\\Controller\\EndpointController",
               "listNotifications",
               [
                  "OC\\AppFramework\\DependencyInjection\\DIContainer"
               ],
               [
                  "v2",
                  "ocs.notifications.endpoint.listnotifications"
               ]
            ]
         },
         {
            "file":"/var/www/virtual/username/html/cloud/ocs/v1.php",
            "line":43,
            "function":"match",
            "class":"OC\\Route\\Router",
            "type":"->",
            "args":[
               "/ocsapp/apps/notifications/api/v2/notifications"
            ]
         },
         {
            "file":"/var/www/virtual/username/html/cloud/ocs/v2.php",
            "line":7,
            "args":[
               "/var/www/virtual/username/html/cloud/ocs/v1.php"
            ],
            "function":"require_once"
         }
      ],
      "File":"/var/www/virtual/username/html/cloud/lib/private/URLGenerator.php",
      "Line":242,
      "message":"image not found: image:apps/whiteboard.svg webroot: serverroot:/var/www/virtual/username/html/cloud",
      "exception":[
         
      ],
      "CustomMessage":"image not found: image:apps/whiteboard.svg webroot: serverroot:/var/www/virtual/username/html/cloud"
   },
   "id":"66e6aa293c744"
}

The error message should be fixed by nextcloud/firstrunwizard#1363

Have you also setup the whiteboard backend server as described in the readme? Other then that I've seen a report where old mimetype definitions for the whiteboard in the config/mimetypealiases.json file: https://docs.nextcloud.com/server/latest/admin_manual/configuration_mimetypes/index.html#mimetype-aliases (We should document that)

For me the mime type definition form the old whiteboard app was in the file config/mimetypemapping.json
not config/mimetypealiases.json
then it worked for me, but only for newly created files .with suffix .whiteboard and not with files that were created before the mimetype update

Thanks for confirming, I've added that as a known issue to the readme.