Debugging hardly possible due to failed reboot

Hi community,

the following set-up is in place:

  • Installed Mycroft via a virtual machine on linux, using a dell laptop with windows 10 os (as described here)
  • Created the first custom skill using the MSK create set-up (as described here)
  • Used an SSH connection to be able to commit and push changes via an IDE (Pycharm) to my own Repository on Github.

Now: Whenever I change the slightest thing in my custom skill and then checking on functionality using ./start-mycroft.sh debug, Mycroft only works/finishes rebooting at random tries. Most often “Please wait a moment until I finished booting up” is emitted, before the skills load.
At random times, the rebooting shows “merge conflict on [cutom-skill]”

Before the following logs were shown, I changed the README.md via PyCharm.

I tried mycroft-msm update [custom-skill]. This does not help and does not finish executing?! At least I can’t type in anything on the command line after that.

ubuntu@ubuntu2004:~/mycroft-core$ ./start-mycroft.sh debug
Already up to date.
Starting all mycroft-core services
Initializing...
Starting background service bus
CAUTION: The Mycroft bus is an open websocket with no built-in security
         measures.  You are responsible for protecting the local port
         8181 with a firewall as appropriate.
Starting background service skills
Starting background service audio
Starting background service voice
Starting background service enclosure
Starting cli
2022-03-15 03:06:21.526 | INFO     |  2780 | mycroft.messagebus.load_config:load_message_bus_config:33 | Loading message bus configs
ubuntu@ubuntu2004:~/mycroft-core$ mycroft-msm update eventfinder-skill
INFO - building SkillEntry objects for all skills

The following logs appear if I use ./start-mycroft.sh debug

og Output:                                                                                                                                                                            0-30 of 30
================================================================================================================================================================================== mycroft-core 21.2.2 ===
Establishing Mycroft Messagebus connection...
Connected to Messagebus!
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71
ALSA lib setup.c:547:(add_elem) Cannot obtain info for CTL elem (MIXER,'IEC958 Playback Default',0,0,0): No such file or directory
ALSA lib setup.c:547:(add_elem) Cannot obtain info for CTL elem (MIXER,'IEC958 Playback Default',0,0,0): No such file or directory
ALSA lib setup.c:547:(add_elem) Cannot obtain info for CTL elem (MIXER,'IEC958 Playback Default',0,0,0): No such file or directory
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port
ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port
ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card
ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card
 03:06:21.725 | INFO     |  2775 | mycroft.client.speech.listener:create_wake_word_recognizer:328 | Creating wake word engine
 03:06:21.726 | INFO     |  2775 | mycroft.client.speech.listener:create_wake_word_recognizer:351 | Using hotword entry for hey mycroft
 03:06:21.728 | INFO     |  2775 | mycroft.client.speech.hotword_factory:load_module:500 | Loading "hey mycroft" wake word via precise
 03:06:31.739 | INFO     |  2775 | mycroft.client.speech.hotword_factory:load_module:535 | precise is taking too long to load
 03:06:31.743 | INFO     |  2775 | mycroft.client.speech.hotword_factory:load_module:500 | Loading "hey mycroft" wake word via pocketsphinx
 03:06:31.876 | INFO     |  2775 | mycroft.client.speech.listener:create_wakeup_recognizer:365 | creating stand up word engine
 03:06:31.877 | INFO     |  2775 | mycroft.client.speech.hotword_factory:load_module:500 | Loading "wake up" wake word via pocketsphinx
 03:06:31.987 | INFO     |  2775 | __main__:on_ready:179 | Speech client is ready.
 03:07:23.138 | INFO     |  2775 | __main__:handle_complete_intent_failure:103 | Failed to find intent.
 03:09:41.556 | INFO     |  2775 | __main__:handle_complete_intent_failure:103 | Failed to find intent.
  ^--- NEWEST ---^ 

Appreciate every help!

I would start digging through the system logs before the MyCroft logs if your system is randomly rebooting.

This command should print the syslog from the previous boot (depending on how your system is configured)

# journalctl --boot=-1

Hey there,

If you think it’s only when your new Skill is installed. I’d have a look in your `/var/log/mycroft/skills.log to see what is happening when your Skill loads.

You could also try moving it out of the /opt/mycroft/skills/ directory so it doesn’t get loaded and see if you still have the issue.

If you post a link to your Skills code, we can see if there’s anything that would clearly cause issues.