commafeed: Unable to deploy CommaFeed on OpenShift

I’m sorry to have to open this thread again but with your instructions I get the following error:

remote: [INFO] Including org.postgresql:postgresql:jar:9.4-1200-jdbc41 in the shaded jar.
remote: [INFO] Including com.github.dblock.waffle:waffle-jna:jar:1.7 in the shaded jar.
remote: [INFO] Including net.java.dev.jna:jna:jar:4.1.0 in the shaded jar.
remote: [INFO] Including net.java.dev.jna:jna-platform:jar:4.1.0 in the shaded jar.
remote: [INFO] Including net.sourceforge.jtds:jtds:jar:1.3.1 in the shaded jar.
Connection to commafeed-site.rhcloud.com closed by remote host.
fatal: The remote end hung up unexpectedly
error: error in sideband demultiplexer
To ssh://54e4111ce.......db000006@commafeed-site.rhcloud.com/~/git/commafeed.git/
   4cb5585..6d91216  master -> master
error: failed to push some refs to 'ssh://54e4111ce....db000006@commafeed-site.rhcloud.com/~/git/commafeed.git/'

Thanks in advance!

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 19 (3 by maintainers)

Most upvoted comments

ok, I’ve got it working (I can finally update from 2.0.3 which I’ve been running for a long time).

Just create a new gear in openshift, and add the diy and mysql cartridges.

use this as the deploy hook (.openshift/action_hooks/deploy):

#!/bin/bash
cd $OPENSHIFT_REPO_DIR
sed -i 's/@OPENSHIFT_DIY_IP@/'"$OPENSHIFT_DIY_IP"'/g' .openshift/config.mysql.yml
sed -i 's/@OPENSHIFT_DIY_PORT@/'"$OPENSHIFT_DIY_PORT"'/g' .openshift/config.mysql.yml
sed -i 's/@OPENSHIFT_APP_DNS@/'"$OPENSHIFT_APP_DNS"'/g' .openshift/config.mysql.yml
sed -i 's/@OPENSHIFT_APP_NAME@/'"$OPENSHIFT_APP_NAME"'/g' .openshift/config.mysql.yml
sed -i 's/@OPENSHIFT_MYSQL_DB_HOST@/'"$OPENSHIFT_MYSQL_DB_HOST"'/g' .openshift/config.mysql.yml
sed -i 's/@OPENSHIFT_MYSQL_DB_USERNAME@/'"$OPENSHIFT_MYSQL_DB_USERNAME"'/g' .openshift/config.mysql.yml
sed -i 's/@OPENSHIFT_MYSQL_DB_PASSWORD@/'"$OPENSHIFT_MYSQL_DB_PASSWORD"'/g' .openshift/config.mysql.yml
cd $OPENSHIFT_DATA_DIR
wget https://github.com/Athou/commafeed/releases/download/2.2.0/commafeed.jar

make sure you make it executable in git.

use this as the start hook (.openshift/action_hooks/start):

#!/bin/bash
# The logic to start up your application should be put in this
# script. The application will work only if it binds to
# $OPENSHIFT_DIY_IP:8080
cd $OPENSHIFT_DATA_DIR
export JAVA_HOME=/etc/alternatives/java_sdk_1.8.0
nohup $JAVA_HOME/bin/java -jar commafeed.jar server $OPENSHIFT_REPO_DIR/.openshift/config.mysql.yml > ${OPENSHIFT_DIY_LOG_DIR}/commafeed.log 2>&1 &

use the same stop script that is the current commafeed repo.

And that’s it! You don’t need to clone the source or build or do anything else.

edit: you also need .openshift/config.mysql.yml from the repo.