Wizzup has quit [Ping timeout: 260 seconds]
Wizzup has joined #maemo-leste
_whitelogger has joined #maemo-leste
pabs3 has quit [Ping timeout: 252 seconds]
joerg has quit [Ping timeout: 268 seconds]
joerg has joined #maemo-leste
System_Error has quit [Remote host closed the connection]
pabs3 has joined #maemo-leste
System_Error has joined #maemo-leste
xmn has joined #maemo-leste
vectis_ has joined #maemo-leste
Livio has joined #maemo-leste
ungeskriptet has quit [Remote host closed the connection]
ungeskriptet has joined #maemo-leste
ungeskriptet has quit [Remote host closed the connection]
ungeskriptet has joined #maemo-leste
Twig has joined #maemo-leste
xmn has quit [Ping timeout: 260 seconds]
Twig has quit [Ping timeout: 268 seconds]
Twig has joined #maemo-leste
peetah has quit [Quit: -]
peetah has joined #maemo-leste
_whitelogger has joined #maemo-leste
Livio has quit [Ping timeout: 264 seconds]
xmn has joined #maemo-leste
ungeskriptet has quit [Remote host closed the connection]
ungeskriptet has joined #maemo-leste
vectis_ has quit [Ping timeout: 244 seconds]
<freemangordon> arno11: so, using haze with xmpp account should trigger the issue, right?
<freemangordon> arno11: ah, thanks (commhistory)
<freemangordon> though, I am not sure that's the case (commhistoryd)
xmn has quit [Quit: Leaving]
<freemangordon> so, the only place in all the SF repos on github, according to github search, that handles "IncomingMessage" is tp-ring
<freemangordon> is there anyone that has jolla phone? to perform a simple test
akossh has joined #maemo-leste
vectis_ has joined #maemo-leste
<Wizzup> freemangordon: why would they need some additional if they just don't online the modem until they rae ready
<freemangordon> ok, but what would happen if tp-ring crashes?
<freemangordon> and while it is restarted sms arrives?
<freemangordon> I wonder if tp-ring onlines the modem
<freemangordon> if that's the case, then we may leave cellulard to only power up the modem
<freemangordon> but I doubt
<freemangordon> anyway, lemme firs fix presence-ui/addressbook
ungeskriptet has quit [Remote host closed the connection]
ungeskriptet has joined #maemo-leste
ungeskriptet has quit [Remote host closed the connection]
ungeskriptet has joined #maemo-leste
apac has joined #maemo-leste
arno11 has joined #maemo-leste
<freemangordon> arno11: ping
<arno11> yep
<freemangordon> I think I have a proper fix for h-s-m issue
<freemangordon> however...
<arno11> ah cool
<freemangordon> I want first to confir that I am fixing the correct issue
<arno11> ok...
<arno11> ok
<freemangordon> do you mind if you collect some logs for me?
<arno11> sure np
<freemangordon> ok, sec
<freemangordon> gimme a minute to create instructions for you
<arno11> ok
<freemangordon> (and test them)
<freemangordon> arno11: so, revert h-s-m startup script back to 15
<freemangordon> and then, comment out current dsmetool invocation (to restore it later on) and add that line:
<freemangordon> /usr/sbin/dsmetool -t "G_MESSAGES_DEBUG=all DEBUG_OUTPUT=1 /usr/bin/hildon-status-menu >> /home/user/hsm.log"
<freemangordon> and then reboot
<arno11> ok np
<freemangordon> after reboot (given the issue is still there), please provide /home/user/hsm.log
<arno11> ok rebooting...
arno11 has quit [Quit: leaving]
arno11 has joined #maemo-leste
<arno11> freemangordon: back
<freemangordon> so, what is shown in status menu now?
<arno11> clock, internet connection and profile
<freemangordon> hmm...
<arno11> no availability btn
<arno11> and no tg account in voip and im account menu
<freemangordon> wait, what?
<freemangordon> may I have the output of mc-tool dump
<freemangordon> you may remove/mask usernames/pwd
<arno11> yeah
<arno11> don't need to provide btw, only sip and ring account are there
<arno11> no tg
<freemangordon> heh
<freemangordon> this has nothing to do with h-s-m
<arno11> but sure the account is there
<freemangordon> where?
<freemangordon> if mc-tool does not list it, it is *not* there
<arno11> no idea, if i reboot and start hsm later, it appears again
<freemangordon> is it possible to give me remote ssh access to your device?
<freemangordon> I uderstan that tarting h-s-m later 'fixes' it
<freemangordon> but, mc-tool not showing the account, means there is something terribly wrong with TP
<freemangordon> and I want to understand what
<arno11> @ssh, unfortunately not, because of crappy home network
<freemangordon> maybe tp-haze requires stuff not ready by that time
<arno11> yeah maybe
<freemangordon> what happens if you start t-haze by hand?
<freemangordon> sec
<freemangordon> HAZE_DEBUG=all HAZE_PERSIST=1 G_MESSAGES_DEBUG=all /usr/lib/telepathy/telepathy-haze
<freemangordon> or rather, first check if you have haze running
<arno11> yep, sec
<freemangordon> hmm... maybe it runs on another session bus...
<freemangordon> ps -ef | grep haze
<arno11> user 4065 4052 16 14:26 pts/4 00:00:00 grep haze
<freemangordon> ok, haze does not run
<freemangordon> try:
<freemangordon> HAZE_DEBUG=all HAZE_PERSIST=1 G_MESSAGES_DEBUG=all /usr/lib/telepathy/telepathy-haze
<freemangordon> to me haze just crashes
<freemangordon> OTOH, that should not stop mc from showing the account
<freemangordon> Wizzup: ^^^ any idea?
<arno11> haze starts but still no account
<freemangordon> ps -ef | grep dbus
<freemangordon> arno11: ^^^
<arno11> yep, sec
<freemangordon> arno11: does 'killall mission-control-5' fix the issue?
<arno11> (in haze i see purple/certificate/x509/ca-WARNING **: 14:27:49.403: Lazy init failed because an X.509 Scheme is not yet registered. Maybe it will be better later.)
<freemangordon> that's fine
<arno11> @mission control, let me check
<freemangordon> just tell me if restarting mc fixes the issue
<arno11> no change unfortunately
Livio has joined #maemo-leste
<freemangordon> wait, WTYM no change?
<freemangordon> does mc-tool now lists the account?
<freemangordon> *list
<arno11> yeah now the account is visible
<freemangordon> ok, that explains it
<arno11> i suppose it should work now if i killall hsm
<freemangordon> yes
<freemangordon> wait
<freemangordon> check if it is vissible in accounts ui
<freemangordon> it shold be
<freemangordon> so, my theory is:
<arno11> yeah it works now
<arno11> well done
<freemangordon> on boot, haze crashes so mc cannot add it
<freemangordon> now, we have to find out why haze crashes
<arno11> ok
<freemangordon> lemme test something
<arno11> ok
<Wizzup> freemangordon: if you're in vm disable apparmor
<Wizzup> if you're using the telegram thing
<Wizzup> 12:04 < freemangordon> I wonder if tp-ring onlines the modem
<Wizzup> it does not
<Wizzup> 12:03 < freemangordon> ok, but what would happen if tp-ring crashes?
<Wizzup> restart the phone :)
<freemangordon> sure, but sms will be missed
<freemangordon> Wizzup: I am not using telegram thing
<freemangordon> also, it seems to crash tp-haze only in early boot stages
<freemangordon> I am trying to find a way to gather tp-haze logs whyle starting-up
arno11 has quit [Quit: leaving]
<dsc_> freemangordon: this works: https://plak.infrapuin.nl/selif/lw1pztc6.txt
<freemangordon> yeah, I was writing wrapper script as well :)
<Wizzup> the ulimit, is that necessary?
<Wizzup> oh for coredumps?
<freemangordon> hmm, does not seem to work
<freemangordon> I am doing something wrong it seems
<dsc_> I did get ~/haze.log with that after a reboot (in vM)
<dsc_> oh ehh, chmod +x
<dsc_> \o/
<freemangordon> /usr/lib/telepathy/telepathy-haze: line 3: /home/user/haze.log: Permission denied
<freemangordon> if I start by hand as user
<freemangordon> apparmor="DENIED" operation="mknod" profile="/usr/lib/telepathy/telepathy-*" name="/home/user/haze.log" pid=5116 comm="telepathy-haze" requested_mask="c" denied_mask="c" fsuid=1000 ouid=1000
<freemangordon> :D
<Wizzup> yes, disable apparmor
<dsc_> xD
<Wizzup> this is how a MAC should work
<freemangordon> arno11: do you have apparmor disabled?
<Wizzup> disable it if you're debugging and violating security boundaries
<Wizzup> we don't have apparmor on the phones
<freemangordon> oh, really?
<freemangordon> ok
<Wizzup> indeed
<Wizzup> it's not yet enabled in the kernels
<freemangordon> ok
arno11 has joined #maemo-leste
<Wizzup> we will start enabling it 1-2 months from now or so
<freemangordon> what is the 'proper' way to disable it in the VM?
<dsc_> sec
<Wizzup> I would just uninstall purge it
<freemangordon> ok
<Wizzup> or you can remove the init script
<Wizzup> either of those should be enough
<freemangordon> or I can disable the service
<Wizzup> unless something else depends on it
<Wizzup> in which case disabling doesn't help
<freemangordon> oh, there is no systemctl :D
* freemangordon hides
<dsc_> do not remove libapparmor1 (or whatever it is called) - apt will go into chaos
<dsc_> not sure if the grub thing is neccesary
<freemangordon> just uninstalling is not enough?
<dsc_> but I really wanted it to be gone
<Wizzup> freemangordon: should be enough
<freemangordon> ok
<Wizzup> let's try just uninstalling it
<freemangordon> mhm
<dsc_> check with `lsmod` after purging to confirm
<Wizzup> the kernel module is not part of apparmor pkg..
<Wizzup> it's part of the kernel pkg, but the module by itself does nothing
<Wizzup> it just provides userspace a way to parse and upload compiled mac profiles
<Wizzup> which won't happen if userspace is not installed
<freemangordon> arno11: so, please, do what dsc_ pasted ^^^ to get haze log during boot
<freemangordon> then provide it (making sure sensitive data if any is masked)
<arno11> ok will do
<freemangordon> uninstalling apparmor is enough
<dsc_> arno11: chmod +x this wrapper too
<dsc_> just to be sure
<arno11> yep :P
<freemangordon> arno11: you can revert hsm invocation script
<freemangordon> still keepin it 15 ofc
<arno11> ok
xinomilo has joined #maemo-leste
<freemangordon> but we don't really need hsm logs as the issue is not there
<Wizzup> freemangordon: good @ uninstalling
<freemangordon> is it ok if I push directly to daedalus-stable?
<arno11> rebooting now, let's see the logs
arno11 has quit [Quit: leaving]
<freemangordon> Wizzup: ^^^
arno11 has joined #maemo-leste
<arno11> hmm after reboot, the log file has been created but it is empty...
<arno11> i chmod'd +x it btw
<freemangordon> 'it' being?
<arno11> it == the wrapper
<freemangordon> anything in dmesg log?
<freemangordon> or, is there coredump?
<freemangordon> oh, wait
<freemangordon> I forgot to tell you to remove the HAZE_PERSIST env var
<arno11> ah ok
<freemangordon> wait
<freemangordon> one more thing
<freemangordon> the line should be:
<freemangordon> HAZE_DEBUG=all G_MESSAGES_DEBUG=all /usr/lib/telepathy/telepathy-haze2 2>&1 >> /home/user/haze.log
<arno11> ok
<arno11> let's try again
<freemangordon> ok
pere has quit [Ping timeout: 268 seconds]
arno11 has quit [Quit: leaving]
pere has joined #maemo-leste
<Wizzup> freemangordon: yes @ push to stable
<freemangordon> ok
<freemangordon> I want to improve presence plugin to properly behave when mc is restarted
<freemangordon> and then will rebuild
<freemangordon> have to go for a while, bbl
arno11 has joined #maemo-leste
<arno11> freemangordon: got the logs
<arno11> no error, no fail, no warning
arno11 has quit [Client Quit]
<freemangordon> well, not really
<freemangordon> see purple/prefs-INFO: 15:48:12.382: /purple/savedstatus/isidleaway changed, scheduling save.
<freemangordon> and then nothing
<freemangordon> but there should be account related stuff
<freemangordon> we shall enable purple debug too
<freemangordon> and telegram-tdlib debug too
<freemangordon> however, I am sure that if you start haze manually later on, you will see different log
<freemangordon> do I need android to create telegram account?
<Wizzup> I think so unfortunately
<freemangordon> arno11: remove haze.log, add PURPLE_UNSAFE_DEBUG=1 PURPLE_VERBOSE_DEBUG=1 to tp-haze startup, reboot and provide the new log please
<freemangordon> also, check in /var/tmp for properly created haze directory (you may want to remove the old ones first)
arno11 has joined #maemo-leste
<arno11> sorry i have to go, can only check this evening/night
<freemangordon> ok, np
<freemangordon> Wizzup: any idea who is supposed to clean /var/tmp? as it seems it just piles up
<arno11> however you should able to create a tg account via telegram-desktop
<arno11> bbl
<freemangordon> I don;t have android phone
<arno11> i mean from leste with telegram-desktop
<freemangordon> well, I have ubintu, why do I need leste?
<freemangordon> *ubuntu
<arno11> leste or any other linux ofc
<freemangordon> yeah
<arno11> bbl
<Wizzup> freemangordon: uh, can check, I think it's not supposed to be auto cleaned
arno11 has quit [Client Quit]
<Wizzup> arno11: oh cool @ telegram-desktop
<freemangordon> arno11: ping me when you have time to continue
<freemangordon> Wizzup: ok, but lots of programs write there
<freemangordon> it seems systemd-tmpfiles-clean clean it :D
<freemangordon> right, but still those should be deleted
<freemangordon> " Although data stored in /var/tmp is typically deleted in a site-specific manner, it is recommended that deletions occur at a less frequent interval than /tmp."
apac has quit [Ping timeout: 252 seconds]
<freemangordon> but in leste vm I see files back from 2022
<Wizzup> it's about 100M on my laptop and also does back to 2019
<Wizzup> let me check my d4
<Wizzup> 18MB on my d4 (mostly some mafw-gst stuff)
<Wizzup> I don't think is very impactful right now
<freemangordon> ok
<Wizzup> one thing we do also need to fix is setting up relatime on all devices
<Wizzup> some devices don't have a / entry in their fstab even
<Wizzup> so this can get a bit tricky
<freemangordon> yes, we must do that
<Wizzup> yes, but if there is no /etc/fstab entry, wheree :)
<dsc_> my problem with /tmp/ is writing to disk, trashing the SD card
<dsc_> but maybe its not an issue
<Wizzup> what are you writing that causes this much load?
<dsc_> just in general
<gnarface> for something like a phone it's probably acceptable to mount /tmp as tmpfs
<gnarface> i think that's even the default on raspbian, isn't it?
<gnarface> typically you wouldn't have much in there, so it doesn't need much space
<gnarface> that should minimize related disk load
<gnarface> i think on a system with a mysql instance running, i once hit a 32MB limit i'd set, but otherwise under normal use i don't think i've seen it go above 16MB (iirc raspbian defaults to 64MB?)
<gnarface> obviously ymmv
ungeskriptet has quit [Read error: Connection reset by peer]
ungeskriptet has joined #maemo-leste
ungeskriptet has quit [Remote host closed the connection]
ungeskriptet has joined #maemo-leste
<freemangordon> ok, rtcom-presence-ui should now properly react to mc being restarted or to new cm being installed
<freemangordon> will do the same for addressbook
<freemangordon> none of these will fix haze issue :)
<Wizzup> freemangordon: great, ty
<freemangordon> Wizzup: hmm, I am not sure I want to implement proper mc restarted logic, it will be too complicated, I'd rather add one more function like this https://git.maemo.org/leste/osso-abook/src/branch/master/lib/osso-abook-init.c#L132
<freemangordon> something like osso_abook_set_am_died_func() or osso_abook_set_tp_died_func()
<freemangordon> what do you think?
<freemangordon> this will result in addressbook exiting if mc is restarted
<freemangordon> hmm?
xinomilo has quit [Ping timeout: 248 seconds]
xinomilo has joined #maemo-leste
Smatkovi has joined #maemo-leste
xinomilo has quit [Quit: Leaving]
<Wizzup> freemangordon: sorry what should this callback d
<Wizzup> do?
<Wizzup> ok, so this is only in abook binary, not in the library
<freemangordon> basically this is what happens if eds got stopped
<Wizzup> ok
<freemangordon> no, it is the library that provides osso_abook_set_backend_died_func()
<freemangordon> but binary calls it to register cb
<freemangordon> given that mc got killed is not an ordinary situation (the sa as eds got stopped) I think it is reasonable to exit the application
<freemangordon> *the same
<Wizzup> ok
<Wizzup> I am not sure where this happens in any case but I am not sure if we say want to stop conversations if mc is not running
<Wizzup> and conversations (for example) does use abook
arno11 has joined #maemo-leste
<arno11> freemangordon: new log:
<freemangordon> Wizzup: so, what will conversations do if mc got killed?
<freemangordon> or, you think I shall try to re-init everything?
<freemangordon> arno11: thanks
<arno11> np
<freemangordon> are yuo sure purple debug is enabled?
<arno11> yep
<arno11> and i removed old tmp files
<freemangordon> hmm, I see no diff with the old one
<arno11> yes indeed...
<freemangordon> that's weird
<arno11> mhm
<Wizzup> freemangordon: keep running and keep checking dbus for tp to come back
<freemangordon> right, but the issue is that binary might have stalled data, like protocol objects and whatnot
<freemangordon> tp coming back is not an issue
<freemangordon> but we shall destroy all the account, protocol, etc objects, re-create TP e-books, attach to the new account manager and start from the beginning
<freemangordon> not to say that account manager might be provided by th eapplication to the library
<freemangordon> then what?
<freemangordon> to mt it is application that shall watch for the account manager service dis-appearing from the bus and re-init the library
<freemangordon> *to me
<freemangordon> library has no means to know what is cached in the application
<Wizzup> ok
<Wizzup> how often does mc disappear?
<freemangordon> should never happen ;)
<freemangordon> adding new connection mamanger is another story
<freemangordon> *manager
<freemangordon> I will take care of that in the library
<Wizzup> `ok
<Wizzup> I thought maybe the problem we were seeing was mc disappearing during boot or something, but I wasn't following along
<freemangordon> no, mc is fine
<freemangordon> it is that tp-haze does not provide accounts information for some reason
<freemangordon> arno11: please, double-check that purple debug is enabled and also, check if additional debug logs can be enabled for the particular pidgin plugin (telegram-tdlib)
<arno11> i already doublecheck for purple, will look @tdlib
<Wizzup> I don't think tdlib has much to do with purple, or do you mean purple-tdlib
<Wizzup> so is this a telegram specific problem?
<arno11> i don't think it is telegram specific as i encountered quite the same issues with facebook
<arno11> it seems maemo specific
<arno11> i don't remember any troubles with bitlebee
<arno11> *bitlbee
<freemangordon> I don't think it is maemo, it is either TP or libpurple issue
<freemangordon> arno11: does it happen with xmpp haze account?
<arno11> for xmpp, no idea
<arno11> we should try
<arno11> (i don't have any account)
<freemangordon> Wizzup: could you provide a test account ^^^
<arno11> btw no trouble with pidgin
<freemangordon> arno11: yes, but you start pidgin way after averything is ready
<arno11> yeah
coffeecreature has quit [Remote host closed the connection]
<freemangordon> hmm, lemme slow down my vm, to see if it will happen
<arno11> ah good idea :)
coffeecreature has joined #maemo-leste
<freemangordon> ok, 1 cpu/10% execution cap
<arno11> if slowness is the problem, it could be also ram/swap
<freemangordon> yeah, but I think now vm runs even slower than n900 :)
<arno11> lol ok
<freemangordon> it still boots :)
<arno11> :)
<freemangordon> and I have fb acccount there, so lets see
<arno11> ok cool
<freemangordon> no, it seems fine :(. lemme slow it down even more
<freemangordon> hmm, ok, actually I see no presence icon
<arno11> ah
<freemangordon> however, the account is visible in mc-tool
<freemangordon> and in accounts-ui
<arno11> yes it was the same for me iirc
<arno11> *with facebook
<freemangordon> restarting h-s-m makes it appear :)
<arno11> yep
<freemangordon> no, that's with xmpp account
<freemangordon> lemme see if I can speed-up the machine a bit
<freemangordon> and still make it happen
<arno11> ok
<arno11> what you see with xmpp is exactly what i saw with fb
<freemangordon> ok, I have a test-case here
<freemangordon> right
<freemangordon> however, the account is visible in mc-tool and in accounts-ui
<freemangordon> so there is another issue with telegram
<freemangordon> but lets fix that one first
<arno11> yes but that's because login is differnet
<freemangordon> arno11: thanks, will get back to you when I have something
<arno11> if you solve this issue i'm pretty sure it will be ok with tg as well
<freemangordon> could be, lets see
<arno11> i.e i saw the same with facebook and solved it by starting hsm later. same result with tg
<freemangordon> right
arno11 has quit [Quit: leaving]
<freemangordon> 2025-05-25T23:42:02.294965+03:00 devuan kernel: [ 156.642104] traps: telepathy-haze[3581] trap int3 ip:7f027d333e32 sp:7ffe076027b0 error:0 in libglib-2.0.so.0.7400.6[7f027d2f5000+8d000]
<Wizzup> freemangordon: you want xmpp test acc for arno11?
<dsc_> username 'stevejobs' is already taken fyi
<freemangordon> Wizzup: no need, seems I am able to trigger the issue on my VM
<Wizzup> I will DM him when he's back
<Wizzup> oh ok
Livio has quit [Ping timeout: 264 seconds]
apac has joined #maemo-leste
<freemangordon> ok, account manager never get ready
akossh has quit [Ping timeout: 276 seconds]
vectis_ has quit [Ping timeout: 248 seconds]
Twig has quit [Remote host closed the connection]
apac has quit [Ping timeout: 248 seconds]