Re: [yocto] #yocto systemd not able to start sshd after a reboot
Seems strange to me too...I had been troubleshooting the sshd.service issue for two days. There was no logs, nothing. I was just hitting the wall. I tried a lot of combinations to get it to work but all failed. The sshd.service was starting, if I manually did a systemctl start sshd.service. But always failed at startup. At times it would start and then get a signal 15 terminating and would close the daemon. After not able to resolve the issue, I started checking all the other services. Every other service was starting at bootup just fine except sshd. Not finding anything else to troubleshoot. I happened to stumble upon the sshd.socket and the Conflicts part of it. Did a hit and trial and it worked. Technically I still am not sure as to why.. -=Srijan Nandi -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#50755): https://lists.yoctoproject.org/g/yocto/message/50755 Mute This Topic: https://lists.yoctoproject.org/mt/76932692/21656 Mute #yocto:https://lists.yoctoproject.org/g/yocto/mutehashtag/yocto Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [yocto] #yocto systemd not able to start sshd after a reboot
> > Seems that some leftovers from System V still reside in YOCTO... > Correct??? > Not sure about that. The problem I faced was because there was a sshd.socket that had the following line in it. The sshd.socket comes with openssh. Conflicts=sshd.service So I had two options. either to add the ExecStartPre in the sshd.service file or to remove the Conflicts line in sshd.socket. I choose to remove the Conflicts line and add the following in the sshd.socket file. After=network.target Before=sshd.service Thanks and Regards, -=Srijan Nandi -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#50750): https://lists.yoctoproject.org/g/yocto/message/50750 Mute This Topic: https://lists.yoctoproject.org/mt/76932692/21656 Mute #yocto:https://lists.yoctoproject.org/g/yocto/mutehashtag/yocto Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [yocto] #yocto systemd not able to start sshd after a reboot
Hello All, I finally got it to work!!! There was a sshd.socket file in /lib/systemd/system which had the following line in it. Conflicts=sshd.service I remove it and added the following two lines: After=network.target Before=sshd.service And that did the trick. Now sshd service starts on every boot. Thanks, -=Srijan Nandi -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#50739): https://lists.yoctoproject.org/g/yocto/message/50739 Mute This Topic: https://lists.yoctoproject.org/mt/76932692/21656 Mute #yocto:https://lists.yoctoproject.org/g/yocto/mutehashtag/yocto Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [yocto] #yocto systemd not able to start sshd after a reboot
Hello Khem, With the above sshd.service file the sshd daemon fails to start. It gives an error "(code=exited, status=203/EXEC)". Cannot figure out as to why the systemd for sshd fails to work, while the other systemd files are working perfectly fine. -=Srijan Nandi -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#50734): https://lists.yoctoproject.org/g/yocto/message/50734 Mute This Topic: https://lists.yoctoproject.org/mt/76932692/21656 Mute #yocto:https://lists.yoctoproject.org/g/yocto/mutehashtag/yocto Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[yocto] #yocto systemd not able to start sshd after a reboot
I am facing a peculiar problem with openssh. I have built openssh_8.0p1on zeus. The sshd.service file is as follows: [Unit] Description=OpenSSH server daemon Documentation=man:sshd(8) man:sshd_config(5) After=sshdgenkeys.service Wants=sshdgenkeys.service [Service] Type=simple PIDFile=/var/run/sshd.pid EnvironmentFile=-/etc/default/sshd ExecStart=/usr/sbin/sshd -D $OPTIONS ExecReload=/bin/kill -HUP $MAINPID ExecStop=/bin/kill $MAINPID PermissionsStartOnly=true KillMode=process Restart=on-failure StandardError=syslog [Install] WantedBy=multi-user.target It starts without issues, if i do a systemctl start sshd.service. If I do a test of the config file it does not come up with any errors: genericx86-64:~$ sudo /usr/sbin/sshd -t genericx86-64:~$ Problem: If I reboot the server, sshd does not start. There is no error on syslog. I have enabled debug logging, still no logs in syslog. # Logging SyslogFacility DAEMON LogLevel DEBUG3 Even systemctl is-enabled sshd shows as enabled. After a reboot, if I do a systemctl status sshd it shows: Loaded: loaded (/lib/systemd/system/sshd.service; enabled; vendor preset: enabled) Active: inactive (dead) If I manually run systemctl start sshd.service, everything works perfectly well without issues. sshd start on 0.0.0.0:2224 and I am able to ssh in as well. It's just that systemctl is not able to start sshd after a reboot and there is no error that i can find or debug. Absolutely run out of ideas to resolve this. Any help will be greatly appreciated. Thanks and Regards, -=Srijan Nandi -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#50731): https://lists.yoctoproject.org/g/yocto/message/50731 Mute This Topic: https://lists.yoctoproject.org/mt/76932692/21656 Mute #yocto:https://lists.yoctoproject.org/g/yocto/mutehashtag/yocto Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [yocto] #yocto Problem compiling binutils-2.32.0-r0 on zeus
The issue got resolved after running bitbake -c cleanall binutils. After which it build successfully. -=Srijan Nandi -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#50668): https://lists.yoctoproject.org/g/yocto/message/50668 Mute This Topic: https://lists.yoctoproject.org/mt/76844314/21656 Mute #yocto: https://lists.yoctoproject.org/g/yocto+yocto/mutehashtag/yocto Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[yocto] #yocto Problem compiling binutils-2.32.0-r0 on zeus
I am trying to compile binutils-2.32.0-r0 on zeus. I am getting the following error: DEBUG: Executing python function do_unpack DEBUG: Executing python function base_do_unpack DEBUG: Running 'export PSEUDO_DISABLED=1; unset _PYTHON_SYSCONFIGDATA_NAME; export PATH="/opt/grays-poky/build-grays/tmp/sysroots-uninative/x86_64-linux/usr/bin:/opt/grays-poky/build-grays/tmp/work/core2-64-poky-linux/binutils/2.32.0-r0/recipe-sysroot-native/usr/bin/chrpath-native:/opt/grays-poky/scripts:/opt/grays-poky/build-grays/tmp/work/core2-64-poky-linux/binutils/2.32.0-r0/recipe-sysroot-native/usr/bin/x86_64-poky-linux:/opt/grays-poky/build-grays/tmp/work/core2-64-poky-linux/binutils/2.32.0-r0/recipe-sysroot/usr/bin/crossscripts:/opt/grays-poky/build-grays/tmp/work/core2-64-poky-linux/binutils/2.32.0-r0/recipe-sysroot-native/usr/sbin:/opt/grays-poky/build-grays/tmp/work/core2-64-poky-linux/binutils/2.32.0-r0/recipe-sysroot-native/usr/bin:/opt/grays-poky/build-grays/tmp/work/core2-64-poky-linux/binutils/2.32.0-r0/recipe-sysroot-native/sbin:/opt/grays-poky/build-grays/tmp/work/core2-64-poky-linux/binutils/2.32.0-r0/recipe-sysroot-native/bin:/opt/grays-poky/bitbake/bin:/opt/grays-poky/build-grays/tmp/hosttools"; export HOME="/home/srijan.nandi"; git -c core.fsyncobjectfiles=0 branch --contains b8c1f608db9ef3edd483d21a921d1fbedc71df6f --list binutils-2_32-branch 2> /dev/null | wc -l' in /opt/grays-poky/build-grays/downloads/git2/sourceware.org.git.binutils-gdb.git DEBUG: Running export PSEUDO_DISABLED=1; unset _PYTHON_SYSCONFIGDATA_NAME; export PATH="/opt/grays-poky/build-grays/tmp/sysroots-uninative/x86_64-linux/usr/bin:/opt/grays-poky/build-grays/tmp/work/core2-64-poky-linux/binutils/2.32.0-r0/recipe-sysroot-native/usr/bin/chrpath-native:/opt/grays-poky/scripts:/opt/grays-poky/build-grays/tmp/work/core2-64-poky-linux/binutils/2.32.0-r0/recipe-sysroot-native/usr/bin/x86_64-poky-linux:/opt/grays-poky/build-grays/tmp/work/core2-64-poky-linux/binutils/2.32.0-r0/recipe-sysroot/usr/bin/crossscripts:/opt/grays-poky/build-grays/tmp/work/core2-64-poky-linux/binutils/2.32.0-r0/recipe-sysroot-native/usr/sbin:/opt/grays-poky/build-grays/tmp/work/core2-64-poky-linux/binutils/2.32.0-r0/recipe-sysroot-native/usr/bin:/opt/grays-poky/build-grays/tmp/work/core2-64-poky-linux/binutils/2.32.0-r0/recipe-sysroot-native/sbin:/opt/grays-poky/build-grays/tmp/work/core2-64-poky-linux/binutils/2.32.0-r0/recipe-sysroot-native/bin:/opt/grays-poky/bitbake/bin:/opt/grays-poky/build-grays/tmp/hosttools"; export HOME="/home/srijan.nandi"; git -c core.fsyncobjectfiles=0 clone -s -n /opt/grays-poky/build-grays/downloads/git2/sourceware.org.git.binutils-gdb.git/ /opt/grays-poky/build-grays/tmp/work/core2-64-poky-linux/binutils/2.32.0-r0/git/ ERROR: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; unset _PYTHON_SYSCONFIGDATA_NAME; export PATH="/opt/grays-poky/build-grays/tmp/sysroots-uninative/x86_64-linux/usr/bin:/opt/grays-poky/build-grays/tmp/work/core2-64-poky-linux/binutils/2.32.0-r0/recipe-sysroot-native/usr/bin/chrpath-native:/opt/grays-poky/scripts:/opt/grays-poky/build-grays/tmp/work/core2-64-poky-linux/binutils/2.32.0-r0/recipe-sysroot-native/usr/bin/x86_64-poky-linux:/opt/grays-poky/build-grays/tmp/work/core2-64-poky-linux/binutils/2.32.0-r0/recipe-sysroot/usr/bin/crossscripts:/opt/grays-poky/build-grays/tmp/work/core2-64-poky-linux/binutils/2.32.0-r0/recipe-sysroot-native/usr/sbin:/opt/grays-poky/build-grays/tmp/work/core2-64-poky-linux/binutils/2.32.0-r0/recipe-sysroot-native/usr/bin:/opt/grays-poky/build-grays/tmp/work/core2-64-poky-linux/binutils/2.32.0-r0/recipe-sysroot-native/sbin:/opt/grays-poky/build-grays/tmp/work/core2-64-poky-linux/binutils/2.32.0-r0/recipe-sysroot-native/bin:/opt/grays-poky/bitbake/bin:/opt/grays-poky/build-grays/tmp/hosttools"; export HOME="/home/srijan.nandi"; git -c core.fsyncobjectfiles=0 clone -s -n /opt/grays-poky/build-grays/downloads/git2/sourceware.org.git.binutils-gdb.git/ /opt/grays-poky/build-grays/tmp/work/core2-64-poky-linux/binutils/2.32.0-r0/git/ failed with exit code 128, output: fatal: repository '/opt/grays-poky/build-grays/downloads/git2/sourceware.org.git.binutils-gdb.git/' does not exist DEBUG: Python function base_do_unpack finished DEBUG: Python function do_unpack finished Now I checked and saw that the said directory (/opt/grays-poky/build-grays/downloads/git2/sourceware.org.git.binutils-gdb.git/) does exist. I even tried to change the permission to 777, but still the same issue. Any help will be greatly appreciated. Thanks and Regards, -=Srijan Nandi -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#50667): https://lists.yoctoproject.org/g/yocto/message/50667 Mute This Topic: https://lists.yoctoproject.org/mt/76844314/21656 Mute #yocto: https://lists.yoctoproject.org/g/yocto+yocto/mutehashtag/yocto Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscrib
Re: [yocto] #yocto - mongodb files missing
Thank you, Vincent. I was finally able to make a .bbappend file and here is what I have made. FILESEXTRAPATHS_prepend := "${THISDIR}/files:" SRC_URI += "file://mongod \ file://mongod.service \ file://mongod.conf \ " inherit systemd useradd USERADD_PACKAGES = "${PN}" GROUPADD_PACKAGES = "${PN}" GROUPADD_PARAM_${PN} = "${PN}" USERADD_PARAM_${PN} = " \ --system --no-create-home \ --shell /bin/false \ -g ${PN} \ ${PN}" SYSTEMD_SERVICE_${PN} = "mongod.service" SYSTEMD_AUTO_ENABLE = "enable" do_install_append() { install -d ${D}${sysconfdir} install -d ${D}${localstatedir} ${D}${localstatedir}/log ${D}${localstatedir}/log/mongodb chown -R mongodb:mongodb ${D}${localstatedir}/log/mongodb install -d ${D}${sysconfdir}/sysconfig install -c -m 0644 ${WORKDIR}/mongod.conf ${D}${sysconfdir} chown mongodb:mongodb ${D}${sysconfdir}/mongod.conf install -c -m 0644 ${WORKDIR}/mongod ${D}${sysconfdir}/sysconfig chown mongodb:mongodb ${D}${sysconfdir}/sysconfig/mongod install -d ${D}${localstatedir} ${D}${localstatedir}/lib ${D}${localstatedir}/lib/mongodb chown -R mongodb:mongodb ${D}${localstatedir}/lib/mongodb if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then install -d ${D}${systemd_system_unitdir} install -c -m 0644 ${WORKDIR}/mongod.service ${D}${systemd_system_unitdir} fi } Thanks and Regards, -=Srijan Nandi -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#50642): https://lists.yoctoproject.org/g/yocto/message/50642 Mute This Topic: https://lists.yoctoproject.org/mt/75700682/21656 Mute #yocto: https://lists.yoctoproject.org/g/yocto+yocto/mutehashtag/yocto Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[yocto] [meta-java] compile and configure openjdk-8-jre-headless
Hello Everyone, I have successfully compiled openjdk-8 with a zeus build. But I want to compile openjdk-8 headless. Can anyone tell me how and where to enable options such as headless, disable CUPS and disable X11. -=Srijan Nandi -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#50042): https://lists.yoctoproject.org/g/yocto/message/50042 Mute This Topic: https://lists.yoctoproject.org/mt/75700685/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [yocto] How to completely uninstall a pre-installed package in Yocto #linux #yocto
What I did was, ran the following command to see what all gets installed.. bitbake -e |grep -v ^# |grep "^DISTRO_FEATURES=\|^IMAGE_FEATURES=" Then used DISTRO_FEATURES_remove in the local.conf to removed the unnecessary package. Hope this helps. -=Srijan Nandi -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#50039): https://lists.yoctoproject.org/g/yocto/message/50039 Mute This Topic: https://lists.yoctoproject.org/mt/75515307/21656 Mute #yocto: https://lists.yoctoproject.org/g/yocto+yocto/mutehashtag/yocto Mute #linux: https://lists.yoctoproject.org/g/yocto+yocto/mutehashtag/linux Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[yocto] #yocto - mongodb files missing
Hello Everyone, I have built mongodb on zeus. It seems the mongod.service and mongod.conf files are missing. Can anyone show me the procedure to build a .bbappend file to add those. Thanks and Regards, -=Srijan Nandi -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#50037): https://lists.yoctoproject.org/g/yocto/message/50037 Mute This Topic: https://lists.yoctoproject.org/mt/75700682/21656 Mute #yocto: https://lists.yoctoproject.org/g/yocto+yocto/mutehashtag/yocto Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [yocto] How to completely uninstall a pre-installed package in Yocto #linux #yocto
What I did was. I ran the following: bitbake -e |grep -v ^# |grep "^DISTRO_FEATURES=\|^IMAGE_FEATURES=" Then used DISTRO_FEATURES_remove in local.conf to remove the unwanted packages. -=Srijan Nandi -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#50038): https://lists.yoctoproject.org/g/yocto/message/50038 Mute This Topic: https://lists.yoctoproject.org/mt/75515307/21656 Mute #yocto: https://lists.yoctoproject.org/g/yocto+yocto/mutehashtag/yocto Mute #linux: https://lists.yoctoproject.org/g/yocto+yocto/mutehashtag/linux Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [yocto] openssh_8.0p1 on zeus - sshd.service not starting [RESOLVED] #yocto
Helo Zoran, Type=notify didn't work, either. The only thing that worked was Type=simple. Thanks, -=Srijan Nandi -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#49992): https://lists.yoctoproject.org/g/yocto/message/49992 Mute This Topic: https://lists.yoctoproject.org/mt/75633169/21656 Mute #yocto: https://lists.yoctoproject.org/g/yocto+yocto/mutehashtag/yocto Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [yocto] openssh_8.0p1 on zeus - sshd.service not starting [RESOLVED} #yocto
Finally was able to resolve the issue. It seems the sshd.service did not line Type=forking. I changed it to Type=simple and it started working. So now my sshd.service file looks like this: [Unit] Description=OpenSSH server daemon Documentation=man:sshd(8) man:sshd_config(5) After=network.target sshdkeygen.service Wants=sshdkeygen.service [Service] Type=simple PIDFile=/run/sshd.pid EnvironmentFile=-@SYSCONFDIR@/default/sshd ExecStart=@SBINDIR@/sshd -D $OPTIONS ExecReload=@BASE_BINDIR@/kill -HUP $MAINPID PermissionsStartOnly=true ExecStartPre=-/bin/mkdir -p /var/run/sshd ExecStartPre=/bin/chmod -R 755 /var/run/sshd KillMode=process Restart=on-failure RestartSec=42s [Install] WantedBy=multi-user.target Thanks, -=Srijan Nandi -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#49990): https://lists.yoctoproject.org/g/yocto/message/49990 Mute This Topic: https://lists.yoctoproject.org/mt/75629249/21656 Mute #yocto: https://lists.yoctoproject.org/g/yocto+yocto/mutehashtag/yocto Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [yocto] openssh_8.0p1 on zeus - sshd.service not starting #yocto
Hello Zoran, I started the service and then ran journalctl -u sshd.service -r -n 10 This is what I see: sshd.service Failed with result 'timeout' sshd.service: start operation timed out. Terminating. But if I run the /usr/sbin/sshd -f /etc/ssh/sshd_config, it starts fine. Thanks, -=Srijan Nandi -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#49969): https://lists.yoctoproject.org/g/yocto/message/49969 Mute This Topic: https://lists.yoctoproject.org/mt/75542163/21656 Mute #yocto: https://lists.yoctoproject.org/g/yocto+yocto/mutehashtag/yocto Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[yocto] openssh_8.0p1 on zeus - sshd.service not starting #yocto
I am facing an issue with openssh_8.0p1 on zeus...systemd is not able to start sshd.service. I am using the following sshd.service file. [Unit] Description=OpenSSH server daemon Documentation=man:sshd(8) man:sshd_config(5) After=network.target sshdgenkeys.service Wants=sshdgenkeys.service [Service] Type=forking PIDFile=@localstatedir@/run/sshd.pid EnvironmentFile=-@SYSCONFDIR@/default/sshd ExecStart=@SBINDIR@/sshd -D $OPTIONS ExecReload=@BASE_BINDIR@/kill -HUP $MAINPID PermissionsStartOnly=true ExecStartPre=-/bin/mkdir -p /var/run/sshd ExecStartPre=/bin/chmod -R 755 /var/run/sshd KillMode=process Restart=on-failure RestartSec=42s [Install] WantedBy=multi-user.target Has anyone else faced a similar issue. -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#49966): https://lists.yoctoproject.org/g/yocto/message/49966 Mute This Topic: https://lists.yoctoproject.org/mt/75542163/21656 Mute #yocto: https://lists.yoctoproject.org/g/yocto+yocto/mutehashtag/yocto Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[yocto] mongodb issue - missing systemd service and conf files #yocto
Hello Everyone, I have installed mongodb on zeus. It seems the mogod.service and the mongod.conf files are missing. Can someone tell me where I can find these or maybe point me to some documentation where I can make these files using .bbappend. Thanks, -=Srijan Nandi -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#49965): https://lists.yoctoproject.org/g/yocto/message/49965 Mute This Topic: https://lists.yoctoproject.org/mt/75538732/21656 Mute #yocto: https://lists.yoctoproject.org/g/yocto+yocto/mutehashtag/yocto Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [yocto] How to completely uninstall a pre-installed package in Yocto #linux #yocto
This is what I did. I ran the following: bitbake -e |grep -v ^# |grep "^DISTRO_FEATURES=\|^IMAGE_FEATURES=" Found out the DISTRO_FEATURES and IMAGE_FEATURES. Thne used DISTRO_FEATURES_remove in the local.conf to remove the features that I do not need. Hope this helps. -=Srijan Nandi -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#49964): https://lists.yoctoproject.org/g/yocto/message/49964 Mute This Topic: https://lists.yoctoproject.org/mt/75515307/21656 Mute #yocto: https://lists.yoctoproject.org/g/yocto+yocto/mutehashtag/yocto Mute #linux: https://lists.yoctoproject.org/g/yocto+yocto/mutehashtag/linux Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [yocto] Error building openjdk-8 on zeus
So here is what I have done so far:. # Added meta-java layer in bblayers.conf and then did a bitbake -c cleanall glibc followed by bitbake glibc. Everything builds successfully. # As soon as I try to build bitbake core-image-full-cmdline, I get the following errors: ERROR: linux-yocto-5.2.17+gitAUTOINC+bb2776d6be_25b14cdf96-r0 do_package: Error executing a python function in exec_python_func() autogenerated: The stack trace of python calls that resulted in this exception/failure was: File: 'exec_python_func() autogenerated', lineno: 2, function: 0001: *** 0002:split_kernel_module_packages(d) 0003: File: '/opt/graylog-poky/meta/classes/kernel-module-split.bbclass', lineno: 171, function: split_kernel_module_packages 0167: # avoid warnings. removedirs only raises an OSError if an empty 0168: # directory cannot be removed. 0169: dvar = d.getVar('PKGD') 0170: for dir in ["%s/etc/modprobe.d" % (dvar), "%s/etc/modules-load.d" % (dvar), "%s/etc" % (dvar)]: *** 0171: if len(os.listdir(dir)) == 0: 0172: os.rmdir(dir) 0173:} 0174: 0175:do_package[vardeps] += '${@" ".join(map(lambda s: "module_conf_" + s, (d.getVar("KERNEL_MODULE_PROBECONF") or "").split()))}' Exception: FileNotFoundError: [Errno 2] No such file or directory: '/opt/graylog-poky/build/tmp/work/genericx86_64-poky-linux/linux-yocto/5.2.17+gitAUTOINC+bb2776d6be_25b14cdf96-r0/package/etc/modprobe.d' ERROR: Logfile of failure stored in: /opt/graylog-poky/build/tmp/work/genericx86_64-poky-linux/linux-yocto/5.2.17+gitAUTOINC+bb2776d6be_25b14cdf96-r0/temp/log.do_package.29306 ERROR: Task (/opt/graylog-poky/meta/recipes-kernel/linux/linux-yocto_5.2.bb:do_package) failed with exit code '1' ERROR: volatile-binds-1.0-r0 do_package: SYSTEMD_SERVICE_volatile-binds value var-volatile-lib.service does not exist ERROR: Logfile of failure stored in: /opt/graylog-poky/build/tmp/work/all-poky-linux/volatile-binds/1.0-r0/temp/log.do_package.29309 ERROR: Task (/opt/graylog-poky/meta/recipes-core/volatile-binds/volatile-binds.bb:do_package) failed with exit code '1' ERROR: run-postinsts-1.0-r10 do_package: SYSTEMD_SERVICE_run-postinsts value run-postinsts.service does not exist ERROR: Logfile of failure stored in: /opt/graylog-poky/build/tmp/work/all-poky-linux/run-postinsts/1.0-r10/temp/log.do_package.29316 ERROR: Task (/opt/graylog-poky/meta/recipes-devtools/run-postinsts/run-postinsts_1.0.bb:do_package) failed with exit code '1' # If I remove the meta-java layer from bblayers.conf, everything builds successfully. -=Srijan -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#49778): https://lists.yoctoproject.org/g/yocto/message/49778 Mute This Topic: https://lists.yoctoproject.org/mt/75209521/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[yocto] Error building openjdk-8 on zeus
Hello Everyone, When I am trying to add meta-java as a layer on zeus. I get the following error message: ERROR: glibc-2.30-r0 do_package: SYSTEMD_SERVICE_nscd value nscd.service does not exist ERROR: Logfile of failure stored in: /opt/graylog-poky/build/tmp/work/core2-64-poky-linux/glibc/2.30-r0/temp/log.do_package.28895 ERROR: Task (/opt/graylog-poky/meta/recipes-core/glibc/glibc_2.30.bb:do_package) failed with exit code '1' Thanks, -=Srijan -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#49774): https://lists.yoctoproject.org/g/yocto/message/49774 Mute This Topic: https://lists.yoctoproject.org/mt/75209521/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [yocto] #yocto - meta-anaconda installer gives "An unknown error has occurred"
I get this message before I get configparser.NoSectionError: No section: 'Rootfs' File '/usr/lib/python3.7/site-packages/pyanaconda/threading.py" -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#49700): https://lists.yoctoproject.org/g/yocto/message/49700 Mute This Topic: https://lists.yoctoproject.org/mt/74961004/21656 Mute #yocto: https://lists.yoctoproject.org/g/yocto+yocto/mutehashtag/yocto Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [yocto] #yocto - meta-anaconda installer gives "An unknown error has occurred"
Every time i reboot it, it hangs. But i get to see a piece of error message that I write down. This time before the configparser.NoSectionError: No section: 'Rootfs' error message, it showed the following lines: File '/usr/lib/python3.7/site-packages/pyanaconda/threading.py' Before the final error comes up: configparser.NoSectionError: No section: 'Rootfs' -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#49699): https://lists.yoctoproject.org/g/yocto/message/49699 Mute This Topic: https://lists.yoctoproject.org/mt/74961004/21656 Mute #yocto: https://lists.yoctoproject.org/g/yocto+yocto/mutehashtag/yocto Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [yocto] #yocto - meta-anaconda installer gives "An unknown error has occurred"
Hello All, I was finally able to view the error message. It says configparser.NoSectionError: No section: 'Rootfs'. This comes as soon as the anaconda installer starts and then it hangs on this screen. -=Srijan -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#49689): https://lists.yoctoproject.org/g/yocto/message/49689 Mute This Topic: https://lists.yoctoproject.org/mt/74961004/21656 Mute #yocto: https://lists.yoctoproject.org/g/yocto+yocto/mutehashtag/yocto Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [yocto] #yocto - meta-anaconda installer gives "An unknown error has occurred"
I am using zeus as the yocto version. I tried both the boot modes Legacy as well as UEFI. But failed. I thing it is a python issue but as the screen is stuck I cannot see the error nor click on debug. -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#49687): https://lists.yoctoproject.org/g/yocto/message/49687 Mute This Topic: https://lists.yoctoproject.org/mt/74961004/21656 Mute #yocto: https://lists.yoctoproject.org/g/yocto+yocto/mutehashtag/yocto Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[yocto] #yocto - meta-anaconda installer gives "An unknown error has occurred"
Hello all, I created a core-image-full-cmdline for genericx86-64 machine. I am trying to configure meta-anaconda with it. I have used the following bblayers.conf file and added the requirements in the local.conf file. 1. Target Build: bblayers.conf: BBLAYERS ?= " \ /opt/graylog-poky/meta \ /opt/graylog-poky/meta-poky \ /opt/graylog-poky/meta-yocto-bsp \ /opt/graylog-poky/meta-graylog \ /opt/graylog-poky/meta-openembedded/meta-oe \ /opt/graylog-poky/meta-openembedded/meta-python \ /opt/graylog-poky/meta-openembedded/meta-networking \ /opt/graylog-poky/meta-openembedded/meta-gnome \ /opt/graylog-poky/meta-openembedded/meta-filesystems \ /opt/graylog-poky/meta-openembedded/meta-initramfs \ /opt/graylog-poky/meta-anaconda \ " local.conf file: PACKAGE_CLASSES ?= "package_deb package_rpm" DISTRO_FEATURES_append = " systemd keyboard ldconfig pam" EXTRA_IMAGE_FEATURES_append = " package-management ssh-server-openssh" CORE_IMAGE_EXTRA_INSTALL_append = " kernel-modules iptables bash vim parted tcpdump dhcp-server dhcp-client" VIRTUAL-RUNTIME_init_manager = "systemd" DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit" VIRTUAL-RUNTIME_initscripts = "" IMAGE_FSTYPES = "ext4 iso wic wic.vmdk" The target directory is /opt/graylog-poky/build. Then I created the install build with the following bblayers.conf and local.conf with the following customizations bblayers.conf: BBLAYERS ?= " \ /opt/graylog-poky/meta \ /opt/graylog-poky/meta-poky \ /opt/graylog-poky/meta-yocto-bsp \ /opt/graylog-poky/meta-graylog \ /opt/graylog-poky/meta-openembedded/meta-oe \ /opt/graylog-poky/meta-openembedded/meta-python \ /opt/graylog-poky/meta-openembedded/meta-networking \ /opt/graylog-poky/meta-openembedded/meta-gnome \ /opt/graylog-poky/meta-openembedded/meta-filesystems \ /opt/graylog-poky/meta-openembedded/meta-initramfs \ /opt/graylog-poky/meta-anaconda \ " local.conf: MACHINE ??= "qemux86-64" PACKAGE_CLASSES ?= "package_ipk" PACKAGE_CLASSES = "package_rpm" DISTRO = "anaconda" INSTALLER_TARGET_IMAGE = "core-image-full-cmdline" INSTALLER_TARGET_BUILD = "/opt/graylog-poky/build" It gave me an iso, when I try to boot in a vmware or on a virtualbox with the iso, it boots up and then after opening up the anaconda installer it comes up with the error message "An unknown error has occurred" and it hangs on the screen. Any help will be highly appreciated. Also would like to know if it is possible to boot an x86-64 using the above method. -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#49679): https://lists.yoctoproject.org/g/yocto/message/49679 Mute This Topic: https://lists.yoctoproject.org/mt/74961004/21656 Mute #yocto: https://lists.yoctoproject.org/g/yocto+yocto/mutehashtag/yocto Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-