netopeer2 icon indicating copy to clipboard operation
netopeer2 copied to clipboard

Netopeer2 update blocked by different sysrepo versions

Open mruprich opened this issue 7 months ago • 8 comments

Hi, I recently took over netopeer2 (libnetconf2 and sysrepo included) in Fedora. I was trying to update all related packages, including libyang and I ran into an issue. My predecessor had setup.sh in %pre section and remove.sh in %postun section, similar to the specfile you have here. The problem is that at the time sysrepoctl is being run in these scripts, the sysrepo Shared memory version does not the one that is being installed and ends up with an error.

I am writing this issue sort of as a last resort, because I ran out of ideas how to get around that. Maybe I overlooked something. But I saw a couple of issues here that were dealing with similar situation but with binaries being built from source. Seems to me that there is no way to update netopeer2 smoothly because the SHM version will always mismatch?

The error is as follows:

[ERR] Shared memory version mismatch (13, expected 18), remove the SHM to fix.                                     
sysrepoctl error: Failed to connect (Operation not supported)                                                      
For more details you may try to increase the verbosity up to "-v3".

Any idea that I could try would be appreciated. Otherwise I will most likely end up with removing these setup and remove scripts and this one update will be with an error.

Thanks and regards, Michal Ruprich

mruprich avatar Apr 07 '25 16:04 mruprich