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

IBM Cloud platform×

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

Problem with Go deployment (dependencies)

3100004MPR gravatar image
Question by MFClement  (710) | Jun 22, 2015 at 10:12 AM ibmcloudgo

Hi,
I have been trying to deploy a simple go web app to bluemix. I noticed that the cf golang buildpack uses godeps to handle dependencies on push. To simplify things I took the go starter code and moved it into my GOPATH and called cf push. it worked and ran on bluemix. Then I ran godep save and tried another cf push. the buildpack compiled and ran but failed to stage. Logs only tell me this: ERR Instance (index 0) failed to start accepting connections

Can anyone replicate this issue?

Gist of deploy steps: https://gist.github.com/clement360/f72354d9f9bad9a0ef24

People who like this

  0   Show 5
Comment
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
060001ACAH gravatar image MichaelPeters (466)   Jun 23, 2015 at 04:54 PM 0
Share

Your unsuccessful push uses go 1.4.2 while the successful one uses go 1.3.3. Can you try again using "godep save" but with go 1.3.3 to rule out an go version issues?

3100004MPR gravatar image MFClement (710) MichaelPeters (466)   Jun 23, 2015 at 05:12 PM 0
Share

good catch, it seems that godep save will update the Godep.json file to use 1.4.2, I ran Godep save and manually returned the version string to 1.3.3 and pushed again

`➜ laravelTester2 git:(master) ✗ cf push

Starting app laravelTester in org jstart / space MFCdev as mfclemen@us.ibm.com...
-----> Downloaded app package (20K)
Cloning into '/tmp/buildpacks/go-buildpack'...
Submodule 'compile-extensions' (https://github.com/cloudfoundry-incubator/compile-extensions.git) registered for path 'compile-extensions'
Cloning into 'compile-extensions'...
Submodule path 'compile-extensions': checked out '9f02e38433ca08c2e82cfec8844db9dd26acb336'
-------> Buildpack version 1.3.1
-----> Installing go1.3.3... done
-----> Running: godep go install -tags cloudfoundry ./...
-----> Uploading droplet (1.9M)

0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 down
0 of 1 instances running, 1 down .......

Same result.

060001ACAH gravatar image MichaelPeters (466) MFClement (710)   Jun 24, 2015 at 09:12 AM 0
Share

I tried it this morning can push the starter app after a godep save. Thinking of other suggestions, but nothing yet.

Show more comments

1 reply

  • Sort: 
060001ACAH gravatar image
Accepted answer

Answer by MichaelPeters (466) | Jun 24, 2015 at 10:57 AM

When you run "godep save" it's changing the ImportPath in Godeps.json because you put the app in a directory not named gohelloworld. The Procfile contains "web: gohelloworld" so there is a mismatch. You need to update Procfile with your directory name.

Comment
MFClement
googerb

People who like this

  2   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
3100004MPR gravatar image MFClement (710)   Jun 24, 2015 at 01:28 PM 0
Share

Thanks!! that solved it, is this documented somewhere? I would have never figured that out

Follow this question

33 people are following this question.

Answers

Answers & comments

Related questions

About using GO with BlueMix 5 Answers

Do you function as the Go environment locally? 1 Answer

What else do I have to do to fix the "BuildpackCompileFailed" error? 1 Answer

Go app won't launch ("Failed to accept connections.") 1 Answer

How can I run applications written in Go Programming language in bluemix? 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