-
Notifications
You must be signed in to change notification settings - Fork 2
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
Media upload errors and general guidance #20
Comments
Hi, thanks for the detailed report. I just looked in the server logs and am seeing a lot of 409s on See here for some background: https://www.grampsweb.org/user-guide/sync/ Have you run check & repair before exporting your XML? This is strongly recommended (see https://www.grampsweb.org/user-guide/import/) and should also fix the checksums. If your checksums are correct, we can investigate further. |
It looks like the checksums were originally missing, which seems like a bug. If you could tell me who to tag or where to report it, I can do that. Upon running the sync, again, it found a bunch of unexpected changes, included a huge number of people, which makes me uncomfortable. I only just recreated this DB from the GEDCOM, which is version-controlled. I understand how there might be small abnormalities that might be normalized-out by the check-and-repair process, but I would expect the appearance or disappearance of person records. Since I don't think we can guarantee the consistent assignment of certain IDs to certain personals from my GEDCOM import to the next, I can't really investigate that much further. I went ahead and applied the changes. It still complained of the same number of errors. I then reran the process, and there were still changes to apply: There were also still missing remote images (presumably 186 of them): |
Sorry, I'm confused. You cannot sync with a database created from GEDCOM. The sync relies on the database handles being the same, so you can only sync with a remote database sourced from an XML exported by the local Gramps. Also, why did you go ahead and apply the changes if things were obviously wrong? |
I suggest you do the following now:
|
Seems like a buggy process. I created a brand new Gramps DB, imported from the GEDCOM, synced to Grampshub using the gramps export, and then used the web-sync and there were zero net changes. This was the first time. I then ran the check-and-repair tool on local (when you recommended it), ran another sync, using the tool, to Grampshub, and now there were a bunch of general changes as well as removed persons. So, we're not talking about GEDCOMs at this point. We're talking about a sync via the add-on. Well, we're trying to figure things out at the moment. Since the whole point of the error-checking tool is to fix inconsistencies and I have no choice but to assume it's a stable tool, and differences that were then found by the web-sync would have to be reasonable and not the fault of the sync tool itself. I can try to reproduce those discrepancies later today and follow-up on some of them. I'm less concerned about the integrity of data in my local Gramps and the integrity of the data in my Grampshub account than I am about getting more familiar with this process and its eccentricities. Like I said, my data is version-controlled (as both a GEDCOM, sorted GEDCOM, and a gramps file), and I regularly reconstruct my working Gramps DB. We can also clear and reset my Grampshub tree later if it gets royally screwed-up. It's a new account and probably not the first time it'll get screwed-up while we work through this. |
#20 (comment) |
Ok, I see. I agree it's a buggy process. Thanks for all the input - not only about what does not work, but also about what can go wrong in the workflow. The outcome of this hopefully includes a clearer documentation, and perhaps a few warnings in various UI components. One of the most important is that check and repair is run first, before any importing or syncing. Do you still have access to the XMLs before and after the check & repair? Perhaps it can shed some light on why it would want to delete 2000 people. If you can share the raw XML of one of the to-be-deleted people, like I0000, that could be useful. |
I'll recreate the DB right now and compare those exports. Can I assume that the nodes in the XML probably aren't sorted? I sort-of assumed that the verbiage was less than accurate, as there should only be about 650 people. |
..and no problem. I love data networks, especially when the fruits of our labor can help fortify each others' family trees. I'm not always the most available person, but I'm happy to help. |
So, I created a new DB, imported the GED, set the media-path, exported an uncompressed gramps file, committed, and then ran the check-and-repair tool. Just a couple outright inconsequential changes. This was the case a couple of times when I ran it, yesterday, but then the one time was much more dramatic even though I hadn't made any changes. In as much as this is a "sync" process, I'm guessing that the sync tool was responsible for these. In addition to the couple of minor changes mentioned above, the media nodes got checksums: The pre-apply breakdown didn't mention these, but probably should. The delta isn't so bad, so I'm including it here. Note that I've removed most of the media adjustments since it was highly consistent and wouldn't add further value.
|
It would be useful to give us a button for a nuclear reset in the 'Administration' panel. Given that some of us might occasionally attempt actions known to have destabilizing effects, it'd be useful to be able to flush data (just the data, or both the data and the media). Just food for thought. I know resources are limited. |
I agree, that's gramps-project/gramps-web-api#396. Thanks for sharing the XMLs, will look at them later. |
I did a direct update of the Do you have any thoughts on what results I can expect if I were to continue to delete and recreate my Gramps DB and then run a sync every time? The IDs will presumably always be different. I noticed that there may now be duplicates: I am there twice in Grampshub but only once in my local DB. What underlying process do we use to execute the import? Are we just invoking the Import and Merge Tool programmatically or via the CLI, and accepting all changes? |
Sorry, I don't know what you mean by "delete and recreate" or by "every time". Which IDs? The Gramps IDs, the handles or the checksums?
It's exactly the same (Python) function used by the CLI import or the Gramps desktop import. But this is (very) differerent from the Import Merge tool! You can check that, when you import the same XML file twice in Gramps desktop, you will have each object twice. That's intentional. Imports are meant to add stuff. Executing the Import Merge tool programmatically is not possible as it requires manual interaction with the UI. |
I mentioned that I will very frequently blow away the DB and rebuilt it from the latest GEDCOM file. Therefore, as I play with the site I may be importing and reimporting data. I'd assume that, with the tool (since it's called the "Import and Merge" tool, not the "Import and Add" tool), any node IDs (which probably be the Gramps IDs) would be compared with existing nodes, and their constitutions overwritten/reconciled. Maybe this is the case, but the standard import functionality, which is used by Gramps Web (it sounds like due to being unable to automate/orchestrate the IM tool), does not do this. Thoughts? This might not be the correct place to discuss this, but thank you either way. |
So, the takeaway is just to always sync and never import if the account is non-empty. |
So, I just created a Grampshub account, imported my Gramps export, and then zipped all of my images (from within the media path, so the ZIP will just have a flat list of images) and uploaded that, but none of the images were showing even though there were no errors and I refreshed the page a dozen times.
All of the image references in the original GEDCOM (from which I created my Gramps DB) are not path-qualified (filenames only) and my Gramps media path points to the image path, which is a big, flat directory of files (similar to the ZIP file I created above). The images load as they should from within Gramps, and I previously wrote and regularly run a tool that ensures that all of the images referenced by the source GEDCOM file match the media path whenever I change anything or bring in updates from elsewhere.
Next I installed Gramps Web Sync in my Gramps and ran a sync. It said there were no tree changes, but that every image existed on local and every image was missing from remote. It then took five minutes for the media-sync and then eventually said that every upload failed:
(There were 186 images in total, all of which were missing.)
There was no further verbosity given in the UI, and no errors were emitted by the plugin in the terminal verbosity.
What do I do? I've read what few sites came up from some Google searches, checked the Gramps documentation, checked Grampshub, checked the Gramps Web documentation, and reviewed the project (Github) site before posting, but there's no mention of upload errors or how to resolve them.
I could use some help. I have a presentation of all of this coming up in a day or two. It'd be meaningfully impactful if the images were to be present. I was hoping for the images to be working in order to sell the architecture as well as the face detection.
The text was updated successfully, but these errors were encountered: