gramps-project / gramps-web

Frontend for Gramps Web
https://www.grampsweb.org
GNU Affero General Public License v3.0
336 stars 48 forks source link

[BUG] Unable to run docker in a multi-tree setup #456

Closed Corepex closed 1 week ago

Corepex commented 1 week ago

IF

... I take the following docker-compose file, as suggested in the docs, as a template and change the GRAMPSWEB_TREE option to * as suggested here

I get the following error in the logs: tree is required when multi-tree support is enabled.

Note:

I also tried to switch an existing setup to a multi-tree setup but i couldn't figure out how to create a tree. EVEN with the official API docs from https://gramps-project.github.io/gramps-web-api/#/.

I provided the documented options via query and/or body (as json). But the only thing i get back are the details from the existing tree without the creation of the new one ... how can i proceed here?

DavidMStraub commented 1 week ago

Duplicate of https://github.com/gramps-project/gramps-web-api/issues/510.

Corepex commented 1 week ago

I also tried to switch an existing setup to a multi-tree setup but i couldn't figure out how to create a tree. EVEN with the official API docs from https://gramps-project.github.io/gramps-web-api/#/.

I provided the documented options via query and/or body (as json). But the only thing i get back are the details from the existing tree without the creation of the new one ... how can i proceed here?

@DavidMStraub do you have any advice for the second part?

DavidMStraub commented 1 week ago

You need to POST to /api/trees/, you will get back the details of the new tree.

Corepex commented 1 week ago

image

yeah thats what the docs say. But it doesnt work for me ... also couldn't find something in the logs ...

DavidMStraub commented 1 week ago

So, it looks like 15e7... is a new directory that was created in your Gramps home. Where is the problem?

DavidMStraub commented 1 week ago

Maybe you are confused by the fact that you have multiple trees that are all called "Gramps Web"? gramps -l could help.

Corepex commented 1 week ago

Maybe you are confused by the fact that you have multiple trees that are all called "Gramps Web"? gramps -l could help.

I checked that with python3 -m gramps_webapi tree list. Nothing was created or changed. The 15e7 tree is the default one I created when setting up gramps-web ...

Besides that, it's a bit weird that if I create a tree with the name testtree, it returns me another tree with a totally different name. Or?

DavidMStraub commented 1 week ago

Yes 🫤

DavidMStraub commented 1 week ago

But please add to an existing ticket in the web API repo or create a new one if needed, here it will get lost.