Picroft only works when connected via SSH


#1

Hello!

Sorry if I’m being unclear or if that question has already been answered (and sorry, my technical competence is very low).

I installed Picroft on a Raspberry Pi 3B+ with a Jabra 410 Speaker, did the little tweak found here (No Audio Output on Picroft with Jabra 410), and, after running after a few errands, wiped it and did the whole process again.

Now, Mycroft only works if I ssh in it via Putty. In fact, as soon as I use CTRL + c to run a command or leave Putty, Mycroft stops working.

Do you now what could cause that problem?

Thanks in advance!


#2

So you can only talk to it when you ssh in or does it only work via command line? Does it drop you directly to the command line interface or do you have to run through the setup questions each time? What’s in the logs (/var/log/mycroft/*)?


#3

Hello! Thank you for your answer, and sorry for my imprecision.

When I ssh into it, it works normally and I can talk to it. I can also talk to it via command line.

Each time I ssh into it, it seems to reinitialize itself and restart all of it’s skills (see pictures 1 & 2).

I’m sorry in advance for my next questions : do you need all the logs of the audio, bus, enclosure, skills and voice logs? If so, how can I do this (because there seems to be a lot of data in those files)?

Thank you for your help!!

Image 1 :


#4

Image 2 :


#5

Hi etdark,

Can I check, Mycroft won’t respond at all until you SSH into the Picroft?

Sometimes Picroft can take a while to do its initial boot for example if it finds a system update (and your system is set to auto update). It looks like you are using the dev branch which means you will be downloading an update most days of the week.

Alternatively is the issue that after SSH’ing in, if you quit the CLI using Ctrl+C it doesn’t respond until you restart the CLI using mycroft-cli-client?


#6

Hi gez-mycroft,

Exactly : Mycroft won’t respond at all until I SSH into it. And if I quit che CLI using Ctrl+C, it doesn’t work either. I admit I did not try to restart the CLI ; I could try that to see if Mycroft starts working again when I come back from work.

I tried waiting for a long time (10+ minutes) to see if it was just a long booting sequence, but it didn’t work.

I can still format the SD card and reinstall Picroft completely, but was hoping to find a less drastic solution (and to understand what happened!) :stuck_out_tongue:

Thank you!


#7

When your Picroft boots it should create a shell session and launch all of the mycroft services as well as the CLI. SSHing in creates a new shell session and connects to the existing Mycroft processes.

It sounds like your boot sequence isn’t launching the services after startup and hence this is done when you SSH in. Exiting the CLI is then terminating the running processes.

Are you able to plug your Picroft into a monitor to see what happens when it boots?

It would also be useful to check the logs after booting but before you SSH in to see if there’s anything useful in there. To make it easier to search, I’d delete or backup your existing logs first:

  1. SSH in to Picroft
  2. rm /var/log/mycroft/*
    or mv /var/log/mycroft/* /some/other/directory/
  3. sudo reboot
  4. Wait for it to boot
  5. From your local machine - using the IP of your Picroft:
    scp pi@192.168.*.*:/var/log/mycroft/* /path/to/local/dir/