By Paul DiMaggio @pauldimaggio
I tried to update my TinyPilot Pro using...
/opt/tinypilot/scripts/upgrade && sudo reboot
and I received the following error (additional lines provided for context)...
TASK [tinypilot.tinypilot-pro : copy admin scripts] ****************************************************************************************************************************************ok: [localhost] => (item=change-hostname)
ok: [localhost] => (item=collect-debug-logs)
ok: [localhost] => (item=eject-mass-storage)
ok: [localhost] => (item=mount-mass-storage)
ok: [localhost] => (item=read-update-log)
ok: [localhost] => (item=update)
ok: [localhost] => (item=update-tls-cert-common-name)
ok: [localhost] => (item=update-video-settings)
TASK [tinypilot.tinypilot-pro : store passwordless sudo paths] *****************************************************************************************************************************ok: [localhost]
TASK [tinypilot.tinypilot-pro : enable tinypilot to execute a whitelist of commands as sudo] ***********************************************************************************************ok: [localhost]
TASK [tinypilot.tinypilot-pro : create TinyPilot folder] ***********************************************************************************************************************************ok: [localhost]
TASK [tinypilot.tinypilot-pro : get TinyPilot repo] ****************************************************************************************************************************************fatal: [localhost]: FAILED! => {"before": "5302920f7cc356ebe21289199685339ee8e3795a", "changed": false, "msg": "Local modifications exist in repository (force=no)."}
PLAY RECAP *********************************************************************************************************************************************************************************localhost : ok=72 changed=1 unreachable=0 failed=1 skipped=20 rescued=0 ignored=0
I looked at the quick-install script on github to try and find the "force" parameter and it seemed to mention a default settings yaml file, but I couldn't find it. How to I force the upgrade?
- Michael Lynch @michael2021-06-01 21:58:39.231Z
It looks like you made changes to your
/opt/tinypilot
directory, so the installer is refusing to overwrite them. You can discard your local changes with:sudo su tinypilot cd /opt/tinypilot git add -A git stash save