Report problem - Family Lines Graph output to 'file.html', site wasn't available

Greetings all! Love this program!! Got grampsweb installed on a Digital Ocean ubuntu droplet, having a blast! Just discovered a problem - trying to run a ‘Family Lines Graph’ Report and output html. It downloads a file, but it doesn’t open - says ‘file.html’ - with message “site wasn’t available”.

So - am I supposed to update a config file somehow to permit it to hows on the server, firewall setting or reverse proxy? Me techie, not programmer, so I can get stuck :slight_smile: .

Thanks all!

Chris

Gramps 6.0.1
Gramps Web API 3.2.0
Gramps Web Frontend 25.7.3
Gramps QL 0.4.0

Hi,

there is a known issue with some reports, might be this one

1 Like

Thanks - did some more checking on this today finally, and I’m seeing while there is a ‘report’ feature in the GrampsWeb version and interface to generate a ‘Family Lines Graph’, it seems GrampsWeb is not designed to support this, at least according to my AI generated results below. I installed Graphiz on the server - missed the part earlier that it should only work on the desktop version. Question or two:

  1. Is it best to engage the desktop version for more robust reporting tools? And the Web version is primarily to exchange / share data with others?

  2. Any idea if it’d be a big effort to get a report to run on the web. Just curious…
    Many thanks!

Chris

Gramps Web is a web application that runs on a server and is accessed through a web browser, designed to allow users to manage their genealogical data. It is not a direct web version of the desktop Gramps application, and its functionality and plugin system differ significantly from the desktop version.

The Graph View addon, which is an interactive family tree visualization tool for the desktop version of Gramps, is not available as a plugin for Gramps Web. The desktop Graph View addon requires specific dependencies like Graphviz and Goocanvas, which are not part of the Gramps Web architecture. Gramps Web uses a different backend and frontend framework, and its features are implemented through its own set of web-based tools and reports, not the desktop plugin system.

Therefore, there is no method to install a “Graphviz web version” plugin for Gramps Web. The functionality of generating interactive family trees in Gramps Web would need to be achieved through its own built-in reporting features or potentially by developing a custom web-based visualization tool that integrates with the Gramps Web API, but this is not a standard or pre-existing plugin.

This is pure AI hallucination.

1 Like

okay! good! Let’s get this working - inspecting code from the browser, it goes to the folder top//report/familylines_graph (or via Frames/ServiceWorkers//sw.js) - to the familylines_graph folder (content below).

Error messaging says either “file.htm - File wasn’t available on site” - or - “file.html - Site wasn’t available”.

So - do we have to register the sw.js file somehow? Is it supposed to be calling out to a ‘file.htm’ or ‘file.html’ somewhere..?

Next thought is to diagnose from VS Code into the Docker container on the server - have to refresh on doing that.
Thanks!

Chris

body,html { margin: 0; padding: 0; height: 100% } Gramps Web

I don’t think the problem is with the frontend (JS) code, the problem is likely that the report isn’t properly generated, so the first step would be to look at the logs of the backend container (grampsweb).

So I checked the logs on Package grampsweb · GitHub and see the error message below. Something I missed in setup or configuration? Thanks!

(gunicorn:18): Gtk-CRITICAL **: 05:45:05.197: gtk_icon_theme_get_for_screen: assertion ‘GDK_IS_SCREEN (screen)’ failed
ERROR:root:Error parsing list of recent DBs from file /root/gramps/recent-files-gramps.xml: no element found: line 1, column 0.
This might indicate a damage to your files.
If you’re sure there is no problem with other files, delete it, and restart Gramps.

File: recent-files-gramps.xml

<?xml version="1.0" encoding="utf-8"?> 1755229969

No, you can ignore that. It’s a warning from the GUI part of Gramps and is due to incomplete separation of the GUI code from the core library.

When the program is running, it appears to be opening a file “..domain/sw.js” - but I’m not able to locate it in the code.

Could it be a port setting issue, or an updated needed to nginx.conf file?

Nextcloud users found a similar problem: download.htm "site wasn't available" when downloading a folder · Issue #216 · danb35/freenas-iocage-nextcloud · GitHub

Browser messaging indicates:

Unprocessable Entity
The request was well-formed but was unable to be followed due to semantic errors.

The error message “site wasn’t available” or “file wasn’t available on site” typically indicates that the requested file or resource could not be accessed or retrieved by the browser or application. This can occur for several reasons, including server-side issues, misconfigured server settings, or problems with the client-side environment.

This.

sw.js is a service worker, but this has nothing to do with the problem at hand.

Okay - is this getting closer? Thx -

Traceback (most recent call last):
File “/usr/local/lib/python3.11/dist-packages/gunicorn/workers/sync.py”, line 134, in handle
self.handle_request(listener, req, client, addr)
File “/usr/local/lib/python3.11/dist-packages/gunicorn/workers/sync.py”, line 177, in handle_request
respiter = self.wsgi(environ, resp.start_response)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/dist-packages/flask/app.py”, line 1536, in call
return self.wsgi_app(environ, start_response)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/dist-packages/flask/app.py”, line 1514, in wsgi_app
response = self.handle_exception(e)
^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/dist-packages/flask/app.py”, line 1511, in wsgi_app
response = self.full_dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/dist-packages/flask/app.py”, line 919, in full_dispatch_request
rv = self.handle_user_exception(e)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/dist-packages/flask/app.py”, line 917, in full_dispatch_request
rv = self.dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/dist-packages/flask/app.py”, line 902, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
^^^^^^^^^^^^^^^^^^^^^^^^^^

       File "/usr/local/lib/python3.11/dist-packages/gramps_webapi/api/auth.py", line 44, in wrapper
return func(*args, **kwargs)
       ^^^^^^^^^^^^^^^^^^^^^

File “/usr/local/lib/python3.11/dist-packages/flask/views.py”, line 110, in view
return current_app.ensure_sync(self.dispatch_request)(**kwargs) # type: ignore[no-any-return]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/dist-packages/flask/views.py”, line 191, in dispatch_request
return current_app.ensure_sync(meth)(**kwargs) # type: ignore[no-any-return]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/dist-packages/webargs/core.py”, line 650, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/dist-packages/gramps_webapi/api/resources/search.py”, line 169, in get
total, hits = searcher.search(
^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/dist-packages/gramps_webapi/api/search/indexer.py”, line 319, in search
results = search.query(
^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/dist-packages/sifts/core.py”, line 335, in query
result = conn.execute(fts_query, params) or
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sqlite3.OperationalError: fts5: syntax error near “.”
ERROR:root:Error parsing list of recent DBs from file /root/gramps/recent-files-gramps.xml: no element found: line 1, column 0.
This might indicate a damage to your files.