Digital Developer Conference: a FREE half-day online conference focused on AI & Cloud – North America: Nov 2 – India: Nov 9 – Europe: Nov 14 – Asia Nov 23 Register now

Close outline
  • United States
IBM?
  • Site map
IBM?
  • Marketplace

  • Close
    Search
  • Sign in
    • Sign in
    • Register
  • IBM Navigation
IBM Developer Answers
  • Spaces
    • Blockchain
    • IBM Cloud platform
    • Internet of Things
    • Predictive Analytics
    • Watson
    • See all spaces
  • Tags
  • Users
  • Badges
  • FAQ
  • Help
Close

Name

Community

  • Learn
  • Develop
  • Connect

Discover IBM

  • ConnectMarketplace
  • Products
  • Services
  • Industries
  • Careers
  • Partners
  • Support
10.190.13.195

Refine your search by using the following advanced search options.

Criteria Usage
Questions with keyword1 or keyword2 keyword1 keyword2
Questions with a mandatory word, e.g. keyword2 keyword1 +keyword2
Questions excluding a word, e.g. keyword2 keyword1 -keyword2
Questions with keyword(s) and a specific tag keyword1 [tag1]
Questions with keyword(s) and either of two or more specific tags keyword1 [tag1] [tag2]
To search for all posts by a user or all posts with a specific tag, start typing and choose from the suggestion list. Do not use a plus or minus sign with a tag, e.g., +[tag1].
  • Ask a question

Sinatra app with Cloudant db consistently crashes with following messages

120000HHVT gravatar image
Question by Lennart  (45) | Nov 02, 2014 at 07:12 AM messagingcloudantibmcloudmessagedbsinatra

I can successfully deploy a Ruby Sinatra app in Bluemix. But when I bind a Cloudant db to Sinatra, download the starter application package to my laptop, make a small change on my laptop and then push the app back to Bluemix, the app consistently crashes. I have tried this several times. This is what the activity log says:

 11/2/14
 5:09 AM
 LennartSinatra17
 an instance of the app crashed: failed to accept connections within health check timeout
 
   exit status: 1, CRASHED

BXNUI2034E: Error while getting instances resource. Cloud Foundry issued the following message: "File error: Request failed for app: LennartSinatra17, instance: 0 and path: / as the instance is not found." See the Troubleshooting topics in the IBM Bluemix Documentation to check service status, review troubleshooting information, or for information about getting help.

And this is what happens when I try to start the app:

 Starting app LennartSinatra17 in org xxxxx / space dev as xxxxx
 m...
 OK
 
 0 of 1 instances running, 1 down
 0 of 1 instances running, 1 down
 0 of 1 instances running, 1 down
 0 of 1 instances running, 1 down
 0 of 1 instances running, 1 down
 0 of 1 instances running, 1 down
 0 of 1 instances running, 1 down
 0 of 1 instances running, 1 down
 0 of 1 instances running, 1 down
 0 of 1 instances running, 1 down
 0 of 1 instances running, 1 down
 0 of 1 instances running, 1 down
 0 of 1 instances running, 1 down
 0 of 1 instances running, 1 down
 0 of 1 instances running, 1 down
 0 of 1 instances running, 1 down
 0 of 1 instances running, 1 down
 0 of 1 instances running, 1 down
 0 of 1 instances running, 1 down
 ......
 FAILED
 Start unsuccessful
 
 TIP: use 'cf logs LennartSinatra17 --recent' for more information
 
 C:\IBM\IBM BlueMix\Lennart BlueMix Apps\LennartSinatra17>cf logs LennartSinatra1
 7 --recent
 FAILED
 websocket.Dial wss://loggregator.ng.bluemix.net:443/dump/?app=ddbcf1b3-78fe-4174
 -91ca-57f8ebbe68e4: bad status



People who like this

  0
Comment
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster

4 answers

  • Sort: 
120000HHVT gravatar image

Answer by Lennart (45) | Nov 02, 2014 at 12:07 PM

More infotmation on this problem: It also appears when the Sinatra app is not tied to not tied to any service. All one has to to is to push changes to it three to four times and then the app will crash

 11/2/14
 10:06 AM
 MySinatra1
 an instance of the app crashed: failed to accept connections within health check timeout
 
     exit status: 1, CRASHED
 

And I have not changed the YML file that I have downloaded with the quickstart link.

Comment

People who like this

  0   Show 1   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
270001DNFS gravatar image Mario Briggs (800)   Nov 02, 2014 at 11:49 PM 0
Share

As you figured out, nothing to do with the service binding. Could you try without the the YML as well as tail the logs from another window, when you do the push

120000HHVT gravatar image

Answer by Lennart (45) | Nov 03, 2014 at 09:28 AM

Hi Mario, thanx for your quick response! applications:

Since Sinatra always instantiates correctly, and then crashes after about the third cf push command, the YML file may well be the culprit..

I tried this push command instead of the YML file, but get a syntax error:

cf push -n LennartSinatra18 -d mybluemix.net -p . -i 1 -m 128m Any thoughts on how to code it?

And here is the YML file.

 - disk_quota: 1024M
   host: LennartSinatra18
   name: LennartSinatra18
   path: .
   domain: mybluemix.net
   instances: 1
   memory: 128M

Comment

People who like this

  0   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
120000HHVT gravatar image

Answer by Lennart (45) | Nov 03, 2014 at 09:58 AM

PS: I would like to open a report on the fact that the SInatra buildpack crashes after a certain number of cf pushes with the standard YML file that comes with the project. I have verified this a large number of times during the last three days.

Hopefully the error below will be enough to go on:

 C:\IBM\IBM BlueMix\Lennart BlueMix Apps\LennartSinatra18>cf logs LennartSinatra1
 8 --recent
 FAILED
 websocket.Dial wss://loggregator.ng.bluemix.net:443/dump/?app=82b4a0b1-5db2-4c93
 -9b72-000cee1f6550: bad status
Comment

People who like this

  0   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
270006JGHJ gravatar image

Answer by Richard Johnson (3602) | Nov 04, 2014 at 10:37 AM

That cf logs output is not healthy. Is your cf up to date? cf -version will tell you the version, and it should be 6.6 or above https://github.com/cloudfoundry/cli is where you can download an updated version.

Hopefully with the extra correct log output you will see more help information about what is going wrong with your app.

Comment

People who like this

  0   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster

Follow this question

6 people are following this question.

Answers

Answers & comments

Related questions

Writing data to Cloudant with CouchRest from Ruby Sinatra 3 Answers

Getting error while adding dcouments in cloudant noSQL db 1 Answer

Looking to add a Cloudant dbase to the Watson Ruby boilerplate app 1 Answer

cannot authenticate with cloudant 2 Answers

How to sync dashDB from Cloudant 1 Answer

  • Contact
  • Privacy
  • IBM Developer Terms of use
  • Accessibility
  • Report Abuse
  • Cookie Preferences

Powered by AnswerHub

Authentication check. Please ignore.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • API Connect
  • Analytic Hybrid Cloud Core
  • Application Performance Management
  • Appsecdev
  • BPM
  • Blockchain
  • Business Transaction Intelligence
  • CAPI
  • CAPI SNAP
  • CICS
  • Cloud Analytics
  • Cloud Automation
  • Cloud Object Storage
  • Cloud marketplace
  • Collaboration
  • Content Services (ECM)
  • Continuous Testing
  • Courses
  • Customer Experience Analytics
  • DB2 LUW
  • Data and AI
  • DataPower
  • Decision Optimization
  • DevOps Build
  • DevOps Services
  • Developers IBM MX
  • Digital Commerce
  • Digital Experience
  • Finance
  • Global Entrepreneur Program
  • Hadoop
  • Hybrid Cloud Core
  • Hyper Protect
  • IBM Cloud platform
  • IBM Design
  • IBM Forms Experience Builder
  • IBM Maximo Developer
  • IBM StoredIQ
  • IBM StoredIQ-Cartridges
  • IIDR
  • ITOA
  • InformationServer
  • Integration Bus
  • Internet of Things
  • Kenexa
  • Linux on Power
  • LinuxONE
  • MDM
  • Mainframe
  • Messaging
  • Node.js
  • ODM
  • Open
  • PartnerWorld Developer Support
  • PowerAI
  • PowerVC
  • Predictive Analytics
  • Product Insights
  • PureData for Analytics
  • Push
  • QRadar App Development
  • Run Book Automation
  • Search Insights
  • Security Core
  • Storage
  • Storage Core
  • Streamsdev
  • Supply Chain Business Network
  • Supply Chain Insights
  • Swift
  • UBX Capture
  • Universal Behavior Exchange
  • UrbanCode
  • WASdev
  • WSRR
  • Watson
  • Watson Campaign Automation
  • Watson Content Hub
  • Watson Marketing Insights
  • dW Answers Help
  • dW Premium
  • developerWorks Sandbox
  • developerWorks Team
  • Watson Health
  • More
  • Tags
  • Questions
  • Users
  • Badges