LINBIT / csync2

file synchronization tool using librsync and current state databases
GNU General Public License v2.0
145 stars 39 forks source link

Fedora 31 - coredump (*** stack smashing detected ***: <unknown> terminated) #23

Closed mvrk69 closed 4 years ago

mvrk69 commented 4 years ago

Hi,

I'm having this issue on my Fedora 31 :

/usr/sbin/csync2 -xrv

Connecting to host XXX (SSL) ... Updating /etc/sysconfig/garb on XXX ... stack smashing detected : terminated Aborted (core dumped)

Any ideas?

ROBERT-MCDOWELL commented 4 years ago

maybe regenerate the sql db file....

mvrk69 commented 4 years ago

I just deleted db file on both nodes, but now have different problem:

csync2 -xrv Marking file as dirty: /root/bin Marking file as dirty: /etc/sysconfig/network-scripts/route-eth0 Marking file as dirty: /etc/sysconfig/garb Marking file as dirty: /etc/hosts Marking file as dirty: /etc/haproxy/haproxy.cfg Marking file as dirty: /etc/csync2/csync2.cfg Connecting to host XXX (SSL) ... Updating /etc/csync2/csync2.cfg on XXX ... Received record packet of unknown type 42 While syncing file /etc/csync2/csync2.cfg: ERROR from peer XXX: Connection closed. File stays in dirty state. Try again later... ERROR from peer XXX: Connection closed. Finished with 2 errors.

csync2 -xrv Connecting to host XXX (SSL) ... Updating /etc/csync2/csync2.cfg on XXX ... Received record packet of unknown type 42 While syncing file /etc/csync2/csync2.cfg: ERROR from peer XXX: Connection closed. File stays in dirty state. Try again later... ERROR from peer XXX: Connection closed. Finished with 2 errors.

ROBERT-MCDOWELL commented 4 years ago

you certainly have conflict betwen sqlite2 and sqlite3 check in /var/lib/csync2 if you see xxx.db or xxx.db3

mvrk69 commented 4 years ago

ls -l /var/lib/csync2/ total 16 -rw-r--r-- 1 root root 16384 Feb 20 13:38 XXX.db

ROBERT-MCDOWELL commented 4 years ago

that's it, it should be xxx.db3 try to remove from your OS sqlite2 packages

mvrk69 commented 4 years ago

rpm -e sqlite2-2.8.17-28.fc31.x86_64 error: Failed dependencies: libsqlite.so.0()(64bit) is needed by (installed) csync2-1.34-25.fc31.x86_64

ROBERT-MCDOWELL commented 4 years ago

Gosh, Fedora 31 still has csync2 < version 2.0 ??!!! the best is to remove csync2 package and compile it yourself from this git. I had to do that anyhow on Fedora 30

mvrk69 commented 4 years ago

Thanks, that fixed the problem, now with csync2 2.0 works fine.

ROBERT-MCDOWELL commented 4 years ago

you're welcome!

lge commented 4 years ago

well then ;-) ---> closed.