Closed mananhiteshkataria closed 5 years ago
Drop output for sudo systemctl status gassistpi-ok-google.service
Meanwhile Try this :
sudo systemctl stop gassistpi-ok-google.service
sudo systemctl disable gassistpi-ok-google.service
Edit gassistpi-ok-google.service to
ExecStart=/home/pi/env/bin/python -u /home/pi/GassistPi/src/main.py --device_model_id mananspeaker-mananspeaker-jjedav
From
ExecStart=/home/pi/env/bin/python -u /home/pi/GassistPi/src/main.py --device_model_id 'mananspeaker-mananspeaker-jjedav'
sudo systemctl enable gassistpi-ok-google.service
sudo systemctl start gassistpi-ok-google.service
● gassistpi-ok-google.service - Google Assistant-Voice Loaded: loaded (/lib/systemd/system/gassistpi-ok-google.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Sat 2019-02-16 09:52:48 IST; 54s ago Process: 493 ExecStart=/home/USER/env/bin/python -u /home/USER/GassistPi/src/main.py --device_model_id mananspeaker-mananspeaker-jjedav (code=exited, status=203/EXEC) Main PID: 493 (code=exited, status=203/EXEC)
Feb 16 09:52:48 raspberrypi systemd[1]: gassistpi-ok-google.service: Failed with result 'exit-code'. Feb 16 09:52:48 raspberrypi systemd[1]: gassistpi-ok-google.service: Service hold-off time over, scheduling restart. Feb 16 09:52:48 raspberrypi systemd[1]: Stopped Google Assistant-Voice. Feb 16 09:52:48 raspberrypi systemd[1]: gassistpi-ok-google.service: Start request repeated too quickly. Feb 16 09:52:48 raspberrypi systemd[1]: Failed to start Google Assistant-Voice. Feb 16 09:52:48 raspberrypi systemd[1]: gassistpi-ok-google.service: Unit entered failed state. Feb 16 09:52:48 raspberrypi systemd[1]: gassistpi-ok-google.service: Failed with result 'exit-code'.
done as said still get this issue
after the edits and reenabling it
it is bolding at user which i have mentioned as pi as i kept everything default for simplicity and still face this issue
[Unit] Description=Google Assistant-Voice Wants=network-online.target After=network-online.target
[Service] Environment=VIRTUAL_ENV=/home/pi/env Environment=PATH=/home/pi/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin ExecStart=/home/pi/env/bin/python -u /home/pi/GassistPi/src/main.py --device_model_id 'mananspeaker-mananspeaker-jjedav'
WorkingDirectory=/home/pi/ StandardOutput=inherit StandardError=inherit Restart=always User=pi
[Install] WantedBy=multi-user.target
dropped gatspi if anyone else has suggestions running out of ideas tbh
Drop output for
sudo cat /lib/systemd/system/gassistpi-ok-google.service
Drop output for
sudo cat /lib/systemd/system/gassistpi-ok-google.service
pi@raspberrypi:~ $ sudo cat /lib/systemd/system/gassistpi-ok-google.service [Unit] Description=Google Assistant-Voice Wants=network-online.target After=network-online.target
[Service] Environment=VIRTUAL_ENV=/home/pi/env Environment=PATH=/home/pi/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin ExecStart=/home/USER/env/bin/python -u /home/USER/GassistPi/src/main.py --device_model_id 'mananspeaker-mananspeaker-jjedav'
WorkingDirectory=/home/pi/ StandardOutput=inherit StandardError=inherit Restart=always User=pi
[Install] WantedBy=multi-user.target
First manually start the assistant and see if it's starting normally. 90% of the time auto start issues are due to the assistant and not the service file. I have given instructions in the README to manually start the Google assistant.
sir if i made this thread it was pretty obvious that manual is working and auto is not working as i stated that in the title
so if its an assistant issue cant be helped i guess
You have given me no time to respond at all.....
Open a terminal and run:
sudo systemctl stop gassistpi-ok-google.service
sudo systemctl disable gassistpi-ok-google.service
sudo /home/pi/Assistants-Pi/scripts/service-installer.sh
sudo systemctl enable gassistpi-ok-google.service
Drop output for
sudo cat /lib/systemd/system/gassistpi-ok-google.service
pi@raspberrypi:~ $ sudo cat /lib/systemd/system/gassistpi-ok-google.service [Unit] Description=Google Assistant-Voice Wants=network-online.target After=network-online.target
[Service] Environment=VIRTUAL_ENV=/home/pi/env Environment=PATH=/home/pi/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin ExecStart=/home/USER/env/bin/python -u /home/USER/GassistPi/src/main.py --device_model_id 'mananspeaker-mananspeaker-jjedav'
WorkingDirectory=/home/pi/ StandardOutput=inherit StandardError=inherit Restart=always User=pi
[Install] WantedBy=multi-user.target
Your are facing file not found error, do this .
sudo systemctl stop gassistpi-ok-google.service
sudo systemctl disable gassistpi-ok-google.service
nano /lib/systemd/system/gassistpi-ok-google.service
Replace this
ExecStart=/home/USER/env/bin/python -u /home/USER/GassistPi/src/main.py --device_model_id 'mananspeaker-mananspeaker-jjedav'
With
ExecStart=/home/pi/env/bin/python -u /home/pi/GassistPi/src/main.py --device_model_id mananspeaker-mananspeaker-jjedav
and
sudo systemctl enable gassistpi-ok-google.service
sudo systemctl start gassistpi-ok-google.service
@Gowtham he is making your changes in the service file located in project directory and not in the systemd directory. That's why it did not work.
@gowtham he is making your changes in the service file located in project directory and not in the systemd directory. That's why it did not work.
@shivasiddharth yes.
made necessary changes to exec start stamement in the gasspi file replacing model no , removing underscore and all but still cannot start google assistant after boot
thought it was obvious but manual does work
alexa works fine