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

On Nextcloud 29.0.0 .whiteboard files are downloaded and not opened #264

Closed
TobiasHofmaenner opened this issue Nov 6, 2024 · 5 comments
Closed

Comments

@TobiasHofmaenner
Copy link

Hey,
I'm on version 1.0.4 of whiteboard and Nextcloud 29.0.0
My config is on the server is:

version: '3.7'
services:
  nextcloud-whiteboard-server:
    image: ghcr.io/nextcloud-releases/whiteboard:release
    ports:
      - 3002:3002
    environment:
      - NEXTCLOUD_URL=https://cloud.mynextcloud.tld/
      - JWT_SECRET_KEY=A9CXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXWd7

Then to reach it I'm using a cloudflared tunnel, which handles ssl for me (https://wb.myWBserver.tld -> http://localhost:3002)
In Nextcloud I enter the credentials and get a green check mark.
When I visit https://wb.myWBserver.tld in the browser I get Excalidraw collaboration server is up :)
I followed the instructions on the github page and checked the mimetype files (i don't have any entries related to whiteboards)
But it still just downloads the files.

@TobiasHofmaenner
Copy link
Author

Might be an issue of Nextcloud. I got it working with the exact same Excalidraw server but on a completely different Nextcloud instance (29.0.8 and not hosted by me...).
I'd still be grateful for general information on how I might be able to get it running on my own server.

@TobiasHofmaenner
Copy link
Author

TobiasHofmaenner commented Nov 6, 2024

I got it working. My .../html/config/mimetypemapping.json
Looks like this now:

    "3dm": [
        "model/3dm-nospec"
    ],
  "whiteboard": [
        "application/vnd.excalidraw+json"
    ],
    "3ds": [
        "model/3ds-nospec"
    ],
    "3mf": [
        "model/3mf"
    ],
    "bim": [
        "model/bim-nospec"
    ],
    "brp": [
        "model/brep-nospec"
    ],
    "brep": [
        "model/brep-nospec"
    ],
    "dae": [
        "model/vnd.collada+xml"
    ],
    "fbx": [
        "model/fbx-nospec"
    ],
    "fcstd": [
        "model/fcstd-nospec"
    ],
    "glb": [
        "model/gltf-binary"
    ],
    "gltf": [
        "model/gltf+json"
    ],
    "ifc": [
        "application/x-step"
    ],
    "igs": [
        "model/iges"
    ],
    "iges": [
        "model/iges"
    ],
    "obj": [
        "model/obj"
    ],
    "off": [
        "model/off-nospec"
    ],
    "ply": [
        "model/ply-nospec",
        "model/vnd.ply"
    ],
    "stp": [
        "model/step"
    ],
    "step": [
        "model/step"
    ],
    "stl": [
        "model/stl",
        "application/sla"
    ],
    "wrl": [
        "model/vrml"
    ],
    "mtl": [
        "model/mtl"
    ]
}

where I added:

        "application/vnd.excalidraw+json"
    ],

by hand.
My .../html/config/mimetypealiases.json
Now looks like:

    "application/vnd.excalidraw+json": "whiteboard",
    "model/3dm-nospec": "3dm",
    "model/3ds-nospec": "3ds",
    "model/3mf": "3mf",
    "model/bim-nospec": "bim",
    "model/brep-nospec": "brep",
    "model/vnd.collada+xml": "dae",
    "model/fbx-nospec": "fbx",
    "model/fcstd-nospec": "fcstd",
    "model/gltf-binary": "glb",
    "model/gltf+json": "gltf",
    "application/x-step": "ifc",
    "model/iges": "iges",
    "model/obj": "obj",
    "model/off-nospec": "off",
    "model/ply-nospec": "ply",
    "model/vnd.ply": "ply",
    "model/step": "step",
    "model/stl": "stl",
    "application/sla": "stl",
    "model/vrml": "wrl",
    "model/mtl": "mtl"
}

where I added:
"application/vnd.excalidraw+json": "whiteboard",
by hand.
then I ran:
sudo -u www-data php occ maintenance:mimetype:update-js
and:
sudo -u www-data php occ maintenance:mimetype:update-db --repair-filecache
Note the --repair-filecache option which differs form the explanation on this repo.
After this it worked.
I'm not an expert in Nextcloud and don't really know the implications of doing so, but you might consider adding the --repair-filecache in your "Known issues" section.

@matrixes
Copy link

I had to deal with this as well and found the following comment to work out well for me: #174 (comment)

(A reference to my comment on that issue, for reference: #174 (comment))

I'm a bit confused as to why this: https://github.com/nextcloud/whiteboard#known-issues doesn't work though, except that in my case this was my first ever install of Whiteboard. Maybe there needs to be a set of instructions that cover more than the current case explained in the readme? 🤷

@Ra72xx
Copy link

Ra72xx commented Dec 6, 2024

I use "whiteboard" for the first time ever on Nextcloud 30, and am also stuck with the browser downloading every *.whiteboard file. I don't really want to (though I could) edit installed code.

I'm a bit confused, I installed everything as required according to the official docks, and now I would have to edit Nextcloud code to get "whiteboard" running at all?!

@juliusknorr
Copy link
Member

Since the original reporter has gotten it running and the issue @matrixes mentioned has been resolved with the latest release.

@Ra72xx Yours is hard to tell without more details on the setup and possible error logs for nextcloud and the browser console. I'd suggest to open a topic on the forum to get setup help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants