How to update Couch Potato on Drobo?

I’ve been having some trouble getting the “You Might Like These” recommendations to work on Couch Potato and I was wondering if there is a way to update to the most recent version through Drobo apps?

Clicking on the update button doesn’t seem to accomplish anything at all

Cheers

Any error messages on the log?

06-16 10:28:04 ERROR [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 187, 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 (128):
fatal: Uh oh. Your system reports no Git commands at all.

06-16 10:28:07 ERROR [chpotato.core.plugins.log] API log: {‘line’: u’330’, ‘message’: u"chrome 35: \nUncaught TypeError: Cannot read property ‘length’ of undefined", ‘page’: u’http://HOST/’, ‘file’: u’http://HOST/minified/head.js?1402887366’}

Seems you are missing “git.” Do you have git installed on your Drobo?

Thanks Ricardo…

Um how do I do that?

Which device do you have?

Drobo 5N

After installing http://www.droboports.com/app-repository/git-1-8-0
I now get:

06-17 17:10:12 INFO [potato.core._base.updater] Updating to latest version
06-17 17:10:13 ERROR [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 190, in doUpdate
self.repo.pull()
File “/mnt/DroboFS/Shares/DroboApps/couchpotato/app/libs/git/repository.py”, line 389, in pull
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 ‘pull’ failed in /mnt/DroboFS/Shares/DroboApps/couchpotato/app (1):
/mnt/DroboFS/Shares/DroboApps/git/libexec/git-core/git-pull: /mnt/DroboFS/Shares/DroboApps/git/libexec/git-core/git-sh-setup: line 100: basename: not found
/mnt/DroboFS/Shares/DroboApps/git/libexec/git-core/git-pull: /mnt/DroboFS/Shares/DroboApps/git/libexec/git-core/git-sh-setup: line 100: sed: not found
/mnt/DroboFS/Shares/DroboApps/git/libexec/git-core/git-pull: /mnt/DroboFS/Shares/DroboApps/git/libexec/git-core/git-sh-setup: line 255: uname: not found
/mnt/DroboFS/Shares/DroboApps/git/libexec/git-core/git-pull: line 244: sed: not found
/mnt/DroboFS/Shares/DroboApps/git/libexec/git-core/git-pull: line 244: tr: not found
Your configuration specifies to merge with the ref ‘master’
from the remote, but no such ref was fetched.

Cool. Now the problem is the PATH variable.

Have a look at this thread: http://www.drobospace.com/forums/showthread.php?tid=141882&pid=180723#pid180723

That is for sickbeard, but the idea is the same.

Thanks so much, but I can’t really figure it out.

my Couch Potato services.sh file contains:

#!/bin/sh

CouchPotato service

. /etc/service.subr

prog_dir=dirname \realpath $0``

name=“couchpotato”
version=“2.3.1”
description=“Internet PVR for your movies”

framework_version=“2.0”
pidfile="/tmp/DroboApps/${name}/pid.txt"
logfile="/tmp/DroboApps/${name}/log.txt"

python="$DROBOAPPS_DIR/python2/bin/python"
pypath="${prog_dir}/lib/python2.7/site-packages/"
datadir="${prog_dir}/data"
conffile="${prog_dir}/data/settings.conf"

_create_config() {
if [ ! -f “${conffile}” ]; then
cp “${conffile}.default” “${conffile}” 1>> “${logfile}” 2>&1
fi
}

start() {
_create_config
ln -fs “${prog_dir}/data/logs/CouchPotato.log” “${logfile}”
rm “${pidfile}” 2> /dev/null
PATH="${prog_dir}/bin" PYTHONPATH="${pypath}" ${python} ${prog_dir}/app/CouchPotato.py --data_dir ${datadir} --pid_file “${pidfile}” --daemon 1>> “${logfile}” 2>&1
}

case “$1” in
start) start_service ;;
stop) stop_service ;;
restart) stop_service ; sleep 3 ; start_service ;;
status) status ;;
*) echo “Usage: $0 [start|stop|restart|status]” ; exit 1 ;;
esac

Been trying things / uninstalling->re-installing things all day

Still no luck

Can I just manually update couch potato somehow?

Sure, if you have SSH access you can manually call git to update. Like this:

cd /mnt/DroboFS/Shares/DroboApps/couchpotato/app
git fetch --all
git reset --hard origin/master

I`m getting:
-sh: git: not found

I’m now wondering if I don’t have Git installed properly. In the Git instructions it mentions 4 dependencies and a “cross compiling virtual machine”. I’ve got curl and expat installed but I don’t think I quite understand how to install zlab and ssl. I tried once and had to re-flash my firmware to get my Drobo to mount again

I’m not a developer so I definitely don’t understand how to use a cross compiling virtual machine… Seems like a lot of work to just be able to get programs to update.

This is probably a super dumb question but can I just manually drag and drop newer files onto the older ones?

Thanks for all your help so far Ricardo

To install git you need to download the DroboApp package from here: http://www.droboports.com/app-repository/git-1-8-0

Look at the bottom of the page (after “Final remarks”) and you’ll find a git.tgz. That is the file you need to download and place on your DroboApps share.

I don’t think you can’t just copy and past the files. You’ll probably run into problems with permissions, which means you’ll be unable to replace the files.

Yea thats what i originally did.

I get this error when installing it:

tar: update.sh: not found in archive

Also I guess I never made this clear, but no apps will update. I’m totally new to GIT and SSH and all this so maybe there is something simple that I’m missing?

Did you remove the git folder before trying to reinstall it?

Yup

So after you install do you have a git folder with the git binary in the bin folder?

Absolutely

Doesn’t seem to work though