Hello.
Normally, the ‘Manage Media’ utility should allow you to correct (normalize/merge) these paths.


Hello.
Normally, the ‘Manage Media’ utility should allow you to correct (normalize/merge) these paths.


Gramps merely reused the paths recorded by Heredis when generating the GEDCOM during export.
It is sometimes useful to modify (correct) the GEDCOM generated by Heredis before importing it into another software!
Here are some tips for GEDCOM files generated by Heredis:
https://gramps-project.org/wiki/index.php/Import_from_another_genealogy_program#Heredis
The numbering is dynamic depending on the base of the selected group of ancestors. The Sosa-Stradonitz (Kekulé) numbering makes no sense when there are descendants, uncles, aunts, or cousins… Besides, it is present in Gramps (when useful)!


–


etc.
I don’t entirely agree with you because I define the media path via the click-to-search function, so it’s Gramps that generates this path. In the media file, there’s only the photo and the name assigned to it for the relevant person.
And in the Gedcom file, I checked the information regarding this person, and there are only genealogical details—no media paths at all. Therefore, it’s indeed Gramps that generates the information “name + concatenation of the .jpeg extension.”
Worse still, this concatenation appears second in the media list under the chosen name—and is this the one it’s searching for?
OK, I hadn’t looked further than your Gedcom import. Indeed, if it’s the path defined from within Gramps, that’s something different.
This is a relative path.
If you want to replace:
../../../../../
with:
/home/G-C/Documents/Généalogie/
you’ll notice that one directory level is missing or extra. I imagine you manually moved your folder containing the images outside of Gramps, and the paths no longer point to the correct directory.
What happens if, in Gramps and its Media view, you click on a line with these relative paths (and a red cross), and you replace the stored path with the " ../../../../../ " with “/home/G-C/Documents/Généalogie/”?
The “Relative path to media” setting shouldn’t return " ../../../../../ " to the root path. It seems the path is defined as relative, but the “Use relative path” checkbox was not enabled when you selected your images from within Gramps (see its Select (+) image window).
It’s in the ‘Family Tree’ tab of the Preferences.
If manually replacing “../../…” works, you can use the utility available in the menu Tools → Utilities → Manage Media… and select the option “Convert relative paths to absolute.”
Or set a relative path base (from the Preferences menu) to allow Gramps to locate your images.
Gramps does not import your images into the family tree; it only checks where they are stored on your disk. If your images are moved, you must also inform Gramps to update the old paths in the database (family tree). If you’re concerned that removing an entry with a path lacking an extension might delete your image from the disk—when in fact it’s only the incorrect path recorded in Gramps—you can rest assured. By default (except for certain plugins focused on EXIF data), Gramps does not modify images; it only displays them using the stored path.
Linux is undoubtedly a better OS than Windows, but when I see the hassle of being able to use an application with data imported from a file designed for that purpose, it’s frustrating.
For my genealogy project, which I’ve been working on since the 1980s, I now have over 12,000 individuals. You can imagine that I can’t afford to not use media for photos.
Yesterday, I deleted all the lines in my Media folder that read “../../../../../COT…” which led to a red cross, leaving only those that displayed the image. This made no difference.
This morning, I tried to destroy my family tree, recreate it, re-import my Gedcom, and re-establish the media path. Yet, when I display a media item, I still see a red cross, because the virtual path, which I deleted yesterday, has not been recreated—as if the deletion of the tree was only virtual and Gramps is restarting with what it had in memory.
For a selected media item, when I click on “Open Storage Directory,” Gramps cannot find it, even though it was selected within Gramps (Error from external program: Media not found) ???
Please, I really need help.
Thank you.
In your preferences (see the menu Edit → Preferences… → Family Tree), do you have something that looks like this:

Yes, that’s what I have!
Hello ropta
Attached is a screenshot from 08:44:26 of photos related to a person in my media file from Hérédis,
and another one from this person’s gallery.
Worse and worse.
I tried to tackle the problem head-on, and it got worse.
I uninstalled Gramps.
Stopped the machine for 5 minutes.
Restarted and reinstalled Gramps.
Created my family tree.
Imported my Gedcom (original COT-BRO file 440 MB, GEDCOM 6.2 MB).
During the import, I got the error: “Gramps encountered an unexpected error.”
At the end of the log, I could read “disk full.”
How is that possible? I’m not doing anything else on this PC right now except trying to get Gramps to work. The initial installation didn’t cause any problems.
I thought uninstalling would free up the space previously used?
I ran $ df -h and got:
3.9 GB in tmpfs on /dev/shm
9 GB on /dev/sdb1 where my media file is still present, even though it wasn’t deleted during Gramps’ uninstallation?
784 MB in tmpfs on /run
221 MB on /dev/sda2
787 MB in tmpfs on /run/user/1000
How is this possible?
Thank you for your help!
Things are getting worse!
I tried to tackle the problem head-on, but nothing is working anymore.
I uninstalled Gramps.
I shut down the machine for 5 minutes.
I restarted and reinstalled Gramps, created my family tree, imported my GEDCOM (several times), and here’s the bug I’m getting:
“Gramps encountered an unexpected error”
At the end of the log, I could read “disk full.”
How is this possible? I’m not doing anything else on this PC right now except trying to get Gramps to work. And the initial installation didn’t cause any issues.
I thought uninstalling would free up the space previously used?
I ran $ df -h and got:
3.9 GB in tmpfs of /dev/shm
9 GB in /dev/sdb1 where my media file still remains, which wasn’t deleted during Gramps’ uninstallation?
784 MB in tmpfs of /run
221 MB in /dev/sda2
787 MB in tmpfs of /run/user/1000
How is this possible?
Thank you for your reply!
And what is displayed when you type this in a console?
$ gramps -L
This might be useful on Windows. I’m doubtful about Linux. Resources are released at the end of a Gramps session. Apart from clearing a few memory leaks, there won’t really be any significant resource gain. On the other hand, the installation seems to have been recent, with, I assume, its share of updates. You could try clearing your system’s caches. For example, here’s what your system has downloaded and how much space you could recover:
$ du -sh /var/cache/apt/archives
$ ls -lh /var/cache/apt/archives | tail -n+1
$ sudo apt autoclean
$ sudo apt clean
Hello romjérome,
Sorry for not being very active, but during this period, I’m also very busy with other things. This is probably the last message you’ll receive from me today or later, but I’ll rejoin the conversation at some point.
Since I’m currently working on two PCs, and I use the email client on my main machine, while I install Linux on my laptop (Genealogy and Karaoke are often done outside), and today Thunderbird on the laptop no longer sends my logs and other data that I transfer between the two PCs, without me having done anything to this app.
But when it doesn’t want to work, it just doesn’t! So it’s another hassle, but please don’t hesitate to reply, and don’t take it personally if I’m slow to respond—my goal is to move everything to Linux, and I hope I’ll succeed.
I did what you told me, and it went well.
Unfortunately, this has no impact on the execution of Gramps or the current disk space, and I still can’t create my family tree.
Now I can’t even open Thunderbird while running Gramps, which I could do before. So I guess the more I persist with Gramps, the less space I have?
Regarding your question about $ gramps -L
I have:
List of known family trees in your database base path
/home/gilles-cottenceau/snap/gramps/11/.local/share/gramps/grampsdb/6946afa2
with the name “Cottenceau-Brochard”
Since I currently have Windows on my laptop as well, I’ll reduce the space allocated to my two virtual disks. After that, I don’t know if it will be possible to recover this space for Linux?
Because I’m still unable to reload my tree—I’m attaching the log:
Good evening
151796: ERROR: dbloader.py: line 547: Failed to import database.
Traceback (most recent call last):
File
“/snap/gramps/11/lib/python3.12/site-packages/gramps/gui/dbloader.py”,
line 524, in do_import
self.import_info = importer(
^^^^^^^^^
File
“/snap/gramps/11/lib/python3.12/site-packages/gramps/plugins/importer/importgedcom.py”,
line 154, in importData
gedparse.parse_gedcom_file(False)
File
“/snap/gramps/11/lib/python3.12/site-packages/gramps/plugins/lib/libgedcom.py”,
line 3118, in parse_gedcom_file
self.__parse_record()
File
“/snap/gramps/11/lib/python3.12/site-packages/gramps/plugins/lib/libgedcom.py”,
line 3995, in __parse_record
self.__parse_indi(line)
File
“/snap/gramps/11/lib/python3.12/site-packages/gramps/plugins/lib/libgedcom.py”,
line 4104, in __parse_indi
self.__check_msgs(
File
“/snap/gramps/11/lib/python3.12/site-packages/gramps/plugins/lib/libgedcom.py”,
line 3575, in __check_msgs
self.dbase.add_note(new_note, self.trans)
File
“/snap/gramps/11/lib/python3.12/site-packages/gramps/gen/db/generic.py”,
line 2020, in add_note
return self._add_base(
^^^^^^^^^^^^^^^
File
“/snap/gramps/11/lib/python3.12/site-packages/gramps/gen/db/generic.py”,
line 1944, in _add_base
commit_func(obj, trans)
File
“/snap/gramps/11/lib/python3.12/site-packages/gramps/gen/db/generic.py”,
line 2225, in commit_note
self._commit_base(note, NOTE_KEY, transaction, change_time)
File
“/snap/gramps/11/lib/python3.12/site-packages/gramps/plugins/db/dbapi/dbapi.py”,
line 691, in _commit_base
self.dbapi.execute(
File
“/snap/gramps/11/lib/python3.12/site-packages/gramps/plugins/db/dbapi/sqlite.py”,
line 138, in execute
self.__cursor.execute(*args, **kwargs)
sqlite3.OperationalError: database or disk is full
163415: WARNING: configmanager.py: line 403: Failed to open
/home/gilles-cottenceau/snap/gramps/11/.config/gramps/gramps60/gramps.ini
because [Errno 28] No space left on device
Disk full.
What you can do:
$ df -k Filesystem 1K-blocks Used Available Use% Mounted on tmpfs 3277564 2404 3275160 1% /run /dev/sda1 122485088 50832900 65384144 44% / tmpfs 16387816 1876 16385940 1% /dev/shm tmpfs 5120 8 5112 1% /run/lock tmpfs 16387816 216 16387600 1% /run/qemu /dev/sdb2 28938404 4178756 23264304 16% /tmp /dev/sdb3 1873399256 687779296 1090383608 39% /home
If you have a line like this:
/dev/sdb3 1873399256 687779296 1090383608 39% /home
with 100% instead of 39%
then do:
$ du -ks /home/*
This will give us the results.
No worries about the replies, you started the post, so take your time. I’m using “tu” with you since you used “tu” with me.
However, as Serge pointed out, you have a strange configuration under /home and some pseudo-virtual paths with a snap installation.
/home/G-C/ would then be another user account than the default one? Virtual disks and Windows! Are we really dealing with configuration issues of Gramps under Linux?
Regarding resources, multitasking, and Gramps, I have an alternative backup of my database using Gramps 5.2.x on a PC over 20 years old, with less than 600 MB of memory (the old one, from 20 years ago) and a hard disk. A ‘zram’ application allows me to compensate for possible swap calls (on a very old disk). Anyway, with this setup, I can still check the content of my family trees and open another application displaying an image (I still avoid loading files over 10 MB into memory).
I didn’t install Gramps via snap. Did you also try installing Gramps via a .deb package?
Is /dev/sdb1 “mounted” when you use Gramps?
Hello romjerome,
Sorry if using the informal “tu” bothers you, but I can use the formal “vous” if you prefer; in any case, I’ll use it in this post.
I want to completely reinstall Linux because I think the Windows space release really messed things up. After performing this space release, when I rebooted Ubuntu, I saw four red “Failed” lines and don’t remember what happened next. I then tried restarting in repair mode and went through almost all the options, but nothing changed—still failing.
I don’t quite remember what I did exactly, but there must have been a “GRUB Mode” option, because now when I boot, I land on this screen:
GRUB loading.
Welcome to GRUB!
And I can’t get out of it. I looked at this forum, among others: https://forum.ubuntu-fr.org/viewtopic.php?id=2077633, but it doesn’t resemble what I did. So I tried other methods I found elsewhere, but nothing works—and besides, I can’t even see what I’m typing on the screen?
Regarding snap and deb, I don’t know what those are! I installed Gramps via the application manager—I searched for it in the list and installed it using the “Install” option.
So, first things first:
I need to get out of GRUB.
Then I’ll uninstall and reinstall Linux.
All of this following your valuable advice, so I’ll end up with a Linux system that isn’t outdated.
Thank you for replying.