-
paper67
Hello
-
avva3814
is Gajim the same as jabber
-
vanis
avva3814: Gajim is a xmppp client
-
bot
lovetox pushed 1 commits to branch gajim/master refactor: Rewrite archive database code - https://dev.gajim.org/gajim/gajim/-/commit/fc147adbe0713a28f537ae98556267a59b357b7b
-
cal0pteryx
It's happening!!1!
-
rom1dep
π
-
avva3814
a
-
lovetox
yeah good luck with the migration !
-
lovetox
we create a backup of the old db before migration, so it should not be hard to go back *if* it fails for some reason
-
cal0pteryx
and please post the report it shows (if it crashes)
-
bot
lovetox pushed 1 commits to branch gajim/master cfix: Correctly determine nickname in private messages - https://dev.gajim.org/gajim/gajim/-/commit/e8fef3d72d47c667058735f888365a7e720d5b75
-
rom1dep
my logs are, like 1.8G
-
rom1dep
how is the migration story? Should I just checkout, pip install -e . --user and ./launch.py ?
-
lovetox
yes, but this will take like half an hour
-
lovetox
do you normally call pip install?
-
rom1dep
it crashes before attempting anything apparently > sqlite3.OperationalError: no such table: remote
-
lovetox
can you get me a full log?
-
lovetox
did it do the backup ?
-
rom1dep
yep
-
rom1dep
hold on
-
rom1dep
Pastebinβs SMART filters have detected potentially offensive or questionable content in your Paste.
-
rom1dep
SMART uppercase it must be, then
-
rom1dep
http://tamytro.org/tmp/gajim_new_db_model.txt
-
lovetox
so did it create a backup .bak file?
-
rom1dep
not even
-
lovetox
in .local/share/gajim
-
lovetox
its weird its like the migration is skipped, can you check the user_version field of your database?
-
rom1dep
in logs.db?
-
lovetox
yes
-
rom1dep
I see only 4 tables in there
-
lovetox
yes but the database has a user_version field
-
lovetox
its not in a table
-
rom1dep
I didn't know that was a thing
-
lovetox
do you use a GUI app for looking at the db?
-
cal0pteryx
Sqlite browser shows that field for example
-
lovetox
or simply execute
-
lovetox
PRAGMA user_version
-
rom1dep
says 8
-
lovetox
Oo
-
lovetox
Set it back to 7
-
lovetox
PRAGMA user_version = 7
-
lovetox
and then try again, but gather logs
-
cal0pteryx
rom1dep: did you run the storage branch at some point?
-
rom1dep
I may have accidentally; I have a script that updates gajim and its dependencies but that sometimes breaks when branches diverge (stuff gets force pushed in weird ways)
-
rom1dep
ok, now I have a GUI telling me that it failed instead π
-
rom1dep
I've got to go take a phone call, I'll be back later
-
rom1dep
It crashed on: File "/home/rom1dep/Binaires/Network/gajim/gajim/common/storage/archive/migration.py", line 258, in _process_message_row account_jid = JID.from_string(log_row.account.jid) ^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'jid'
-
lovetox
mhm odd, messges in the database that link to no account
-
bot
lovetox pushed 1 commits to branch gajim/master cfix: Migration: Donβt fail on missing jids - https://dev.gajim.org/gajim/gajim/-/commit/690ed499681d21985e0c05fc396c471f5b6da52b
-
lovetox
rom1dep, i pushed a mitigation of that problem
-
lovetox
please pull and try again
-
rom1dep
migration going on π
-
rom1dep
10%
-
rom1dep
25%
-
lovetox
after migration, quit gajim normally, this can take also a long time, because it will free up space from your database
-
rom1dep
50%
-
rom1dep
I have a buffer full of warnings for message not being migrated due to missing jid or account, I'm curious to see how many messages will come up missing π
-
cal0pteryx
My db was smaller after migrating. I'm curious about how much space is occupied by the migrated db, rom1dep
-
cal0pteryx
(I migrated before that fix)
-
rom1dep
let me vaccuum the backup for fairness
-
rom1dep
80%
-
rom1dep
vacuuming didn't reduce size noticeably
-
rom1dep
100%
-
rom1dep
https://upload.tamytro.org/upload/a3849b367f4dd4cedd5ad6f64afa7645b7d4f834/M9CTfOjdyN92MMotBeMyNrzbzh6xirDRb7ChpHvB/3e472291-b652-4e0f-9c63-50067ec9a54e.png
-
lovetox
.. ah damn now the same shit in that table
-
bot
lovetox pushed 1 commits to branch gajim/master cfix: Migration: Donβt fail on missing jids in mam migration - https://dev.gajim.org/gajim/gajim/-/commit/a26ce1180d14d9f5dd98c7bbe100fbeb85fa1d8a
-
lovetox
rom1dep, so now try again please
-
rom1dep
here we go again π
-
bot
lovetox pushed 1 commits to branch gajim/master cfix: Message: Store resource for private messages - https://dev.gajim.org/gajim/gajim/-/commit/f4336f45edfb06d826ab1902cd2f25f5838c8f44
-
rom1dep
done, and new crash
-
rom1dep
https://upload.tamytro.org/upload/a3849b367f4dd4cedd5ad6f64afa7645b7d4f834/xp8zrqxL88hFxFO116h4oPN7aelDv50yf1rn0yH3/6ae9a782-a331-43be-8973-c065c6d1e95d.png
-
cal0pteryx
rom1dep, thanks for testing, this is really useful
-
rom1dep
it isn't much, thanks to you guys for the great work π
-
lovetox
that comes of as sarcastic if you say this after the third failed attempt :D
-
rom1dep
hahaha, common, I know what I'm getting into by running from master :)
-
rom1dep
and it's not like I paid a lot of money or anything ^^
-
lovetox
hm rom1dep can you export me the table last_archive_message✎ -
lovetox
hm rom1dep can you export me the table "last_archive_message" ✏
-
rom1dep
sent a url in PM
-
lovetox
thanks
-
rom1dep
I'm trying to fixup my logs in the interim, the last log line I have with a missing account_id dates back to late 2017
-
rom1dep
(also, I'm keeping the "broken" original db for those migration tests, of course)
-
lovetox
but we would not migrate these anyway
-
lovetox
so not need to fix it
-
lovetox
or do you want to remap it
-
rom1dep
I want to remap it
-
rom1dep
what does the account_id value maps to?
-
rom1dep
I have, like 7 distinct values for it, from 1 to 221
-
bot
lovetox pushed 1 commits to branch gajim/master cfix: Migration: Make mam state migration more resilient - https://dev.gajim.org/gajim/gajim/-/commit/f1dbec4ff5bb89f8524584841d9827030c180729
-
lovetox
to the jids table
-
rom1dep
should I attempt another migration ? π
-
lovetox
it should contain the id in the jids table that is your account jid
-
lovetox
yeah i hope your error is now fixed
-
rom1dep
https://upload.tamytro.org/upload/a3849b367f4dd4cedd5ad6f64afa7645b7d4f834/oF6cwBSKXDi5y2wXLygWSVkAaxBnxljobewdqfgI/d4e49358-b914-45b1-a468-9f52a4b3024c.png
-
rom1dep
look at that π
-
cal0pteryx
great! how long did it take for 1.8gb?
-
rom1dep
new size is 507M down from 1.8G
-
rom1dep
about 10min
-
rom1dep
https://upload.tamytro.org/upload/a3849b367f4dd4cedd5ad6f64afa7645b7d4f834/duYv6S4TEvP5ivYIt8wXMNW3vMfsuiQrGZOrU9MO/bbe7a8a7-6bb3-46e4-bccf-3125ad572a34.png
-
rom1dep
apparently there might be some dedup issues
-
ngn
hello, I am trying to setup PGP encryption with Gajim, I already have a PGP key and I want to use it, how can I import this key? Also which plugin should I use? PGP or OpenPGP? What is the difference?
-
lovetox
only PGP allows you to use a key
-
lovetox
check the plugin config dialog
-
lovetox
in the plugin config i think there is a option to define a key
-
lovetox
rom1dep, weird how that is the only message dupliated
-
lovetox
you can delete that one message over the menu
-
lovetox
maybe the mam archive state migration is still not perfect somehow
-
ngn
lovetox, thanks! and one last thing, how do i assign keys to other contacts?
-
lovetox
if you select the encryption iside the chat
-
lovetox
there comes a shield icon
-
lovetox
if you click it i think that shows a dialog where you can assign a key
-
ngn
> if you select the encryption iside the chat > there comes a shield icon oh I see it, thank you so much!
-
fjklp
is the deduplication considering the same message from different accounts as duplicates?
-
lovetox
there is no deduplication
-
fjklp
That works too. I'm just lost in the conversation, carry on
-
fjklp
the db migration makes me feel uneasy π
-
rom1dep
I fixed my logs DB and it's still much smaller after migration :)
-
rom1dep
fjklp last messages still appears duplicated✎ -
rom1dep
fjklp last messages appears duplicated ✏
-
rom1dep
but my message from earlier does not
-
rom1dep
could it have to do with messages being received while MAM is fetching?
-
lovetox
is it reproduceable? otherwise i would say its some kind of hicup with migrating the mam state
-
rom1dep
hard to tell as such
-
rom1dep
OTOH, I'm missing a whole bunch of biboumi messages right now
-
rom1dep
(W) gajim.c.m.message (tamytro.org) Received message without message id
-
rom1dep
are messages without message id dropped or not displayed in the new implementation, somehow?
-
rom1dep
I can almost read the full backlog from my terminal, other clients show it, but not gajim ;Γ✎ -
rom1dep
I can almost read the full backlog from my terminal, other clients show it, but not gajim :) ✏
-
lovetox
i think its the conversation message receipt
-
lovetox
not a real message
-
lovetox
rom1dep, no reason comes to mind why a biboumi message would not be migrated
-
rom1dep
this isn't about migration
-
rom1dep
those are new messages
-
rom1dep
MAM fetched
-
lovetox
but if you have the jid you could look in the old db how the messages look that are not migrated
-
lovetox
ah
-
rom1dep
i.e. new to gajim
-
lovetox
you were joined this chat when the last time?
-
rom1dep
yesterday
-
lovetox
1 day should be requested in any case
-
lovetox
hmm
-
rom1dep
and as I said, the messages are requested, and printed in the logs
-
rom1dep
not in the messagewindow
-
lovetox
and the log says not more than the message id stuff?
-
rom1dep
2024-04-12T23:06:15 (W) gajim.c.m.message (account) Received message without message id 2024-04-12T23:06:15 (W) gajim.c.m.message (account) <message xmlns="jabber:client" from="#room%irc.ircserv.org@blah/nick" type="groupchat" to="me"><body>X said Y</body></message>
-
rom1dep
every now and then I get a "Received message without text"
-
rom1dep
but seems unrelated
-
lovetox
yeah this is then really a problem
-
lovetox
biboumi is a pain
-
rom1dep
I thought they came to the point of supporting a decently recent/featured MAM:version, but anyhow, this feels like a new behavior because messages from biboumi were properly displayed and archived before
-
lovetox
but i just checked and the biboumi instance on jabber.fr has message ids on the messages
-
lovetox
can it be that this particular instance you are using is ancient?
-
rom1dep
it's the one I run myself, it's the most recent or second most recent commit from the repo
-
lovetox
ah mom i see
-
lovetox
but its not messages in a chat
-
rom1dep
can be that jabberfr has patches on top of it, though
-
lovetox
i see this on the irc network messages
-
lovetox
like the irc server sends you stuff that you should register a nick and something like that, and this has no message ids
-
lovetox
if you go to view -> XML Console -> Log
-
lovetox
thats a new tab you see errors there
-
lovetox
and there is the full stanza that has no message id
-
lovetox
can you send me one
-
rom1dep
I can see the logs, how do I relate that to the stanza? Or you mean, I wait for a new log line to appear and catch the stanza at that time?
-
rom1dep
anyhow, I'm much less worried about those than I am about no biboumi message showing up anymore
-
rom1dep
would I be able to see from the logs.db whether those used to have message IDs ?
-
lovetox
with biboumi messages you mean messages in a channel, or from the irc server?
-
rom1dep
in a channel
-
lovetox
the stanza is printed under the error message
-
lovetox
in the Log tab
-
rom1dep
new messages seem to appear (moreover, with ID), but MAM messages do not
-
lovetox
but this can have different reasons
-
lovetox
i doubt biboumi does not add a message id
-
lovetox
can i join this irc channel you are talking about?
-
rom1dep
can I trash the room's history and re-fetch it on demand ?
-
rom1dep
well, in fact, I have the same problem on 2 different chanels on 2 different biboumi instances (so, 4 repros)
-
lovetox
im investigating
-
rom1dep
if I remove a room's history, then leave it, then join it again, would gajim try to fetch some history from MAM?
-
lovetox
no
-
lovetox
you need delete the row in mam archive state table
-
rom1dep
let me try that, then
-
rom1dep
so, I can totally repro that, then
-
rom1dep
I left the room, cleaned history, cleaned the mam_archive_state, re-joined
-
rom1dep
I can see the errors in the logs about "received without message id" and nothing printed in the gajim's messagewindow
-
bot
lovetox pushed 2 commits to branch gajim/master cfix: ChatBanner: Donβt fail if there is no resource set - https://dev.gajim.org/gajim/gajim/-/commit/6fc27014cb1fef51136ff22bd524344429f7cab2 cfix: Message: Accept messages without id - https://dev.gajim.org/gajim/gajim/-/commit/3b5f46b95d41063885800187212ca35b6dc026ef
-
rom1dep
Calling it a day, thanks for all the bugfixes, gajim seem in a much better shape now ππ