**** BEGIN LOGGING AT Tue May 19 02:59:57 2020 May 19 08:13:02 Morning May 19 08:21:52 Morning! May 19 08:26:08 Tofe: The hints from LG guys, though fair don't seem to help May 19 08:27:34 My journalctl shows: May 19 09:10:05 qemux86-64 LunaWebAppManag[722]: LocalePreferences::getPreferencesCallback(): toString -> [{"returnValue":false,"errorCode":-1,"errorText":"Denied method call \"getPreferences\" for category \"/\""}] May 19 08:27:58 Which seems that lunawebappmanager is trying to make the calls but doesn't send id's. Could be we need to rework this a bit?https://github.com/webOS-ports/luna-webappmanager/commit/08ff6dae2a86a312c0eb01423597e5e6f4ab4a1a May 19 09:40:25 Tofe: We might need something similar to what LG did for WAM: https://github.com/webosose/wam/commit/b28fa453944d1ace83db04de2ff94386282507ca#diff-4c3ad36f0e363e885e54a7bf349fb422 May 19 11:52:06 Herrie: ah, yes, probably, good find May 19 12:18:45 should I pretend to sit still or push another qt upgrade to zeus? May 19 12:19:09 or even bigger upgrade 12:57 <+JaMa> Tofe: Herrie: do you want me to merge Qt 5.15 in zeus (and forget about 5.14)? May 19 12:20:44 JaMa: well it depends, didn't you still have issues with 5.15 ? May 19 12:20:59 I'd prefer not deal with both ACG and Qt issue right now :p May 19 12:21:27 Yeah would be good to tackle them at separate occasions May 19 12:21:36 yes, there are still some issues, but in 5.14 which is already in zeus as well May 19 12:21:46 ok, will wait until ACG is finished at least May 19 12:22:28 JaMa: Hopefully won't be long, seems we're 90-95% there May 19 12:22:40 for zeus there is 5.14.2, but probably won't fix the black screen May 19 12:23:33 I'll have plenty of time starting from tomorrow evening May 19 12:31:00 ok, will do local build with 5.14.2 to see if it's any better than the one with 5.14.1 May 19 12:54:21 Tofe: Can I leave the luna-webappmanager/appmanager changes with you? I had a quick look, but I probably do more harm v.s. good there ;) May 19 13:18:10 Herrie: I'll continue the fight :) May 19 13:21:15 Tofe: Thnx, I think I found the fix for May 19 09:11:25 qemux86-64 user.warn LunaAppManager: [] [pmlog] LS_REQUIRES_SECURITY {"SERVICE":"(null)","CATEGORY":"/","METHOD":"registerApplication"} Service security groups don't allow method call. May 19 13:21:18 Testing that now May 19 13:21:39 Seems I simply forgot to add the api call to the ACG file there May 19 13:27:40 ok, one less then May 19 13:29:57 Herrie: if you push changes, please create new commits, it'll be easier for me to track the string of changes May 19 13:31:22 Tofe: OK May 19 13:31:43 Well I just did this one as a fixup. I try to not create a single commit for every small fix May 19 13:31:54 But maybe better to do that later May 19 13:38:42 In general I don't expect many anymore to be honest ;) May 19 15:52:56 Herrie: what authorization did you add, for registerApplication ? May 19 15:58:39 "system" May 19 15:58:51 But it seems there are other places that are doing "registerApplication" too May 19 15:58:57 So could be I had the wrong one ;) May 19 15:59:50 Seems the node-module-webos-sysbus has one too May 19 16:00:40 Seems libwebos-application also does it, which is used by phone app and luna-qml-launcher May 19 16:00:48 for me that doesn't help, I've added the API in api-permissions.d/luna-appmanager.api.json in section "system" May 19 16:00:55 but I still get the ls2 error May 19 16:01:02 (caused by phone app apparently) May 19 16:01:27 Tofe: Well it could be this one then? https://github.com/webOS-ports/libwebos-application/blob/8d5ce985fec7a9fc5b514be306a74193b6139f5b/src/webos_application.c#L164 May 19 16:02:21 https://github.com/webOS-ports/meta-webos-ports/blob/zeus/meta-luneos/recipes-luneos/apps/org.webosports.app.phone.bb#L6 May 19 16:02:22 possibly. Notice, line 147, how no name is given to LS2Register... May 19 16:02:51 That's not helping for sure ;) May 19 16:03:03 let me see if adding the appId there solves some logs May 19 16:06:28 nope: user.err luna-qml-launcher [] LS_REQ_NAME {"FILE":"base.c","LINE":942} Attempted to register for a service name that already exists: org.webosports.app.phone May 19 16:06:38 but it also means we're at the right place May 19 16:09:28 Well that's a different error ;) May 19 16:10:56 Tofe: I used to have this: May 17 07:06:15 qemux86-64 user.warn LunaAppManager: [] [pmlog] LS_REQUIRES_SECURITY {"SERVICE":"(null)","CATEGORY":"/","METHOD":"registerApplication"} Service security groups don't allow method call. May 19 16:10:56 May 17 07:06:15 qemux86-64 user.err LunaAppManager: [] [pmlog] LS_NO_METH {"METHOD":"registerApplication"} Couldn't find method: registerApplication May 19 16:11:05 So by adding the API, the 2nd one disappeared. May 19 16:11:24 ah ok, I just had the first one May 19 16:11:35 It seems the initial one came from LuneAppManager, the one from luna-qml-launcher might be yet another one again? May 19 16:11:49 Tofe: Well adding the API solved the 2nd one May 19 16:11:55 ok I see May 19 16:14:35 ok, the phone app is already registered through the LS2 QML May 19 16:14:54 it's a bit sketchy May 19 16:15:53 Well it anyway cannot register twice May 19 16:16:10 So it's merely a warning I'd say May 19 16:19:20 The way forward should be to provide an id I'd say, null is not a good practice here? May 19 16:24:44 I guess so too May 19 16:27:37 I'm not sure about how the ls2 security is applied if the service has no name? May 19 16:28:13 libwebos-application is something specific to luneos? May 19 16:29:14 Tofe: Yes it is May 19 16:29:43 Well for apps we can specify it's access in appinfo.json May 19 16:30:16 morphis introduced libwebos-application at some point May 19 16:30:36 for the moment I'll use appid-legacy May 19 16:30:52 that way it won't conflict May 19 16:31:43 Ok May 19 16:32:20 I think OSE might have something similar May 19 16:32:43 It basically provides some LS2 functionality and some other small things May 19 16:32:48 Will have a look May 19 16:47:04 we don't have any client permission for luna-webappmanager ? May 19 16:49:53 it's pointed to by a manifest file, but the file isn't there May 19 17:02:10 Seems I added it? https://github.com/webOS-ports/luna-webappmanager/blob/herrie/ls2-fix/files/sysbus/org.webosports.webappmanager.perm.json May 19 17:02:59 I just didn't see it on the device May 19 17:03:17 I have /usr/share/luna-service2/client-permissions.d/org.webosports.webappmanager.perm.json May 19 17:03:23 On my qemu image May 19 17:06:20 Not that it's helping though ;) May 19 17:06:58 well it's minor; I've logged the changes I did May 19 17:12:24 now I have user.err LunaWebAppManager [] LS_REQ_NAME {"FILE":"transport.c","LINE":1931} Invalid permissions for com.palm.launcher May 19 17:12:42 looks like a json error May 19 17:13:23 Could be a syntax error somewhwere May 19 17:22:14 no it's something else; the launcher tries to request a service name which isn't authorized May 19 17:24:32 ah, ls-hubd LSHUB_NO_NAME_PERMS {"APP_ID":"com.palm.launcher","ROLE_ID":"/usr/sbin/LunaWebAppManager","EXE":"/usr/sbin/LunaWebAppManager"} Executable: "/usr/sbin/LunaWebAppManager" May 19 17:25:14 I'd say WAM tries to impersonate com.palm.launcher, but that id isn't authorized by the role json May 19 17:27:57 yes, that's it. Now next one: ls-hubd LSHUB_NO_NAME_PERMS {"APP_ID":"com.palm.systemui","ROLE_ID":"/usr/sbin/LunaWebAppManager","EXE":"/usr/sbin/LunaWebAppManager"} Executable: "/usr/sbin/LunaWebAppManager" May 19 17:28:48 let's authorize all com.palm.* and org.webosports.* for now May 19 17:33:33 Tofe: I guess we could solve that by adding the permissions to appinfo.Json May 19 17:33:52 for now I do it in roles and client-permission May 19 17:34:01 For core-apps and luna-systemui I pushed some initial bits today to respective repos May 19 17:34:24 Just without the fix you have now it didn't do anything at my end May 19 17:34:42 well, I now have pleenty of errors May 19 17:34:55 which means I have web subprocesses May 19 17:34:58 https://github.com/webOS-ports/core-apps/commit/542d01ecac8736fbe05d602afed64588b967b7eb May 19 17:35:02 I still can't start apps, though May 19 17:35:24 https://github.com/webOS-ports/luna-systemui/commit/9d28f5b9f05457f7b88338c612589b8d6a94a21c May 19 17:36:39 Still some progress though :) May 19 17:40:02 https://www.dropbox.com/s/21karxmhdcw1scn/ACG-migration-log.txt?dl=0 my notes so far May 19 18:00:29 Tofe: OK but what did you change code wise? Because I don't get the errors you get yet... May 19 18:01:02 So you changed something in libwebos-application and also in luna-(web)appmanager? May 19 18:08:07 in libwebos-application, yes, I replace the NULL with an appId-legacy; this shouldn't change the results that much May 19 18:08:33 otherwise, nothing in code May 19 18:10:28 Well I don't get the same errors like you're getting for webapps May 19 18:13:22 ah May 19 18:19:20 I do hope I didn't forget to log something essential... May 19 18:27:29 I prefer to put my trials in github branches even if wip and point my local build to it, so I don't miss to push things from local May 19 18:30:28 Learned the hard way Lol May 19 18:46:17 :) May 19 18:59:40 Tofe: Especially with projects like this where there's so many components that need updating it's easy to miss one... May 19 18:59:55 So I usually push a repo after I made the changes May 19 19:44:38 Tofe: your last line about public/private for "" is hacky May 19 19:45:02 That explains why it works but we shouldn't really want public/private anymore May 19 21:59:24 yes, I know, I'm just trying to migrate step by step **** ENDING LOGGING AT Wed May 20 02:59:58 2020