Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to deploy CommaFeed on OpenShift

See original GitHub issue

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 in the shaded jar.
remote: [INFO] Including in the shaded jar.
remote: [INFO] Including net.sourceforge.jtds:jtds:jar:1.3.1 in the shaded jar.
Connection to closed by remote host.
fatal: The remote end hung up unexpectedly
error: error in sideband demultiplexer
To ssh://
   4cb5585..6d91216  master -> master
error: failed to push some refs to 'ssh://'

Thanks in advance!

Issue Analytics

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

github_iconTop GitHub Comments

sriramscommented, Aug 29, 2015

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):

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

make sure you make it executable in git.

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

# The logic to start up your application should be put in this
# script. The application will work only if it binds to
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.

stale[bot]commented, Jan 1, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Openshift deployer is unable to deploy applications
Issue. When trying to deploy the internal registry, the docker-registry-{number}-deployer pod fails with ...
Read more >
No feeds after upgrade · Issue #291 · Athou/commafeed - GitHub
I've pushed new cf to openshift, now I have two bugs: Subscription list ... PARSE: JBAS018733: Failed to process phase PARSE of deployment...
Read more >
How can I tell if my OpenShift application has been deleted?
I created an OpenShift account and installed CommaFeed . It was working for a few weeks and then suddenly disappeared. I can log...
Read more >
Replacing Google Reader -
You now have CommaFeed successfully running on OpenShift. After a couple of minutes, visit the public URL and you will be able to...
Read more >
CommaFeed - Open-source bloat-free Google Reader clone ...
As it says on the github, create an account on openshift and its just a few easy commands to get it running. OpenJDK...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found