Can't install neither agl-service-helloworld nor native application
Description
Environment
Attachments
Activity
After setting up halibut environment I could successfully install and run helloworld service and application. I don't know why helloworld service wouldn't run in guppy yet I'm glad I could do what I need in halibut.
I guess issue can be resolved now.
Sorry, I've sent you wrong version of qml widet by mistake, here is the one, that I've tried to run
Concerning the message you referenced to. I will try to setup halibut image and sdk and try to install and run helloworld service and native application in halibut and will update you on my results.
Also I have an offtopic question does every app require matching service running or only native ones?
Have you noticed the message on the mailing list: https://lists.automotivelinux.org/g/agl-dev-community/message/7822
It is related to your issue because a service might be missing. At the moment, afm-util and afm-main doesn't check requirements missing. It has be be done to be able to report correctly the error.
The widget xxxxxx-qml-app.wgt doesn't install because it includes files in .. directory. See:
$ unzip -l xxxxxx-qml-app.wgt
Archive: xxxxxx-qml-app.wgt
Length Date Time Name
--------- ---------- ----- ----
522 11-13-2019 14:54 xxxxxx-qml-app.qml
440 11-13-2019 14:54 config.xml
4971 11-13-2019 14:54 icon.png
0 11-13-2019 15:09 ../
4141 11-13-2019 14:53 ../Makefile
0 11-13-2019 15:10 ../package/
522 11-13-2019 14:54 ../package/xxxxxx-qml-app.qml
440 11-13-2019 14:54 ../package/config.xml
4971 11-13-2019 14:54 ../package/icon.png
440 11-13-2019 14:36 ../config.xml
1380 11-13-2019 14:53 ../cmake_install.cmake
0 11-13-2019 14:54 ../CMakeFiles/
98 11-13-2019 14:37 ../CMakeFiles/CMakeOutput.log
129 11-13-2019 14:53 ../CMakeFiles/CMakeRuleHashes.txt
185 11-13-2019 14:53 ../CMakeFiles/TargetDirectories.txt
0 11-13-2019 14:53 ../CMakeFiles/widget.dir/
99 11-13-2019 14:53 ../CMakeFiles/widget.dir/depend.internal
22 11-13-2019 14:53 ../CMakeFiles/widget.dir/progress.make
213 11-13-2019 14:53 ../CMakeFiles/widget.dir/cmake_clean.cmake
99 11-13-2019 14:53 ../CMakeFiles/widget.dir/depend.make
316 11-13-2019 14:36 ../CMakeFiles/widget.dir/DependInfo.cmake
2546 11-13-2019 14:53 ../CMakeFiles/widget.dir/build.make
1149 11-13-2019 14:53 ../CMakeFiles/Makefile.cmake
639 11-13-2019 14:53 ../CMakeFiles/CMakeDirectoryInformation.cmake
0 11-13-2019 14:36 ../CMakeFiles/3.7.2/
398 11-13-2019 14:36 ../CMakeFiles/3.7.2/CMakeSystem.cmake
0 11-13-2019 14:54 ../CMakeFiles/Progress/
2 11-13-2019 14:54 ../CMakeFiles/Progress/count.txt
5 11-13-2019 14:54 ../CMakeFiles/Progress/1
3122 11-13-2019 14:53 ../CMakeFiles/Makefile2
85 11-13-2019 14:53 ../CMakeFiles/cmake.check_cache
0 11-13-2019 14:37 ../CMakeFiles/3.10.2/
398 11-13-2019 14:37 ../CMakeFiles/3.10.2/CMakeSystem.cmake
2 11-13-2019 14:53 ../CMakeFiles/progress.marks
6459 11-13-2019 14:53 ../CMakeCache.txt
--------- -------
33793 35 files
So please remove this ../xxx files.
ps -ef|grep afm has following output for my image:
qemux86-64:~# ps -ef | grep afm
root 313 1 0 08:30 ? 00:00:00 afm-system-daemon
root 324 1 0 08:30 ? 00:00:00 /bin/systemctl --wait start afm-user-session@0.target
root 350 336 0 08:30 ? 00:00:00 /usr/bin/afm-user-daemon --user-dbus=unix:path=/run/user/0/bus unix:/run/platform/apis/ws/afm-main
root 544 542 0 08:30 ? 00:00:00 /var/local/lib/afm/applications/launcher/0.1/bin/launcher 31031 HELLO
root 550 543 0 08:30 ? 00:00:06 /var/local/lib/afm/applications/homescreen/0.1/bin/HomeScreen 31029 HELLO
root 844 819 0 13:44 ttyS0 00:00:00 grep afm
Here is the helloworld widget that failed to start. I also attach qml widget. I could install both widgets but couldn't run neither of them
journalctl -f called after failing to start widget returns following output:
For helloworld native widget:
Nov 14 13:58:43 qemux86-64 afm-system-daemon[313]: ERROR: can't start system unit afm-appli-helloworld-native-application--0.1-fe47611-dirty--main@.service for uid 0 [/usr/src/debug/af-main/guppy+gitAUTOINC+598f374d29-r0/git/src/afm-urun.c:252]
For qml application
Nov 14 13:54:05 qemux86-64 systemd[1]: afm-appli-xxxxxx-qml--0.1--main@0.service: Service lacks both ExecStart= and ExecStop= setting. Refusing.
Nov 14 13:54:05 qemux86-64 afm-system-daemon[313]: ERROR: can't start system unit afm-appli-xxxxxx-qml--0.1--main@.service for uid 0 [/usr/src/debug/af-main/guppy+gitAUTOINC+598f374d29-r0/git/src/afm-urun.c:252]
On the image you used, I can easily reinstall phone.wgt.
So, can you please upload here the helloword widget that fails.
Hi there, AGL community.
Please help me to understand reason behind errors I get when I'm trying to install helloworld native application and service and how to solve this error.
What I've done so far
I've built hello-world native application widget, copied it via scp to my target qemu machine and successfully installed it using
qemux86-64:~# afm-util install helloworld-native-application.wgt
This comment gave following result:
Unknown macro: { h6. "added"}
But when I've tried to run installed application using
qemux86-64:~# afm-util start helloworld-native-application@0.1-f347611-dirty
I got the following error:
ERROR: not-found
What does this error mean?
My guess was that I need to run matching hello-world service (please correct me if my assumption is wrong) which I also have build and copied via ssh to my target but when I tried to install service widget with
qemux86-64:~# afm-util install agl-service-helloworld.wg
I got this error:
ERROR: failed installation failed: File exists
journalctl -f gives following output:
qemux86-64:~# journalctl -f – Logs begin at Sun 2019-11-10 13:15:17 UTC. –{{ Nov 10 16:03:32 qemux86-64 afm-system-daemon[381]: NOTICE: – UNINSTALLING widget of id helloworld-native-application@0.1-f347611-dirty from /var/local/lib/afm/applications – [/usr/src/debug/af-main/guppy+gitAUTOINC+598f374d29-r0/git/src/wgtpkg-uninstall.c:47]}} {{ Nov 10 16:03:32 qemux86-64 afm-system-daemon[381]: ERROR: can't read widget config in directory '/var/local/lib/afm/applications/helloworld-native-application/0.1-f347611-dirty': No such file or directory [/usr/src/debug/af-main/guppy+gitAUTOINC+598f374d29-r0/git/src/wgtpkg-uninstall.c:70]}} {{ Nov 10 16:04:10 qemux86-64 afm-system-daemon[381]: NOTICE: – UNINSTALLING widget of id helloworld-native-application@0.1-fe47611-dirty from /var/local/lib/afm/applications – [/usr/src/debug/af-main/guppy+gitAUTOINC+598f374d29-r0/git/src/wgtpkg-uninstall.c:47]}} {{ Nov 10 16:04:21 qemux86-64 afm-system-daemon[381]: NOTICE: – INSTALLING widget /home/0/helloworld-native-application.wgt to /var/local/lib/afm/applications – [/usr/src/debug/af-main/guppy+gitAUTOINC+598f374d29-r0/git/src/wgtpkg-install.c:547]}} {{ Nov 10 16:04:21 qemux86-64 systemd[1]: Reloading.}} {{ Nov 10 16:04:21 qemux86-64 systemd[1]: Stopped target Sockets.}} {{ Nov 10 16:04:21 qemux86-64 systemd[1]: Stopping Sockets.}} {{ Nov 10 16:04:21 qemux86-64 systemd[1]: Reached target Sockets.}} {{ Nov 10 16:04:31 qemux86-64 afm-system-daemon[381]: NOTICE: – INSTALLING widget /home/0/agl-service-helloworld.wgt to /var/local/lib/afm/applications – [/usr/src/debug/af-main/guppy+gitAUTOINC+598f374d29-r0/git/src/wgtpkg-install.c:547]}} {{ Nov 10 16:04:31 qemux86-64 afm-system-daemon[381]: ERROR: Can't connect to file /home/0/agl-service-helloworld.wgt [/usr/src/debug/af-main/guppy+gitAUTOINC+598f374d29-r0/git/src/wgtpkg-zip.c:125]}}