**** BEGIN LOGGING AT Fri Mar 30 03:00:01 2018 Mar 30 07:10:59 Morning! Mar 30 08:13:31 Morning! Mar 30 08:13:47 Tofe: Morning! Mar 30 08:14:04 Tofe: Getting close to initial migration of components and stuff working... Mar 30 08:14:12 Just have ls-hubd crashing on me still Mar 30 08:14:15 So figuring out why Mar 30 08:14:25 Herrie|Laptop: yes, I saw you tackled quite some work ! Mar 30 08:14:56 Herrie|Laptop: do you have a gdb backtrace? Mar 30 08:14:59 Tofe: Well I started at the wrong end, so needed to redo it a bit ;) Mar 30 08:15:16 Morphis suggested to do nyx & ls2, which ended up in being nyx-modules, nyx-lib, nyx-utils, libwebosi18n, luna-sysservice, luna-service2, luna-service2-security-conf, sleepd, cmake-modules-webos-native, libpbnjson, pmloglib, pmloglib-private Mar 30 08:15:21 With all dependencies :P Mar 30 08:15:29 Tofe: No GDB yet Mar 30 08:15:32 Only strace for now Mar 30 08:16:03 https://bpaste.net/show/c860236fddbd Mar 30 08:16:11 Need to pull the dev package for GDB Mar 30 08:16:13 Will do that in a bit Mar 30 08:16:23 Just the ls-hubd private and public is gone Mar 30 08:16:33 So that gives some things that need fixing Mar 30 08:16:44 And I'll need some help with nyx-modules-hybris later Mar 30 08:17:00 I migrated most of the API but since it's all C++ I'm not too comfortable with the remaining errors Mar 30 08:17:22 Since it's vibration + led only, it's not too critical in general to not have it for a little bit Mar 30 08:17:33 Just it also uses legacy_hardware which is 5.1 only Mar 30 08:17:44 So will need some rewrite. The code is not extensive, so should be fairly easy Mar 30 08:21:21 ok :) Mar 30 08:23:40 line 413, it seems it tries to create a file with a NULL pointer for the filename Mar 30 08:24:05 we'd need gdb to know where that happens though Mar 30 08:24:19 Tofe: On the nyx-modules-hybris I've done most of the work already it seems... Just it needs some TLC: https://github.com/webOS-ports/nyx-modules-hybris/commit/b1a2d0d18676c7d69cdd21c06dea93d94e0e9d71 Mar 30 08:24:53 good! Mar 30 08:25:15 I'll have to leave, some more holiday stuff to do ;) Mar 30 08:25:18 Just got too deep into C(++) for my liking :P Mar 30 08:25:20 Tofe: No worries Mar 30 08:25:24 I'll get GDB sorted sometime Mar 30 08:25:56 ok, I'll help with the backtrace analysis, should be pretty straightforward (I hope) Mar 30 08:27:22 Herrie|Laptop: please accept the invite for fe mins Mar 30 09:01:52 Tofe: https://bpaste.net/show/13830640bbd1 Mar 30 09:09:30 Seems that it cannot find PID or lock file? https://github.com/webosose/luna-service2/blob/master/src/libluna-service2/utils.c#L91 Mar 30 09:13:06 Tofe: It could be that I need to do some of the initscripts migration Mar 30 09:13:31 I didn't take anything of that now. I just hackily added back the systemd service files Mar 30 09:13:33 https://github.com/webosose/webos-initscripts Mar 30 09:38:24 Tofe: I suspect the cause will be in the missing https://github.com/webosose/webos-initscripts/blob/7447fc3c1b6bf31b327f87cfdd226f37cd9eb959/files/systemd/scripts/common/populate-volatile.sh.in Mar 30 09:40:09 I.e. https://github.com/webosose/luna-service2/blob/b74b1859372597fcd6f0f7d9dc3f300acbf6ed6c/src/ls-hubd/conf.cpp#L985 Mar 30 09:40:17 It complains it cannot find the devmode certificates Mar 30 09:40:30 While I know that one of them exists for sure Mar 30 09:41:13 It has the following in the ls-hubd.conf: DevmodeCertificate=/var/luna-service2-dev/devmode_certificate.json and DefaultDevmodeCertificate=/usr/share/luna-service2/devmode_certificate.json Mar 30 09:41:28 1st one doesn't exists, 2nd one exists Mar 30 10:19:32 JaMa: You around somewhere or traveling? Mar 30 13:24:07 Herrie|Laptop: it's related to the pid_dir option, it seems Mar 30 13:24:29 Tofe: Yeah I'm not really sure how & what Mar 30 13:24:40 Even when I manually create it that doesn't solve the issue Mar 30 13:25:26 to we pass that option, in the systemd service file? Mar 30 13:25:33 do* Mar 30 13:26:36 it's -i Mar 30 13:27:15 Tofe: What do you mean? Mar 30 13:27:17 -i where? Mar 30 13:27:41 This is what I mocked up: https://github.com/webOS-ports/webos-systemd-services/blob/webosose/ls-hubd.service Mar 30 13:28:34 I'm doing a new build which has the tests for ls2 included, however that triggered a webengine rebuild :P Mar 30 13:28:40 So waiting for that to finish Mar 30 13:30:29 Tofe: Ah I see what you mean now: https://github.com/webosose/luna-service2/blob/b74b1859372597fcd6f0f7d9dc3f300acbf6ed6c/src/ls-hubd/hub.cpp#L3217 Mar 30 13:31:15 Well we should have /var/run normally I'd say ? Mar 30 13:31:40 It exists in my image Mar 30 13:32:09 my guess is that the pid_dir option in the conf file can't be parsed Mar 30 13:32:28 Could be that it's in /tmp like in their tests: https://github.com/webosose/luna-service2/blob/b74b1859372597fcd6f0f7d9dc3f300acbf6ed6c/src/libluna-service2/test/test_utils.c#L25 Mar 30 13:32:43 Tofe: Well my SCP to qemux86 is a bit faulty Mar 30 13:32:49 I get messed up files Mar 30 13:32:54 So it's not really easy to test Mar 30 13:33:01 I.e. I can't simply push files Mar 30 13:33:08 Which makes it a bit hard Mar 30 13:33:12 Need to rebuild every time Mar 30 13:33:21 I guess I could try Mido and use ADB push Mar 30 13:33:25 Might be more reliable somehow Mar 30 13:33:38 Not sure what's up with SCP pushed files getting messed up Mar 30 13:33:53 and I'm in a car with the phone, so can't help efficiently Mar 30 13:34:19 Tofe: LOL Mar 30 13:34:33 Do we have any non-vi(m) editor installed in image you know of? Mar 30 13:34:37 (yes I'm a passenger :) ) Mar 30 13:34:43 Could edit on-device ;) Mar 30 13:35:21 mmh not really Mar 30 13:35:49 why not use vi? Mar 30 13:36:02 Well it looks for PidDirectory=/var/run/ls2 Mar 30 13:36:05 ls2 we don't have Mar 30 13:36:08 I guess I could create it :P Mar 30 13:36:21 Ah wait Mar 30 13:36:24 I have it now Mar 30 13:36:31 It had a ls-hubd.pid too there Mar 30 13:36:47 ok Mar 30 13:37:18 Started freshw ith vbox image Mar 30 13:37:23 Without any changes Mar 30 13:37:25 Let's see log Mar 30 13:38:31 there should be a complaint yes Mar 30 13:38:50 Not really Mar 30 13:38:54 ls-hubd now OK Mar 30 13:39:03 But not starting other things Mar 30 13:39:10 I.e. no luna-sysmgr, luna-sysservice Mar 30 13:39:15 weird. .. Mar 30 13:40:09 Herrie|Laptop: was traveling, not remotely around Mar 30 13:40:15 It's almost like it doesn't emit a signal it's ready or something Mar 30 13:40:23 So other systemd bits don't start Mar 30 13:40:33 that depend on ls-hubd Mar 30 14:01:31 Just their systemd service file looks weird https://github.com/webosose/webos-initscripts/blob/master/files/systemd/services/common/ls-hubd.service Mar 30 14:01:34 So I updated our own one Mar 30 14:01:41 But could be we need something extra Mar 30 14:01:49 I.e. Environment=UPSTART_JOB=ls-hubd Mar 30 14:03:10 Tofe: Ah this gives some clue: https://github.com/webosose/luna-service2/blob/b74b1859372597fcd6f0f7d9dc3f300acbf6ed6c/src/ls-hubd/hub.cpp#L3349 Mar 30 14:05:59 Ah OK seems we might need the Environment=UPSTART_JOB=ls-hubd Mar 30 14:12:24 Ooh good fun seems they ship some initctl binary with webos-initscripts... https://github.com/webosose/webos-initscripts/tree/master/src/initctl Mar 30 14:19:49 Because even with the Environment=UPSTART_JOB=ls-hubs which should trigger the initctl call in /sbin/initctl which is provided by webo-initscripts it seems Mar 30 14:19:52 Good fun Mar 30 14:21:54 So I guess I'll strip down their repo with the stuff we don't need for now, just to get it added and see if I can get stuff to build Mar 30 14:22:04 Then later add the service files back in there Mar 30 14:22:22 I.e. they do: https://github.com/webosose/meta-webosose/blob/master/meta-webos/conf/distro/include/webos-preferred-providers.inc#L53 Mar 30 14:32:21 I'll toy around a bit Mar 30 14:32:31 I guess when this works it should be fairly straight forward Mar 30 14:32:38 Most other changes I've build tested already Mar 30 14:32:46 Just ls-hubd is at heart of everything ;) Mar 30 21:05:41 Tofe: FYI got UI working now :) Mar 30 21:06:07 Added initscripts, modified them slightly to remove stuff we don't need or didn't migrate and added out systemd service files, booted right away Mar 30 21:06:20 I don't have items in first use lists yet, but that's now to investigate :P Mar 30 21:06:56 FYI: https://github.com/Herrie82/webos-initscripts/commit/28f2d573d4a23c01ca2ce86cd4e2bca10241653f Mar 30 21:10:11 OK seems I have a ton of things to investigate, but I guess it's due to changes from com.palm to com.webos and also that we need to provide some patches for org.webosports I guess Mar 30 21:10:34 Log FWIW: https://bpaste.net/show/4b9b3d34c393 Mar 30 21:10:47 elvispre: You've seen the news about webOS OSE? **** ENDING LOGGING AT Sat Mar 31 03:00:01 2018