OK
Den lör 5 aug. 2023 13:48David Straub via The Gramps Project (Discourse Forum & Mailing List) <notifications@gramps.discoursemail.com> skrev:
OK
Den lör 5 aug. 2023 13:48David Straub via The Gramps Project (Discourse Forum & Mailing List) <notifications@gramps.discoursemail.com> skrev:
I tried to add a user in ‘https://grampshub.com/’ but got …
Error: Database error while tryng to add a user
Have following:
Gramps 5.1.5
Gramps Web API 1.1.10
Gramps.js 23.8.0
locale: en
multi-tree: true
task queue: true
Hi, I believe it’s due to an e-mail collision. Note that user accounts must have a unique e-mail address across the whole server - otherwise it wouldn’t be possible to reset a user’s password by e-mail.
However, the error message is not the right one, it should correctly display “E-mail already exists”. I opened a backend issue to resolve that:
When I tried to add a user and got the error the user had the same e-mail as the Admin/Owner.
Now I changed the e-mail for the added user to a different e-mail and it worked OK …
I login with the new added user.
Some feedback:
Everything is slow … very slow … compared to DigitalOcean.
Also media is missing for persons.
Is there something I can do to speed it up?
Another question … how can I delete a user … there is no option for that.
Can you be more specific? Perhaps even share screencaps?
Have you uploaded it, or synced?
Not possible in Gramps Web yet, will be added, see discussion.
Oh, sorry, misunderstood the last question. Indeed, deleting user is also not yet possible. Feel free to add a feature request
I have a couple of video showing the time for login & for a person to appear in tree.
The videos are very big … how do I send them to you?
I’ll send you a Dropbox link by PM.
Thanks … I uploaded a zip-file with screenshots & videos.
Hope it will help you …
Hello David, thanks for your work on this. I finally thought I’ll give it a shot. However, on the firstrun page, I uploaded my tree and it failed citing an “internal server error”. I continued. I uploaded it again in the admin section and it’s still going on for the past 20 minutes or so, even though the tree’s .gramps file is a measly 44KB. Any ideas?
Hi @BattouSaeen, thanks for the heads-up, I can confirm something seems to be wrong with the background task worker. I’ll investigate and get back to you.
I think it should work again now - please let me know if you face a similar issue again. I suspect the root cause was database connections being left open by Gramps Web API; I just released a new version that hopefully avoids this in the future.
Thanks David! It uploaded now! Apologies if this is already explained somewhere, but how is media objects upload handled? I originally tried the full gpkg upload before but it said it’s not supported, only the xml .gramps is. After the .gramps uploaded, it is saying “39 media objects with missing file”. So does it actually check media files? Is there a separate procedure of zipping media files (through gramps native hopefully) and once that is uploaded, the files are connected automatically?
Hi,
the process (and the reason why gpkg is not supported) is explained here: Import data - Gramps Web
Thanks! At present, I don’t have any base media path; I added images for people in a drag-drop fashion in their edit windows, so each file is linked to different paths (instead of a base media path housing all those files). What should I do to import these images? Apparently path doesn’t matter but checksum, so do I just gather these photos into a ZIP and upload?
EDIT: OK nevermind, I tried it out, made a ZIP with all the files and uploaded - it all worked out
EDIT 2: OK so now how do I give others access? I mean, I opened a private tab, site wouldn’t load (loading bar kept going), tried private browsing, same thing ← both of these in firefox.
Opened Edge, had similar but eventually it loaded. For the briefest of moments, a login box flashed, then disappeared and the landing page appeared (about pricing and all that). So how does a new user find the login portal?
EDIT 3: OK nevermind again /facepalm … I had earlier tried grampshub(dot)com/login, but that didn’t load at all but I tried again when I pressed the “Open App” button and it worked. Maybe have a button for login instead to make it more obvious?
EDIT 4: Things are very unpredictable in terms of responsiveness. While setting up, it was fast, loaded the tree graphs pretty well, but since creating a new guest user to test out, everything has ground to a halt, frequent Gateway Timeout errors; doesn’t load the tree more than 3 people at all (before the new user as aforementioned, it managed to load the full tree very quickly). So not sure what’s going on there.
Are the different plans configured with different processing capabilities?
Hi,
can you check if you observe poor performance only with the guest user or also with the owner?
Yup the guest account definitely experiences an error almost everytime; I just tried it now.
BTW before I forget, is it possible to set default values for Max Degree of Separation in the various graphs?
If you can post a screenshot of the network tab in the dev console (F12), it would help understand which of the API calls leads to the error.
In general, it is expected that guest accounts see worse performance since Gramps’s private proxy database suffers from some performance bottlenecks, but it shouldn’t be as bad as you observe.
If you mean remembering your settings across sessions, no, there is an open feature request for that (but loading the data for large degree of separation can be very time/resource consuming, so having a low default makes sense).