[potato.core._base.updater] Failed updating via GIT: Traceback (most recent call last):
File "/mnt/DroboFS/Shares/DroboApps/couchpotato/app/couchpotato/core/_base/updater/main.py", line 182, in doUpdate
self.repo.saveStash()
File "/mnt/DroboFS/Shares/DroboApps/couchpotato/app/libs/git/repository.py", line 427, in saveStash
self._executeGitCommandAssertSuccess(command)
File "/mnt/DroboFS/Shares/DroboApps/couchpotato/app/libs/git/repository.py", line 85, in _executeGitCommandAssertSuccess
raise GitCommandFailedException(kwargs.get('cwd', self._getWorkingDirectory()), command, returned)
GitCommandFailedException: GitCommandFailedException: Command 'stash save' failed in /mnt/DroboFS/Shares/DroboApps/couchpotato/app (1):
*** Please tell me who you are.
Run
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: unable to auto-detect email address (got 'couchpot@Drobo.(none)')
Cannot save the current index state
Hmm, did you run the git config command as the couchpot user? If you are running it as root, it does explain the behavior since when couchpotato is running it won’t be able to access that information.
You could try something like this (as root):
cd /mnt/DroboFS/Shares/DroboApps/couchpotato/app
su couchpot -s /bin/sh -c "cd `pwd`; git config user.email \"you@example.com\""
su couchpot -s /bin/sh -c "cd `pwd`; git config user.name \"Your Name\""
Keep in mind that this did not happen to me at all. In fact, I don’t even have those values defined. This means that the problem is probably somewhere else. In this particular case it looks like git detected some changes in the app folder, and is trying to preventing you from losing them by issuing a ‘stash save’ call. That call requires a user name and email.
My actual advice to you is to make sure you are not changing the source code of CouchPotato, and discard any changes that you may have accidentally done with a command like this (as root):
cd /mnt/DroboFS/Shares/DroboApps/couchpotato/app
su couchpot -s /bin/sh -c "cd `pwd`; git checkout -f"
I was just getting this error too, glad I found this. I was modifying source code to try to implement some fixes/updates before they were committed. Glad there is an easy way back.
Can anyone tell me how to update couchpotato from the command line. It does not seem to be working from the ui. On the “About this Couchpotato” settings page it says version is undefined and updater is undefined , master. I was thinking that maybe updating from the command line might give it a jump start.
Suprising to me, I got home from work today and opened CP on my browser and was met with a new version. Apparently it decided to update today and now reads with a version number and all looks as I would expect it to.
Still curious about how to update from a command line if I ever had to.